Adding IEEEtran to your Lyx/LaTeX setup
This gave me a lot of grief, so I decided to write about it. When you install Lyx, you get a nice template for IEEEtran. Unfortunately, it doesn't work. This HOWTO is aimed at helping you overcome this major headache. Put your aspirin away now! Things are about to get better.
Make sure you have the
IEEEtran.clsLaTeX document class at your disposal. This can be obtained from IEEE
I recommend adding the
IEEEtran.clsfile directly to your local LaTeX configuration. Usually this is located in:
> <pre> <prefix>share/texmf-local/tex where <prefix> is usually
/sw(if you are using Fink on OS X, for example).
- I believe that you can place the files anywhere within this tree but you are likely to have fewer headaches if you maintain it as part of the local setup, especially when the day comes that you update your LaTeX setup.
- Regenerate your LaTeX setup. This means you are more than likely going to need root access or have your sysadmin do it for you:
> <pre> texhash <pre>
- Restart Lyx and make do
Edit -> Reconfigure.
- Verify that reconfiguring things actually had an effect. You can determine this by checking your Lyx settings directory
~/.lyxon Unix or
Library/Application Settings/LyXon OS X and examinging the file
textclass.lst. There should be a line as follows:
> <pre> "IEEEtran" "IEEEtran" "article (IEEEtran)" "true" <pre> If you fail to see this, you can safely assume that things are not going to work.
- Once you have done the above, you're all set.