我尝试了下面提到的最小工作示例。与我之前在 StackExchange 上提出的问题(单击这里)是我们现在有了标题页。如何在标题页的左上角也写上文档的文件名?
\documentclass{article}
\pagestyle{myheadings}
\begin{document}
\markboth{\jobname}{\jobname}
\begin{titlepage}
\pagestyle{headings}
\centering
{\bf\Large Probability distribution modeling} \\
Muhammad Khan
\end{titlepage}
\section{Introduction}
Hello!
\end{document}
答案1
只需添加\thispagestyle{headings}
或代替即可\pagestyle{headings}
。您可以保留\pagestyle{headings}
\documentclass{article}
\pagestyle{myheadings}
\begin{document}
\markboth{\jobname}{\jobname}
\begin{titlepage}
\thispagestyle{headings}
\centering
{\bf\Large Probability distribution modeling} \\
Muhammad Khan
\end{titlepage}
\markboth{\jobname}{\jobname}
\pagestyle{headings}
\section{Introduction}
Hello!
\end{document}