[Tex/LaTex] How to change the font size on a section with titlesec in latex preamble

fontsizelyxsections-paragraphs

I'm using LyX version 2.1.5

I want to change the font size such as:

  1. Chapter 14pt, bold, align center
  2. Section 12pt, bold

LaTeX Preamble:

\usepackage{titlesec}
\usepackage{graphicx}
\titleformat{\chapter}[display]
  {\normalfont\Large\bfseries\centering}{\chaptertitlename\ \thechapter}{14pt}

for section what to add?

Best Answer

Something like the following. You may have to fune-tune it for your requirements.

\titleformat{\section}{\normalfont\fontsize{12}{14}\bfseries}{\thesection}{0.5em}{}

For the chapter you could replace \Large with an exact size specification. And there was a final parameter missing.

\titleformat{\chapter}[display]
  {\normalfont\fontsize{14}{16}\bfseries\centering}{\chaptertitlename\ \thechapter}{14pt}{}
Related Question