[OS X TeX] bibliography in letter document class

George Gratzer gratzer at me.com
Wed Jul 23 17:31:33 CEST 2014


Why don't you live a simple life?

Copy in the source, and include the typeset version as a pdf?

GG

On Jul 17, 2014, at 1:48 PM, Samuel H Cox, Jr. <samcox at gsu.edu> wrote:

> How can I add a bibliography to a letter?  I have tried both scrlttr2 and letter document classes.  I used this example and got this error from the scrlttr2 version and similar from the letter version:
> 
> %!TEX TS-program = pdflatexmk
> 
> \documentclass[fontsize=12pt, paper=letter]{scrlttr2}
> \usepackage[longnamesfirst]{natbib} 
> 
> % Dont forget to read the KOMA-Script documentation, scrguien.pdf
> 
> \setkomavar{fromname}{} % your name
> \setkomavar{fromaddress}{Address \\ of \\ Sender}
> 
> \setkomavar{signature}{} % printed after the \closing
> \renewcommand{\raggedsignature}{\raggedright} % make the signature ragged right
> 
> \setkomavar{subject}{} % subject of the letter
> 
> \begin{document}
> \bibliographystyle{apalike}
> \begin{letter}{Name and \\ Address \\ of \\ Recipient}
> 
> \opening{}  % eg. Hello
> 
> some stuff
> 
> \closing{} %eg. Regards
> 
> \bibliography{unified}
> \end{letter}
> 
> \end{document}
> 
> ....
> 
> )) (/usr/local/texlive/2014/texmf-dist/tex/latex/koma-script/DIN.lco)
> (/usr/local/texlive/2014/texmf-dist/tex/latex/natbib/natbib.sty
> 
> /usr/local/texlive/2014/texmf-dist/tex/latex/natbib/natbib.sty:1063: LaTeX Erro
> r: Environment thebibliography undefined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.1063 \renewenvironment{thebibliography}
>                                          [1]{%
> ? 
> Process aborted
> 
> 
> 
> 
> Sam
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20140723/ab48bbff/attachment.html>


More information about the macostex-archives mailing list