bugtex4ht - Bugs: bug #244, “Display math should end with...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #244: “Display math should end with $$” when using MathML with amsmath and \fbox with tex4ht

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Sun Feb 8 15:00:25 2015  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon Feb 9 23:34:44 2015, comment #2:

per separate mail from michal, i installed the change, but leaving open as the patch does not solve the underlying cause and problems remain (as noted in the report), so it needs further attention.

Karl Berry <karl>
Project Administrator
Sun Feb 8 22:34:32 2015, comment #1:

do you want me to install this patch or wait for further fixes?

Karl Berry <karl>
Project Administrator
Sun Feb 8 15:00:25 2015, original submission:

As reported by Nasser M. Abbasi at:

http://tex.stackexchange.com/q/152604/2891

this example fails with mathml output:

<pre>
\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\fbox{$\sin(x)=0$} % OK
\]

\begin{equation}
\sin(x)=0 \tag{1} % OK
\end{equation}

\begin{equation}
\fbox{$\sin(x)=0$} \tag{1} %fails only with mathml
\end{equation}

\end{document}
</pre>

the problem is with last \fbox command. After some inspection in tex4ht-mathml.tex I've found that the problem is in \AA:text macro, where inline math is reconfigured and this causes premature closing of math environments.

When I added \ifmmode\else condition for preventing these inline math configurations, the error is gone, but I am afraid that other things which use \AA:text might be broken by this, so more testing is needed.

I've extended example provided by Nasser to include more test cases and had found that for example \intertext is broken with both original and the new version (the example is from David Carlisle, so I expect it is correct).

Three files are attached, path for tex4ht-mathml.tex, generated file mathml.4ht for testing and sample TeX file

Michal Hoftich <michal_h21>
Project Member

 

Attached Files
file #191:  mathml.4ht added by michal_h21 (120kB - application/octet-stream)
file #192:  sample.tex added by michal_h21 (626B - text/x-tex)
file #193:  aatext.patch added by michal_h21 (390B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Feb 9 23:34:44 2015karlSummary“Display math should end with $$” when using MathML with amsmath and \\fbox with tex4ht=>“Display math should end with $$” when using MathML with amsmath and \fbox with tex4ht
    Sun Feb 8 22:34:32 2015karlSummary“Display math should end with $$” when using MathML with amsmath and \\fbox with tex4ht=>“Display math should end with $$” when using MathML with amsmath and \fbox with tex4ht
    Sun Feb 8 15:00:26 2015michal_h21Attached File-=>Added mathml.4ht, #191
      Attached File-=>Added sample.tex, #192
      Attached File-=>Added aatext.patch, #193
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray