summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/algpseudocodex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-18 03:02:36 +0000
committerNorbert Preining <norbert@preining.info>2023-04-18 03:02:36 +0000
commit80e82c6cd5fb165fa720a1ce3a25f357ea11b9fc (patch)
treef8978ec3fb998e446d63ff65719cc30189deeb5f /macros/latex/contrib/algpseudocodex
parent88aa9bb9a3222cf13820ae3b6f64ce48dcd003ea (diff)
CTAN sync 202304180302
Diffstat (limited to 'macros/latex/contrib/algpseudocodex')
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.pdfbin355977 -> 356863 bytes
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.sty11
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.tex7
3 files changed, 14 insertions, 4 deletions
diff --git a/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf b/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf
index f825f19698..c927f28b45 100644
--- a/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf
+++ b/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf
Binary files differ
diff --git a/macros/latex/contrib/algpseudocodex/algpseudocodex.sty b/macros/latex/contrib/algpseudocodex/algpseudocodex.sty
index 1489d7ad85..d64ffeb5a6 100644
--- a/macros/latex/contrib/algpseudocodex/algpseudocodex.sty
+++ b/macros/latex/contrib/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}%
}
diff --git a/macros/latex/contrib/algpseudocodex/algpseudocodex.tex b/macros/latex/contrib/algpseudocodex/algpseudocodex.tex
index 3577610e75..b052c12208 100644
--- a/macros/latex/contrib/algpseudocodex/algpseudocodex.tex
+++ b/macros/latex/contrib/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.