Change the Section source

Asked

Viewed 1,744 times

0

I have the following excerpt:

\section{Referencial teórico}

I want to change the font to 14pt how to do without changing the rest of the text that is with source 12pt

  • Don’t go there! in Latex the advantage is not to think about sizes or fonts -- only about concepts.

1 answer

1


You have the option of at least two packages to change the source of sections and subsections.

Bundle 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}

Bundle 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}

inserir a descrição da imagem aqui

Source: https://tex.stackexchange.com/a/103290

For more details depending on the classe of the document: https://tex.stackexchange.com/a/59727

Browser other questions tagged

You are not signed in. Login or sign up in order to post.