![KOMA 类中带有前缀和计数器的自定义标题](https://linux22.com/image/474653/KOMA%20%E7%B1%BB%E4%B8%AD%E5%B8%A6%E6%9C%89%E5%89%8D%E7%BC%80%E5%92%8C%E8%AE%A1%E6%95%B0%E5%99%A8%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%87%E9%A2%98.png)
答案1
好的,我距离解决方案不太远了:
\DeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
font=\usekomafont{subsection},
indent=0pt,
level=2,
tocindent=3.8em,
toclevel=2,
tocnumwidth=3.2em,
tocstyle=section,
counterwithin=section,
style=section
]{gp}
我所需要的前缀:
\renewcommand*{\thegp}{GP\arabic{gp}}