summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/code/foo.tex
blob: 1074e286c9e8f031b7ece68d5c6471a98c7168eb (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
\documentstyle[11pt,code]{article}
\begin{document}

Here is the first paragraphs. I'll type some more just so we have more
than one line. At least I hope it will be enough. Here's some verbatim
text:

\begin{code}{}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Centered:

\begin{code}{c}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Left-adjusted:

\begin{code}{l}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Right-adjusted:

\begin{code}{r}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Indented:

\begin{code}{i}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\pagebreak
\noindent
Framed:

\begin{code}{f}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Centered, framed:

\begin{code}{cf}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Left-adjusted, framed:

\begin{code}{lf}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Right-adjusted, framed:

\begin{code}{rf}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
Indented, framed:

\begin{code}{if}
foobar.
dhe#%^@&#(*#&^*(@)#.
barfoo.
\end{code}

\noindent
There. Now here's some more text just for comparison.

\end{document}