Now QuickLaTeX handles comments only inside formulas.
As a workaround you can insert comments anywhere in the post using something like this:
$% Comment goes here$
Thread Starter
Serkan
(@slmdesign)
I have tried it, but i get this error in preview:
*** QuickLaTeX cannot compile formula:
% Comment goes here
*** Error message:
Missing $ inserted.
leading text: \end{preview}
comment should not visible for visiter on my site.
QuickLaTeX should replace this string:
$% Comment goes here $
with empty image of 1px x 1px – no comments are shown or included in page markup.
This works well on my site (latest QuickLaTeX + latest WordPress).
Could you check – do you have closing dollar sign $?
Thread Starter
Serkan
(@slmdesign)
hi,
yes, I have the latest version of QuickLatex and WordPress. I tried now with [latex] $% Comment goes here $ [/latex] and with [latexpage] $% Comment goes here $ – but I get the same Error. I’m wondering what I’m doing false.
Try to turn off “Debug Mode” in QuackLaTeX Admin page -> System -> Debug Mode.
And please also try [latex] % Comment goes here [/latex] (without “$”).
Thread Starter
Serkan
(@slmdesign)
hi,
yes its working with [latex] % Comment goes here [/latex] (when I’m closing the DebugMode
but its not working with [latexpage]. Why? and what is the big diffrence between those?
and another question: Have I have to close [latexpage] like this: [/latexpage] or is it not necessary.
thanks
[latexpage] just tells plugin that page contains some formulas (native or marked with [latex]) to be parsed and compiled.
[latexpage] is a switch to turn on/off plugin processing for the page. This helps to avoid unnecessary parsing for pages without formulas. Closing tag [/latexpage] is not needed (it is ignored).
Whereas [latex] or native delimiters describe formulas - that enclosed piece of text is actually LaTeX code - and should go through LaTeX compiler.
QL doesn't parse % in plain post text, but it does parse % inside formulas.