Fancyhdr 仅显示

Fancyhdr 仅显示

我正在编写课程大纲,我想将学校徽标放在页眉左侧。我想将课程放在页眉中央。但是,无论我将课程文本放在哪里,我尝试过 [C] 和 [R],它都不会显示。我已附上 MWE。

\documentclass[11pt]{article}
\usepackage{geometry,url}
\geometry{body={7.0in,9.5in}, top=1in, centering} % Adjust top margin here
\pagestyle{empty}
\usepackage{multicol}
\usepackage{fancyhdr} % Add the fancyhdr package
\usepackage{tabularx}
\usepackage{array}
\usepackage[backend=biber,texencoding=utf8,bibencoding=utf8,language=auto]{biblatex-chicago}
\usepackage{graphicx}

% Set the header height
\setlength{\headheight}{20pt} % Adjust as needed

% Define the firstpage style
\fancypagestyle{firstpage}{
  \fancyhf{}
  \fancyhead[L]{\includegraphics[width=1.2in]{example-image}} 
  \fancyhead[R]{\textbf{OT630 Biblical Aramaic}\\Spring 2024\\Tyndale Theological Seminary\\ Department of Biblical and Exegetical Studies\\}
  \renewcommand{\headrulewidth}{0pt}
}

\fancypagestyle{custom}{
  \fancyhf{} % Clear header and footer
  \renewcommand{\headrulewidth}{0pt} % Remove header rule line
  \fancyhead[C]{OT630 Biblical Aramaic} % Centered header
}

\begin{document}
\pagestyle{firstpage}
On the subsequent pages it should have the custom header. This shows up fine.
\pagestyle{custom}
\end{document}

相关内容