我想调整 rmarkdown beamer 模板中的图形标题的大小,所以我将其添加\usepackage[font={small,it}]{caption}
到我的 中header.tex
。但它不起作用 - 选项被忽略。到目前为止,我没有发现任何类似的问题。有什么想法吗?谢谢。
.rmd 文件:
---
title: "Presentation"
output:
beamer_presentation:
includes:
in_header: header.tex
fig_caption: true
---
\begin{figure}[htbp]
\centering
\includegraphics[width=.5\textwidth]{image.jpg}
\caption{Lorem ipsum dolor sit amet}
\end{figure}
header.tex:
\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage[font={small,it}]{caption}
\addtobeamertemplate{title page}{%
\begin{textblock*}{25mm}(10cm,0.5cm)
\includegraphics[width=0.8\textwidth]{logo.png}
\end{textblock*}
}
\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{25mm}(10cm,0.5cm)
\includegraphics[width=0.8\textwidth]{logo.png}
\end{textblock*}}
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-8pt} Institute | Hans Dampf \hfill\insertshortauthor\hfill\insertpagenumber}}
\setbeamertemplate{navigation symbols}{}