This question about Using an extension: Asked

halt-on-error happens everytime

Hello,


We've recently upgrade to Foswiki 1.1.8, and I think this may have gotten us LatexModePlugin 4.0...

SInce then, LatexModePlugin has broken for us. It seems as thought the halt-on-error logic that was added recently is the culprit.

Here is the wiki page that we are trying to render:

%BEGINLATEX%
\int_{-\infty}^\infty e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}}
%ENDLATEX%

This results in a latex_math.tex file that looks like:

\documentclass{article}
\usepackage{latexsym}

\begin{document}
\pagestyle{empty}

\clearpage
% e572a4dd459c8a65682012d1929b932a

\int_{-\infty}^\infty e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}}

\clearpage
(end)
\end{document}

We do not see any (png) images on the wiki page once it is saved.

Running latex by hand, we see the following:

# latex latex_math.tex -interaction=nonstopmode -halt-on-error
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./latex_math.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/latexsym.sty) (./latex_math.aux)
! Missing $ inserted.
<inserted text>
$
l.10 \int
_{-\infty}^\infty e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}}
?

If I hack Render.pm, and don't pass -halt-on-error, a dvi file gets generated, and everything works.

Not quite sure how to debug this further...

-- AaronScamehorn - 14 Jan 2014

 

QuestionForm edit

Subject Using an extension
Extension LatexModePlugin
Version Foswiki 1.1.8
Status Asked
Related Topics
Topic revision: r1 - 14 Jan 2014, AaronScamehorn
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy