Skip to content

Commit

Permalink
Fix doi when hyperref not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Mar 14, 2020
1 parent 79b3399 commit 67791d8
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion gbt7714-author-year.bst
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion gbt7714-numerical.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion gbt7714.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4130,7 +4130,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/2015-authoryear.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[刘彻东(1998)]{liuchedong1998zhongguo}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/2015-numerical.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/npr.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-italicjournal.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-linktitle.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-no-medium-type.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-nomark.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-nosentencase.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-noslash.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-noslsn.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-nouppercase.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-nourl.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/option-only-start-page.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/ustc-authoryear.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[刘彻东(1998)]{liuchedong1998zhongguo}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/ustc-bachelor.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion test/testbst/ustc-numerical.bbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\expandafter\ifx\csname urlstyle\endcsname\relax\else
\urlstyle{same}\fi
\expandafter\ifx\csname href\endcsname\relax
\providecommand\doi[1]{\nolinkurl{#1}}\else
\DeclareUrlCommand\doi{\urlstyle{rm}}\else
\providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi

\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen}
Expand Down
2 changes: 1 addition & 1 deletion variants/2005/gbt7714-2005-author-year.bst
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/2005/gbt7714-2005-numerical.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/npr/npr.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/thu/thuthesis-author-year.bst
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/thu/thuthesis-bachelor.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/thu/thuthesis-numeric.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/ustc/ustcthesis-authoryear.bst
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/ustc/ustcthesis-bachelor.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down
2 changes: 1 addition & 1 deletion variants/ustc/ustcthesis-numerical.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib}
show.doi
{ "\expandafter\ifx\csname href\endcsname\relax"
write$ newline$
" \providecommand\doi[1]{\nolinkurl{#1}}\else"
" \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
write$ newline$
" \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
write$ newline$
Expand Down

0 comments on commit 67791d8

Please sign in to comment.