I have the following excerpt:
\section{Referencial teórico}
I want to change the font to 14pt how to do it without changing the rest of the text that comes with font 12pt
I have the following excerpt:
\section{Referencial teórico}
I want to change the font to 14pt how to do it without changing the rest of the text that comes with font 12pt
You have the option of at least two packages to change the source of the sections and subsections.
Package sectsty
:
\documentclass{article}
\usepackage{sectsty}
% Para definir a fonte da seção
\sectionfont{\fontsize{14}{15}\selectfont}
\begin{document}
\section{Test Section}
test \newline
\fontsize{12}{15}\selectfont test \newline
\fontsize{14}{15}\selectfont test
\end{document}
Package titlesec
:
\documentclass{article}
\usepackage{titlesec}
% Para definir a fonte da seção
\titleformat{\section}
{\normalfont\fontsize{14}{15}\bfseries}{\thesection}{1em}{}
\begin{document}
\section{Test Section}
test \newline
\fontsize{12}{15}\selectfont test \newline
\fontsize{14}{15}\selectfont test
\end{document}
Source: link
For more details depending on the document%%: link