bugtex4ht - Bugs: bug #368, Tabularx package makes \\[...] to...

 
 
Show feedback again

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

bug #368: Tabularx package makes \\[...] to produce faulty code inside array

Submitted by:  Jarno Parviainen <jarno_c137>
Submitted on:  Sat 09 Sep 2017 01:16:30 AM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 10 Sep 2017 05:08:05 AM EEST, comment #4:

committed to tl (r45261), sorry for the delay.

Karl Berry <karl>
Project Administrator
Sun 10 Sep 2017 03:13:34 AM EEST, comment #3:

Some additional info of my setup:

TeX Live version: (most recent that is available at Arch Linux repository)

$ tex --version
TeX 3.14159265 (TeX Live 2017/Arch Linux)
kpathsea version 6.2.3
Copyright 2017 D.E. Knuth.

html-mml.4ht: (2014-06-27-08:16)

Jarno Parviainen <jarno_c137>
Sun 10 Sep 2017 03:00:05 AM EEST, comment #2:

html-mml.4ht giver error:

! Undefined control sequence.
\a:putHBorder ->\bgroup \ifmathml \mathml:hborder
\fi \HCode {\HBorder }\egr...
l.5 a
bc \\[1ex]

I have very little experience in (tex) programming so cannot figure out where the problem is.

Jarno Parviainen <jarno_c137>
Sat 09 Sep 2017 08:10:12 PM EEST, comment #1:

This issue was fixed in the sources, but it seems that it isn't in the TL yet. Please try the attached html-mml.4ht file.

(file #282)

Michal Hoftich <michal_h21>
Project Member
Sat 09 Sep 2017 01:16:30 AM EEST, original submission:

mwe.tex:
---
\documentclass{article}

\usepackage{tabularx}%If this is commented out then everything works as expected

\begin{document}
\[\begin{array}{c}
abc \\[1ex]
def
\end{array}\]
\end{document}
---

mwe.cfg:
---
\Preamble{xhtml,mathml-,html5}
\begin{document}
\EndPreamble
---

Compilation with:

$ make4ht -u -c mwe.cfg mwe.tex

---

What works: The example above works as expected if tabularx package is not loaded. The line change inside array produces html that looks like this:

<mtr class="vspace" style="font-size:4.30554pt"><mtd></mtd></mtr>

The problem: When tabularx is loaded the line produced by line change inside array produces to this:

<tr class="vspace" style="font-size:4.30554pt"><td>&nbsp;</td></tr>

The mtr and mtd tags have changed to tr and td which are not a valid mathml tags. It produces error when rendered with MahtJax.

Jarno Parviainen <jarno_c137>

 

Attached Files
file #282:  html-mml.4ht added by michal_h21 (27kB - application/octet-stream)

 

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 (Updated the item)
  • -unavailable- added by jarno_c137 (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):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 10 Sep 2017 05:08:05 AM EESTkarlOpen/ClosedOpen=>Closed
    Sat 09 Sep 2017 08:10:12 PM EESTmichal_h21Attached File-=>Added html-mml.4ht, #282
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray