I have created a custom .bst file with the makebst program. Whenever I run BibTeX on it I first get the following error:

z is an unknown function --- line 169 of file eup.bst

Then for all entries in the bib file i get (where Aldrich1995 is the first example):

"Aldrich JH" is a string literal, not a function, for entry Aldrich1995
while executing --- line 1431 of file eup.bst
You cant pop an empty literal stack for Aldrich1995 

I am a beginner with .bst files so I have no idea what is going on here.

P.S: a link to the file: http://www.easy-share.com/1916347685/eup.bst

  • Welcome to TeX.sx! It's not necessary to sign your questions (as there is already a box with your username below it) or to begin them with a greeting. – Joseph Wright Jun 28 '11 at 8:34
  • Did you just use makebst, or did you also customise anything afterwards? Can you post your .bst file somewhere we can see? – Joseph Wright Jun 28 '11 at 8:35

The string z is used in the .bst file but not declared. Change the line

STRINGS { s t}


STRINGS { s t z }

and the problem should go away. (If there are further errors, please construct a minimal LaTeX + BibTeX example, as I have done in my answer to Hyphenating a number in the BibTeX pages field.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.