+To specify conditions on the inputs and outputs of an algorithm, \verb|\Require| and \verb|\Ensure| can be used. +The \verb|\ElsIf| and \verb|\Else| parts are optional. Blocks can also be nested within other blocks. +Blocks are used for loops, conditional statements, and functions. It takes two arguments: The first one is the name of the procedure and the second one are the arguments. +The \verb|\Call| command is used for procedure calls. They do not start a new line on their own, so they need to be used together with \verb|\State|. +The commands \verb|\Return| and \verb|\Output| can be used for return values of functions and outputs. Conditional test inside command parameter. How to control conditional statements within new commands and environments. The command \verb|\Statex| can be used to start a new line that does not get a new line number. Im running into trouble getting the conditional right, though - Im not sure that LaTeX is treating 1 like an integer to be checked (or even if thats the right syntax for not-equals. +% This work consists of the files algpseudocodex.sty and documentation.tex. +% The Current Maintainer of this work is Christian Matt. +% This work has the LPPL maintenance status `maintained'. The starred version of all environments and macros are provided at the same time, such as. +% and version 1.3 or later is part of all distributions of LaTeX codebox is a LaTX 3 package developed based on tcolorbox and minted/listings, which provides environments codebox and codeview to typset with environment body, and macros \codefile and \cvfile to typeset programming source code from a file in a fancy box. +% The latest version of this license is in +% of this license or (at your option) any later version. ![]() +% conditions of the LaTeX Project Public License, either version 1.3 +% This work may be distributed and/or modified under the +++ trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.tex 20:58:45 UTC (rev -0,0 +1,683 documentation.tex trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.tex (rev 0) Property changes on: trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdfĪdded: trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.tex +++ trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdf 20:58:45 UTC (rev 56125) trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdf 23:53:37 UTC (rev 56124) Index: trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdf Property changes on: trunk/Master/texmf-dist/doc/latex/algpseudocodex/README.mdĪdded: trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdf +This material is subject to the LATEX Project Public License 1.3c. This package also has better support for long code lines spanning several lines and improved comments. Notable features include customizable indent guide lines and the ability to draw boxes around parts of the code for highlighting differences. It is based on algpseudocode from the algorithmicx package and uses the same syntax, but adds several new features and improvements. +This package allows typesetting pseudocode in LaTeX. +++ trunk/Master/texmf-dist/doc/latex/algpseudocodex/README.md 20:58:45 UTC (rev -0,0 +1,4 algpseudocodex trunk/Master/texmf-dist/doc/latex/algpseudocodex/README.md (rev 0) ![]() Trunk/Master/tlpkg/tlpsrc/algpseudocodex.tlpsrcĪdded: trunk/Master/texmf-dist/doc/latex/algpseudocodex/README.md Trunk/Master/texmf-dist/tex/latex/algpseudocodex/algpseudocodex.sty Trunk/Master/texmf-dist/tex/latex/algpseudocodex/ Trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.tex Trunk/Master/texmf-dist/doc/latex/algpseudocodex/documentation.pdf Trunk/Master/texmf-dist/doc/latex/algpseudocodex/README.md Trunk/Master/texmf-dist/doc/latex/algpseudocodex/ ![]() Next message: texlive Master/texmf-dist: mlacls (17aug20).Previous message: texlive Master: tl-update-auto.Texlive Master: algpseudocodex (17aug20) commits+karl at tug.org commits+karl at tug.org A false and a true statement connected with "AND" is false, so the output is B.Texlive Master: algpseudocodex (17aug20) - tex-live-commits mailing list - TeX Users Group \documentclass is false because 4 is even.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |