0

enter image description here

I dont know how to custom the chapter like this. Can you help me please

CarLaTeX
  • 62,716

2 Answers2

4

I really advise against scaling fonts with \scalebox. My suggestion would be:

  1. use a modern font encoding
  2. use a full scalable font, there are several options for Computer Modern
  3. select the font size you want with \fontsize...\selectfont

Like this:

\documentclass{book}
\usepackage[T1]{fontenc}\usepackage{lmodern}
\usepackage{titlesec}
\usepackage{graphicx} % Include this package

% Customizing the chapter title format \titleformat{\chapter}[display] {\normalfont\huge\bfseries\centering} {\fontsize{4cm}{4cm}\selectfont\thechapter}{20pt}{\Huge} % Scale the chapter number (change size)

% Customizing the spacing before and after the chapter title \titlespacing*{\chapter}{0pt}{50pt}{40pt}

\begin{document} \setcounter{chapter}{9} % remove me \chapter{Polar Coordinates, Parametric Equations}

% Your chapter content goes here.

\end{document}

enter image description here

Thanks to @John Smith for the MWE --- @Benjamín García, please provide a minimal working example (MWE) for your new questions.

Rmano
  • 40,848
  • 3
  • 64
  • 125
3

Try this:

\documentclass{book}
\usepackage{titlesec}
\usepackage{graphicx} % Include this package

% Customizing the chapter title format \titleformat{\chapter}[display] {\normalfont\huge\bfseries\centering} {\scalebox{3}{\thechapter}}{20pt}{\Huge} % Scale the chapter number (change size)

% Customizing the spacing before and after the chapter title \titlespacing*{\chapter}{0pt}{50pt}{40pt}

\begin{document}

\chapter{Polar Coordinates, Parametric Equations}

% Your chapter content goes here.

\end{document}

Ouput: enter image description here

\setcounter{chapter}{9} can be added before the first \chapter command to start the chapter numbering at 10. The formatting command within \titleformat does not print the chapter number anymore because the {} after \huge\bfseries\centering is empty. If you want to manually insert "10", you would put it in there.