\qty inside caption & xr-hyper problem
rafaelpap opened this issue · 3 comments
Dear Sir,
I have a document which uses siunitx and xr-hyper. If I include a \qty command inside a caption in the "auxiliary" document I obtain the following error:
! Undefined control sequence.
...of a water molecule \qty {1}{\meter
}
Using \num inside the caption works ok.
I attach 4 files. I compile them using
latexmk -pdf article1.tex
latexmk -pdf suppinfo1.tex
latexmk -pdf article1.tex
latexmk -pdf article2.tex
latexmk -pdf suppinfo2.tex
latexmk -pdf article2.tex
Using xr instead of xr-hyper seems to work.
Maybe I am doing something wrong?
Thanks for the attention,
Rafael RP
This links to how siunitx
defines units. It may be solvable when I sort out 'free text' units, which I am hoping to look at. The other possible fix is at the end of xr-hyper
, but I am not sure I can really make that happen.
Could you raise at https://github.com/latex3/hyperref/issues? I can't directly transfer, but it looks like it might be an issue there.
Transferred to latex3/hyperref#327