include_graphics 有问题!LaTeX 错误:包 graphicx 的选项冲突

include_graphics 有问题!LaTeX 错误:包 graphicx 的选项冲突

我第一次在 (PDF) markdown 文档中使用序言。我想将一些 png 图像插入到我的 PDF 中,但在 Rmd 脚本中使用 include_graphics 时遇到问题。

这是我的序言:

\def\Theme{Verkeersongevallen 2019}
\AtBeginDocument{\let\maketitle\relax}
\usepackage{color}
\usepackage[default,scale=0.8]{opensans}
\definecolor{section_font}{HTML}{516F86}
\definecolor{subsection_font}{HTML}{516F86}
\definecolor{box_background}{HTML}{E2E8EF}
\definecolor{table_blue}{HTML}{6E8DB0}
\usepackage[format=plain,labelfont={color=subsection_font,up,small,bf},textfont={color=subsection_font,small,up},justification=justified,singlelinecheck=false,labelsep=period]{caption}
\usepackage[most]{tcolorbox}
\newtcolorbox{myquote}{colback=box_background,grow to right by=-10mm,grow to left by=-10mm, boxrule=0pt,boxsep=0pt,breakable}
\newcommand{\highlight}[1]{\begin{myquote} #1 \end{myquote}}
\usepackage{xcolor}
\usepackage{floatrow}
\floatsetup[figure]{capposition=top}
\floatsetup[table]{capposition=top}
\usepackage{sectsty}
\usepackage{titlesec}
\sectionfont{\color{section_font}}  
\subsectionfont{\color{subsection_font}}
\subsubsectionfont{\color{subsection_font}}
\usepackage{float}
\floatplacement{figure}{H}
\floatplacement{table}{H}
\usepackage{lipsum}

\usepackage[dvips,xetex]{graphicx}
\usepackage{ifpdf,mla}


\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\headheight}{13.59999pt}
\lhead[RO]{\textcolor{table_blue}{\small{Vias institute}}}
\rhead[RO]{\textcolor{table_blue}{\small{\Theme}}}

当我编织 PDF 时,我收到以下错误代码:!LaTeX 错误:包 graphicx 的选项冲突。

我最近添加了这部分:\usepackage[dvips,xetex]{graphicx} \usepackage{ifpdf,mla},因为我之前遇到了另一个错误(!Package xkeyval Error: 03in' undefined in familiesGin'.)。

任何建议都将不胜感激!问候,Freya

相关内容