Skip to content

Instantly share code, notes, and snippets.

@lgylym
Last active August 29, 2015 14:03
Show Gist options
  • Save lgylym/5672b6dc743864ab548b to your computer and use it in GitHub Desktop.
Save lgylym/5672b6dc743864ab548b to your computer and use it in GitHub Desktop.
algorithm2e template for my thesis
\begin{algorithm2e}
\SetKwFor{ForEach}{for each}{do}{endfch}%separate foreach with a space
\SetArgSty{textrm} %do not automatically use italic in arguments
\DontPrintSemicolon % Some LaTeX compilers require you to use \dontprintsemicolon instead
%\NoCaptionOfAlgo %using this to not print the bold Algorithm in caption, usful in inline algo explainations
\KwIn{input}
\KwOut{output}
\Return{return value}
\caption{caption}
\label{algo:label}
\end{algorithm2e}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment