LaTeX forum ⇒ Text FormattingAppendix - section numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Posts: 1
Joined: Sun Jun 17, 2018 8:49 pm

Appendix - section numbering

Postby silviahfuente » Sun Jun 17, 2018 9:29 pm

I have a problem with my appendix environment. My appendix has two chapter with sections and subsections. In the first chapter the sections and subsections numbering are A.0.1 and A.0.1.1, respectivelly. In the second chapter I have, B.1 and B.1.1. I want section and subsection numbering like second chapter.
Please see example below.

  1. \begin{appendices}
  2. \pagestyle{empty}
  3. \pagestyle{fancy}
  4. \fancyhead[RO]{}
  5. \fancyhead[RE]{\textit{Development of new products from polyols of biomass}}
  6. \fancyhead[LO]{Apêndice \thechapter}
  7. \fancyhead[CO]{\nomecapitulo}
  8. \fancyhead[LE]{}
  9. \fancyfoot[C]{}
  10. \fancyfoot[LE,RO]{\bfseries\thepage}
  11. \renewcommand{\headrulewidth}{1.5pt}
  12. \renewcommand{\footrulewidth}{1.5pt}
  14. \renewcommand\chaptername{Appendix}
  15. \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
  16. \makeatletter
  17. \addtocontents{toc}{%
  18. \begingroup
  19. \let\protect\l@chapter\protect\l@section
  20. \let\protect\l@section\protect\l@subsection
  21. }
  22. \makeatother
  24. \chapter{Procedures}
  26. \subsection{Chemical Composition of Raw Materials}\label{feedstock}
  28. \chapter{Instrumental techniques}
  30. \section{Spectroscopic techniques}
Last edited by Stefan Kottwitz on Wed Jun 20, 2018 12:25 pm, edited 1 time in total.
Reason: code marked

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

Postby Johannes_B » Mon Jun 18, 2018 7:10 am

Please post a compilable document, not just a code snippet.

From what i can see, you are doing some strange stuff that should not be needed if used properly.
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: 9322
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Jun 20, 2018 12:30 pm

Welcome to the forum!

The problem is right here:

  1. \chapter{Procedures}
  3. \subsection{Chemical Composition of Raw Materials}

You don't have a section in this chapter, before you start a subsection. So the section number stays 0. Just write \section{Chemical Composition of Raw Materials} or insert another section heading to get a section 1 in chapter A, to get the subsection A.1.1.

Site admin

Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 2 guests