texlive[66869] Master/texmf-dist: algpseudocodex (17apr23)
commits+karl at tug.org
commits+karl at tug.org
Mon Apr 17 21:56:14 CEST 2023
Revision: 66869
http://tug.org/svn/texlive?view=revision&revision=66869
Author: karl
Date: 2023-04-17 21:56:14 +0200 (Mon, 17 Apr 2023)
Log Message:
-----------
algpseudocodex (17apr23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex
trunk/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
Modified: trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex 2023-04-17 19:55:59 UTC (rev 66868)
+++ trunk/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex 2023-04-17 19:56:14 UTC (rev 66869)
@@ -29,7 +29,7 @@
\title{\bf{Algpseudocodex Package Documentation}}
\author{Christian Matt \\ \url{https://github.com/chrmatt/algpseudocodex}}
-\date{\today\\v1.1.0}
+\date{\today\\v1.1.1}
\begin{document}
@@ -688,6 +688,11 @@
\section{Revision History}
+\subsection*{v1.1.1 (2023-04-16)}
+\begin{itemize}
+ \item Fixed issue with resetting value of lineskip.
+\end{itemize}
+
\subsection*{v1.1.0 (2023-02-17)}
\begin{itemize}
\item Added support for indent guide lines spanning multiple pages.
Modified: trunk/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty 2023-04-17 19:55:59 UTC (rev 66868)
+++ trunk/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty 2023-04-17 19:56:14 UTC (rev 66869)
@@ -20,7 +20,7 @@
% Based on Szasz Janos' algpseudocode.sty
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{algpseudocodex}[2023-02-17 v1.1.0 pseudocode typesetting]
+\ProvidesPackage{algpseudocodex}[2023-04-16 v1.1.1 pseudocode typesetting]
\RequirePackage{kvoptions}
\RequirePackage{algorithmicx}
\RequirePackage{etoolbox}
@@ -88,6 +88,7 @@
\newlength{\algpx at oldPos}
\newlength{\algpx at newPos}
\newlength{\algpx at tmpLen}% length to be used for various things
+\newlength{\algpx at currentLineskip}% used to restore lineskip in varwidth
\newlength{\algpx at indStartY}
\newlength{\algpx at indEndY}
\newlength{\algpx at indStartX}% x coordinate of indent line
@@ -178,7 +179,9 @@
% create box from here to end of line, leaving space for #3
\settowidth{\algpx at extraShiftX}{#2}% remember that line actually starts further right than last box
\settowidth{\algpx at tmpLen}{#3}%
+ \setlength{\algpx at currentLineskip}{\lineskip}% remember value of lineskip
\begin{varwidth}[t]{\dimexpr \linewidth - \algpx at extraShiftX - \algpx at tmpLen - \algorithmicindent * \numexpr \value{ALG at nested} - 1 \relax \relax}%
+ \setlength{\lineskip}{\algpx at currentLineskip}% rstore lineskip value
}
% executed before \State, \If etc., i.e., at end of previous line
@@ -798,7 +801,9 @@
\algpx at setCodeBoxWest[\dimexpr \labelsep + \algpx at tmpLen \relax]%
\setbool{algpx at firstLine}{false}%
\setbool{algpx at executeEndVarwidth}{true}%
+ \setlength{\algpx at currentLineskip}{\lineskip}% remember value of lineskip
\begin{varwidth}[t]{\dimexpr \linewidth - \labelsep - \algpx at tmpLen + \leftmargin \relax}%
+ \setlength{\lineskip}{\algpx at currentLineskip}% rstore lineskip value
\settoheight{\algpx at tmpLen}{#1}%
\rule{0pt}{\algpx at tmpLen}%
}
More information about the tex-live-commits
mailing list.