LyXclassicthesis | Change Font Style for Headings

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Bedo
Posts: 1
Joined: Thu Aug 25, 2011 8:45 pm

classicthesis | Change Font Style for Headings

Post by Bedo »

Hi all,

I'm quite new to LyX and I'm using this style for my thesis:
http://code.google.com/p/classicthesis/downloads/list

I'm searching for a way to increase size of font, add bold and remove emphasis to "Chapter" "Section" and "Subsection".

When I move my mouse above them in LyX I see that they are "Huge", "Larger" and "Large" but also bold. However, when I generate the PDF, they are not bold, and subsections have emphasis.

I tried to search something in classicthesis.layout, classicthesis-preamble.sty, classicthesis.sty but I didn't find anything useful.

So, how can I edit Chapter Section and subsection styles?

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

classicthesis | Change Font Style for Headings

Post by localghost »

I think the best source for information in this regard is the classicthesis manual. You can find it inside the archive which is available on the page you linked. I guess that customization must happen on the LyX side. But perhaps you have to install some stuff (fonts, …) subsequently on the LaTeX side. The log file of the PDF compilation should give corresponding information.


Best regards and welcome to the board
Thorsten
PhilipPirrip
Posts: 10
Joined: Sat Sep 10, 2011 10:59 pm

classicthesis | Change Font Style for Headings

Post by PhilipPirrip »

You'll find the relevant code in classicthesis.sty, in the section "layout of the chapter-, section-, subsection-, subsubsection-, paragraph and description-headings" (below line 350).
I'm putting in bold the commands you'll probably want change or replace

\titleformat{\chapter}[display]%
{\relax}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{halfgray}\chapterNumber\thechapter}}{0pt}%
{\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}

% sections
\titleformat{\section}
{\relax}{\textsc{\MakeTextLowercase{\thesection}}}{1em}{\spacedlowsmallcaps}

% subsections
\titleformat{\subsection}{\relax}{\textsc{\MakeTextLowercase{\thesubsection}}}{1em}{\normalsize\itshape}

The manual of the titlesec package might also help you with this.
Post Reply