
LaTeX specific issues not fitting into one of the other forums of this category.
KK12
Posts: 1
Joined: Fri Jan 12, 2018 9:36 am


Hello,
I'm trying to write a program for a pseudocode with while-loops, for-loops and if-else instructions in Latex.
I would like to remove the "do" of the while-loop, the "end for" of the for-loop, the "then" and the "end if" of the if-else statement.

I have the following package installed
`\usepackage{algorithm}\usepackage{algorithmic}`

and created the following commands


The first two work, but the last two are not.
No error meassage is generated, but nothing happens. Do I have to write the last two commands differently?

Tags:

Johannes_B
Site Moderator
Posts: 3598
Joined: Thu Nov 01, 2012 4:08 pm
Crosspost in goLaTeX
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 8596
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Solved there on goLaTeX.de (link) by a guest's post, solution was: insert `\NoEndWhile` before the corresponding `\WHILE` and not later, not right before `\ENDWHILE`.

Stefan