我需要它,因為我的頁面寫在所有空間中,我可以設定寫頁碼的變數的內容嗎?或者,也許更簡單,我如何在這些空間上寫特定的文字?我需要一頁一頁地更改它。我會在每個頁面上設定它
謝謝
雷納托
答案1
這是一個範例,展示如何使用套件將頁碼替換為特定的某些文字fancyhdr
:
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rfoot{My Text}
\begin{document}
\section{Introduction}
This is some text.
\newpage
\section{Conclusion}
This is some more text.
\end{document}
如果您只想在某些頁面上將頁碼替換為特定文本,可以使用以下\thispagestyle
命令:
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rfoot{\thepage}
\fancypagestyle{myfancystyle}{
\fancyhf{}
\rfoot{My Text}
}
\begin{document}
\section{Introduction}
This is some text.
\newpage
\thispagestyle{myfancystyle}
\section{Conclusion}
This is some more text.
\end{document}