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