Menu

#302 ⟨latex⟩$$...$$⟨/latex⟩ does not work

workingwiki
open
nobody
None
5
2013-05-26
2013-05-23
No

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>).

Discussion

  • Jonathan Dushoff

    $$...$$ 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

     
  • Lee Worden

    Lee Worden - 2013-05-23

    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.

     
  • Lee Worden

    Lee Worden - 2013-05-23
    • summary: inline latex does not work --> <latex>$$...$$</latex> does not work
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,3 +4,5 @@
     Warning: Unmatched &lt;/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 &lt;latex> tags, it's the use of double $ signs within (&lt;latex>$$...$$&lt;/latex>).
    
     
  • Lee Worden

    Lee Worden - 2013-05-23

    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!

     
  • Lee Worden

    Lee Worden - 2013-05-24

    Note also [#303]: Allow $...$ for math vs. $$...$$

     

    Related

    Bugs: #303

  • Andrei Akhmetzhanov

    <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
  • Lee Worden

    Lee Worden - 2013-05-26

    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.

     

Anonymous
Anonymous

Add attachments
Cancel