Please pardon me if this is be a duplicate which I would be fain to delete. Please feel free to edit this post and tags.

I'm seeking a syntax checker (preferably free) for Latex and MathJax and etc, that allows TEX code to be copied and pasted directly thereinto. This checker shouldn't require code to be typed in another Latex program. If necessary, it could parse a saved PDF or Notepad or Word file in which I wrote the Tex code. Please let me know if this answers the question of "static program analysis"?

This program would then divulge and signalise all errors and problems.

Would the programs in Is there a program equivalent to lint for LaTeX? suit the above?

  • Are you talking about static analysis of TeX/LaTeX code? – jub0bs Jan 5 '14 at 17:56
  • 1
    You may be able to use an online editor to do so for you—they usually have some sort of error management system. Static analysis is, however, strictly impossible due to TeX's Turing-completeness. – Sean Allred Jan 5 '14 at 18:44
  • 1
    @Jubobs: Thanks for the comment. I updated my OP about "static program analysis," but I'm not too acquainted with this term. Does it help and answer your question? – Greek - Area 51 Proposal Jan 7 '14 at 8:56
  • @SeanAllred: Thank you. Where could I find these online editors? A Google search produces only desktop programs whose ability to do the above is unknown to me? – Greek - Area 51 Proposal Jan 7 '14 at 8:58
  • 1
    writelatex.com and sharelatex.com‎ are nice examples of online editors. – Dror Jan 7 '14 at 9:19

As noted before, a true syntax checker for LaTeX (or any other TeX format) is strictly impossible due to TeX's Turing-completeness. However, you can find the most common errors with the lacheck script, included in your TeX distribution.

  • 1
    In addition to lacheck, whose development is dead years ago, I'd suggest ChkTeX. – giordano Mar 22 '14 at 16:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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