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

Hyphen in citationkey causes unknown reference #100

Open
ryan-carpenter opened this issue Nov 19, 2024 · 0 comments
Open

Hyphen in citationkey causes unknown reference #100

ryan-carpenter opened this issue Nov 19, 2024 · 0 comments

Comments

@ryan-carpenter
Copy link

ryan-carpenter commented Nov 19, 2024

  1. Cite a reference, such as bibitem:[plain‐hyphen1234] using a hyphen (‐) in the citationkey.
  2. Convert the document using asciidoctor -r asciidoctor-bibtex.
  3. Notice unknown reference error for the hyphenated citationkey.

I confirmed that the citationkeys in asciidoc and bibtex files matched, replaced the hyphens with hyphen-minus (-) as in hyphen-minus1234, and then converted the document successfully without the unknown reference error.

I could not find any regular expressions in the asciidoctor-bibtex code that would prevent a hyphen from matching the bibtex citationkey, so I suspect that the issue might be with a dependency.

A similar issue with "dash" (actually, - hyphen-minus) was resolved previously in #16.

linux
ruby 3.3.0
asciidoctor 2.0.23
asciidoctor-bibtex 0.9.0

Edit: corrected hex codes.

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

1 participant