LaTeX forum ⇒ Theses, Books, Title pagesChapter divide in Sub chapter in Latex Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Posts: 2
Joined: Tue Feb 12, 2019 7:19 pm

Chapter divide in Sub chapter in Latex

Postby sanhare707 » Tue Feb 12, 2019 8:27 pm

Dear All,

How to divide chapter in subchapters in latex such as i want to use chapter 2 in four parts chapter 2a, 2b, 2c and 2d. I am unable to divide the chapter in sub chapters in latex. Kindly suggest how to do that.
Thanks in advance.


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

Postby Johannes_B » Tue Feb 12, 2019 9:25 pm

Well, usually people use \section to divide a chapter into sections (2.1., 2.2., 2.3. etc). You can of course change the numbering a bit: \renewcommand{\thesection}{\arabic{chapter}.\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.

Posts: 2
Joined: Tue Feb 12, 2019 7:19 pm

Postby sanhare707 » Wed Feb 13, 2019 7:32 am

Dear Johannes_B,
My query is how to devide chapter in sub chapters for my thesis. The chapter into sections 2.1, 2.2 etc are coming but I need two parts like chapter 2a and 2b after that the section. I am using following for sub chapters but in the section part previous chapter numbering coming (chapter 3a, 3b then in section part 2a.1, 2a.2 and 3a.1, 3a.2 etc are coming). How I tackle the problem?

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \newcounter{subchapter}\renewcommand{\thesubchapter}{\alph{subchapter}}
  2. \makeatletter
  3. % \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
  4. \newcommand{\updatechaptercounter}{}
  5. \patchcmd{\@chapter}{\@afterheading}{\updatechaptercounter\@afterheading}{}{}% Regular patch of \@chapter
  6. %\patchcmd{\Hy@org@chapter}{\@afterheading}{\updatechaptercounter\@afterheading}{}{}% Hyperref patch of \@chapter
  7. \makeatother
  8. \providecommand{\theHchapter}{}%
  9. \newcommand{\startsubchapters}{%
  10. \setcounter{subchapter}{0}% Reset sub-chapter numbering
  11. \renewcommand{\thechapter}{\arabic{chapter}\thesubchapter}% Update chapter number display
  12. % \renewcommand{\theHchapter}{\arabic{chapter}\thesubchapter}% Update chapter number display (for hyperref)
  13. \renewcommand{\updatechaptercounter}{\addtocounter{chapter}{-1}}% Update chapter number
  14. \let\oldchapter\chapter%
  15. \renewcommand{\chapter}{\stepcounter{subchapter}\oldchapter}% Increment subchapter
  16. }
  17. \newcommand{\stopsubchapters}{%
  18. \renewcommand{\thechapter}{\arabic{chapter}}% Reset chapter numbering
  19. \renewcommand{\theHchapter}{\arabic{chapter}}% Reset chapter numbering (for hyperref)
  20. \let\chapter\oldchapter% Restore regular \chapter command
  21. \renewcommand{\updatechaptercounter}{}% Clear chapter counter update
  22. \stepcounter{chapter}% Update chapter counter
  23. }

Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests