- sudo apt-get install texlive-publishers
- Download and save on your Desktop the ACM .cls file from http://www.acm.org/sigs/publications/acm_proc_article-sp.cls
- cd /usr/share/texmf-texlive/tex/latex/acmtrans
- sudo mv ~/Desktop/acm_proc_article-sp.cls acmtrans2e.cls
- sudo cp /usr/share/lyx/layouts/article.layout ~/.lyx/layouts/acmtrans2e.layout
- sudo gedit ~/.lyx/layouts/acmtrans2e.layout
- Change second line # \DeclareLaTeXClass{article} to # \DeclareLaTeXClass[acmtrans2e]{article (ACM)}
- sudo texhash
- In Lyx: Tools --> Reconfigure
- Restart Lyx
- In Lyx: Douments ---> Setting
and right click on the added "BibTex Generated Bibliography" at the end of the lyx document and select settings and "Style" drop down has the "acm".
Thank you!
ReplyDeleteJust in case someone need to do that on a mac (I'm using Lyx 2 and Text-Live 2008), here are the paths:
Texhash: /Library/TeX/Root/bin/universal-darwin/
To copy the article layout:
cp /Applications/LyX.app/Contents/Resources/layouts/article.layout ~/Library/Application\ Support/LyX-2.0/layouts/acmtrans2e.layout
To copy the .cls into the tex folder:
sudo cp ~/Downloads/acm_proc_article-sp.cls /usr/local/texlive/texmf-local/tex/latex/local/acmtrans2e.cls