Hi all, I'm trying to write an algorithm with a style as shown in the attachment. Unfortunately line breaks don't work well. The manual says:
Warning For users of earlier versions of algorithmic this construct is a cause of an incompatibility. In the earlier version, instead of starting simple statements with the \STATE command, simple statements were entered as free text and terminated with \\ command. Unfortunately, this simpler method failed to survive the modifications necessary for statement numbering. However,the \\ command can still be used to force a line break within a simple statement.
Ok..it doesn't work.
if i write
\STATE text
\IF {cond}
\STATE other text
..
it doesn't line break resulting in
5: textif cond then
what can I do?
Attachments
algorithm-style.png (34.59 KiB) Viewed 10255 times
Last edited by GommaFleX on Fri Nov 11, 2011 12:34 pm, edited 1 time in total.
thank you for the response. Anyway i found the solution. There was an error with missing brackets in the line above. TeXnicCenter produced the output without line break, but TeXmaker forced me to correct the error before producing output