LaTeX forum ⇒ Page LayoutHow do create section numbering using a, b, c etc instead of numbers?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
mcsentas
Posts: 7
Joined: Thu Nov 23, 2017 5:53 pm

How do create section numbering using a, b, c etc instead of numbers?

Postby mcsentas » Wed Dec 20, 2017 8:14 pm

How do create section numbering using a, b, c etc instead of numbers?

\section{Chapter} -- Appears a 1.

\subsection{My sub chapter} --Appears as 1.a 1.b etc

User avatar
Johannes_B
Site Moderator
Posts: 3853
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Dec 20, 2017 8:25 pm

Well, to begin with, a section is a section, not a chapter. \chapter{Chapter title} would produce a chapter.

You can probably use \renewcommand{\thesection}{\alph{section}}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9088
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Dec 20, 2017 8:53 pm

If you really use \section for chapters (low profile chapters in a shorter document), then this would be a way:

  1. \documentclass{article}
  2. \usepackage{chngcntr}
  3. \counterwithin*{subsection}{section}
  4. \renewcommand{\thesubsection}{\thesection.\alph{subsection}}
  5. \begin{document}
  6. \tableofcontents
  7. \section{Chapter}
  8. \subsection{My sub chapter}
  9. \section{Another Chapter}
  10. \subsection{First sub chapter}
  11. \subsection{Second sub chapter}
  12. \end{document}


Stefan
Site admin

Courtney McDaniel
Posts: 8
Joined: Mon Apr 16, 2018 11:04 am

Postby Courtney McDaniel » Mon Apr 16, 2018 11:49 am

It's great, it seems that the numbering was shifted from the very beginning, now I wanna to repeat it for other documents


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests