Generaldifferent font size in the document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
luzmara
Posts: 18
Joined: Thu Sep 04, 2008 3:45 pm

different font size in the document

Post by luzmara »

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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

different font size in the document

Post by localghost »

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.

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}
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¹
luzmara
Posts: 18
Joined: Thu Sep 04, 2008 3:45 pm

Re: different font size in the document

Post by luzmara »

Hi,

Thanks for the help, its work perfect!!

:D
Post Reply