summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2006-10-12 01:40:37 +0000
committerNorbert Preining <preining@logic.at>2006-10-12 01:40:37 +0000
commita3e5f4189a145472017be9745847e9d05ebbc0a0 (patch)
treeabbb504a0ce2402455d54547f127c93a57a9b3fc /Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty
parent9078ab149a4827ec032de77b4d8b4ff8f48f4628 (diff)
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
Diffstat (limited to 'Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty')
-rw-r--r--Master/texmf-dist/tex/latex/algorithmicx/algmatlab.sty15
1 files changed, 4 insertions, 11 deletions
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}}}%
%