
我正在@makefnmark
正文中進行修改,但使用以下程式碼在頁腳中保持相同:
\makeatletter
\AtBeginDocument{%
% ...
}
\let\@latex@makefnmark\@makefnmark
\patchcmd{\@makefntext}{\@makefnmark}{\@latex@makefnmark}{}{\FAILED}
% ...
\renewcommand*\@makefnmark{%
% ...
}
\makeatother
如何更改頁腳中 fnmark 的文字顏色?
當我嘗試時,\textcolor{red}{...}
我得到了Undefined control sequence
。
答案1
我懂了:
\patchcmd{\@makefntext}{\@makefnmark}{{\color{red}\@latex@makefnmark}}{}{\FAILED}
為什麼雙花括號有幫助,我不知道,但我們在這裡...