diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex index dce6c95ac76..4a134d9ddf5 100644 --- a/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex +++ b/Master/texmf-dist/doc/latex/algpseudocodex/algpseudocodex.tex @@ -1,19 +1,19 @@ -%% documentation.tex -%% Copyright 2020-2022 Christian Matt +%% algpseudocodex.tex +%% Copyright 2020-2023 Christian Matt % % This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 +% conditions of the LaTeX Project Public License, either version 1.3c % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt -% and version 1.3 or later is part of all distributions of LaTeX -% version 2005/12/01 or later. +% and version 1.3c or later is part of all distributions of LaTeX +% version 2008-05-04 or later. % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Christian Matt. % -% This work consists of the files algpseudocodex.sty and documentation.tex. +% This work consists of the files algpseudocodex.sty and algpseudocodex.tex. \documentclass[11pt,a4paper,USenglish]{article} \usepackage[T1]{fontenc} @@ -29,7 +29,7 @@ \title{\bf{Algpseudocodex Package Documentation}} \author{Christian Matt \\ \url{https://github.com/chrmatt/algpseudocodex}} -\date{\today\\v1.0.2} +\date{\today\\v1.1.0} \begin{document} @@ -384,11 +384,18 @@ If \verb|false|, the end of blocks are marked with the expression ``end'' follow \begin{minipage}[t]{0.45\textwidth} \verb|noEnd=false|: \begin{algorithmic} + % redefine if commands here to handle noEnd = false \makeatletter \setbool{algpx@noEnd}{false}% - \algtext{EndIf}{\algpx@endIndent\algpx@startCodeCommand\algorithmicend\ \algorithmicif% - \algpx@startIndent% \EndIf ends another indent. Start fake one here to handle that. + \let\If\undefined% + \let\EndIf\undefined% + \algdef{SE}[IF]{If}{EndIf}[1]{% + \algpx@startCodeCommand\algpx@startIndent\algorithmicif\ #1\ \algorithmicthen% + }{% + \algpx@startEndBlockCommand\algpx@endIndent\algorithmicend\ \algorithmicif% } + \pretocmd{\If}{\algpx@endCodeCommand}{}{}% + \pretocmd{\EndIf}{\algpx@endCodeCommand[0]}{}{}% \makeatother \If{$x > 0$} \State $x \gets x - 1$ @@ -681,6 +688,11 @@ The following keywords can be customized: \section{Revision History} +\subsection*{v1.1.0 (2023-02-17)} +\begin{itemize} + \item Added support for indent guide lines spanning multiple pages. +\end{itemize} + \subsection*{v1.0.2 (2022-10-07)} \begin{itemize} \item Fixed bug with incorrectly ended indent block for nested statements. |