The minimal example below updates \part
to set its numbering differently. More specifically, it removes the \partname
- Part
- prefix and keeps the title on the same line. Fonts are also updated to set the part using \LARGE\bfseries
in both \part
and \part*
. All of the above updates are done using etoolbox
's \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
macro that performs a <search>
-and-<replace>
within <cmd>
.
\documentclass{article}
\usepackage{lipsum,etoolbox}
\renewcommand{\thepart}{\Alph{part}}
\makeatletter
% Change part display; also uniform size of \LARGE\bfseries
\patchcmd{\@part}% <cmd>
{\Large\bfseries \partname\nobreakspace\thepart \par\nobreak}% <search>
{\LARGE\bfseries \thepart.\quad}% <replace>
{}{}% <success><failure>
\patchcmd{\@part}{\huge}{\LARGE}{}{}
\patchcmd{\@spart}{\huge}{\LARGE}{}{}
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname.\quad}
% \@addtoreset{section}{part} % Reset section counter with every part
\makeatother
\begin{document}
\part{Narrative}
\section{Intro}
\lipsum[1]
\part{Appendix}
\section{Derivations}
\lipsum[2]
\end{document}
If you wish to have the \section
numbers reset with every new \part
, uncomment the line referencing that in the preamble.
\documentclass
are you using? Do you have\chapter
s and other\section
s in your document? – Werner\section
s? That's probably the easiest way to get what you want. – Werner