2

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 05 '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 05 '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? –  Jan 07 '14 at 08: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? –  Jan 07 '14 at 08:58
  • 1
    https://www.writelatex.com/ and https://www.sharelatex.com/‎ are nice examples of online editors. – Dror Jan 07 '14 at 09:19

1 Answers1

2

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.

Sean Allred
  • 27,421