Skip to content

Instantly share code, notes, and snippets.

@paveldedik
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paveldedik/9568556 to your computer and use it in GitHub Desktop.
Save paveldedik/9568556 to your computer and use it in GitHub Desktop.
Example of the algorithmicx package.
\documentclass[12pt]{article}
\usepackage[czech]{babel}
\usepackage{geometry}
\usepackage{lipsum}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{algorithm}
\pagenumbering{gobble}
\begin{document}
\begin{algorithmic}
\If {$i\geq maxval$}
\State $i\gets 0$
\Else
\If {$i+k\leq maxval$}
\State $i\gets i+k$
\EndIf
\EndIf
\end{algorithmic}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment