problem with algorithmicx and beamer
Hello, I wrote my own module for the algorithmicx package (see attached). The algorithmicx package works fine with the article document class. The module also mostly works for me with the Beamer document class. My problem is with loops. The regular loop environment works. However, when I try to use for, or while loops, I get this error: ! Missing number, treated as zero. to be read again \ALG@b@2@EndFor@0 l.435 \forbody{test}} A number should have been here; I inserted `0'. I have attached my file as well as the log. Thanks in advance for your help. Thanks, Hugh -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@i hme...@uark.eduse.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me This is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev) (format=pdflatex 2014.6.11) 13 AUG 2014 11:11 entering extended mode \write18 enabled. %-line parsing enabled. **testFile.tex (./testFile.tex LaTeX2e 2011/06/27 Babel 3.9h and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks14 \inpenc@posthook=\toks15 (/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package color Info: Driver file: pdftex.def on input line 130. (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) ) \Gread@gobject=\count87 )) (/usr/share/texlive/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty Package: algorithm2e 2013/01/06 v5.00 algorithms environments \c@AlgoLine=\count88 (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/tools/xspace.sty Package: xspace 2009/10/20 v1.13 Space after command names (DPC,MH) ) (/usr/share/texlive/texmf-dist/tex/latex/relsize/relsize.sty Package: relsize 2013/03/29 ver 4.1 ) Package `algorithm2e' Release 5.0 -- january 06 2013 -- - algorithm2e-annou...@lirmm.fr mailing list for announcement about releases - algorithm2e-discuss...@lirmm.fr mailing list for discussion about package subscribe by emailing sy...@lirmm.fr with 'subscribe list firstname name' - Author: Christophe Fiorio (cfio...@um2.fr) \skiptotal=\skip43 \skiplinenumber=\skip44 \skiprule=\skip45 \skiphlne=\skip46 \skiptext=\skip47 \skiplength=\skip48 \algomargin=\skip49 \skipalgocfslide=\skip50 \algowidth=\dimen103 \inoutsize=\dimen104 \inoutindent=\dimen105 \interspacetitleruled=\dimen106 \interspacealgoruled=\dimen107 \interspacetitleboxruled=\dimen108 \algocf@inoutbox=\box26 \algocf@inputbox=\box27 \AlCapSkip=\skip51 \AlCapHSkip=\skip52 \algoskipindent=\skip53 \algocf@nlbox=\box28 \algocf@hangingbox=\box29 \algocf@untilbox=\box30 \algocf@skipuntil=\skip54 \algocf@capbox=\box31 \algoheightruledefault=\skip55 \algoheightrule=\skip56 \algotitleheightruledefault=\skip57 \algotitleheightrule=\skip58 \c@algocfline=\count89 \c@algocfproc=\count90 \c@algocf=\count91 \algocf@algoframe=\box32 \algocf@algobox=\box33 ) (/usr/share/texlive/texmf-dist/tex/latex/beamer/beamerarticle.sty (/usr/share /texlive/texmf-dist/tex/latex/beamer/beamerbasercs.sty Package: beamerbasercs 2013/11/24 (rcs-revision 8ee54e934cd6) ) Package: beamerarticle 2012/04/15 (rcs-revision cc6557182d97)
problem with algorithmicx and beamer
Hello, I wrote my own module for the algorithmicx package (see attached). The algorithmicx package works fine with the article document class. The module also mostly works for me with the Beamer document class. My problem is with loops. The regular loop environment works. However, when I try to use for, or while loops, I get this error: ! Missing number, treated as zero. to be read again \ALG@b@2@EndFor@0 l.435 \forbody{test}} A number should have been here; I inserted `0'. I have attached my file as well as the log. Thanks in advance for your help. Thanks, Hugh -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@i hme...@uark.eduse.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me This is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev) (format=pdflatex 2014.6.11) 13 AUG 2014 11:11 entering extended mode \write18 enabled. %-line parsing enabled. **testFile.tex (./testFile.tex LaTeX2e 2011/06/27 Babel 3.9h and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks14 \inpenc@posthook=\toks15 (/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package color Info: Driver file: pdftex.def on input line 130. (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) ) \Gread@gobject=\count87 )) (/usr/share/texlive/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty Package: algorithm2e 2013/01/06 v5.00 algorithms environments \c@AlgoLine=\count88 (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/tools/xspace.sty Package: xspace 2009/10/20 v1.13 Space after command names (DPC,MH) ) (/usr/share/texlive/texmf-dist/tex/latex/relsize/relsize.sty Package: relsize 2013/03/29 ver 4.1 ) Package `algorithm2e' Release 5.0 -- january 06 2013 -- - algorithm2e-annou...@lirmm.fr mailing list for announcement about releases - algorithm2e-discuss...@lirmm.fr mailing list for discussion about package subscribe by emailing sy...@lirmm.fr with 'subscribe list firstname name' - Author: Christophe Fiorio (cfio...@um2.fr) \skiptotal=\skip43 \skiplinenumber=\skip44 \skiprule=\skip45 \skiphlne=\skip46 \skiptext=\skip47 \skiplength=\skip48 \algomargin=\skip49 \skipalgocfslide=\skip50 \algowidth=\dimen103 \inoutsize=\dimen104 \inoutindent=\dimen105 \interspacetitleruled=\dimen106 \interspacealgoruled=\dimen107 \interspacetitleboxruled=\dimen108 \algocf@inoutbox=\box26 \algocf@inputbox=\box27 \AlCapSkip=\skip51 \AlCapHSkip=\skip52 \algoskipindent=\skip53 \algocf@nlbox=\box28 \algocf@hangingbox=\box29 \algocf@untilbox=\box30 \algocf@skipuntil=\skip54 \algocf@capbox=\box31 \algoheightruledefault=\skip55 \algoheightrule=\skip56 \algotitleheightruledefault=\skip57 \algotitleheightrule=\skip58 \c@algocfline=\count89 \c@algocfproc=\count90 \c@algocf=\count91 \algocf@algoframe=\box32 \algocf@algobox=\box33 ) (/usr/share/texlive/texmf-dist/tex/latex/beamer/beamerarticle.sty (/usr/share /texlive/texmf-dist/tex/latex/beamer/beamerbasercs.sty Package: beamerbasercs 2013/11/24 (rcs-revision 8ee54e934cd6) ) Package: beamerarticle 2012/04/15 (rcs-revision cc6557182d97)
problem with algorithmicx and beamer
Hello, I wrote my own module for the algorithmicx package (see attached). The algorithmicx package works fine with the article document class. The module also mostly works for me with the Beamer document class. My problem is with loops. The regular loop environment works. However, when I try to use for, or while loops, I get this error: ! Missing number, treated as zero. \ALG@b@2@EndFor@0 l.435 \forbody{test}} A number should have been here; I inserted `0'. I have attached my file as well as the log. Thanks in advance for your help. Thanks, Hugh -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@ise.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me This is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev) (format=pdflatex 2014.6.11) 13 AUG 2014 11:11 entering extended mode \write18 enabled. %&-line parsing enabled. **testFile.tex (./testFile.tex LaTeX2e <2011/06/27> Babel <3.9h> and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks14 \inpenc@posthook=\toks15 (/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package color Info: Driver file: pdftex.def on input line 130. (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) ) \Gread@gobject=\count87 )) (/usr/share/texlive/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty Package: algorithm2e 2013/01/06 v5.00 algorithms environments \c@AlgoLine=\count88 (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/tools/xspace.sty Package: xspace 2009/10/20 v1.13 Space after command names (DPC,MH) ) (/usr/share/texlive/texmf-dist/tex/latex/relsize/relsize.sty Package: relsize 2013/03/29 ver 4.1 ) Package `algorithm2e' Release 5.0 -- january 06 2013 -- - algorithm2e-annou...@lirmm.fr mailing list for announcement about releases - algorithm2e-discuss...@lirmm.fr mailing list for discussion about package subscribe by emailing sy...@lirmm.fr with 'subscribe ' - Author: Christophe Fiorio (cfio...@um2.fr) \skiptotal=\skip43 \skiplinenumber=\skip44 \skiprule=\skip45 \skiphlne=\skip46 \skiptext=\skip47 \skiplength=\skip48 \algomargin=\skip49 \skipalgocfslide=\skip50 \algowidth=\dimen103 \inoutsize=\dimen104 \inoutindent=\dimen105 \interspacetitleruled=\dimen106 \interspacealgoruled=\dimen107 \interspacetitleboxruled=\dimen108 \algocf@inoutbox=\box26 \algocf@inputbox=\box27 \AlCapSkip=\skip51 \AlCapHSkip=\skip52 \algoskipindent=\skip53 \algocf@nlbox=\box28 \algocf@hangingbox=\box29 \algocf@untilbox=\box30 \algocf@skipuntil=\skip54 \algocf@capbox=\box31 \algoheightruledefault=\skip55 \algoheightrule=\skip56 \algotitleheightruledefault=\skip57 \algotitleheightrule=\skip58 \c@algocfline=\count89 \c@algocfproc=\count90 \c@algocf=\count91 \algocf@algoframe=\box32 \algocf@algobox=\box33 ) (/usr/share/texlive/texmf-dist/tex/latex/beamer/beamerarticle.sty (/usr/share /texlive/texmf-dist/tex/latex/beamer/beamerbasercs.sty Package: beamerbasercs 2013/11/24 (rcs-revision 8ee54e934cd6) ) Package: beamerarticle 2012/04/15 (rcs-revision cc6557182d97)