summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-08 20:04:35 +0000
committerKarl Berry <karl@freefriends.org>2022-10-08 20:04:35 +0000
commit497a5a6fe21118c1e378f377bf4e8235f8c20c8a (patch)
tree0f53621d4dafb99da332a2746554e88219fa7f99
parent06d111dccb68918b6719f13056068288ecda688e (diff)
algpseudocodex (8oct22)
git-svn-id: svn://tug.org/texlive/trunk@64654 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdfbin355352 -> 355364 bytes
-rw-r--r--Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex9
-rw-r--r--Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty6
3 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.pdf
index 09a3887bca9..1f7c2faa6ab 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 5bbed3e33ea..dce6c95ac76 100644
--- a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex
+++ b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex
@@ -1,5 +1,5 @@
%% documentation.tex
-%% Copyright 2020-2021 Christian Matt
+%% Copyright 2020-2022 Christian Matt
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -29,7 +29,7 @@
\title{\bf{Algpseudocodex Package Documentation}}
\author{Christian Matt \\ \url{https://github.com/chrmatt/algpseudocodex}}
-\date{\today\\v1.0.1}
+\date{\today\\v1.0.2}
\begin{document}
@@ -681,6 +681,11 @@ The following keywords can be customized:
\section{Revision History}
+\subsection*{v1.0.2 (2022-10-07)}
+\begin{itemize}
+ \item Fixed bug with incorrectly ended indent block for nested statements.
+\end{itemize}
+
\subsection*{v1.0.1 (2021-12-05)}
\begin{itemize}
\item Fixed bug regarding alignment of comments after end if, end for etc.
diff --git a/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty b/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
index 1b6c53368b6..4deb0c80d2a 100644
--- a/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
+++ b/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty
@@ -1,5 +1,5 @@
%% algpseudocodex.sty
-%% Copyright 2017, 2020-2021 Christian Matt
+%% Copyright 2017, 2020-2022 Christian Matt
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -20,7 +20,7 @@
% Based on Szasz Janos' algpseudocode.sty
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{algpseudocodex}[2021-12-05 v1.0.1 pseudocode typesetting]
+\ProvidesPackage{algpseudocodex}[2022-10-07 v1.0.2 pseudocode typesetting]
\RequirePackage{kvoptions}
\RequirePackage{algorithmicx}
\RequirePackage{etoolbox}
@@ -465,7 +465,7 @@
\@tikzmarkNow{algpx@indentEnd-\FSTop{algpx@indentStack}}%
\tikz[overlay,remember picture]{%
\pgfextractx{\algpx@indStartX}{\pgfpointanchor{algpx@indentStart-\FSTop{algpx@indentStack}}{center}}%
- \ifbool{algpx@indJustEnded}{%
+ \ifboolexpr{bool{algpx@indJustEnded} and test{\ifstrequal{#1}{0}}}{%
% use same coordinates as for previous end
\pgfextracty{\algpx@indEndY}{\pgfpointanchor{algpx@indentEnd-\thealgpx@justUsedIndentCount}{center}}%
\draw[algpxIndentLine] ($(algpx@indentStart-\FSTop{algpx@indentStack})+(0.12em,-0.8ex)$) -- ($(\algpx@indStartX,\algpx@indEndY)+(0.12em,0ex)$) -- +(0.5em,0);%