1

I'm trying to replicate the ARGUMENT section pictured below.

here

I tried adapting the code from here for the letters but I found that when I suppress the section numbers the subsection numbers do not properly print.

2
  • Hi. Does the code in this answer do what you want? Commented May 9, 2020 at 5:22
  • Not exactly, but I was able to create the following \renewcommand{\thesection}{} \renewcommand{\thesubsection}{\Roman{subsection}} \renewcommand{\thesubsubsection}{\Alph{subsubsection}} This does everything except the dot after the number.
    – Soro
    Commented May 9, 2020 at 5:35

1 Answer 1

2

Fixed, with the following working code:

\renewcommand{\thesection}{}
\renewcommand{\thesubsection}{\Roman{subsection}}
\renewcommand{\thesubsubsection}{\Alph{subsubsection}}

\let \savenumberline \numberline
\def \numberline#1{\savenumberline{#1.}}

Later code from here.

4
  • 1
    Very good. Please be advised, however, that if you don't also change the formatting of the section headings the space following the (now empty) section number will still be printed in the headings themselves. This is done e.g. here and here. Commented May 9, 2020 at 6:17
  • I've found that I actually have to suppress the section anyway with \section* and add it in \addcontentsline because the dot from the last two lines of code will print before the section even though there is no numbering, not sure how to fix that in the "correct" way.
    – Soro
    Commented May 9, 2020 at 18:01
  • Then please be advised that \section* does not reset the subsection counter. :) Commented May 9, 2020 at 18:50
  • \renewcommand*\numberline[1]{\ifx\relax#1\relax\else\savenumberline{#1.}\fi} would do it. The \ifx\relax#1\relax bit tests if #1 is empty, see e.g. here. Commented May 9, 2020 at 19:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .