From a3e5f4189a145472017be9745847e9d05ebbc0a0 Mon Sep 17 00:00:00 2001
From: Norbert Preining <preining@logic.at>
Date: Thu, 12 Oct 2006 01:40:37 +0000
Subject: add algorithmicx to ctan2tl (MAKEnosymlink), add algorithmicx to
 tpm-ctan-check, update algorithmicx

git-svn-id: svn://tug.org/texlive/trunk@2311 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty')

diff --git a/Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty b/Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty
index be33bf10b17..e274a7dfa99 100644
--- a/Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty
+++ b/Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty
@@ -1,4 +1,4 @@
-% Matlab ALGORITHMIC STYLE -- Released 18 MAR 2004
+% Matlab ALGORITHMIC STYLE -- Released 27 APR 2005
 %    for LaTeX version 2e
 %
 % Copyright Szasz Janos
@@ -10,14 +10,12 @@
 \RequirePackage{algorithmicx}%
 \typeout{Document Style - matlab environments for use with the `algorithmicx' style}%
 %
-\def\ALG@setmatlab{t}%
-\DeclareOption{noset}{\def\ALG@setmatlab{}}%
-\DeclareOption{set}{\def\ALG@setmatlab{t}}%
 \ProcessOptions%
 %
 %      ***      DECLARATIONS      ***
 %
 \algnewlanguage{matlab}%
+\alglanguage{matlab}%
 %
 %      ***      KEYWORDS      ***
 %
@@ -31,7 +29,7 @@
 \algdef{Se}[IF]{If}{End}[1]{\textkeyword{if}\ #1}%
 \algdef{C}[IF]{IF}{ElseIf}[1]{\textkeyword{else}\textkeyword{if}\ #1}%
 \algdef{Ce}[ELSE]{IF}{Else}{End}{\textkeyword{else}}%
-\algdef{LSxN}[FUNCTION]{Function}{End}{65535}%
+\algdef{LSxnE}[FUNCTION]{Function}{End}{65535}%
    [2]{\textkeyword{function}\ \textfunc{#1}\ifthenelse{\equal{#2}{}}{}{(#2)}}%
 %
 \algdef{SxE}[SWITCH]{Switch}{End}[1]{\let\Case\ALG@thecase\textkeyword{switch}\ #1}%
@@ -66,10 +64,5 @@
 %
 %      ***      OTHER DECLARATIONS      ***
 %
-\def\ALG@beginalgorithmic{\let\leftbr[\let\rightbr]\def\[{\textbf{\leftbr}}\def\]{\textbf{\rightbr}}}%
-%
-%
-%
-\ifthenelse{\equal{\ALG@setmatlab}{t}}{\alglanguage{matlab}}{}%
-\let\ALG@setmatlab\relax%
+\algrenewcommand\ALG@beginalgorithmic{\let\leftbr[\let\rightbr]\def\[{\textbf{\leftbr}}\def\]{\textbf{\rightbr}}}%
 %
-- 
cgit v1.2.3

