bugGNU TeXmacs - Bugs: bug #60205, html export: eqnarray* is not...

 
 

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

bug #60205: html export: eqnarray* is not hidden in html folds

Submitter:  Jeroen Wouters <jeronim>
Submitted:  Wed 10 Mar 2021 10:27:48 AM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release:  1.99.19
Fixed Release:  None Fixed Release: 
Keywords: 

Wed 10 Mar 2021 10:57:21 AM UTC, comment #1: 

Removing the <center> </center> tags around the eqnarray* also fixes the problem in a .html file.

The <center> element appears to be deprecated and it doesn't affect the rendering of the eqnarray* in any case, MathJax seems to center it even without it.

(file #51034)

Jeroen Wouters <jeronim>
Group Member
Wed 10 Mar 2021 10:27:48 AM UTC, original submission:  

If an eqnarray* tag is put inside the folded away part of a fold and then exported as a .html file with the html-fold package, the eqnarray* doesn't get hidden when folded in the browser (Firefox 86.0).

This appears to be due to differences between HTML and XHTML. If the file is saved as .html, the source is not properly parsed by Firefox: some tags, including the </p> after the folded equation, show up as red in Firefox's view-source:, indicating an error.

If instead the file is saved as .xhtml, Firefox throws error concerning the minimized attribute `defer` in the script tag for `texmacs_fold.js`:
<script src="https://www.texmacs.org/javascript/texmacs_fold.js" language="javascript" defer></script>
Changing this to defer="defer" fixes this.

Furthermore, the ampersands in the MathJax eqnarray* throws an error in XHTML. Changing these to `&amp;` fixes this as well.

Attached are a simple test .tm file, the export as .html and .xhtml files (these are identical in content), and a fixed .xhtml file.

Jeroen Wouters <jeronim>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #51030:  html-xhtml-fold.tm added by jeronim (306B - text/x-texmacs.doc)
file #51031:  html-xhtml-fold.xhtml added by jeronim (3KiB - application/xhtml+xml)
file #51032:  html-xhtml-fold.html added by jeronim (3KiB - text/html)
file #51033:  html-xhtml-fold-fixed.xhtml added by jeronim (3KiB - application/xhtml+xml)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jeronim (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-10 jeronim Attached File- Added html-xhtml-fold-fixed.html, #51034
    2021-03-10 jeronim Attached File- Added html-xhtml-fold.tm, #51030
        Attached File- Added html-xhtml-fold.xhtml, #51031
        Attached File- Added html-xhtml-fold.html, #51032
        Attached File- Added html-xhtml-fold-fixed.xhtml, #51033

    Back to the top

    Powered by Savane 3.13-ec04.
    Corresponding source code