LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Saturday, Feb 15, 2025 and last modified on Sunday, Feb 16, 2025

algorithm

François Chaplais

1 Example

2 algorithm

Algorithm in LaTeX2Web
Algorithm in LaTeX2Web

LaTeX2Web supports the algorithmicx package.

It first normalize the algoritm commands to upper case. The following commands are implemented:

  • \REQUIRE

  • \ENSURE

  • \STATE

  • \IF

  • \ELSIF

  • \ELSE

  • \ENDIF

  • \WHILE

  • \ENDWHILE

  • \FOR

  • \ENDFOR

  • \FORALL

  • \REPEAT

  • \UNTIL

  • \FUNCTION

  • \ENDFUNCTION

  • \PROCEDURE

  • \ENDPROCEDURE

  • \STATEX

and the \COMMENT command. LaTeX2Web also supports the following commands that do not create lines:

  • \RETURN

  • \CALL

  • \AND

  • \OR

  • \XOR

  • \NOT

  • \TO

  • \DOWNTO

  • \TRUE

  • \FALSE

  • \BREAK

  • \CONTINUE

3 Color

LaTeX2Web also support colored blocks of code.