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

Basic question (though I haven't found it here):

How do I comment out parts (some lines within an entry which I would like to save for later) of a BibTex file?

Apparently, @ can be used to comment out lines (but not be used within a comment itself), but only outside an entry, you have to move the commented lines out of the entry they belong to). Is there any other way?

share|improve this question
up vote 103 down vote accepted

You can "comment" whole entries by erasing the @ in front of the type declaration (@book -> book); there are no other ways of commenting parts of entries. However, unknown fields are ignored, so you can say


in order to ignore the pages field. Also repeated fields are ignored.

share|improve this answer
Good. Now '//' before a line is treated as commented out. – Peng Zhang Jan 23 '14 at 21:03

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.