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

Add label-reference commands that receives multiple arguments #1210

Closed
xebcam opened this issue Sep 14, 2024 · 0 comments · Fixed by #1312
Closed

Add label-reference commands that receives multiple arguments #1210

xebcam opened this issue Sep 14, 2024 · 0 comments · Fixed by #1312

Comments

@xebcam
Copy link

xebcam commented Sep 14, 2024

I would like to add label-reference commands that receive multiple arguments as input. For example the package varioref has this command \vrefrange{}{} that receives two labels and formats the reference as "...see figures 3.4 to 3.6 on pages 23–24...". I tried adding the command to the texlab.experimental.labelReferenceCommands list but texlab only recognizes the first argument and the second still reports as Unused Label.

I also defined this command that uses varioref that receives two arguments.

\newcommand\vrefand[2]{
  \vpagerefcompare{#1}{#2}%
  {\ref{#1} y~\ref{#2} \vpageref{#1}}%
  {\ref{#1} \vpageref{#1} y de~\ref{#2} \vpageref{#2}}%
}
@xebcam xebcam changed the title Add label-reference commands that recieves multiple arguments Add label-reference commands that receives multiple arguments Sep 14, 2024
pfoerster added a commit that referenced this issue Jan 18, 2025
Add `texlab.experimental.labelReferenceRangeCommands`.

Fixes #1210.
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

Successfully merging a pull request may close this issue.

1 participant