⟨latex⟩$$...$$⟨/latex⟩ does not work
Status: Beta
Brought to you by:
worden
If I use <latex>...</latex> instead of $$...$$ for inline latex >1 time, the WW gives me a message
"Warning: Tag <source-file filename="ww-internal-b404e025a008481ecffa9d666066a33d.tex-inline" standalone="yes"> is missing its closing tag in page 'IAST13/Notes'
Warning: Unmatched </source-file> found on page ‘IAST13/Notes’."
Example: http://lalashan.mcmaster.ca/theobio/lab/index.php/Latex_inline_test
Update: pretty sure the problem is not multiple <latex> tags, it's the use of double $ signs within (<latex>$$...$$</latex>).
Anonymous
$$...$$ and the latex tag are both meant to be used for short, inline latex. There is no reason to use them together, and it's not surprising that they don't play nicely.
I edited the example to page to show recommended use of $$...$$ for simple inline, and other stuff.
HTH
JD
I agree. Multiple <latex>...</latex> constructions, and <latex>$...$</latex> constructions, work fine. But even a single <latex>$$...$$</latex> fails.
This is because $$...$$ is interpreted as a source-file, and then the latex tag surrounding it also is. It should not do that, so I am considering this a valid bug, just one that's different from the original report.
This really should be handled better, because it seems completely reasonable that people get used to using double $ signs and will do it by accident between <latex> tags.
Diff:
BTW JD: "fixing" the example page so that the buggy behavior isn't there any more kind of makes it harder for me to check out the bug report. Unless you intend to fix the bug, in cases like this I think I'd prefer you leave it, and just discuss how the example page could be different. Thanks for helping!
Note also [#303]: Allow $...$ for math vs. $$...$$
Related
Bugs: #303
<latex>$$...$$</latex> has a difference with $$..$$ or just <<latex>...lt;/latex> - the equation becomes centered even in latexml, no?</latex>
Last edit: Andrei Akhmetzhanov 2013-05-25
The key difference is that <latex>$$...$$</latex> is incorrect code, unless you intend to use double dollar signs in your latex source code. In latex you should probably be using single dollar signs.
By the way, you should be aware that the contents of <latex>...</latex> are interpreted in text mode, while the contents of $$...$$ and {$...$} are interpreted in math mode.
See
http://lalashan.mcmaster.ca/theobio/projects/index.php/WorkingWiki/Tutorial#Inline_LaTeX_commands
and
http://lalashan.mcmaster.ca/theobio/projects/index.php/WorkingWiki/Documentation#Inline_LaTeX
for details. I've just done some editing on both those sections.