考试类别标题的字体大小

考试类别标题的字体大小

如果我这样做:

\documentclass{exam}
\usepackage{libertine}
\usepackage{setspace}

\begin{document}

    \sffamily
    \doublespacing
    \Large

    \header{English 213}{Practice with word pairs}{Spring 2017}
    %\firstpagefooter{}{}{Over \textrightarrow}



    \vspace{1in}
    \makebox[0.5\textwidth]{Name:\enspace\dotfill}
    \vspace{0.2in}


    \noindent


    \begin{questions}

    \question Because I was so tired I \fillin on the bed. (lay/laid)

    \end{questions}


\end{document}

字体和间距更改仅适用于正文,不适用于标题。我可以单独编辑每个标题字段,例如\header{\sffamily \Large English 213}{\sffamily \Large Practice with word pairs}{\sffamily \Large Spring 2017},但这似乎很尴尬。有没有更好的方法?

答案1

您只需在序言中添加以下几行即可:

\renewcommand\header[3]{%
  \firstpageheader{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
  \runningheader{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
}

这样您的所有标题都具有该格式。

平均能量损失

\documentclass{exam}
\usepackage{libertine}
\usepackage{setspace}

\renewcommand\header[3]{%
  \firstpageheader{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
  \runningheader{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
}


\begin{document}

    \sffamily
    \doublespacing
    \Large

    \header{English 213}{Practice with word pairs}{Spring 2017}
    %\firstpagefooter{}{}{Over \textrightarrow}



    \vspace{1in}
    \makebox[0.5\textwidth]{Name:\enspace\dotfill}
    \vspace{0.2in}


    \noindent


    \begin{questions}

    \question Because I was so tired I \fillin on the bed. (lay/laid)

    \end{questions}


\end{document} 

输出:

在此处输入图片描述

如果您需要对页脚使用相同的格式,还可以添加

\renewcommand\footer[3]{%
  \firstpagefooter{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
  \runningfooter{\sffamily\Large #1}{\sffamily\Large #2}{\sffamily\Large #3}%
}

相关内容