summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/changebar/changebar.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-03 03:03:02 +0000
committerNorbert Preining <norbert@preining.info>2024-01-03 03:03:02 +0000
commit92effab22b73c432933e7eb8e12c1cefda221df9 (patch)
treecdf3576ee645074d1df994e376d9ca2483c81ec5 /macros/latex/contrib/changebar/changebar.dtx
parent6b10e9901a24325e837f0fdc2cbce8f43f18ccff (diff)
CTAN sync 202401030303
Diffstat (limited to 'macros/latex/contrib/changebar/changebar.dtx')
-rw-r--r--macros/latex/contrib/changebar/changebar.dtx28
1 files changed, 16 insertions, 12 deletions
diff --git a/macros/latex/contrib/changebar/changebar.dtx b/macros/latex/contrib/changebar/changebar.dtx
index e4d71b5c39..2c67180adb 100644
--- a/macros/latex/contrib/changebar/changebar.dtx
+++ b/macros/latex/contrib/changebar/changebar.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-%% Copyright 1994-2023 (C) Johannes Braams. All rights reserved.
+%% Copyright 1994-2024 (C) Johannes Braams. All rights reserved.
%
% This file is part of the changebar package.
% -------------------------------------------
@@ -24,7 +24,7 @@
% and covered by LPPL is defined by the unpacking scripts (with
% extension .ins) which are part of the distribution.
% \fi
-% \CheckSum{2952}
+% \CheckSum{2953}
%
%\iffalse
% This file is built for \LaTeXe, so we make sure an error is
@@ -39,7 +39,7 @@
\ProvidesFile{changebar.dtx}
%</dtx>
%<+package>\ProvidesPackage{changebar}
- [2023/12/30 v3.7b Indicate changes with marginal bars]
+ [2024/01/01 v3.7c Indicate changes with marginal bars]
% \end{macrocode}
%
% \section{A driver for this document}
@@ -162,7 +162,7 @@
% commands supported by `dvi drivers'. Currently six different
% \changes{v3.5a}{2005/05/23}{PDF\TeX{} support added}
% \changes{v3.6a}{2011/04/30}{Xe\TeX{} support added}
-% drivers are supported, plus pdftex and Xe\TeX
+% drivers are supported, plus pdftex, Xe\TeX\ and lua\TeX\
% support. More can easily be added.
% \end{abstract}
%
@@ -752,7 +752,6 @@
% \item V\TeX
% \item PDF\TeX
% \item Xe\TeX
-%
% \cbstart\item luaTeX\cbend
% \end{itemize}
%
@@ -2236,7 +2235,7 @@
% grouping errors.}
% \changes{v3.4e}{2002/10/28}{Reverted the change from version 3.3i}
% \begin{macrocode}
-\newcommand*{\cbstart}{\@ifnextchar [%]
+\newcommand*{\cbstart}{\@ifnextchar[%]
{\cb@start}%
{\cb@start[\changebarwidth]}}
% \end{macrocode}
@@ -2257,7 +2256,7 @@
% The default width (and length) of it are stored in
% |\deletebarwidth|.
% \begin{macrocode}
-\newcommand*{\cbdelete}{\@ifnextchar [%]
+\newcommand*{\cbdelete}{\@ifnextchar[%]
{\cb@delete}%
{\cb@delete[\deletebarwidth]}}
% \end{macrocode}
@@ -2280,8 +2279,8 @@
% environments.
% \begin{macrocode}
\newenvironment{changebar}%
- {\@ifnextchar [{\cb@start}%
- {\cb@start[\changebarwidth]}}%
+ {\@ifnextchar[{\cb@start}%]
+ {\cb@start[\changebarwidth]}}%
{\cb@end}
% \end{macrocode}
% \end{macro}
@@ -2373,7 +2372,8 @@
% depends on the model.
% \begin{macrocode}
\DeclareRobustCommand\cbcolor{%
- \@ifnextchar[\@undeclaredcbcolor\@declaredcbcolor}
+ \@ifnextchar[%]
+ \@undeclaredcbcolor\@declaredcbcolor}
% \end{macrocode}
% \end{macro}
%
@@ -2471,9 +2471,11 @@
\fi
% \end{macrocode}
% Restore |\cb@pagecount|.
+% \changes{v3.7c}{2024/01/01}{Added \cs{ignorespaces} at the end to
+% prevent a spcae token from creaping into the output}
% \begin{macrocode}
\cb@pagecount\cb@cnta
- \cb@advancePoint}
+ \cb@advancePoint\ignorespaces}
% \end{macrocode}
% \end{macro}
%
@@ -2523,6 +2525,8 @@
\cb@checkpage\thr@@
% \end{macrocode}
% Again, we need to temporarily overwrite |\cb@pagecount|.
+% \changes{v3.7c}{2024/01/01}{We need \cs{ignorespacesafterend} here,
+% not \cs{ignorespaces}}
% \begin{macrocode}
\cb@cnta\cb@pagecount
\cb@pagecount\cb@page\advance\cb@pagecount\m@ne
@@ -2533,7 +2537,7 @@
\fi
\cb@pagecount\cb@cnta
\fi
- \ignorespaces}
+ \ignorespacesafterend}
% \end{macrocode}
%\end{macro}
%