BibTeX, biblatex and biberYou can't pop an empty literal stack for entry Hirt1974 in bst file error

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
cmk3072
Posts: 1
Joined: Thu May 26, 2022 8:01 am

You can't pop an empty literal stack for entry Hirt1974 in bst file error

Post by cmk3072 »

Hi,
I have customized the bibliography style file and running bibtex display the below error

You can't pop an empty literal stack for entry Hirt1974
while executing---line 2291 of file abc.bst

The line indicates in bst file is "ITERATE {call.type$}"

I am unable to identify what the error is and could you please help me to resolve the issue.

Bib file
@article{Hirt1974,
author = "Hirt, C. W. and Amsden, A. A. and Cook, J. L.",
title = "An arbitrary Lagrangian-Eulerian computing method for all flow speeds",
year = "1974",
journal = "J. Comput. Phys.",
volume = "14",
number = "3",
pages = "227--253"
}

bst file for Function{article}

FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
author format.key output
crossref missing$
{
" "
journal
duplicate$ empty$
{ pop$ pop$ } {
"journal" bibinfo.check
* "journal" output.check
add.blank
} if$
format.volume bolden output
no.blank.or.punct
format.number output
format.journal.pages output
% format.vol.num.pages output
format.date "year" output.check
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
format.issn output
new.block
format.note output
format.eprint output
format.url output
fin.entry
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Kreuz Elf
Posts: 22
Joined: Thu Mar 04, 2021 7:33 pm

You can't pop an empty literal stack for entry Hirt1974 in bst file error

Post by Kreuz Elf »

Your given information makes it hard to help you. For example: You don't tell us, what exactly you changed in your bst file or from which exact bst file it derived. Also you don't use the code block. Since my following minimal example doesn't throw an error, I'm pretty sure that the error lies within that bst file.

My example:

Code: Select all

\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{biblatex}
\bibliography{bibfile.bib}

\begin{document}
	\cite{Hirt1974}
	\printbibliography
\end{document}
bibfile.bib being

Code: Select all

@article{Hirt1974,
author = "Hirt, C. W. and Amsden, A. A. and Cook, J. L.",
title = "An arbitrary Lagrangian-Eulerian computing method for all flow speeds",
year = "1974",
journal = "J. Comput. Phys.",
volume = "14",
number = "3",
pages = "227--253"
}
You should consider trying an original bst file an checking if your code is compilable then.
Post Reply