As far as I know the LyX algorithm is not related
to algorithm.sty; it is more like an
environment which, like verbatim, obeys user typed spaces, but,
unlike verbatim, also allows math, boldface, etc...

One thing that bites many users: when exporting
to Latex, LyX inserts empty lines between two lines
in the algorithm environment. If I recall correctly
this can be avoided by using ctrl-enter to go to a
new line inside the algorithm environment.

I normally use an external package (e.g. listings.sty
if you want to typeset code) and insert everything with ert.

Stefaan.
Raphael Clifford wrote:
I am writing a paper in article (AMS) and need to typeset some algorithms. I see that there is an algorithm environmnent defined. I am sorry if I have missed them but are there any docs for using this environment in lyx? It is not clear to me what the correct way to do the indentation etc is.

Cheers,
Raphael






Reply via email to