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 recently gave the documentation of my chscite package a facelift for inclusion in CTAN, and was assuming that doing so wouldn't break anything. Unfortunately, I just discovered that the package doesn't work because the .bst file isn't being generated properly, and I can't for the life of me figure out why. I know that this changeset breaks it, but I can't figure out why. The full DTX file is available on CTAN. What could be wrong?

share|improve this question
up vote 4 down vote accepted

I had a look on it and found that the .bib file is created if the \endinput is removed from line 659. Note that docstrip adds it anyway by default and it is not really required.

This happened because docstrip explicitly looks for \endinput lines. If you indent it with a space it works as well. I would simply remove it from the DTX file.

share|improve this answer
Of course! Thank you. – You Sep 20 '11 at 10:51

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.