## LaTeX forum ⇒ Theses, Books, Title pages ⇒ How do I get the chapter number and name on the same line? Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

### How do I get the chapter number and name on the same line?

Hello,

Just a couple of quick questions. Will you be making templates (or build in options to include them) that would have the title page and ToC in the vein of Tufte’s “The Visual Display of Quantitative Information”?

Also, I prefer numbered section headings, so I’ve enabled them. However, I can’t seem to find how to get (chapter number) and (chapter name) in the same line. I tried searching within tufte-common.def file but was unable to find anything. How would I go about modifying this?

Thank you for making this beautiful template available!

Tags:

Vel
Site Moderator
Posts: 454
Joined: Fri Jun 29, 2012 1:20 am
Hi Filip,

No, I won’t be adding anything to this template myself. I suggest you contact the developers of the template here. If you would like to add this functionality to the template yourself I can incorporate it into the template if you send me the changes.

Regarding your question of putting the chapter number and title on the same line, first, enable chapter/section numbering with: \setcounter{secnumdepth}{1} then go to tufte-common.def and replace:

\titleformat{\chapter}%[display]% shape{\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text{\itshape\huge\thechapter}% label{0pt}% horizontal separation between label and title body{\huge\rmfamily\itshape}% before the title body[\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{fullwidth}}{}]% after the title body

with this:

\titleformat{\chapter}%[block]% shape{\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text{\itshape\huge\thechapter\hspace{10pt}}% label{0pt}% horizontal separation between label and title body{\huge\rmfamily\itshape}% before the title body[\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{fullwidth}}{}]% after the title body

You can do something similar for sections and subsections if you like. Good luck!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm
Hi Vel,

Thanks for your reply, it was very helpful. Although, once I changed it, I realized the default style had been better. However, thanks to you, now I know how to change it, should the need arise.

As for the ToC, if I find the time to edit the default ToC, I will certainly let you know.

Thank you,

Filip.