From e8edcdf244784cc540b044d7c52496a3bc4a4a76 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 4 Jun 2006 00:35:59 +0000
Subject: algorithms update

git-svn-id: svn://tug.org/texlive/trunk@1658 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/algorithms/algorithmic.sty | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/algorithms/algorithmic.sty')

diff --git a/Master/texmf-dist/tex/latex/algorithms/algorithmic.sty b/Master/texmf-dist/tex/latex/algorithms/algorithmic.sty
index 16a5fc3d579..a8ea2546bc7 100644
--- a/Master/texmf-dist/tex/latex/algorithms/algorithmic.sty
+++ b/Master/texmf-dist/tex/latex/algorithms/algorithmic.sty
@@ -16,7 +16,7 @@
 % Boston, MA  02111-1307, USA.
 %
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{algorithmic}[2005/07/05]
+\ProvidesPackage{algorithmic}[2006/06/02]
 \typeout{Document Style `algorithmic' - environment}
 %
 \RequirePackage{ifthen}
@@ -75,6 +75,8 @@
 \newcommand{\algorithmicuntil}{\textbf{until}}
 \newcommand{\algorithmicprint}{\textbf{print}}
 \newcommand{\algorithmicreturn}{\textbf{return}}
+\newcommand{\algorithmictrue}{\textbf{true}}
+\newcommand{\algorithmicfalse}{\textbf{false}}
 \def\ALC@setref{%
   \def\@currentlabel{\theALC@line}%
 }
@@ -106,7 +108,7 @@
 \newenvironment{algorithmic}[1][0]{
 \setcounter{ALC@depth}{\@listdepth}%
 \let\@listdepth\c@ALC@depth%
-\let\@item\ALC@item
+\let\@item\ALC@item%
   \newcommand{\ALC@lno}{%
 \ifthenelse{\equal{\arabic{ALC@rem}}{0}}
 {{\ALC@linenosize \arabic{ALC@line}\ALC@linenodelimiter}}{}%
@@ -126,14 +128,17 @@
     }
   }
   {\end{list}}
-  \newcommand{\ALC@it}{\refstepcounter{ALC@line}\refstepcounter{ALC@rem}\ifthenelse{\equal{\arabic{ALC@rem}}{#1}}{\setcounter{ALC@rem}{0}}{}\item\ALC@setref}
+  \newcommand{\ALC@it}{\refstepcounter{ALC@rem}\refstepcounter{ALC@line}\ifthenelse{\equal{\arabic{ALC@rem}}{#1}}{\setcounter{ALC@rem}{0}}{}\item\ALC@setref}
   \newcommand{\ALC@com}[1]{\ifthenelse{\equal{##1}{default}}%
 {}{\ \algorithmiccomment{##1}}}
   \newcommand{\REQUIRE}{\item[\algorithmicrequire]}
   \newcommand{\ENSURE}{\item[\algorithmicensure]}
   \newcommand{\PRINT}{\ALC@it\algorithmicprint{}\ \ }
   \newcommand{\RETURN}{\ALC@it\algorithmicreturn{}\ \ }
+  \newcommand{\TRUE}{\algorithmictrue{}}
+  \newcommand{\FALSE}{\algorithmicfalse{}}
   \newcommand{\STATE}{\ALC@it}
+  \newcommand{\STMT}{\ALC@it}
   \newcommand{\COMMENT}[1]{\algorithmiccomment{##1}}
   \newenvironment{ALC@if}{\begin{ALC@g}}{\end{ALC@g}}
   \newenvironment{ALC@for}{\begin{ALC@g}}{\end{ALC@g}}
@@ -173,7 +178,7 @@
     \newcommand{\ENDLOOP}{\end{ALC@loop}\ALC@it\algorithmicendloop}
   } 
   \renewcommand{\@toodeep}{}
-  \begin{list}{\ALC@lno}{\setcounter{ALC@line}{0}\setcounter{ALC@rem}{0}%
+  \begin{list}{\ALC@lno}{\setcounter{ALC@rem}{0}\setcounter{ALC@line}{0}%
     \itemsep\z@ \itemindent\z@ \listparindent\z@%
     \partopsep\z@ \parskip\z@ \parsep\z@%
     \labelsep 0.5em \topsep 0.2em%
-- 
cgit v1.2.3

