bugtex4ht - Bugs: bug #348, Problems with \autoref and Tikz

Show feedback again

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

bug #348: Problems with \autoref and Tikz

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Fri 16 Dec 2016 02:56:30 PM EET  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 19 Dec 2016 02:49:17 AM EET, comment #1:

committed new nameref.4ht and html4.4ht to tex live, r42747 ...

Karl Berry <karl>
Project Administrator
Fri 16 Dec 2016 02:56:30 PM EET, original submission:

User reported some issues with Tikz to SVG conversion and \autoref handling on TeX.sx [1]. I advised him to use the Tikz externalization to get the SVG images, I have much better experiences with this method than with Tikz tex4ht driver.

Regarding the \autoref support, it seems that there was wrong check for existence of macro which contains the label type, because label types must be set at the moment the \label command is called. The problem is that OP used Amsmath environment which hadn't the label type set, so the macro \NR:Type wasn't expanded and it was written to the aux file, where it caused the compilation error in the next run, when the aux file was loaded.

I've fixed the check for \NR:Type existence at the time of writing to the aux file and also added the support for amsmath environments, so they are now referenced as "equation".

I also discovered that commands from commath.sty package produce wrong Mathml, mainly because there are things like spacing commands in math operators or missing brackets around superscript bases.

[1] http://tex.stackexchange.com/q/344200/2891

Michal Hoftich <michal_h21>
Project Member


No files currently attached


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



    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Dec 2016 02:49:17 AM EETkarlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray