Thursday, January 5, 2017

Changing Indentation in LaTeX Pseudocode

By default the algorithmic package indents 2 em. It can be reduced or increased using a simple command.

Just place

\algrenewcommand\algorithmicindent{0.5em} % or any other value as you wish

before

\begin{document}

This will reduce or increase the indentation as you prefer.