I am new to LyX so I'm sorry if this question is really naive.
I'm using LyX on a MacBook and I'm hoping to use the AEA document class on it. Since it is not available automatically, seems that I need to somehow install it on my own. All the help pages I can find talks about layouts and stuff that I, as total layman, have no idea what they are. Can somebody please show me how I can do it with simple language?
Best Answer
I was struggling with this myself, until I came across this article. I had to make a few adaptations for my setup as follows (for the purposes of this post, the unavailable document class I wanted to install was called
clv2
, for which I had aclv2.cls
file):Step 0:
This was not mentioned in the article, nor do I know if it's absolutely necessary, but I quit LyX before I started this process.
Step 1:
When I did
LyX > Tools > TeX Information > LaTeX Classes > Show path
, I saw/usr/local/texlive/2011/texmf-dist/tex/latex
There was no
lyx
directory there, so I had to create one for myself. Then I copiedclv2.cls
into/usr/local/texlive/2011/texmf-dist/tex/latex
Step 2:
This was very straightforward. I wanted an
article
(not amanuscript
) though, so my layout file looked like this:Step 3:
My package content was located at
/Users/ashwin/Library/Application Support/LyX-2.0/layouts
, so that's where I copiedclv.layout
toStep 4:
This was very straightforward. I was asked for my password, which is normal.
Step 5:
Again, this was very straightforward. No hitches here.
Step 6:
Since I wanted an
article
and therefore changedclv2.layout
, I found anarticle (clv2)
in my list of document classes.Hope this helps