2009-10-26, 21:17
Am Wochenende hatte ich das Problem, eine kapitelweise Neu-Nummerierung pro \part umsetzen zu müssen. Dank freundlicher Hilfe aus der de.comp.text.tex Newsgruppe war die Lösung dann einfach:
\makeatletter
\@addtoreset{chapter}{part}
\renewcommand\p@chapter{\thepart.}
\renewcommand\p@section{\thepart.}
\renewcommand\p@subsection{\thepart.}
\renewcommand\p@subsubsection{\thepart.}
\renewcommand\p@paragraph{\thepart.}
\renewcommand\p@subparagraph{\thepart.}
\renewcommand\p@figure{\thepart.}
\renewcommand\p@table{\thepart.}
\makeatother |
\makeatletter
\@addtoreset{chapter}{part}
\renewcommand\p@chapter{\thepart.}
\renewcommand\p@section{\thepart.}
\renewcommand\p@subsection{\thepart.}
\renewcommand\p@subsubsection{\thepart.}
\renewcommand\p@paragraph{\thepart.}
\renewcommand\p@subparagraph{\thepart.}
\renewcommand\p@figure{\thepart.}
\renewcommand\p@table{\thepart.}
\makeatother
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website