我想更改页码,使其显示类似“F_in_a JAR 2”的内容,或者以非侵入方式在所有页面上添加我的名字。
我对乳胶没有太多经验,所以为了写书,我选择了 Kaobook 类,因为它现在看起来不错,我不知道如何使用此类更改编号或为所有页面添加名称。
编辑
我使用的软件包是 [spanish]{babel} array wrapfig multirow tabularx multicol subcaption [table,xcdraw]{xcolor} style/kaobiblio
答案1
或许您可以从这里开始。
如果您使用的是 GitHub 的最新版本:
\renewpagestyle{scrheadings}{%
{\smash{\hspace{-\headmarginparwidth}\hspace{-\headmarginparsep}\makebox[\headtotal][l]{%
\makebox[7\hscale][r]{\thepage}%
\makebox[3\hscale]{}\rule[-1mm]{0.5pt}{19\vscale-1mm}\makebox[3\hscale]{}%
\makebox[\headtextwidth][l]{\leftmark}}}}%
{\smash{\makebox[0pt][l]{\makebox[\headtotal][r]{%
\makebox[\headtextwidth][r]{\hfill\rightmark}%
\makebox[3\hscale]{}\rule[-1mm]{0.5pt}{19\vscale-1mm}\makebox[3\hscale]{}%
\makebox[7\hscale][l]{\thepage}}}}}%
{\smash{\makebox[0pt][l]{\makebox[\headtotal][r]{%
\makebox[\headtextwidth][r]{\hfill\rightmark}%
\makebox[3\hscale]{}\rule[-1mm]{0.5pt}{19\vscale-1mm}\makebox[3\hscale]{}%
\makebox[7\hscale][l]{\thepage}}}}}%
}{%
{\hspace{\dimexpr -\headmarginparwidth -\headmarginparsep}\makebox[\headtotal][l]{%
\makebox[\textwidth][l]{F-in-JAR}%
}}%
{\makebox[0pt][l]{\makebox[\headtotal][r]{%
\makebox[\headtextwidth][r]{\hfill F-in-JAR}%
}}}%
{\makebox[0pt][l]{\makebox[\headtotal][r]{%
\makebox[\headtextwidth][r]{\hfill F-in-JAR}%
}}}%
}
如果你正在使用 Overleaf 上的模板latextemplates.com:
\renewpagestyle{scrheadings}{%
{\hspace{-\marginparwidth}\hspace{-\marginparsep}\makebox[\overflowingheadlen][l]{%
\parbox[t][1.7cm][c]{2em}{\hfill\thepage}%
\makebox[2em][c]{\rule[-1.03cm]{1pt}{1.55cm}}%
\parbox[t][1.7cm][c]{\textwidth}{\leftmark}}}%
{\makebox[\overflowingheadlen][r]{%
\parbox[t][1.7cm][c]{\textwidth}{\hfill\rightmark}%
\makebox[2em][c]{\rule[-1.03cm]{1pt}{1.55cm}}%
\parbox[t][1.7cm][c]{2em}{\thepage}}}%
{\makebox[\overflowingheadlen][r]{%
\parbox[t][1.7cm][c]{\textwidth}{\hfill\rightmark}%
\makebox[2em][c]{\rule[-1.03cm]{1pt}{1.55cm}}%
\parbox[t][1.7cm][c]{2em}{\thepage}}}%
}{%
{\hspace{\dimexpr -\marginparwidth -\marginparsep}\makebox[\overflowingheadlen][l]{%
\makebox[\textwidth][l]{F-in-JAR}%
}}%
{\makebox[0pt][l]{\makebox[\overflowingheadlen][r]{%
\makebox[\textwidth][r]{\hfill F-in-JAR}%
}}}%
{\makebox[0pt][l]{\makebox[\overflowingheadlen][r]{%
\makebox[\textwidth][r]{\hfill F-in-JAR}%
}}}%
}
它将在每一页的页脚打印 F-in-JAR。