Problem with modifying DOI field in BibTeX file #2426
Answered
by
retorquere
MikeChanV8
asked this question in
Q&A
Replies: 1 comment 3 replies
-
if (Translator.BetterTeX) {
if (tex.has.doi) {
tex.add({ name: 'note', value: `doi:<a href="https://doi.org/${tex.has.doi.value}">${tex.has.doi.value}</a>`, html: true })
delete tex.has.doi
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
retorquere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing to report an issue with modifying the DOI field in a export bibtex file. Specifically, I am trying to replace the existing DOI field with a new note field that includes a hyperlink to the DOI URL. However, the resulting output is not what I expected.
Here's the original DOI field that I want to modify:
doi={10.1049/iet-pel.2016.0483};
And here's the code in postscript that I am using to replace it with a new note field:
However, the resulting output that I get is not what I expected. That is
The expected output should be:
Specifically, the character '' appears before the opening and closing braces of the hyperlink, and the character '' before 'href' is lost. This is not what I expected, and I believe there might be a problem with the code that I am using.
I would appreciate any help or suggestions on how to fix this issue.
Thank you for your attention and assistance.
Beta Was this translation helpful? Give feedback.
All reactions