[Tex/LaTex] Use algorithmic in LyX

algorithmiclyx

I'm used to using the algorithmic package in LaTeX, but don't see an easy way to use it in LyX. I even tried this, but it didn't work. Further, it required me to change my document type, which is a problem for me, as I am writing my thesis and require a specific document type.

How may I go about using the algorithmic package in LyX?

Technical specs:

  • Mac OS X 10.7.5 (Lion)
  • LyX 2.0.6

Best Answer

The LyX way of inserting algorithms:

  1. Insert->Float->Algorithm
  2. Insert->TeX Code
  3. Paste your algorithmic code from your favorite editor Ctrl+Shift+V.