adstex icon indicating copy to clipboard operation
adstex copied to clipboard

Bug: Failed to identify embeded citation keys of natbib

Open syrte opened this issue 1 year ago • 2 comments

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

\citet[with implementation by \citealt{Diemer2018}]{watson13}

syrte avatar Feb 26 '24 19:02 syrte

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})

yymao avatar Feb 27 '24 01:02 yymao

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

syrte avatar Feb 27 '24 17:02 syrte