对于我的 .qmd,我想更改 pdf 模板的一部分。我遇到了一些挑战。有人有想法吗?
title.tex
before-title.tex
,但不断收到有关缺少 \begin document
的错误消息。https://github.com/MMJansen/Partial 上有一个包含 qmd、tex 和图像的小示例。感谢您的帮助!
\maketitle
时创建的 title
(这可以包括添加类似标题的元素,例如标题、作者、日期……例如
% left align title and author
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
{\sffamily\huge\textbf{\MakeUppercase{\@title}}} \vspace{0.3cm} \newline
{\Large {\@subtitle}} \newline
\@author
\end{flushleft}\egroup
}
\makeatother
在四开文档中,将其添加到
pdf:
include-in-header:
- "title.tex"
toccolor: "blue"
您可以使用 toccolor
参数将目录链接的颜色更改为您想要的任何颜色。