summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/changebar/cbtest1.tex
blob: 040518bbd9436b3f5db0224bb133830526b525d0 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
\documentclass[12pt,twoside]{article}
\usepackage{amsmath}
\usepackage[outerbars,color]{changebar}
\ifx\pdfoutput\undefined
\else\ifnum\pdfoutput>0
  \usepackage{pdfcolmk}
\fi\fi

%\setcounter{changebargrey}{60}
\cbcolor{red}

\usepackage{fancyhdr}

%Header-footer instructions
\pagestyle{fancy}
\setlength{\headheight}{15pt}
\lhead{\scriptsize Changebar test file}
\chead{}
\rhead{v3.5}
\lfoot{Onecolumn text}
\cfoot{Page \thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt} %print a rule below the header
\renewcommand{\footrulewidth}{0.4pt} %print a rule above the footer

\setcounter{page}{16}
\setlength{\emergencystretch}{4em}

\begin{document}

%\tableofcontents

\title{CHANGEBAR TEST FILE \\FOR ADVANCED FEATURES}
\author{Piet van Oostrum}
\maketitle

\raggedbottom

\begin {abstract}

This file tests various advanced features of the changebar package.
\cbstart\textcolor{red}{\textbf{Text that should have a changebar is
  printed in red, so that it can easily be checked that the changebars are
  in the proper position.} This changebar should be on the left.
\cbend}

This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.

This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.
\end{abstract}

\newpage

This file tests various advanced features of the changebar package.
\cbstart\textcolor{red}{Text that should have a changebar (like this) is
  printed in red, so that it can easily be checked that the changebars are
  in the proper position.On this page, the changebar should be on the right.
\cbend}
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.

This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.

\cbstart[3mm] \textcolor{red}{Here is a thicker changebar. Text that should
  have a changebar (like this) is printed in red, so that it can easily be
  checked that the changebars are in the proper position.On this page, the
  changebar should be on the right. We also include a formula with large
  descenders which should be completely covered by the changebar:
  $\displaystyle \cfrac{1}{2+\cfrac{1}{3+\cfrac{1}{4+\cdots}}}$
  \cbend}

\twocolumn
\lfoot{Twocolumn page}

\section{Introduction}

\cbstart
\color{red}
This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.
\cbend
\color{black}

\begin{figure}
  \centering 
  \cbstart \color{red} 
  \fbox{
    \parbox{0.8\linewidth}{
      This is a figure. It has its
      own changebar. This is a figure. This is a figure. It has its own
      changebar. This is a figure. This is a figure. It has its own
      changebar. This is a figure. This is a figure.\cbend}}
  \color{black} 
  \caption{This is a test figure}
\end{figure}

This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.

\cbstart
\color{red}
Sections that have been added or modified are marked with a bar in
the  margins. This is a small paragraph that crosses a column boundary. It
should have a changebar in both parts.\cbend
\color{black}

\section{Continuation}
\cbstart
\color{red}

\begin{figure}
\centering
\color{red}
  \fbox{
    \parbox{0.8\linewidth}{ This is a figure. It inherits a changebar from
      the environment. This is a figure. This is a figure. This is a
      figure. This is a figure. It inherits a changebar from the
      environment. This is a figure. This is a figure.}}
\caption{This is a test figure}
\color{black}
\end{figure}
\cbend
\color{black}

\begin{figure}[p]
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. This is a figure. This is a figure. This is a figure.
    This is a figure. This is a figure. This is a figure. This is a figure.
    This is a figure. This is a figure. This is a figure. This is a figure.
    This is a figure. This is a figure. This is a figure. This is a figure.
  }} 
  \caption{Test figure}
\end{figure}

\begin{figure}[p]
\cbstart \color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has its own changebar. This is a figure. It has
    its own changebar. 
    This is a figure. It has its own changebar. This is a figure. It has
    its own changebar. 
    This is a figure. It has its own changebar. This is a figure. It has
    its own changebar. 
  }} \cbend\color{black}
  \caption{Test figure}
\end{figure}

\color{red}
\cbstart

\begin{figure}[p]
\color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
  }} 
  \caption{Test figure}
\end{figure}

This part contains a changebar that crosses several column and page
boundaries. Please note that it crosses several figures also but those have
their own changebars (or not), they do not fall inside the continuation
changebar.

\enlargethispage{1cm}
\subsection{Enlarged column}

\noindent\parbox{\linewidth}{%
This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
\\
\textbf{This column is enlarged, therefore its extends in the footer. 
The changebar should also cover the extended text.}}

This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.

\section*{Specific issues}

\addtocounter{page}{1}
\textbf{Here we change the page number (skipping one page). Therefore we
  have two even pages in a row. The page change is in the righthand column
  which is not proper LaTeX coding, but it should be handled properly.}
This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.

This part contains a changebar that crosses several column and page
boundaries. Please note that it crosses several figures also but those have
their own changebars (or not), they do not fall inside the continuation
changebar.


This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.

This part contains a changebar that crosses several column and page
boundaries. Please note that it crosses several figures also but those have
their own changebars (or not), they do not fall inside the continuation
changebar.

This file tests various advanced features of the changebar package.
This file contains the following features which in combinations used to
give problems in  versions of changebar before version 3.5:
Twoside document, onecolumn and towcolumn text, figures, columns of
figures, page changes in the midst of a document.
It should work both with latex, followed by a supported Postscript driver,
and with pdflatex.

\begin{figure}[p]
\color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
  }} 
  \caption{Test figure}
\end{figure}

\begin{figure}[p]
\color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
  }} 
  \caption{Test figure}
\end{figure}

\begin{figure}[p]
\color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
  }} 
  \caption{Test figure}
\end{figure}

\begin{figure}[p]
\color{red}
\centering  \fbox{\parbox{.9\linewidth}{
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
    This is a figure. It has a changebar from the environment. This is a
    figure. It has a changebar from the environment. 
  }} 
  \caption{Test figure}
\end{figure}

This part contains a changebar that crosses several column and page
boundaries. Please note that it crosses several figures also but those have
their own changebars (or not), they do not fall inside the continuation
changebar. \cbend
\color{black} The last sentence of this part is outside the changebar.
\\[1ex]

\color{red}\cbstart
\noindent\fbox{\parbox[t]{0.95\linewidth}{%
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
This is a parbox. It should have a changebar along its total height.
}}\cbend\color{black}
\\[2cm]
There should be a lonely figure with a changebar at the right.
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: