LaTeX forum ⇒ Theses, Books, Title pagesHow 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?

Postby templateuser » Thu Mar 12, 2015 9:58 am

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:

User avatar
Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:

Postby Vel » Thu Mar 12, 2015 9:58 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:

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


with this:

  1. \titleformat{\chapter}%
  2. [block]% shape
  3. {\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text
  4. {\itshape\huge\thechapter\hspace{10pt}}% label
  5. {0pt}% horizontal separation between label and title body
  6. {\huge\rmfamily\itshape}% before the title body
  7. [\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

Postby templateuser » Thu Mar 12, 2015 9:59 am

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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest