R Markdown相关
- 中文乱码问题
参考:https://blog.csdn.net/lixiaomie01/article/details/78012942 - 增加额外选项
title: "Your Document Title"
output:
pdf_document:
latex_engine: xelatex
extra_dependencies: ["ctex"]
-
R Markdown教程
参考:https://rmarkdown.rstudio.com/articles.html -
latex安装环境变量
-
latex 相关
参考:https://blog.csdn.net/Poboll/article/details/142729020
安装:https://blog.csdn.net/zhiaidaidai/article/details/140440448
参考:https://blog.csdn.net/Chenxiaoyu99/article/details/142485177
教程:https://blog.csdn.net/edward_zcl/article/details/117638588
教程:https://www.latexstudio.net/page/tex-documents/ -
表格横向问题
参考:https://dev59.com/hV8e5IYBdhLWcg3wVJPG
参考:https://stackoverflow.com/questions/41174907/where-to-put-header-tex-to-change-page-to-landscape-rmarkdown -
常用设置
title: "报告名称"
date: "`r format(Sys.Date(), '%Y年%m月%d日')`"
author: "作者"
# 支持中文
documentclass: ctexart
# 段落页边距
geometry: "left=2.5cm,right=2cm,top=3cm,bottom=2.5cm"
# 段落开始缩进
indent: true
# 段落行间距1.5倍
header-includes:
- \usepackage{setspace}
- \setstretch{1.5}
keywords:
- 中文
- R Markdown
output:
rticles::ctex:
fig_caption: yes # 图形标题
number_sections: yes # 章节数字序号
toc: false #目录
df_print: kable
keep_tex: true