latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.94k stars 267 forks source link

[FR] `xr`/`xr-hyper` support for `ltproperties` #1180

Closed gusbrs closed 5 months ago

gusbrs commented 12 months ago

Brief outline of the enhancement

This is just a suggestion / feature request. It would be really nice to have xr/xr-hyper support for ltproperties, so that \new@label@record data could be imported from an external document, with a corresponding url/file property.

Minimal example showing the current behaviour

File A.tex:

\RequirePackage{latexbug}
\documentclass{article}

\begin{document}

\section{Section 1}
\label{foolabel}
\RecordProperties{ltp:foolabel}{label,page}

\end{document}

File B.tex:

\RequirePackage{latexbug}
\documentclass{article}

\usepackage{xr}
\externaldocument[A-]{A}

\begin{document}

\ref{A-foolabel}

\RefProperty{A-ltp:foolabel}{label}

\end{document}

Produces: Screenshot from 2023-11-14 08-06-23

In other words, \ref works for a label from the external document, while \RefProperty is not able to access the external document's label data.

Minimal example showing the desired new behaviour

Well, it would be nice if it worked. For both xr and xr-hyper + hyperref.

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity.

u-fischer commented 7 months ago

xr-hyper already support this. xr will support is once we merge both.

u-fischer commented 7 months ago

The packages has been merged and with the next release both packages will support ltproperties.

gusbrs commented 7 months ago

@u-fischer and @davidcarlisle Thank you very much!