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

Bug: Failed to identify embeded citation keys of natbib #41

Closed
syrte opened this issue Feb 26, 2024 · 2 comments
Closed

Bug: Failed to identify embeded citation keys of natbib #41

syrte opened this issue Feb 26, 2024 · 2 comments

Comments

@syrte
Copy link
Contributor

syrte commented Feb 26, 2024

adstex (search_keys?) failed to identify Diemer2018 as a citation in the following example:

\citet[with implementation by \citealt{Diemer2018}]{watson13}
@yymao
Copy link
Owner

yymao commented Feb 27, 2024

Right, adstex does ignore anything between the brackets of a cite command. I'll give it some thoughts but I am not sure if I'll be able to find a way around this as the regular expression is already quite complex at this point.

Alternatively, you can change the tex source to the following for adstex to detect both citations.

\citeauthor{watson13} (\citeyear{watson13}, with implementation by \citealt{Diemer2018})

@syrte
Copy link
Contributor Author

syrte commented Feb 27, 2024

Thanks for the workaround.
Sure, I guess this is only an uncommon edge case in practice.

@yymao yymao closed this as completed Jul 8, 2024
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

2 participants