Tuesday, June 9, 2009

Howto use the IEEEtran.cls Latex class file with Lyx on Ubuntu Jaunty

With the help of several Ubuntu packages using the IEEE trans Latex class in the Lyx editor is very easy. To install use apt-get:

sudo apt-get install lyx texlive \
texlive-latex-extra \
texlive-math-extra \
texlive-science \
texlive-fonts-recommended \
texlive-publishers

And if you like confirm the required files are in the correct locations:

~/# find /usr/share/ | grep -i ieeetr
/usr/share/lyx/layouts/IEEEtran.layout
/usr/share/lyx/templates/IEEEtran.lyx
/usr/share/texmf-texlive/bibtex/bst/base/ieeetr.bst
...
/usr/share/texmf-texlive/tex/latex/IEEEtran/IEEEtran.cls

Then in the Lyx editor:
  1. Tools>Reconfigure
  2. Restart Lyx
  3. File>New from template
  4. choose the template /usr/local/share/lyx/templates/IEEEtran.lyx
Very easy once you know how! The template includes all the necessary magic ERT to get the IEEE class to work in Lyx.

2 comments:

  1. Thanks a lot. This post save me a lot of time!

    ReplyDelete
  2. Good one.. really simplified.. Like what LyX gave to the LaTeX users.. :)

    ReplyDelete