summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-18 19:41:16 +0000
committerKarl Berry <karl@freefriends.org>2023-04-18 19:41:16 +0000
commit38d898cde9c146a8d17bdbc6fbf3bcbf3c3ab75d (patch)
tree691ee572eede45e00bc8371c5dc593b6c6660c76
parentd05de666f58bd5091534167160a5aa386671ddf7 (diff)
algpseudocodex (18apr23)
git-svn-id: svn://tug.org/texlive/trunk@66886 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdfbin355977 -> 356863 bytes
-rw-r--r--Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex7
-rw-r--r--Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty11
3 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
index f825f196989..c927f28b451 100644
--- a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
+++ b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex
index 3577610e75d..b052c122087 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.1}
+\date{\today\\v1.1.2}
\begin{document}
@@ -688,6 +688,11 @@ The following keywords can be customized:
\section{Revision History}
+\subsection*{v1.1.2 (2023-04-17)}
+\begin{itemize}
+ \item Fixed issue with resetting value of lineskiplimit.
+\end{itemize}
+
\subsection*{v1.1.1 (2023-04-16)}
\begin{itemize}
\item Fixed issue with resetting value of lineskip.
diff --git a/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty b/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
index 1489d7ad85c..d64ffeb5a66 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-04-16 v1.1.1 pseudocode typesetting]
+\ProvidesPackage{algpseudocodex}[2023-04-17 v1.1.2 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@currentLineskiplimit}% used to restore lineskiplimit in varwidth
\newlength{\algpx@currentLineskip}% used to restore lineskip in varwidth
\newlength{\algpx@indStartY}
\newlength{\algpx@indEndY}
@@ -179,9 +180,11 @@
% 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@currentLineskiplimit}{\lineskiplimit}% remember value of lineskiplimit
\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
+ \setlength{\lineskiplimit}{\algpx@currentLineskiplimit}% restore lineskiplimit value
+ \setlength{\lineskip}{\algpx@currentLineskip}% restore lineskip value
}
% executed before \State, \If etc., i.e., at end of previous line
@@ -801,9 +804,11 @@
\algpx@setCodeBoxWest[\dimexpr \labelsep + \algpx@tmpLen \relax]%
\setbool{algpx@firstLine}{false}%
\setbool{algpx@executeEndVarwidth}{true}%
+ \setlength{\algpx@currentLineskiplimit}{\lineskiplimit}% remember value of lineskiplimit
\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
+ \setlength{\lineskiplimit}{\algpx@currentLineskiplimit}% restore lineskiplimit value
+ \setlength{\lineskip}{\algpx@currentLineskip}% restore lineskip value
\settoheight{\algpx@tmpLen}{#1}%
\rule{0pt}{\algpx@tmpLen}%
}