texlive[69250] Master/texmf-dist: changebar (31dec23)
commits+karl at tug.org
commits+karl at tug.org
Sun Dec 31 22:25:11 CET 2023
Revision: 69250
https://tug.org/svn/texlive?view=revision&revision=69250
Author: karl
Date: 2023-12-31 22:25:11 +0100 (Sun, 31 Dec 2023)
Log Message:
-----------
changebar (31dec23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/changebar/CATALOG
trunk/Master/texmf-dist/doc/latex/changebar/README
trunk/Master/texmf-dist/doc/latex/changebar/changebar.pdf
trunk/Master/texmf-dist/source/latex/changebar/changebar.dtx
trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty
Modified: trunk/Master/texmf-dist/doc/latex/changebar/CATALOG
===================================================================
--- trunk/Master/texmf-dist/doc/latex/changebar/CATALOG 2023-12-31 21:25:02 UTC (rev 69249)
+++ trunk/Master/texmf-dist/doc/latex/changebar/CATALOG 2023-12-31 21:25:11 UTC (rev 69250)
@@ -1,7 +1,7 @@
Name: ChangeBar
Problems-To: johannes.braams(at)texniek.nl
Author: J.L. Braams
-Version: 3.7a
+Version: 3.7b
Description:
Modified: trunk/Master/texmf-dist/doc/latex/changebar/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/changebar/README 2023-12-31 21:25:02 UTC (rev 69249)
+++ trunk/Master/texmf-dist/doc/latex/changebar/README 2023-12-31 21:25:11 UTC (rev 69250)
@@ -1,6 +1,6 @@
changebar bundle
- December 24, 2023
+ December 30, 2023
This bundle contains a package that I maintain to add changebars to a
LaTeX document.
Modified: trunk/Master/texmf-dist/doc/latex/changebar/changebar.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/changebar/changebar.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/changebar/changebar.dtx 2023-12-31 21:25:02 UTC (rev 69249)
+++ trunk/Master/texmf-dist/source/latex/changebar/changebar.dtx 2023-12-31 21:25:11 UTC (rev 69250)
@@ -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{2949}
+% \CheckSum{2952}
%
%\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/24 v3.7a Indicate changes with marginal bars]
+ [2023/12/30 v3.7b Indicate changes with marginal bars]
% \end{macrocode}
%
% \section{A driver for this document}
@@ -135,7 +135,10 @@
% \changes{v3.6b}{2018/02/03}{Added a macro for pdf scaling for
% Xe\TeX}
% \changes{v3.6e}{2023/08/13}{Added supprt for luaTeX}
-%
+% \changes{v3.7b}{2023/12/28}{Added a few lines that were inadvertantly removed}
+% \changes{v3.7b}{2023/12/30}{the cb2-file use delimiting chars may
+% change meaning when they end up in the wrong situation}
+%
% \title{The Changebar package
% \thanks{This file has version number \fileversion,
% last revised \filedate.}}
@@ -797,9 +800,10 @@
% \end{macrocode}
% Redefine the |\cb at pdfxy| macro to write point coordinates to the
% \file{.cb2} file.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\else\cb at pdftexerror\fi\fi\fi}
% \end{macrocode}
@@ -834,14 +838,23 @@
% \end{macrocode}
% Redefine the |\cb at pdfxy| macro to write point coordinates to the
% \file{.cb2} file.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\gdef\sec at nd@ftw@##1 ##2{##2}
\fi}
% \end{macrocode}
%
+% Give a warning if we cannot support the \Lopt{xetex} option.
+% \begin{macrocode}
+\def\cb at xetexerror{\PackageError
+ {changebar}%
+ {XeTeX option cannot be used}%
+ {You are not using XeLaTeX}}
+% \end{macrocode}
+%
% \begin{changebar}
% \begin{macrocode}
\DeclareOption{luaTeX}{\cb at luatexcheck}
@@ -865,9 +878,10 @@
% \end{macrocode}
% Redefine the |\cb at pdfxy| macro to write point coordinates to the
% \file{.cb2} file.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\fi}
% \end{macrocode}
@@ -1451,10 +1465,11 @@
% When the point is found it is removed from |\cb at pdfpoints|. \#9
% contains the cumulative head of the list to construct the new list
% with the entry removed. \#3--\#8 are for pattern matching.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -1506,7 +1521,7 @@
% The |\cb at pdfparsexy| macro extracts the pagecount from an entry read in
% from the \file{.cb2} file.
% \begin{macrocode}
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
% \end{macrocode}
% \end{macro}
@@ -1623,12 +1638,12 @@
\gdef\cb at checkPdfxy##1##2##3##4##5{%
\cb@@findpdfpoint{##1}{##2}%
% \end{macrocdode}
-%\begin{changebar}
+% \begin{changebar}
% \begin{macrocode
\ifdim##3sp=\cb at pdfx\relax
\ifdim##4sp=\cb at pdfy\relax
% \end{macrocdode}
-%\end{changebar}
+% \end{changebar}
% \begin{macrocode
\ifdim##5=\cb at pdfz\relax
\else
@@ -1727,10 +1742,11 @@
% When the point is found it is removed from |\cb at pdfpoints|. \#9
% contains the cumulative head of the list to construct the new list
% with the entry removed. \#3--\#8 are for pattern matching.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -1782,7 +1798,7 @@
% The |\cb at pdfparsexy| macro extracts the pagecount from an entry read in
% from the \file{.cb2} file.
% \begin{macrocode}
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
% \end{macrocode}
% \end{macro}
@@ -1932,9 +1948,7 @@
\immediate\closeout\cb at writexy
\immediate\openin\cb at readxy=\jobname.cb2\relax
% \end{macrocode}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at pdfpoints}
% \begin{macro}{\cb at pdfpagenr}
% The |\cb at pdfpoints| macro contains the list of coordinates of points
@@ -1946,9 +1960,7 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at findpdfpoint}
% The |\cb at findpdfpoint| macro finds the coordinates of point \#1 on
% pagecount \#2. First we expand the arguments to get the real values.
@@ -1960,9 +1972,7 @@
}
% \end{macrocode}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\pdfliteral}
% For lua\TeX{} we also mimick PDF\TeX's command |\pdfliteral|.
% \begin{macrocode}
@@ -1994,9 +2004,7 @@
}
% \end{macrocode}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at pdffind}
% The |\cb at pdffind| recursively searches through |\cb at pdfpoints| to find
% point \#1 on pagecount \#2. |\cb at pdfpoints| contains entries of the
@@ -2005,10 +2013,11 @@
% When the point is found it is removed from |\cb at pdfpoints|. \#9
% contains the cumulative head of the list to construct the new list
% with the entry removed. \#3--\#8 are for pattern matching.
+% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter}
% \begin{macrocode}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -2025,9 +2034,7 @@
}%
% \end{macrocode}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at pdfreadxy}
% The |\cb at pdfreadxy| macro reads lines from the \file{.cb2} file in
% |\cb at pdfpoints| until the pagecount is greater than \#1 or the end of
@@ -2062,13 +2069,11 @@
% The |\cb at pdfparsexy| macro extracts the pagecount from an entry read in
% from the \file{.cb2} file.
% \begin{macrocode}
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
% \end{macrocode}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% As PDF is not a programming language it does not have any variables to
% remember the coordinates of the current point. Therefore we write the
% information to the \file{.aux} file and read it in in the next run. We
@@ -2091,9 +2096,7 @@
\cb at trace@defpoint##1##2%
}%
% \end{macrocode}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at cvtpct}
% The macro |\cb at cvtpct| converts a percentage between 0 and 100 to a
% decimal fraction.
@@ -2105,9 +2108,7 @@
0.\the##1\fi\fi\fi}
% \end{macrocode}
% \end{macro}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at pdf@scale}
% \changes{v3.6a}{2018/02/03}{Added macro for scale factor}
% In order to get things in the right spot we need a little scaling
@@ -2175,9 +2176,7 @@
\cb at trace@connect##1##2##3%
}%
% \end{macrocode}
-% \end{changebar}
%
-% \begin{changebar}
% \begin{macro}{\cb at checkPdfxy}
% The macro |\cb at checkPdfxy| checks if the coordinates of a point have
% changed during the current run. If so, we need to rerun \LaTeX.
Modified: trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty 2023-12-31 21:25:02 UTC (rev 69249)
+++ trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty 2023-12-31 21:25:11 UTC (rev 69250)
@@ -37,7 +37,7 @@
%% Copyright 1994-2023 (C) Johannes Braams. All rights reserved.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{changebar}
- [2023/12/24 v3.7a Indicate changes with marginal bars]
+ [2023/12/30 v3.7b Indicate changes with marginal bars]
\def\cb at maxpoint{80}
\def\cb at minpoint{1}
\def\cb at nil{0}
@@ -111,7 +111,7 @@
\immediate\openout\cb at writexy=\jobname.cb2\relax
\fi
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\else\cb at pdftexerror\fi\fi\fi}
\def\cb at pdftexerror{\PackageError
@@ -131,10 +131,14 @@
\immediate\openout\cb at writexy=\jobname.cb2\relax
\fi
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\gdef\sec at nd@ftw@##1 ##2{##2}
\fi}
+\def\cb at xetexerror{\PackageError
+ {changebar}%
+ {XeTeX option cannot be used}%
+ {You are not using XeLaTeX}}
\DeclareOption{luaTeX}{\cb at luatexcheck}
\DeclareOption{luatex}{\cb at luatexcheck}
\def\cb at luatexcheck{%
@@ -147,7 +151,7 @@
\immediate\openout\cb at writexy=\jobname.cb2\relax
\fi
\gdef\cb at pdfxy##1##2##3##4##5{%
- \immediate\write\cb at writexy{##1.##2p##3,##4,##5}%
+ \immediate\write\cb at writexy{##1.##2p##3;##4;##5}%
\expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}}
\fi}
\def\cb at luatexerror{\PackageError
@@ -380,9 +384,9 @@
\fi
\fi
}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -418,7 +422,7 @@
\fi
\cb at next
}%
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
\def\cb at defpoint##1##2{%
\if at filesw
@@ -520,9 +524,9 @@
\fi
\fi
}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -558,7 +562,7 @@
\fi
\cb at next
}%
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
\def\cb at defpoint##1##2{%
\if at filesw
@@ -661,9 +665,9 @@
\fi
\fi
}
- \def\cb at pdffind##1##2##3.##4p##5,##6,##7pt##8\relax##9{%
+ \def\cb at pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{%
\def\cb at next{%
- \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5,##6,##7pt}}%
+ \cb at pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}%
\ifnum ##1=##3
\ifnum ##2=##4
\def\cb at pdfx{##5sp}%
@@ -699,7 +703,7 @@
\fi
\cb at next
}%
- \def\cb at pdfparsexy##1.##2p##3,##4,##5pt{%
+ \def\cb at pdfparsexy##1.##2p##3;##4;##5pt{%
\def\cb at pdfpg{##2}}%
\def\cb at defpoint##1##2{%
\if at filesw
More information about the tex-live-commits
mailing list.