如何解决R-Markdown 投影仪
我遇到了严重的麻烦,我在这个问题上花了一天时间,如果你能帮助我,我将不胜感激。
我正在尝试使用 R Markdown 进行投影仪演示。直到几天前它都做得很好,但现在我每次编织时都会遇到这个错误。我无法从错误日志 df.log 中找到任何丢失的 LaTeX 包。
! Undefined control sequence.
<write> ...ing: Your graphic driver \pgfsysdriver
\space does not support tr...
l.532 ...lt}{0}{0}{\pgfmathresult}{\pgf@x}{\pgf@y}
%
Error: LaTeX Failed to compile df.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See df.log for more info.
Execution halted
预先感谢您的帮助。
---
title: "Comparaison de performance de modèles"
subtitle: "Présentation de la problématique"
date: 2/6/2021
author: |
| amirrea...
| \scriptsize Master 2,Chargé d'études économiques et statistiques
output:
beamer_presentation:
latex_engine : xelatex
theme: "Montpellier"
colortheme: "beaver"
toc: FALSE
slide_level: 4
fig_width: 1
fig_height: 1
fig_caption: false
includes:
in_header: ../Presentation/header.tex
fontsize: 11pt
bibliography: ../Literature/bib.bib
---
```{r}
options(tinytex.verbose = TRUE)
```
# hello
some notes
# References
这是标题tex:
% Colors
% \usepackage{colortbl}
% Change section names style
\titlegraphic{
\vspace{-10mm}
\flushright
\includegraphics[height = 8mm]{../images/lig_logo_1.png}
\includegraphics[height = 8mm]{../images/gael_logo_3.jpg}
% \includegraphics[height = 8mm]{../images/uga_logo.png}
\includegraphics[height = 8mm]{../images/inp_logo.png}
}
%%%%%%%%%%%%%%%%%
% Load Packages %
%%%%%%%%%%%%%%%%%
% Spacings
\usepackage{setspace}
% Tables
\usepackage{longtable}
\usepackage{tabu}
% Floats
\usepackage{morefloats}
\usepackage{float}
\usepackage{placeins}
% Highlighting
\usepackage{soul}
% Horizontal page position
\usepackage{pdflscape}
% Append pdfs
\usepackage{pdfpages}
% Add latex chunks
\usepackage{docmute}
% Short toc
\usepackage{shorttoc}
%\setcounter{tocdepth}{1}
%\usepackage{minitoc} - incompatible with document class
% Referencing mutliple things with a single command - \cref
\usepackage{cLeveref}
% Array
\usepackage{array}
% Multiple columns
\usepackage{multicol}
% Image insertion and colors
\usepackage{graphicx}
% Latex comments
\newenvironment{dummy}{}{}
% Fonts
% \usepackage{fontspec}
% \setmainfont{MuSEO}
% drawing
\usepackage{tikz}
\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows}
\usepackage{dcolumn}
% \usepackage{subfig}
\usepackage[export]{adjustBox}
% \usepackage[demo]{graphicx}
\usepackage{subcaption}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{arrows.Meta}
\usepackage[edges]{forest}
\usepackage{calc}
% Add footline
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hBox{%
\begin{beamercolorBox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}{amirreza}
\end{beamercolorBox}%
\begin{beamercolorBox}[wd=.333333\paperwidth,center]{title in head/foot}%
\usebeamerfont{institute in head/foot}\insertshortdate
\end{beamercolorBox}%
\begin{beamercolorBox}[wd=.333333\paperwidth,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortinstitute{}\hspace*{1em}
%\insertframenumber{} / \inserttotalframenumber\hspace*{2ex} % old version
\insertframenumber{} \hspace*{2ex} % new version without total frames
\end{beamercolorBox}}%
\vskip0pt%
}
\makeatother
这是我在texworks上运行r markdown渲染pdf文件生成的.tex文件:
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
11pt,ignorenonframetext,]{beamer}
\usepackage{pgfpages}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{: }
\setbeamercolor{caption name}{fg=normal text.fg}
\beamertemplatenavigationsymbolsempty
% Prevent slide breaks in the middle of a paragraph
\widowpenalties 1 10000
\raggedbottom
\setbeamertemplate{part page}{
\centering
\begin{beamercolorBox}[sep=16pt,center]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorBox}
}
\setbeamertemplate{section page}{
\centering
\begin{beamercolorBox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorBox}
}
\setbeamertemplate{subsection page}{
\centering
\begin{beamercolorBox}[sep=8pt,center]{part title}
\usebeamerfont{subsection title}\insertsubsection\par
\end{beamercolorBox}
}
\AtBeginPart{
\frame{\partpage}
}
\AtBeginSection{
\ifbibliography
\else
\frame{\sectionpage}
\fi
}
\AtBeginSubsection{
\frame{\subsectionpage}
}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{ligatures=TeX,Scale=1}
\fi
\usetheme[]{Montpellier}
\usecolortheme{beaver}
% Use upquote if available,for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
pdftitle={Comparaison de performance de modèles},hidelinks,pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\newif\ifbibliography
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\usepackage{framed}
\definecolor{shadecolor}{RGB}{248,248,248}
\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
\newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
\newcommand{\Attributetok}[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}}
\newcommand{\BuiltInTok}[1]{#1}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.01}{\textit{#1}}}
\newcommand{\CommentvarTok}[1]{\textcolor[rgb]{0.56,0.01}{\textbf{\textit{#1}}}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.00,0.00}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}}
\newcommand{\DataTypetok}[1]{\textcolor[rgb]{0.13,0.53}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.81}{#1}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.56,0.01}{\textbf{\textit{#1}}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.64,0.00}{\textbf{#1}}}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.81}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00}{#1}}
\newcommand{\ImportTok}[1]{#1}
\newcommand{\informationTok}[1]{\textcolor[rgb]{0.56,0.01}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.53}{\textbf{#1}}}
\newcommand{\normalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.81,0.36,0.00}{\textbf{#1}}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.01}{#1}}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.56,0.01}{\textit{#1}}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.00,0.00}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.31,0.02}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.02}{#1}}
\newcommand{\Variabletok}[1]{\textcolor[rgb]{0.00,0.00}{#1}}
\newcommand{\VerbatimstringTok}[1]{\textcolor[rgb]{0.31,0.02}{#1}}
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.56,0.01}{\textbf{\textit{#1}}}}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
% Colors
% \usepackage{colortbl}
% Change section names style
\titlegraphic{
\vspace{-10mm}
\flushright
\includegraphics[height = 8mm]{../images/lig_logo_1.png}
\includegraphics[height = 8mm]{../images/gael_logo_3.jpg}
% \includegraphics[height = 8mm]{../images/uga_logo.png}
\includegraphics[height = 8mm]{../images/inp_logo.png}
}
%%%%%%%%%%%%%%%%%
% Load Packages %
%%%%%%%%%%%%%%%%%
% Spacings
\usepackage{setspace}
% Tables
\usepackage{longtable}
\usepackage{tabu}
% Floats
\usepackage{morefloats}
\usepackage{float}
\usepackage{placeins}
% Highlighting
\usepackage{soul}
% Horizontal page position
\usepackage{pdflscape}
% Append pdfs
\usepackage{pdfpages}
% Add latex chunks
\usepackage{docmute}
% Short toc
\usepackage{shorttoc}
%\setcounter{tocdepth}{1}
%\usepackage{minitoc} - incompatible with document class
% Referencing mutliple things with a single command - \cref
\usepackage{cLeveref}
% Array
\usepackage{array}
% Multiple columns
\usepackage{multicol}
% Image insertion and colors
\usepackage{graphicx}
% Latex comments
\newenvironment{dummy}{}{}
% Fonts
% \usepackage{fontspec}
% \setmainfont{MuSEO}
% drawing
\usepackage{tikz}
\usetikzlibrary{matrix,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortinstitute{}\hspace*{1em}
%\insertframenumber{} / \inserttotalframenumber\hspace*{2ex} % old version
\insertframenumber{} \hspace*{2ex} % new version without total frames
\end{beamercolorBox}}%
\vskip0pt%
}
\makeatother
\title{Comparaison de performance de modèles}
\subtitle{Présentation de la problématique}
\author{amirrea\ldots{}\\
\scriptsize Master 2,Chargé d'études économiques et statistiques}
\date{2/6/2021}
\begin{document}
\frame{\titlepage}
\begin{frame}[fragile]
\begin{Shaded}
\begin{Highlighting}[]
\KeywordTok{options}\normalTok{(}\DataTypetok{tinytex.verbose =} \OtherTok{TRUE}\normalTok{)}
\end{Highlighting}
\end{Shaded}
\end{frame}
\hypertarget{hello}{%
\section{hello}\label{hello}}
\begin{frame}{hello}
some notes
\end{frame}
\hypertarget{references}{%
\section{References}\label{references}}
\end{document}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。