Sunday 27 June 2010

ACM SIGSPATIAL FORMAT FOR LYX

  1. sudo apt-get install texlive-publishers
  2. Download and save on your Desktop the ACM .cls file from http://www.acm.org/sigs/publications/acm_proc_article-sp.cls
  3. cd /usr/share/texmf-texlive/tex/latex/acmtrans
  4. sudo mv ~/Desktop/acm_proc_article-sp.cls acmtrans2e.cls
  5. sudo cp /usr/share/lyx/layouts/article.layout ~/.lyx/layouts/acmtrans2e.layout
  6. sudo gedit ~/.lyx/layouts/acmtrans2e.layout
  7. Change second line # \DeclareLaTeXClass{article} to # \DeclareLaTeXClass[acmtrans2e]{article (ACM)}
  8. sudo texhash
  9. In Lyx: Tools --> Reconfigure
  10. Restart Lyx
  11. In Lyx: Douments ---> Setting
In document class listing you must now see the "article (ACM)"
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".

1 comment:

  1. Thank you!

    Just 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

    ReplyDelete