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 am editing a .cls file in order to customize the output of a particular document. However, I am occasionally coming up against errors. Is it possible to check that my .cls file is valid (i.e. no hanging "{")? Is there a decent way to debug edits to a .cls file?

If possible, please suggest some open source tools available for Windows.

share|improve this question
  1. syntonly.sty is useful for typesetting your file faster and checking if it has syntax errors.

  2. Use an editor with proper syntax highlighting and parenthesis matching!

  3. If all else fails, follow the advice here: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=erroradvice.

Quoting TeX itself: Pretend that you're Hercule Poirot: Examine all clues.

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.