Debian Codegraph @

texmf-dist/doc/latex/struktex/struktex-test-3.tex

raw
1 %%
2 %% This is file `struktex-test-3.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% struktex.dtx (with options: `example3')
8 %%
9 \documentclass[english]{article}
10
11 \usepackage{babel}
12 \usepackage{struktxf}
13 \usepackage{struktxp}
14
15 \nofiles
16
17 \begin{document}
18
19 \pLanguage{Pascal}
20 \section*{Default values (Pascal):}
21
22 {\obeylines
23 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
24 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
25 in math mode: \(\pVar{a}+\pVar{iV_g}\)
26 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
27 }
28
29 \paragraph{After changing the boolean values with}
30 \verb-\pBoolValue{yes}{no}-:
31
32 {\obeylines
33 \pBoolValue{yes}{no}
34 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
35 }
36
37 \paragraph{after changing the fonts with}
38 \verb-\pFonts{\itshape}{\sffamily\bfseries}{}-:
39
40 {\obeylines
41 \pFonts{\itshape}{\sffamily\bfseries}{}
42 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
43 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
44 in math mode: \(\pVar{a}+\pVar{iV_g}\)
45 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
46 }
47
48 \paragraph{after changing the fonts with}
49 \verb-\pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}-:
50
51 {\obeylines
52 \pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}
53 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
54 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
55 in math mode: \(\pVar{a}+\pVar{iV_g}\)
56 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
57 }
58
59 \paragraph{after changing the fonts with}
60 \verb-\pFonts{\itshape}{\bfseries\itshape}{}-:
61
62 {\obeylines
63 \pFonts{\itshape}{\bfseries\itshape}{}
64 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
65 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
66 in math mode: \(\pVar{a}+\pVar{iV_g}\)
67 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
68
69 \vspace{15pt}
70 Without \textit{italic correction}:
71 M \pVar{M} M \pKey{M} M. \pVar{M}. M. \pKey{M}. M.
72 }
73
74 \pLanguage{C}
75 \pBoolValue{\texttt{WAHR}}{\texttt{FALSCH}}
76 \section*{Default values (C):}
77
78 {\obeylines
79 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
80 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
81 in math mode: \(\pVar{a}+\pVar{iV_g}\)
82 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
83 }
84
85 \paragraph{After changing the boolean values with}
86 \verb-\pBoolValue{\texttt{yes}}{\texttt{no}}-:
87
88 {\obeylines
89 \pBoolValue{\texttt{yes}}{\texttt{no}}
90 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
91 }
92
93 \paragraph{after changing the fonts with}
94 \verb-\pFonts{\itshape}{\sffamily\bfseries}{}-:
95
96 {\obeylines
97 \pFonts{\itshape}{\sffamily\bfseries}{}
98 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
99 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
100 in math mode: \(\pVar{a}+\pVar{iV_g}\)
101 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
102 }
103
104 \paragraph{after changing the fonts with}
105 \verb-\pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}-:
106
107 {\obeylines
108 \pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}
109 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
110 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
111 in math mode: \(\pVar{a}+\pVar{iV_g}\)
112 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
113 }
114
115 \paragraph{after changing the fonts with}
116 \verb-\pFonts{\itshape}{\bfseries\itshape}{}-:
117
118 {\obeylines
119 \pFonts{\itshape}{\bfseries\itshape}{}
120 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
121 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
122 in math mode: \(\pVar{a}+\pVar{iV_g}\)
123 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
124
125 \vspace{15pt}
126 Without \textit{italic correction}:
127 M \pVar{M} M \pKey{M} M. \pVar{M}. M. \pKey{M}. M.
128 }
129
130 \pLanguage{Java}
131 \pBoolValue{\texttt{WAHR}}{\texttt{FALSCH}}
132 \section*{Default values (Java):}
133
134 {\obeylines
135 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
136 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
137 in math mode: \(\pVar{a}+\pVar{iV_g}\)
138 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
139 }
140
141 \paragraph{After changing the boolean values with}
142 \verb-\pBoolValue{\texttt{yes}}{\texttt{no}}-:
143
144 {\obeylines
145 \pBoolValue{\texttt{yes}}{\texttt{no}}
146 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
147 }
148
149 \paragraph{after changing the fonts with}
150 \verb-\pFonts{\itshape}{\sffamily\bfseries}{}-:
151
152 {\obeylines
153 \pFonts{\itshape}{\sffamily\bfseries}{}
154 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
155 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
156 in math mode: \(\pVar{a}+\pVar{iV_g}\)
157 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
158 }
159
160 \paragraph{after changing the fonts with}
161 \verb-\pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}-:
162
163 {\obeylines
164 \pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}
165 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
166 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
167 in math mode: \(\pVar{a}+\pVar{iV_g}\)
168 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
169 }
170
171 \paragraph{after changing the fonts with}
172 \verb-\pFonts{\itshape}{\bfseries\itshape}{}-:
173
174 {\obeylines
175 \pFonts{\itshape}{\bfseries\itshape}{}
176 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
177 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
178 in math mode: \(\pVar{a}+\pVar{iV_g}\)
179 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
180
181 \vspace{15pt}
182 Without \textit{italic correction}:
183 M \pVar{M} M \pKey{M} M. \pVar{M}. M. \pKey{M}. M.
184 }
185
186 \pLanguage{Python}
187 \pBoolValue{\texttt{WAHR}}{\texttt{FALSCH}}
188 \section*{Default values (Python):}
189
190 {\obeylines
191 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
192 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
193 in math mode: \(\pVar{a}+\pVar{iV_g}\)
194 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
195 }
196
197 \paragraph{After changing the boolean values with}
198 \verb-\pBoolValue{\texttt{yes}}{\texttt{no}}-:
199
200 {\obeylines
201 \pBoolValue{\texttt{yes}}{\texttt{no}}
202 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
203 }
204
205 \paragraph{after changing the fonts with}
206 \verb-\pFonts{\itshape}{\sffamily\bfseries}{}-:
207
208 {\obeylines
209 \pFonts{\itshape}{\sffamily\bfseries}{}
210 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
211 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
212 in math mode: \(\pVar{a}+\pVar{iV_g}\)
213 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
214 }
215
216 \paragraph{after changing the fonts with}
217 \verb-\pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}-:
218
219 {\obeylines
220 \pFonts{\ttfamily}{\ttfamily\bfseries}{\ttfamily\slshape}
221 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
222 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
223 in math mode: \(\pVar{a}+\pVar{iV_g}\)
224 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
225 }
226
227 \paragraph{after changing the fonts with}
228 \verb-\pFonts{\itshape}{\bfseries\itshape}{}-:
229
230 {\obeylines
231 \pFonts{\itshape}{\bfseries\itshape}{}
232 Variables: \pVar{iV_g}, \sVar{zV^}, \pVariable{&i}
233 Keywords: \pKeyword{begin}, \pKey{while}, \sKey{__CPP__}
234 in math mode: \(\pVar{a}+\pVar{iV_g}\)
235 boolean values: \sTrue, \sFalse, \pTrue, \pFalse
236
237 \vspace{15pt}
238 Without \textit{italic correction}:
239 M \pVar{M} M \pKey{M} M. \pVar{M}. M. \pKey{M}. M.
240 }
241
242 \end{document}
243
244 %%
245 %%
246 %% End of file `struktex-test-3.tex'.