TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
Thanks, i have added a link to the file above – Thomas Jensen Jun 28 '11 at 8:40

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.)

share|improve this answer
Thanks a lot, that did the trick!! – Thomas Jensen Jun 28 '11 at 9:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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