以下是我的问题的 MWE:
\documentclass[article, openany, a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{mwe}
\usepackage{lmodern}
\makepagestyle{mytitlestyle}
\makeevenhead{mytitlestyle}{\scshape University of Copenhagen}{}{\includegraphics[width=0.2\textwidth]{example-image-a}}
\makeoddhead{mytitlestyle}{\scshape University of Copenhagen}{}{\includegraphics[width=0.2\textwidth]{example-image-a}}
\makeevenfoot{mytitlestyle}{}{}{}
\makeoddfoot{mytitlestyle}{}{}{}
\title{My Thesis}
\begin{document}
\begin{titlingpage}
\aliaspagestyle{titlingpage}{mytitlestyle}
\begin{center}
\Huge\bfseries\sffamily\thetitle
\end{center}
\end{titlingpage}
\end{document}
默认情况下,标题内容显示为底部对齐。徽标应该大于“哥本哈根大学”文字,并且应顶部对齐。
答案1
使用页眉来达到这个目的完全没有必要(而且是错误的)。您可以使用它adjustbox
来将徽标对齐到顶部。
\documentclass[article, openany, a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{adjustbox}
\newcommand{\unilogo}{%
\adjustbox{valign=t}{\includegraphics[width=0.2\textwidth]{example-image-a}}%
}
\title{My Thesis}
\begin{document}
\begin{titlingpage}
\centering
\vspace*{-2cm} % or whatever
\textsc{University of Copenhagen}
\hfill
\unilogo
\bigskip % or whatever
\Huge\bfseries\sffamily\thetitle
\end{titlingpage}
\end{document}