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

Are there any good introductory references for the syntax to create a BibTeX style (.bst) file, whose ease of reading is closer to an introductory text for a programming language than to a formal specification document for a programming language?

Obviously, as modifying bibliography styles is an advanced topic for a single facet of the TeX ecosystem, there's not going to be the same kind of pedagogical literature on the subject as e.g. for LaTeX. But I'm hoping for something that would allow me to grok, and write, a style file after an hour or two of reading rather than after a day or two of study.

share|improve this question
I particularly like this document: lsv.ens-cachan.fr/~markey/BibTeX/doc/ttb_en.pdf – Corentin Sep 13 '12 at 12:46
Do you want to write from scratch (hard) or only modify existing styles? – Joseph Wright Sep 13 '12 at 12:51
@Corentin Perhaps better to give a 'canonical' link: ctan.org/pkg/tamethebeast – Joseph Wright Sep 13 '12 at 12:51
@JosephWright: it is probable that I can do what I want by modifying existing styles, but if a good introductory reference can let me see what is possible from scratch, my notion of what I'd like to achieve may expand to meet the boundaries of the feasible. – Niel de Beaudrap Sep 13 '12 at 12:59
@JosephWright I agree, it is probably better to use the ctan link; I was pointing directly to the author's personal page. – Corentin Sep 13 '12 at 13:25
up vote 11 down vote accepted

The document by Nicolas Markey Tame the BeaST is a very good reference. It contains a general presentation of BibTeX, and chapter 4 is devoted to editing .bst files. The overall structure of a .bst file is explained, as well as the Reverse Polish Notation used by bibtex, and the main functions are described. As far as I'm concerned, I've always found it very helpful.

Otherwise there is also Designing BibTeX files, by Oren Patashnik, the author of BibTeX (I don't know if there is a "canonical" link to this pdf, if so please feel free to edit my answer).

share|improve this answer

there should be some documentation in your local TeX installation:


and if you are familiar with german:


share|improve this answer

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.