R LaTeX错误:包颜色的选项冲突
刚刚将R更新到版本4.0.2(从3.6.3)和rmarkdown到v2.3(从1.13)。但我在编织pdf时面临几个问题。我在一个新的rmarkdown(pdf)的yaml部分使用了以下代码,其余内容保持不变,我得到了标题的错误R LaTeX错误:包颜色的选项冲突,r,r-markdown,miktex,R,R Markdown,Miktex,刚刚将R更新到版本4.0.2(从3.6.3)和rmarkdown到v2.3(从1.13)。但我在编织pdf时面临几个问题。我在一个新的rmarkdown(pdf)的yaml部分使用了以下代码,其余内容保持不变,我得到了标题的错误 --- title: "Untitled" output: pdf_document: fig_height: 6 fig_width: 9 includes: in_header: greek.tex
---
title: "Untitled"
output:
pdf_document:
fig_height: 6
fig_width: 9
includes:
in_header: greek.tex
latex_engine: xelatex
pandoc_args: [
"--variable", "geometry:paperwidth=8.27in",
"--variable", "geometry:paperheight=11.69in",
"--variable", "geometry:left=0.75in",
"--variable", "geometry:right=0.75in",
"--variable", "geometry:top=0.75in",
"--variable", "geometry:bottom=0.75in"
]
---
希腊文.tex目录:
\usepackage{fontspec}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{pdflscape}
\usepackage{float}
\usepackage[usenames, dvipsnames]{color}
\usepackage[normalem]{ulem}
\usepackage[bottom]{footmisc}
\setmainfont[Scale=1.0]{Segoe UI}
\setsansfont{Calibri}
\usepackage[font=small]{caption}
\captionsetup[table]{name=Πίνακας}
\renewcommand{\baselinestretch}{1.2}
我还注意到,在编写html时需要这样的html代码
<div class="text-center">
会话信息
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=Greek_Greece.1253 LC_CTYPE=Greek_Greece.1253
[3] LC_MONETARY=Greek_Greece.1253 LC_NUMERIC=C
[5] LC_TIME=Greek_Greece.1253
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_4.0.2 htmltools_0.5.0 tools_4.0.2 yaml_2.2.1
[5] rmarkdown_2.3 knitr_1.29 xfun_0.16 digest_0.6.25
[9] packrat_0.5.0 rlang_0.4.7 evaluate_0.14
在颜色上
选项冲突。如果我删除颜色
选项,并在颜色
选项冲突上的\PassOptionsToPackage{usenames,dvipsnames}{color}
之前添加\documentclass
,我就可以编织一个Swave文档。如果我删除color
选项,并在\documentclass
之前添加\PassOptionsToPackage{usenames,dvipsnames}{color},我就可以编织一个swave文档
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=Greek_Greece.1253 LC_CTYPE=Greek_Greece.1253
[3] LC_MONETARY=Greek_Greece.1253 LC_NUMERIC=C
[5] LC_TIME=Greek_Greece.1253
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_4.0.2 htmltools_0.5.0 tools_4.0.2 yaml_2.2.1
[5] rmarkdown_2.3 knitr_1.29 xfun_0.16 digest_0.6.25
[9] packrat_0.5.0 rlang_0.4.7 evaluate_0.14