make4ht icon indicating copy to clipboard operation
make4ht copied to clipboard

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

Open dimpase opened this issue 3 years ago • 1 comments

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.

dimpase avatar Jan 18 '22 17:01 dimpase

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.

michal-h21 avatar Apr 05 '22 13:04 michal-h21