michal-h21 / make4ht

Build system for tex4ht
132 stars 15 forks source link

destlabel option of the hyperref package does not work with htlatex/make4ht #61

Open dimpase opened 2 years ago

dimpase commented 2 years ago

One often wants to refer to a section of an html document is a stable way, not using a generated tag which would change if the document is updated. Cf. e.g. https://github.com/JuliaPolyhedra/Polyhedra.jl/pull/286 or https://tex.stackexchange.com/questions/260932/destlabel-option-of-the-hyperref-package-does-not-work-in-combination-with-htlat

While it's apparently possible to achieve this by post-processing, using a filter, this looks like a bug, or a missing feature.

michal-h21 commented 2 years ago

Sorry for the late reply. The current version of make4ht uses a filter similar to the linked answer out of the box. So it automatically produces stable links for all sections. For example this.