texlive[69286] Master/texmf-dist: changebar (3jan24)
commits+karl at tug.org
commits+karl at tug.org
Wed Jan 3 22:19:01 CET 2024
Revision: 69286
https://tug.org/svn/texlive?view=revision&revision=69286
Author: karl
Date: 2024-01-03 22:19:01 +0100 (Wed, 03 Jan 2024)
Log Message:
-----------
changebar (3jan24)
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.bug
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 2024-01-03 21:18:51 UTC (rev 69285)
+++ trunk/Master/texmf-dist/doc/latex/changebar/CATALOG 2024-01-03 21:19:01 UTC (rev 69286)
@@ -1,7 +1,7 @@
Name: ChangeBar
Problems-To: johannes.braams(at)texniek.nl
Author: J.L. Braams
-Version: 3.7b
+Version: 3.7c
Description:
Modified: trunk/Master/texmf-dist/doc/latex/changebar/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/changebar/README 2024-01-03 21:18:51 UTC (rev 69285)
+++ trunk/Master/texmf-dist/doc/latex/changebar/README 2024-01-03 21:19:01 UTC (rev 69286)
@@ -1,6 +1,6 @@
changebar bundle
- December 30, 2023
+ January 1, 2024
This bundle contains a package that I maintain to add changebars to a
LaTeX document.
@@ -14,7 +14,7 @@
the changebars.
The file chbar.1, also contributed, documents the workings of chbar.sh
-Copyright (C) 2023 Johannes L. Braams johannes.braams(at)texniek.nl
+Copyright (C) 2024 Johannes L. Braams johannes.braams(at)texniek.nl
This program can be redistributed and/or modified under the terms
of the LaTeX Project Public License Distributed from CTAN
Modified: trunk/Master/texmf-dist/doc/latex/changebar/changebar.bug
===================================================================
--- trunk/Master/texmf-dist/doc/latex/changebar/changebar.bug 2024-01-03 21:18:51 UTC (rev 69285)
+++ trunk/Master/texmf-dist/doc/latex/changebar/changebar.bug 2024-01-03 21:19:01 UTC (rev 69286)
@@ -6,6 +6,7 @@
% VTeX (Michael Vulis)
% PDFTeX (Piet van Oostrum)
% XeTeX (Apostolos Syropoulos)
+% luaTeX
%
% change history
%
@@ -205,6 +206,16 @@
%
% v3.7a JLB: Added support for LuaTeX based on the pdfTEX and XeTeX code
%
+% v3.7b JLB: In creating the support for luaTeX a XeTeX error message got
+% inadvertantly remove, reinserted.
+% After adding those four lines the production of changebar.dtx
+% led to a runaway argument error. It turned out that the comma's,
+% used in were in one instance replaced by \TeX-code. Replaced
+% the comma's with ";" to solve this.
+%
+% v3.7c JLB: Arash Esbati reported inconsistent spacing whit or without the
+% optional argumenty to \cbstart or \begin{changebar}.
+%
% Known problems
% - changebars for marginal paragraphs collide with changebars
% for the main body of text
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 2024-01-03 21:18:51 UTC (rev 69285)
+++ trunk/Master/texmf-dist/source/latex/changebar/changebar.dtx 2024-01-03 21:19:01 UTC (rev 69286)
@@ -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 at start}%
{\cb at 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 at delete}%
{\cb at delete[\deletebarwidth]}}
% \end{macrocode}
@@ -2280,8 +2279,8 @@
% environments.
% \begin{macrocode}
\newenvironment{changebar}%
- {\@ifnextchar [{\cb at start}%
- {\cb at start[\changebarwidth]}}%
+ {\@ifnextchar[{\cb at start}%]
+ {\cb at start[\changebarwidth]}}%
{\cb at 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 at 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 at pagecount\cb at cnta
- \cb at advancePoint}
+ \cb at advancePoint\ignorespaces}
% \end{macrocode}
% \end{macro}
%
@@ -2523,6 +2525,8 @@
\cb at checkpage\thr@@
% \end{macrocode}
% Again, we need to temporarily overwrite |\cb at pagecount|.
+% \changes{v3.7c}{2024/01/01}{We need \cs{ignorespacesafterend} here,
+% not \cs{ignorespaces}}
% \begin{macrocode}
\cb at cnta\cb at pagecount
\cb at pagecount\cb at page\advance\cb at pagecount\m at ne
@@ -2533,7 +2537,7 @@
\fi
\cb at pagecount\cb at cnta
\fi
- \ignorespaces}
+ \ignorespacesafterend}
% \end{macrocode}
%\end{macro}
%
Modified: trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty 2024-01-03 21:18:51 UTC (rev 69285)
+++ trunk/Master/texmf-dist/tex/latex/changebar/changebar.sty 2024-01-03 21:19:01 UTC (rev 69286)
@@ -34,10 +34,10 @@
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
-%% Copyright 1994-2023 (C) Johannes Braams. All rights reserved.
+%% Copyright 1994-2024 (C) Johannes Braams. All rights reserved.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{changebar}
- [2023/12/30 v3.7b Indicate changes with marginal bars]
+ [2024/01/01 v3.7c Indicate changes with marginal bars]
\def\cb at maxpoint{80}
\def\cb at minpoint{1}
\def\cb at nil{0}
@@ -787,17 +787,17 @@
\let\cb at resetpoints\relax
\fi
\global\let\cb at setup@specials\relax}
-\newcommand*{\cbstart}{\@ifnextchar [%]
+\newcommand*{\cbstart}{\@ifnextchar[%]
{\cb at start}%
{\cb at start[\changebarwidth]}}
\newcommand*{\cbend}{\cb at end}
-\newcommand*{\cbdelete}{\@ifnextchar [%]
+\newcommand*{\cbdelete}{\@ifnextchar[%]
{\cb at delete}%
{\cb at delete[\deletebarwidth]}}
\def\cb at delete[#1]{\vbox to \z@{\vss\cb at start[#1]\vskip #1\cb at end}}
\newenvironment{changebar}%
- {\@ifnextchar [{\cb at start}%
- {\cb at start[\changebarwidth]}}%
+ {\@ifnextchar[{\cb at start}%]
+ {\cb at start[\changebarwidth]}}%
{\cb at end}
\newcommand*{\nochangebars}{%
\def\cb at start[##1]{}%
@@ -814,7 +814,8 @@
\@ifpackagewith{changebar}{\csname cb at color@pkg\endcsname}{%
\RequirePackage{\cb at color@pkg}%
\DeclareRobustCommand\cbcolor{%
- \@ifnextchar[\@undeclaredcbcolor\@declaredcbcolor}
+ \@ifnextchar[%]
+ \@undeclaredcbcolor\@declaredcbcolor}
\def\@undeclaredcbcolor[#1]#2{%
\begingroup
\color[#1]{#2}%
@@ -853,7 +854,7 @@
\vskip \ht\strutbox}%
\fi
\cb at pagecount\cb at cnta
- \cb at advancePoint}
+ \cb at advancePoint\ignorespaces}
\def\cb at advancePoint{%
\global\advance\cb at nextpoint by 4\relax
\ifnum\cb at nextpoint>\cb at maxpoint
@@ -876,7 +877,7 @@
\fi
\cb at pagecount\cb at cnta
\fi
- \ignorespaces}
+ \ignorespacesafterend}
\def\cb at checkpage#1{%
\cb at cnta\cb at topleft\relax
\advance\cb at cnta by #1\relax
More information about the tex-live-commits
mailing list.