1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
# algpseudocodex package
# Matthew Bertucci 11/3/2021 for v1.0
#include:kvoptions
#include:algorithmicx
#include:etoolbox
#include:fifo-stack
#include:varwidth
#include:tabto
#include:tikz
#keyvals:\usepackage/algpseudocodex#c
noEnd#true,false
indLines#true,false
spaceRequire#true,false
italicComments#true,false
rightComments#true,false
commentColor=#%color
beginComment=%<text%>
endComment=%<text%>
beginLComment=%<text%>
endLComment=%<text%>
#endkeyvals
\Call{name}{args}#/algorithmic
\Output#/algorithmic
\Return#/algorithmic
\While{condition}#/algorithmic
\EndWhile#/algorithmic
\For{condition}#/algorithmic
\ForAll{condition}#/algorithmic
\EndFor#/algorithmic
\Loop#/algorithmic
\EndLoop#/algorithmic
\Repeat#/algorithmic
\Until{condition}#/algorithmic
\If{condition}#/algorithmic
\ElsIf{condition}#/algorithmic
\Else#/algorithmic
\EndIf#/algorithmic
\Procedure{name}{parameters}#/algorithmic
\EndProcedure#/algorithmic
\Function{name}{parameters}#/algorithmic
\EndFunction#/algorithmic
\Require#/algorithmic
\Ensure#/algorithmic
\LComment{text}#/algorithmic
\BeginBox#/algorithmic
\BeginBox[TikZ options]#/algorithmic
\EndBox#/algorithmic
\BoxedString{text}#/algorithmic
\BoxedString[TikZ options]{text}#/algorithmic
\algorithmicend#*
\algorithmicdo#*
\algorithmicwhile#*
\algorithmicfor#*
\algorithmicforall#*
\algorithmicloop#*
\algorithmicrepeat#*
\algorithmicuntil#*
\algorithmicprocedure#*
\algorithmicfunction#*
\algorithmicif#*
\algorithmicthen#*
\algorithmicelse#*
\algorithmicrequire#*
\algorithmicensure#*
\algorithmicreturn#*
\algorithmicoutput#*
|