<< Preventing linebreak in inline formula | Page list | Include external program listing >>
Using the ACM Sigplan style
Installing the ACM SIGPLAN class file
- Download the sigplanconf.cls file from http://www.acm.org/sigs/sigplan/authorInformation.htm
- Put that class into your TEXMF directory (with MiKTeX on Windows, this is C:\Program Files\MiKTeX\tex\latex, on UNIX, ~/texmf/tex/latex/, on the Mac <user>/Library/texmf/).
- To let LaTeX know that it is there, refresh the file name database (with MiKTeX on Windows, use the Start menu Programs->MiKTeX->Settings and press there "Refresh FNDB", on UNIX, run
texhash on a console, on the Mac, refreshing is not necessary).
Installing the ACM SIGPLAN article layout file to LyX
Since LyX 1.5.7 this is no longer necessary, as the layout file is part of LyX.
- Get the file sigplanconf.layout from
uploads:/Examples/ACM/sigplanconf.layout
- Copy sigplanconf.layout to LyX's layouts folder in the user directory. If the user directory does not yet contain a layouts subdirectory, create it.
- To let LyX know the new style is there, use in LyX the menu Tools->Reconfigure, and then restart LyX.
You find a LyX template file here
uploads:/Examples/ACM/ACM-sigplan.lyx
Including bibliography entries in LyX file
ACM wants me to submit the .tex file with the bib entries in it (not a separate file) so they (presumably) can automatically extract bib links. This was a major pain in the ass because I had to learn enough Latex to do it, which I hate doing. My philosophy is that your document shouldn't have compiler errors. General info on the latex/bibtex dance: http://hajek.stat.ubc.ca/~webmaste/latex.workshop/ws2/node5.html
- Get your document looking fine in LyX, except for the last page columns aren't even.
- Export to TeX: File -> Export -> Latex. Pretend it's called
sample.tex.
- Open a terminal (on Windows: a cygwin shell) and run latex on the file:
latex sample.tex
- Run BibTeX on the file, which generates sample.bbl (Omit file extension):
bibtex sample
- Open your LyX document again. At the very end, remove your grey block "BibTeX generated bibliography".
- Replace it with an evil red text box (Insert->Tex). Add in that evil red text box: \bibliographystyle{plain}
- Immediately after this, copy in the contents of the generated sample.bbl file.
- Preview the doc to make sure it looks the same as before.
Some automated ways of soying this (via scripts) are described here:
http://www.lyx.org/trac/ticket/4624
Making the columns even on the last page
Once you've included the bibliography directly into the LyX file, this is easy. Find the spot where you'd like to even out the columns on the last page. After that reference, add "\vfill\eject". Lather, rinse, repeat until you find the right place to even them out.
Layouts Example