【发布时间】:2021-09-07 06:54:29
【问题描述】:
我已经成功地将乳胶标题页添加到我的 Rmarkdown 文件中,但文档的其余部分没有出现。这是我的 YAML:
---
output:
pdf_document:
includes:
in_header: title.tex
---
我没有更改 Rmarkdown 文件中的任何其他内容,它的标准文本开头为:这是一个 Rmarkdown 文档等。我包括我的 title.tex 文件:
\usepackage{graphicx}
\begin{document}
\begin{titlepage}
\begin{center}
\includegraphics{UCTLogoLong.jpg}
\vspace*{2cm}
\textbf {\Huge Applied Spatial Data Analysis} % MAIN TITLE
\vspace{0.5cm}
{\LARGE Assignment 1} % SUBTITLE
\vspace{1cm}
\noindent\makebox[\linewidth]{\rule{\textwidth}{1pt}}
{\LARGE Geostatistics}
\noindent\makebox[\linewidth]{\rule{\textwidth}{1pt}}
\vspace{1cm}
{\Large NAME } % AUTHOR
{\Large STUDENT NUMBER}
\vspace{1cm}
\includegraphics[width=5cm,height=5cm,keepaspectratio]{statslogo.png}
\vspace{0.2cm}
Department of Statistical Sciences\\
University of Cape Town\\
South Africa\\
\today
\end{center}
\end{titlepage}
\end{document}
我对 Rmarkdown 比较陌生,不知道为什么标准的 Rmarkdown 文本没有在 knitted pdf 中显示。任何帮助将不胜感激。
【问题讨论】:
标签: latex r-markdown page-title