Text Formattingcustomize size of section titles and table of contents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

customize size of section titles and table of contents

Post by ffarr »

Hello, how can I customize size of section titles and table of contents (i.e. I don't want it to be bold)?

Here's my code:

Code: Select all

\documentclass[11pt,a4paper,twoside,italian]{book}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[%
      papersize={120mm,195mm},
      left=18mm,
      right=18mm,
      bottom=20mm,
      top=25mm,
      headheight=14pt,
      includehead,
      nofoot,
    ]{geometry}
\usepackage{babel}
\usepackage[raggedright,pagestyles]{titlesec}% Add “clearempty” option if you need to get rid of headers/footers on empty pages
\usepackage{blindtext}
\usepackage{color}

\titleformat{\chapter}{\normalfont\large\bfseries}{}{0pt}{\Large}[\thispagestyle{plain}]

%%% Page styles

\makeatletter

\newpagestyle{toc}{% Create a page style for TOC
   \let\ps@plain\ps@empty% Redefine plain style which is automatically applied to the first page of TOC; put “empty”, or “main”, or any other page style you like
   \sethead[][][]{}{}{}
}

\newpagestyle{chapter}{% Create a page style for the first page of a chapter
   \setfoot[][\thepage][]{}{\thepage}{}
}

\newpagestyle{main}{%
   \let\ps@plain\ps@chapter% Activate page style for the first page of a chapter
   \sethead[\thepage][][\chaptertitle]{\chaptertitle}{}{\thepage}
   \headrule
}

\makeatother


\begin{document}
Many thanks

Recommended reading 2024:

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

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

Post Reply