20100505

Using Opcit.sty for LaTeX

The Opcit 2 Package for LaTeX
by Federico Garcia (2006)

How to automatically typeset Chicago-style footnotes and bibliography!
This post assumes you already know LaTeX and BibTeX (see wiki)

Step 1: Download opcit.sty (ver. 2) and save to /Users/sunderland/Library/texmf/tex/latex
Step 2: Download opcit.bst (ver. 2) and save to /Users/sunderland/Library/texmf/bibtex

Step 3: Add \usepackage{opcit} to the preamble of your given LaTeX file (.tex)

Step 4: Do not add \bibliographystyle{opcit} to the end of your body before \bibliography{} and \end{document}

Step 5: For specific details see the guide: opcit.pdf


Troubleshooting

1) If no references get typeset,
- typeset your .tex file (i.e., using TeXShop); then typeset your .bib file (remember to select "BibTeX" mode if you use TeXShop), then typeset your .tex file again twice
- note that only references cited in your .tex file will display in the bibliography, unless you force them all to be displayed with \nocite{*}

2) If you get the error "No `"' to end string literal---line 552 of file opcit.bst" replace in opcit.bst:

551 'skip$
552 { "\bibpunctuation'' \newblock\toomit[howpublished] {\bibcase
553 " howpublished * write$
554 "}" 'quotes :=
555 }

with

551 'skip$
552 { "\bibpunctuation'' \newblock\toomit[howpublished]{\bibcase"
553 howpublished * write$
554 "}" 'quotes :=
555 }

(Thank you Jan for last troubleshooting fix)

No comments:

Post a Comment