Hi,
I'm writing my document, but I need in the first two page change the font size, for example, the name of the university in font size 14, the title of the work in font size 14, my name and the city in font size 12 and the paragraph in font size 10 and single spacing, how can I do this? in general i'm working with a document with 12pt and one half spacing. Thanks for the help.
my document class is
\documentclass[12pt,letterpaper]{article}
\usepackage[onehalfspacing]{setspace}
and the page I want to change the font size is
\begin{document}
\begin{center}
\textbf{Name of the university}
\vskip5.0cm{\textbf{title of the work}}
\vskip5.0cm{\textbf{my name}}
\end{center}
\vskip3.0cm
\begin{flushright}
\parbox{8.8cm}{Dissertação apresentada para obtenção do título de Mestre em Estatística. Área de concentração: Estatística e Experimentação Agronômica}
\end{flushright}
\begin{center}
\vskip4.5cm{\textbf{City\\2008}}
\end{center} }
\thispagestyle{empty}
\end{document}
General ⇒ different font size in the document
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
different font size in the document
First of all you can use the titlepage option to get an environment with the same name. This will spare a lot of work. The babel package will make typesetting in your language easier.
For the desired font size you can use switches as shown above. These commands are explained in every basic LaTeX documentation. For different interline spacing and the related commands refer to the documentation of the setspace package. Packages and especially their documentations can be found on CTAN.
Best regards
Thorsten¹
Code: Select all
\documentclass[12pt,letterpaper,titlepage]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[portuges]{babel}
\usepackage[margin=2cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\parindent0em
\begin{document}
\begin{titlepage}
\centering
\textbf{\large Name of the university}\\[5cm]
\textbf{\large title of the work}\\[5cm]
\textbf{my name}\\[3cm]
\raggedleft
\parbox{8.8cm}{\singlespacing\small Dissertação apresentada para obtenção do título de Mestre em Estatística. Área de concentração: Estatística e Experimentação Agronômica}\\[4.5cm]
\centering
\textbf{City\\2008}
\end{titlepage}
\end{document}
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: different font size in the document
Hi,
Thanks for the help, its work perfect!!

Thanks for the help, its work perfect!!
