![标题选项在 rmarkdown beamer 模板中不起作用](https://linux22.com/image/332889/%E6%A0%87%E9%A2%98%E9%80%89%E9%A1%B9%E5%9C%A8%20rmarkdown%20beamer%20%E6%A8%A1%E6%9D%BF%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我想调整 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}{}