I am struggling with an error message that I don't understand:
—the literal stack isn't empty for entry ladershortgershuny while executing—line 5227 of file apacite.bst (There was 1 error message)
So far there was not a problem in my PDF file (the citation worked: it was cited in the text correctly and the article was listed in the bibliography.
But now I am trying to include new sources and because of this error, the won't work and show up like this in the PDF:
"..grew up with their fathers present (?, ?)."
Does anyone know what is going wrong here and how I could solve the problem?
This is the .bib entry for ladershortgershuny
@webpage{ladershortgershuny,
Author = {Deborah Lader and Sandra Short and Jonathan Gershuny},
Date-Added = {2015-11-28 21:16:31 +0000},
Date-Modified = {2015-11-28 21:19:53 +0000},
Lastchecked = {8 October 2015},
Month = {August},
Url = {http://www.timeuse.org/files/cckpub/lader_short_and_gershuny_2005_kight_diary.pdf},
Year = {2006},
Bdsk-Url-1 = {http://www.timeuse.org/files/cckpub/lader_short_and_gershuny_2005_kight_diary.pdf}}
Minimal Example:
\documentclass[11pt,a4paper] {article}
\usepackage{apacite}
% lots of other packages
\begin{document}
XXX \cite{ladershortgershuny}.
XXX \footnote {XXX \citeyear{ladershortgershuny} XXX }.
\bibliographystyle{apacite}
\bibliography{...,johnsonwiener,ladershortgershuny,larsen,...}
% Lots more text, figures, tables and a bibliography
\end{document}
Best Answer
This error fundamentally happens because your entry in
*.bib
contains data that are not being written to your*.bbl
file by your*.bst
file. The stack contents should appear in your*.blg
file (starting on a new line afterstack=
), allowing you to see which items weren't written. It can be resolved by editing the bst file so it writes everything, or by changing the data in the bib file so that bst will write everything. It seems that this can be done by adding fields OR removing fields in the bib entry. I suspect that the rules for removing data from the stack may depend on other data; that is, the code for popping "pages" off of the stack might be locked inside anif
statement for processing some other data that doesn't get executed if I'm missing a field that's related to pages.