1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
\documentclass{article}
\begin{document}
Here we test the center environment. The \verb#\begin{center}...\end{center}#
sequence should allow the sans serif font to leak out into the text that follows
the centered environment.
\begin{center}
\sf\bfseries Some \verb#\sf\bfseries# centered text --- voil\'a
\end{center}
This should now be in plain roman font with the paragraph justified.
We need a lot of text to test the justification. A short sentence would
not really be enough. A couple of short sentences should do the trick.
\begin{flushleft}
\sc Small caps flush left on line 1 \\
Small caps flush left on line 2 \\
.\\
.\\
.\\
\end{flushleft}
Now we only have the \verb#\begin{flushright}...\end{flushright}# environment
to deal with. This paragraph should be justified on both margins. The next should
be flush with the right margin.
\begin{flushright}
\itshape
Italics text flush right on line 1 \\
Italics text flush right on line 2 \\
.\\
.\\
.\\
\end{flushright}
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
{\raggedright
Ragged right text ragged right text Ragged right text ragged right text
Ragged right text ragged right text Ragged right text ragged right text
Ragged right text ragged right text Ragged right text ragged right text\par}
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
More roman text at the end. More roman text at the end. More roman text at the end.
\end{document}
|