Debian Codegraph @

texmf-dist/doc/latex/changebar/cbtest2.tex

raw
1 \documentclass[12pt,twoside]{article}
2 \usepackage{amsmath}
3 \usepackage[outerbars,xcolor]{changebar}
4 \ifx\pdfoutput\undefined
5 \else\ifnum\pdfoutput>0
6 \usepackage{pdfcolmk}
7 \fi\fi
8
9 %\setcounter{changebargrey}{60}
10 \cbcolor{red}
11
12 \usepackage{fancyhdr}
13
14 %Header-footer instructions
15 \pagestyle{fancy}
16 \setlength{\headheight}{15pt}
17 \lhead{\scriptsize Changebar test file}
18 \chead{}
19 \rhead{v3.5}
20 \lfoot{Onecolumn text}
21 \cfoot{Page \thepage}
22 \rfoot{}
23 \renewcommand{\headrulewidth}{0.4pt} %print a rule below the header
24 \renewcommand{\footrulewidth}{0.4pt} %print a rule above the footer
25
26 \setcounter{page}{16}
27 \setlength{\emergencystretch}{4em}
28
29 \begin{document}
30
31 %\tableofcontents
32
33 \title{CHANGEBAR TEST FILE \\FOR ADVANCED FEATURES}
34 \author{Piet van Oostrum}
35 \maketitle
36
37 \raggedbottom
38
39 \begin {abstract}
40
41 This file tests various advanced features of the changebar package.
42 \cbstart\textcolor{red}{\textbf{Text that should have a changebar is
43 printed in red, so that it can easily be checked that the changebars are
44 in the proper position.} This changebar should be on the left.
45 \cbend}
46
47 This file contains the following features which in combinations used to
48 give problems in versions of changebar before version 3.5:
49 Twoside document, onecolumn and towcolumn text, figures, columns of
50 figures, page changes in the midst of a document.
51
52 This file tests various advanced features of the changebar package.
53 This file contains the following features which in combinations used to
54 give problems in versions of changebar before version 3.5:
55 Twoside document, onecolumn and towcolumn text, figures, columns of
56 figures, page changes in the midst of a document.
57 It should work both with latex, followed by a supported Postscript driver,
58 and with pdflatex.
59 \end{abstract}
60
61 \newpage
62
63 This file tests various advanced features of the changebar package.
64 \cbstart\textcolor{red}{Text that should have a changebar (like this) is
65 printed in red, so that it can easily be checked that the changebars are
66 in the proper position.On this page, the changebar should be on the right.
67 \cbend}
68 This file contains the following features which in combinations used to
69 give problems in versions of changebar before version 3.5:
70 Twoside document, onecolumn and towcolumn text, figures, columns of
71 figures, page changes in the midst of a document.
72
73 This file tests various advanced features of the changebar package.
74 This file contains the following features which in combinations used to
75 give problems in versions of changebar before version 3.5:
76 Twoside document, onecolumn and towcolumn text, figures, columns of
77 figures, page changes in the midst of a document.
78
79 \cbstart[3mm] \textcolor{red}{Here is a thicker changebar. Text that should
80 have a changebar (like this) is printed in red, so that it can easily be
81 checked that the changebars are in the proper position.On this page, the
82 changebar should be on the right. We also include a formula with large
83 descenders which should be completely covered by the changebar:
84 $\displaystyle \cfrac{1}{2+\cfrac{1}{3+\cfrac{1}{4+\cdots}}}$
85 \cbend}
86
87 \twocolumn
88 \lfoot{Twocolumn page}
89
90 \section{Introduction}
91
92 \cbstart
93 \color{red}
94 This file tests various advanced features of the changebar package.
95 This file contains the following features which in combinations used to
96 give problems in versions of changebar before version 3.5:
97 Twoside document, onecolumn and towcolumn text, figures, columns of
98 figures, page changes in the midst of a document.
99 It should work both with latex, followed by a supported Postscript driver,
100 and with pdflatex.
101 \cbend
102 \color{black}
103
104 \begin{figure}
105 \centering
106 \cbstart \color{red}
107 \fbox{
108 \parbox{0.8\linewidth}{
109 This is a figure. It has its
110 own changebar. This is a figure. This is a figure. It has its own
111 changebar. This is a figure. This is a figure. It has its own
112 changebar. This is a figure. This is a figure.\cbend}}
113 \color{black}
114 \caption{This is a test figure}
115 \end{figure}
116
117 This file tests various advanced features of the changebar package.
118 This file contains the following features which in combinations used to
119 give problems in versions of changebar before version 3.5:
120 Twoside document, onecolumn and towcolumn text, figures, columns of
121 figures, page changes in the midst of a document.
122
123 \cbstart
124 \color{red}
125 Sections that have been added or modified are marked with a bar in
126 the margins. This is a small paragraph that crosses a column boundary. It
127 should have a changebar in both parts.\cbend
128 \color{black}
129
130 \section{Continuation}
131 \cbstart
132 \color{red}
133
134 \begin{figure}
135 \centering
136 \color{red}
137 \fbox{
138 \parbox{0.8\linewidth}{ This is a figure. It inherits a changebar from
139 the environment. This is a figure. This is a figure. This is a
140 figure. This is a figure. It inherits a changebar from the
141 environment. This is a figure. This is a figure.}}
142 \caption{This is a test figure}
143 \color{black}
144 \end{figure}
145 \cbend
146 \color{black}
147
148 \begin{figure}[p]
149 \centering \fbox{\parbox{.9\linewidth}{
150 This is a figure. This is a figure. This is a figure. This is a figure.
151 This is a figure. This is a figure. This is a figure. This is a figure.
152 This is a figure. This is a figure. This is a figure. This is a figure.
153 This is a figure. This is a figure. This is a figure. This is a figure.
154 }}
155 \caption{Test figure}
156 \end{figure}
157
158 \begin{figure}[p]
159 \cbstart \color{red}
160 \centering \fbox{\parbox{.9\linewidth}{
161 This is a figure. It has its own changebar. This is a figure. It has
162 its own changebar.
163 This is a figure. It has its own changebar. This is a figure. It has
164 its own changebar.
165 This is a figure. It has its own changebar. This is a figure. It has
166 its own changebar.
167 }} \cbend\color{black}
168 \caption{Test figure}
169 \end{figure}
170
171 \color{red}
172 \cbstart
173
174 \begin{figure}[p]
175 \color{red}
176 \centering \fbox{\parbox{.9\linewidth}{
177 This is a figure. It has a changebar from the environment. This is a
178 figure. It has a changebar from the environment.
179 This is a figure. It has a changebar from the environment. This is a
180 figure. It has a changebar from the environment.
181 }}
182 \caption{Test figure}
183 \end{figure}
184
185 This part contains a changebar that crosses several column and page
186 boundaries. Please note that it crosses several figures also but those have
187 their own changebars (or not), they do not fall inside the continuation
188 changebar.
189
190 \enlargethispage{1cm}
191 \subsection{Enlarged column}
192
193 \noindent\parbox{\linewidth}{%
194 This file tests various advanced features of the changebar package.
195 This file contains the following features which in combinations used to
196 give problems in versions of changebar before version 3.5:
197 Twoside document, onecolumn and towcolumn text, figures, columns of
198 figures, page changes in the midst of a document.
199 \\
200 \textbf{This column is enlarged, therefore its extends in the footer.
201 The changebar should also cover the extended text.}}
202
203 This file contains the following features which in combinations used to
204 give problems in versions of changebar before version 3.5:
205 Twoside document, onecolumn and towcolumn text, figures, columns of
206 figures, page changes in the midst of a document.
207 It should work both with latex, followed by a supported Postscript driver,
208 and with pdflatex.
209
210 \section*{Specific issues}
211
212 \addtocounter{page}{1}
213 \textbf{Here we change the page number (skipping one page). Therefore we
214 have two even pages in a row. The page change is in the righthand column
215 which is not proper LaTeX coding, but it should be handled properly.}
216 This file tests various advanced features of the changebar package.
217 This file contains the following features which in combinations used to
218 give problems in versions of changebar before version 3.5:
219 Twoside document, onecolumn and towcolumn text, figures, columns of
220 figures, page changes in the midst of a document.
221 It should work both with latex, followed by a supported Postscript driver,
222 and with pdflatex.
223
224 This part contains a changebar that crosses several column and page
225 boundaries. Please note that it crosses several figures also but those have
226 their own changebars (or not), they do not fall inside the continuation
227 changebar.
228
229
230 This file tests various advanced features of the changebar package.
231 This file contains the following features which in combinations used to
232 give problems in versions of changebar before version 3.5:
233 Twoside document, onecolumn and towcolumn text, figures, columns of
234 figures, page changes in the midst of a document.
235 It should work both with latex, followed by a supported Postscript driver,
236 and with pdflatex.
237
238 This part contains a changebar that crosses several column and page
239 boundaries. Please note that it crosses several figures also but those have
240 their own changebars (or not), they do not fall inside the continuation
241 changebar.
242
243 This file tests various advanced features of the changebar package.
244 This file contains the following features which in combinations used to
245 give problems in versions of changebar before version 3.5:
246 Twoside document, onecolumn and towcolumn text, figures, columns of
247 figures, page changes in the midst of a document.
248 It should work both with latex, followed by a supported Postscript driver,
249 and with pdflatex.
250
251 \begin{figure}[p]
252 \color{red}
253 \centering \fbox{\parbox{.9\linewidth}{
254 This is a figure. It has a changebar from the environment. This is a
255 figure. It has a changebar from the environment.
256 This is a figure. It has a changebar from the environment. This is a
257 figure. It has a changebar from the environment.
258 }}
259 \caption{Test figure}
260 \end{figure}
261
262 \begin{figure}[p]
263 \color{red}
264 \centering \fbox{\parbox{.9\linewidth}{
265 This is a figure. It has a changebar from the environment. This is a
266 figure. It has a changebar from the environment.
267 This is a figure. It has a changebar from the environment. This is a
268 figure. It has a changebar from the environment.
269 This is a figure. It has a changebar from the environment. This is a
270 figure. It has a changebar from the environment.
271 }}
272 \caption{Test figure}
273 \end{figure}
274
275 \begin{figure}[p]
276 \color{red}
277 \centering \fbox{\parbox{.9\linewidth}{
278 This is a figure. It has a changebar from the environment. This is a
279 figure. It has a changebar from the environment.
280 This is a figure. It has a changebar from the environment. This is a
281 figure. It has a changebar from the environment.
282 }}
283 \caption{Test figure}
284 \end{figure}
285
286 \begin{figure}[p]
287 \color{red}
288 \centering \fbox{\parbox{.9\linewidth}{
289 This is a figure. It has a changebar from the environment. This is a
290 figure. It has a changebar from the environment.
291 This is a figure. It has a changebar from the environment. This is a
292 figure. It has a changebar from the environment.
293 }}
294 \caption{Test figure}
295 \end{figure}
296
297 This part contains a changebar that crosses several column and page
298 boundaries. Please note that it crosses several figures also but those have
299 their own changebars (or not), they do not fall inside the continuation
300 changebar. \cbend
301 \color{black} The last sentence of this part is outside the changebar.
302 \\[1ex]
303
304 \color{red}\cbstart
305 \noindent\fbox{\parbox[t]{0.95\linewidth}{%
306 This is a parbox. It should have a changebar along its total height.
307 This is a parbox. It should have a changebar along its total height.
308 This is a parbox. It should have a changebar along its total height.
309 This is a parbox. It should have a changebar along its total height.
310 This is a parbox. It should have a changebar along its total height.
311 This is a parbox. It should have a changebar along its total height.
312 This is a parbox. It should have a changebar along its total height.
313 This is a parbox. It should have a changebar along its total height.
314 }}\cbend\color{black}
315 \\[2cm]
316 There should be a lonely figure with a changebar at the right.
317 \end{document}
318
319 %%% Local Variables:
320 %%% mode: latex
321 %%% TeX-master: t
322 %%% End: