If I have pseudocode as shown below using the algorithm
and algorithmic
packages, is it possible to indent the pseudocode, including the line numbers, so that it lines up with the indentation of the first line of the paragraph above, i.e. so that the line numbers of the pseudocode are indented as much as the first line of the paragraph above.
[Tex/LaTex] Changing indentation of pseudocode including line numbers with algorithm and algorithmic
algorithmsindentationpseudocode
Best Answer
This is one possible solution via
adjustwidth
environment fromchangepage
package. It takes two arguments.As to the par indention value, please check HERE
Code