我的 beamer 演示文稿中有以下代码:
\addtoreporttemplate{frametitle}{}{
\begin{tikzpicture}[overlay,remember picture,inner sep=0pt, outer sep=0pt]
\node[anchor=south,yshift=5pt] at (current page text area.south) {\includegraphics[height=0.8cm,width=\linewidth]{images/logo}};
\end{tikzpicture}}
\title{My Presentation}
\author{me}
\date{
\begin{tikzpicture}[overlay,remember picture,inner sep=0pt, outer sep=0pt]
\node[anchor=south,yshift=5pt] at (current page text area.south) {\includegraphics[height=0.8cm,width=\linewidth]{images/logo}};
\end{tikzpicture}}
我想知道是否有针对报告/文章等的类似命令,例如:
\addtoreporttemplate{}{
\begin{tikzpicture}[overlay,remember picture,inner sep=0pt, outer sep=0pt]
\node[anchor=south,yshift=5pt] at (current page text area.south) {\includegraphics[height=0.8cm,width=\linewidth]{images/logo}};
\end{tikzpicture}}
这样我的标志就会添加到每个页面上。
我尝试使用花式标题,但徽标未添加到我的封面上。
答案1
\documentclass{book}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead{}
\fancyfoot[C]{\includegraphics[height=0.8cm,width=\linewidth]{example-image}}
\title{bla}
\author{bla}
\usepackage{etoolbox} %..http://tex.stackexchange.com/questions/199317/custom-footer-on-title-page-using-maketitle-and-book-document-class
\patchcmd{\maketitle}
{\end{titlepage}}
{\thispagestyle{fancy}\end{titlepage}}
{}{}
\begin{document}
\maketitle
\lipsum
\end{document}