Skip to content

Commit

Permalink
Implement runtime check for href
Browse files Browse the repository at this point in the history
Makes hyperlink creation optional and dependent on the user having loaded hyperref
  • Loading branch information
janniklasrose authored Aug 12, 2021
1 parent 463ca06 commit b9116b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doi.sty
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
\edef\_{_}%
\edef\textless{\@percentchar3C}% instead of {\string<} for Apple
\edef\textgreater{\@percentchar3E}% instead of {\sting>} for Apple
\edef\x{\toks2={\noexpand\href{\doiurl#1}}}%
\edef\x{\toks2={\ifdefined\href\noexpand\href{\doiurl#1}\fi}}%
\x
\edef\x{\endgroup\doitext\the\toks2 \the\toks0}%
\x
Expand Down

0 comments on commit b9116b0

Please sign in to comment.