bugtex4ht - Bugs: bug #441, tex4ht+fontspec+textbf produces...

Show feedback again

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

bug #441: tex4ht+fontspec+textbf produces incorrectly nested html

Submitted by:  Alex Watson <rotprsl2>
Submitted on:  Wed Oct 16 14:43:31 2019  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Dec 16 23:56:08 2019, comment #3:

committed to tl (some time ago), closing.

Karl Berry <karl>
Project Administrator
Thu Oct 17 07:43:38 2019, comment #2:

This fixes the issue for me. Thank you, Michal.


Alex Watson <rotprsl2>
Wed Oct 16 17:48:08 2019, comment #1:

Hi Alex,

you are right, there is tag mismatch. Try the following .cfg file:

\Configure{textsc}{\HCode{<span class="small-caps">}\NoFonts}{\EndNoFonts\Tg</span>}

I've added the fix to tex4ht sources.


Michal Hoftich <michal_h21>
Project Member
Wed Oct 16 14:43:31 2019, original submission:

The attached file, which uses fontspec, when run with `make4ht -uf html5 -l ht-nesting.tex` (or with xhtml format), produces the attached HTML document.

The tags are nested incorrectly: a `strong' element is opened before the `p' element is closed. The document does not validate with W3C validator.

The `tidy' extension corrects this, but there must be something going wrong internally to produce an incorrectly nested file.

Alex Watson <rotprsl2>


Attached Files
file #323:  ht-nesting.tex added by rotprsl2 (128B - text/x-tex)
file #324:  ht-nesting.html added by rotprsl2 (562B - text/html)


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 (Posted a comment)
  • -unavailable- added by rotprsl2 (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):



    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Dec 16 23:56:08 2019karlOpen/ClosedOpen=>Closed
    Wed Oct 16 14:43:31 2019rotprsl2Attached File-=>Added ht-nesting.tex, #323
      Attached File-=>Added ht-nesting.html, #324
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray