之前有一些貼文展示如何新增 Moderncv 文件的節號。
例如,給出的程式碼如下:
\newcounter{secnumber}
\renewcommand\sectionstyle[1]{{%
\refstepcounter{secnumber}%
\sectionfont
\textcolor{color1}{\thesecnumber~#1}%
}}
這確實可以提供我部分編號。我的問題是如何(可能對上面的程式碼進行了哪些更改)將這些節號設定為字母順序而不是數字?
答案1
您可以插入指令
\renewcommand\thesecnumber{\Alph{secnumber}}
之後立刻
\newcounter{secnumber}
取得大寫字母符號——「A」、「B」等——而不是阿拉伯數字。如果您想要小寫字母符號,請使用\alph
代替\Alph
。