It *was* all working the other day. I think this morning, on my Confluence task list, I was prompted to
Which I okayed.
Now, whenever I try to insert a Math Block, I get LaTeX Math rendering error (show error message).
in the preview, before I'ev even entered anything. However, the Math Inline function is working well. I'm using BibTex LaTex as the external PNG renderer
Below is the error message, and below that is my Math Block velocity template, can you please help give me an idea what's going wrong?
When rendering: "", the following error occurred:
Error in LaTeX formatting.
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit) (preloaded format=latex 2012.12.14) 7 JAN 2013 16:33
entering extended mode
**C:/Program*Files/Atlassian/Confluence/temp/latexmath/latex1762883986064371892
.tex
("C:/Program Files/Atlassian/Confluence/temp/latexmath/latex1762883986064371892
.tex"
LaTeX2e <2011/06/27>
Babel and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?‘ option.
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
Package: amstext 2000/06/29 v2.01
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen103
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
) ("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count87
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count90
\DOTSCASE@=\count91
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count92
\c@MaxMatrixCols=\count93
\dotsspace@=\muskip10
\c@parentequation=\count94
\dspbrk@lvl=\count95
\tag@help=\toks15
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
) ("C:\Program Files\MiKTeX 2.9\tex\latex\ams\classes\amsthm.sty"
Package: amsthm 2004/08/06 v2.20
\thm@style=\toks19
\thm@bodyfont=\toks20
\thm@headfont=\toks21
\thm@notefont=\toks22
\thm@headpunct=\toks23
\thm@preskip=\skip46
\thm@postskip=\skip47
\thm@headsep=\skip48
\dth@everypar=\toks24
) ("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty"
Package: amssymb 2009/06/22 v3.00
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak‘ in version `bold‘
(Font) U/euf/m/n --> U/euf/b/n on input line 96.
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\tools\bm.sty"
Package: bm 2004/02/26 v1.1c Bold Symbol Support (DPC/FMi)
\symboldoperators=\mathgroup6
\symboldletters=\mathgroup7
\symboldsymbols=\mathgroup8
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 138.
LaTeX Info: Redefining \bm on input line 204.
) ("C:\Program Files\MiKTeX 2.9\tex\latex\preview\preview.sty"
Package: preview 2010/02/14 11.86 (AUCTeX/preview-latex)
\pr@snippet=\count99
\pr@box=\box28
\pr@output=\toks25
)
No file latex1762883986064371892.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
Preview: Fontsize 10pt
LaTeX Font Info: Try loading font information for U+msa on input line 8.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd"
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
LaTeX Font Info: Try loading font information for U+msb on input line 8.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd"
File: umsb.fd 2009/06/22 v3.00 AMS symbols B
)
! Missing $ inserted.
$
l.9
I‘ve inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Display math should end with $$.
\par
l.9
The `$‘ that I just saw supposedly matches a previous `$$‘.
So I shall assume that you typed `$$‘ both times.
! LaTeX Error: Bad math environment delimiter.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.10 \]
\end{document}
Your command was ignored.
Type I to replace it with another command,
or to continue without it.
! Missing $ inserted.
$
l.10 \]
\end{document}
I‘ve inserted something that you may have forgotten.
(See the above.)
With luck, this will get me unwedged. But if you
really didn‘t forget anything, try typing `2‘ now; then
my insertion and my current dilemma will both disappear.
! Display math should end with $$.
\endgroup
l.10 \]
\end{document}
The `$‘ that I just saw supposedly matches a previous `$$‘.
So I shall assume that you typed `$$‘ both times.
("C:\Program Files\Atlassian\Confluence\temp\latexmath\latex1762883986064371892
.aux") )
Here is how much of TeX‘s memory you used:
1349 strings out of 493922
15373 string characters out of 3147226
63024 words of memory out of 3000000
4673 multiletter control sequences out of 15000+200000
8096 words of font info for 31 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
27i,4n,24p,292b,113s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.
Math Block Velocity Template (as defined in Latex Math Plugin config screen:
#if ($caption && ($caption.length()>0))
#set ($caption = "($caption)")
#end
#if ($halign == "left")
#set ($leftMargin = "0%")
#set ($rightMargin = "100%")
#elseif ($halign == "right")
#set ($leftMargin = "100%")
#set ($rightMargin = "0%")
#else
#set ($leftMargin = "40%")
#set ($rightMargin = "60%")
#end
<table border=0 cellspacing=0 cellpadding=0 width="90%" align="center" class="latexmath-mathblock"><tr>
<td nowrap width="30px">$caption</td>
<td width="$leftMargin"></td>
<td nowrap>$!latexHtml</td>
<td width="$rightMargin"></td>
</tr></table>
Ah - it does indeed appear to be working correctly now, when I un-tick "Use MathJax where possible", and use the external png renderer. Was this fixed in a recent(ish) bug fix?
I'm not sure what caused your problems, but it may be one of the bugs that were fixed in version 1.5 from early January. I'm glad to hear that it's working for you now!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ollie, are you still experiencing these problems? Can you try inserting a Math Block macro with only "x" as the body and send me the error message if any?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so now I find out that if I enable "Use MathJax where possible.", it works again, but this does not seem to be using the external renderer, which means I can't add packages into the Advanced Settings for the external renderer.
I want to use the external renderer, and disable MathJax - what do I need to do to get both Math Inline and Math Block working correctly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, the bit about
may be a red-herring. Perhaps math blocks never working with the external PNG renderer - when I switch back to using internal PNG renderer, math blocks work again. But the Inline is working with external PNG renderer.
So I think I need to change: "Math Block velocity template", but have no idea how to do this.
Any help gratefully received.
Ollie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.