-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Is xr
's \cite
working properly?
#1588
Comments
Please show a MWE. Without it it is impossible to debug this. Be aware that revtex4-2 is an external class, a bug report should not use it. Use article instead. |
Could I quickly get some feedback if this is related to If so is there anything that can be done to patch this? |
I have no idea. That's why I need an small example and you are the one who can provide it, as you already have an example that you can minimize. |
Well, I have just tried to include It could be good to document that when using |
Cristian: to determine if there is a bug (in code we maintain) we need an example that can be processed, not bits and pieces that we need to stick together and guess what you have in front of you. Yes that is work for you, but producing it at our end is even more work, because we need to guess what to put in and also because we aren't dealing with one issue but with many that people are having of believing to have. Even in a situation like yours this is possible, for example, the second file But I think your guess is right: natbib generates and uses its own format of citation code that goes into the aux file, different from what LaTeX does by default (and also different from what a few other packages do, e.g., chicago
jurabib
and with biblatex it would be again totally different (copy pages from LaTeX Companion Part-II p488). So bottom line, |
@davidcarlisle Xmas present |
@LecrisUT @FrankMittelbach the documentation does already call out that including citations from another document may not work
I suppose it could also explicitly mention that it is more likely to work if both documents use the same citation packages, but I'm inclined to close this with no change as I think that's implied by the current text. |
I find the documentation too cryptic and too defensive, pushing the users away from it. Would prefer showing what is the intended interface, some common issues, etc. In the current documentation it is unclear that you would be able to use |
well it's defensive for a reason.. I don't want to over-promise if things will work, even if both documents use the same set of packages they may have made arbitrary changes to the internal cite data format and the external document mechanism may or may not work, I really have no idea. I think the most I could do is add an extra line saying that external citation commands will work most reliably if both documents use the same set of citation related packages. |
* additional documentation for #1588 * Update required/tools/xr.dtx Co-authored-by: Yukai Chou <[email protected]> --------- Co-authored-by: Frank Mittelbach <[email protected]> Co-authored-by: Yukai Chou <[email protected]>
Brief outline of the bug
I think this issue is a bit more difficult to create a MWE for me, but basically I tried to do something along the lines of
But this formats the
\cite
rather weird, e.g.:I believe the result should be only the text
15
in that part. Some light digging, I can see that the.aux
file has the content like:The citation is built from a
revtex4-2
document withBibTeX
compiler.Are there any references or examples of
xr
working with\cite
to compare with?I am using the LaTeX version from Fedora41
Minimal example showing the bug
Partially provided in the previous section
Log file (required) and possibly PDF file
Partially provided in the previous section
Edit: I guess this is the issue documented about
natbib
?The text was updated successfully, but these errors were encountered: