Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bookmark should support structure destinations #7

Closed
u-fischer opened this issue Dec 5, 2023 · 1 comment
Closed

bookmark should support structure destinations #7

u-fischer opened this issue Dec 5, 2023 · 1 comment

Comments

@u-fischer
Copy link
Contributor

If the document is tagged the outlines should also use structure destinations.

With pdflatex and lualatex this basically needs only this change:

\DocumentMetadata{uncompress,testphase=phase-III}
\documentclass{article}
\usepackage{bookmark}
\makeatletter
\AddToHook{package/bookmark/after}{
\def\BKM@DefGotoNameAction#1#2{%
  \BKM@EscapeString\BKM@DO@dest
  \edef#1{goto struct name {#2} name {#2}}%
}}
\makeatother
\begin{document}
\section{abc}\label{blub}
\ref{blub}
\end{document}

Then the action looks like this

<< /S /GoTo /D (section.1) /SD 29 0 R >>
@u-fischer
Copy link
Contributor Author

resolved in version 1.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant