gallandarakhneorg / tex-templates

Templates and styles for UTBM, UFC and UB based on tex-upmethodology and Beamer
http://www.multiagent.fr/Publications#LaTeX
GNU Lesser General Public License v3.0
20 stars 10 forks source link

Change the style of the titles #23

Closed gallandarakhneorg closed 10 years ago

gallandarakhneorg commented 10 years ago

For changing the styles of the different titles in the PhD thesis and report styles, you must redefine the TeX functions provided by the library upmethodology.

Change the style of the parts

In the preamble of your TeX document, you redefine the macros upm@format@partnum and upm@format@parttitle. The first is formating the part's number, and the second is formating the part's title.

The first parameter #1 of upm@format@partnum is the part's number value, and of upm@format@parttitle is the part's title text.

Below, you could find an example of redefinition:

\makeatletter
\gdef\upm@format@partnum#1{\textcolor{parttitlecolor}{\expandafter\fontsize{40pt}{60pt}\selectfont#1\normalfont}}
\gdef\upm@format@parttitle#1{\textcolor{parttitlecolor}{\huge\scshape #1}}
\makeatother

Change the style of the chapters

In the preamble of your TeX document, you redefine the macros upm@format@chapternum and upm@format@chaptertitle. The first is formating the chapter's number, and the second is formating the chapter's title.

The first parameter #1 of upm@format@chapternum is the chapter's number value, and of upm@format@chaptertitle is the chapter's title text.

Below, you could find an example of redefinition:

\makeatletter
\gdef\upm@format@chapternum#1{\textcolor{chaptertitlecolor}{\expandafter\fontsize{40pt}{60pt}\selectfont#1\normalfont}}
\gdef\upm@format@chaptertitle#1{\textcolor{chaptertitlecolor}{\Huge\scshape #1}}
\makeatother

Change the style of the sections

In the preamble of your TeX document, you redefine the macros upm@format@sectionnum and upm@format@sectiontitle. The first is formating the section's number, and the second is formating the section's title. These macros are also used for subsections and subsubsections.

The first parameters #1 of both upm@format@sectionnum and upm@format@sectiontitle are the depth level of the section. The second parameter #2 of upm@format@sectionnum is the section's number value, and of upm@format@sectiontitle is the section's title text.

Below, you could find an example of redefinition:

\makeatletter
\gdef\upm@format@sectionnum#1#2{\textcolor{sectiontitlecolor}{#2}}
\gdef\upm@format@sectiontitle#1#2{\textcolor{sectiontitlecolor}{#2}}
\makeatother