## tex4ht - 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 Submitted on: Fri 16 Dec 2016 02:56:30 PM EET Category: None Priority: 5 - Normal Severity: 5 - Normal Status: None Privacy: Public Assigned 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>
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.

Michal Hoftich <michal_h21>

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