From 8fe5055d95cdf4749ce6010ab87f031d5bf685d4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 17 Apr 2023 19:56:14 +0000 Subject: algpseudocodex (17apr23) git-svn-id: svn://tug.org/texlive/trunk@66869 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/algpseudocodex/algpseudocodex.pdf | Bin 356253 -> 355977 bytes .../doc/latex/algpseudocodex/algpseudocodex.tex | 7 ++++++- .../tex/latex/algpseudocodex/algpseudocodex.sty | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf index e2e416f52b9..f825f196989 100644 Binary files a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf and b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf differ diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex index 4a134d9ddf5..3577610e75d 100644 --- a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex +++ b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex @@ -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 @@ The following keywords can be customized: \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. diff --git a/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty b/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty index fc0b8d8aeff..1489d7ad85c 100644 --- a/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty +++ b/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty @@ -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@oldPos} \newlength{\algpx@newPos} \newlength{\algpx@tmpLen}% length to be used for various things +\newlength{\algpx@currentLineskip}% used to restore lineskip in varwidth \newlength{\algpx@indStartY} \newlength{\algpx@indEndY} \newlength{\algpx@indStartX}% x coordinate of indent line @@ -178,7 +179,9 @@ % create box from here to end of line, leaving space for #3 \settowidth{\algpx@extraShiftX}{#2}% remember that line actually starts further right than last box \settowidth{\algpx@tmpLen}{#3}% + \setlength{\algpx@currentLineskip}{\lineskip}% remember value of lineskip \begin{varwidth}[t]{\dimexpr \linewidth - \algpx@extraShiftX - \algpx@tmpLen - \algorithmicindent * \numexpr \value{ALG@nested} - 1 \relax \relax}% + \setlength{\lineskip}{\algpx@currentLineskip}% rstore lineskip value } % executed before \State, \If etc., i.e., at end of previous line @@ -798,7 +801,9 @@ \algpx@setCodeBoxWest[\dimexpr \labelsep + \algpx@tmpLen \relax]% \setbool{algpx@firstLine}{false}% \setbool{algpx@executeEndVarwidth}{true}% + \setlength{\algpx@currentLineskip}{\lineskip}% remember value of lineskip \begin{varwidth}[t]{\dimexpr \linewidth - \labelsep - \algpx@tmpLen + \leftmargin \relax}% + \setlength{\lineskip}{\algpx@currentLineskip}% rstore lineskip value \settoheight{\algpx@tmpLen}{#1}% \rule{0pt}{\algpx@tmpLen}% } -- cgit v1.2.3