我是 Latex 的新手,正在尝试整理文章文档中的徽标。这是我的代码:
\documentclass[headsepline]{article}
\usepackage{graphicx}
\usepackage{scrlayer-scrpage}
\begin{document}
\setlength{\headheight}{5pt}
\ihead{\includegraphics[width=4\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular} }
\SweaveOpts{concordance=TRUE}
\tableofcontents
\newpage
\section{Introduction}
\setlength{\headheight}{5pt}
\ofoot{\includegraphics[width=2\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular} }
\newpage
\section{Introduction}
\setlength{\headheight}{5pt}
\ofoot{\includegraphics[width=2\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular} }
\newpage
\section{Introduction}
\setlength{\headheight}{5pt}
\ofoot{\includegraphics[width=2\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular} }
\end{document}
这样,我就能够在第一页的顶部添加我的徽标。现在我想从第二页到最后一页只将此徽标放在左下角。
另外,我想在第一页的徽标下方包含标题、作者和日期。
大家有什么帮助吗?
非常感谢
答案1
我将改进标题页,例如修改 maketitle:
\documentclass[headsepline]{article}
\usepackage{graphicx}
\usepackage{scrlayer-scrpage}
\usepackage{atbegshi}
\author{The Author}
\title{The Really Long Title}
\date{\today}
% Define titlepage
\makeatletter
\def\maketitle{%
\setlength{\headheight}{5pt}
\ihead{\includegraphics[width=4\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular} }
\ofoot{}
\@maketitle%
\tableofcontents
\newpage
\ihead{}
%\setlength{\headheight}{5pt}
\ofoot{\includegraphics[width=2\baselineskip]{jpgfile}
\begin{tabular}[b]{l}{\huge A very long Institute name}
\\ Address of the institution
\end{tabular}}%
}
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
\let \footnote \thanks
{\LARGE \@title \par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1em%
{\large \@date}%
\end{center}%
\par
\vskip 1.5em}
\makeatother
\begin{document}
\maketitle
%%%\SweaveOpts{concordance=TRUE}
\newpage
\section{Introduction}
\newpage
\section{Introduction}
\newpage
\section{Introduction}
\end{document}