SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

$\LaTeX$ II
Liberdade é um prato facil de comer.
Mas deficil de digerir
Jean-Jaques Rousseau

Horisontal & Vertical Space

  1. Horisontal space, \hspace:

    \hspace{3cm}blablabla\hspace{-12pt}blablaslbnalbla

    $1cm\simeq 28.3465$pt.
  2. Space in mathmode:

    ~
    \quad
    \qquad
    And more...
  3. Vertical space, \vspace:

    \vspace{3cm}
    hello

    \vspace{-3cm}
  4. Rubber space, \hfill e \vfill:

    \vfill
    \hfill Ole \hfill Charlles \hfill
    hello
    \vfill

    \vfill
    \vspace{-3cm}
LaTeX Listing: Spaces.tex. PDF   ZIP*  
\documentclass{report}


\begin{LARGE}

Start of Text.\hspace{1cm}more text.\hspace{-1cm}over write.


This is a new paragraph.
A newline caracter does NOT change line.\\
But after a '$\backslash\backslash$', it does.
\newline
But it may giver you a 'there is no line here to end'...


This is ~ one tilde worth of horisontal space.

New paragraph.
\vspace{2cm}


Change par indent:
$\backslash$setlength\{$\backslash$parindent\}\{0cm\}

May be put in preamble.
\setlength{\parindent}{0cm}

\vspace{2cm}

New paragraph.
\vspace{-1cm}
After 1cm negative vertical space.


\vspace{1cm}
Let's try again.

Another paragraph.

On a newline

\vspace{-\baselineskip}
%%Color from the xcolor package.
\textcolor{red}{height of one line above}


\vspace{4\baselineskip}
Four lines down
\end{LARGE}
Messages:
0 secs.