summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/algpseudocodex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-17 03:03:48 +0000
committerNorbert Preining <norbert@preining.info>2023-04-17 03:03:48 +0000
commit88aa9bb9a3222cf13820ae3b6f64ce48dcd003ea (patch)
tree9495d0cd2219bb309106f5330e0aeba36a675319 /macros/latex/contrib/algpseudocodex
parent421b47819f21160c3662c40f7da028f15b726577 (diff)
CTAN sync 202304170303
Diffstat (limited to 'macros/latex/contrib/algpseudocodex')
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.pdfbin356253 -> 355977 bytes
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.sty7
-rw-r--r--macros/latex/contrib/algpseudocodex/algpseudocodex.tex7
3 files changed, 12 insertions, 2 deletions
diff --git a/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf b/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf
index e2e416f52b..f825f19698 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 fc0b8d8aef..1489d7ad85 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-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}%
}
diff --git a/macros/latex/contrib/algpseudocodex/algpseudocodex.tex b/macros/latex/contrib/algpseudocodex/algpseudocodex.tex
index 4a134d9ddf..3577610e75 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.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.