Latex 新手,有个蛮特殊的需求, Google 了半天没查到。
我想在 section name 里自引用此 section 的 index ,例如这个效果:
1.1 This is Section 1.1
PS :我已经用了 titlesec 包改了些样式,希望 solution 能不影响现在的设定,谢谢。
\usepackage{titlesec}
\titleformat{\subsection}{\normalfont\normalsize\itshape}{\thesubsection}{1em}{}
\renewcommand\thesubsection{\thesection-\arabic{subsection}}
我想在 section name 里自引用此 section 的 index ,例如这个效果:
1.1 This is Section 1.1
PS :我已经用了 titlesec 包改了些样式,希望 solution 能不影响现在的设定,谢谢。
\usepackage{titlesec}
\titleformat{\subsection}{\normalfont\normalsize\itshape}{\thesubsection}{1em}{}
\renewcommand\thesubsection{\thesection-\arabic{subsection}}