Commit bab4836f authored by Yuxiao Mao's avatar Yuxiao Mao
Browse files

[biblio] add url. -- modif by Daniel Loche, adapted

parent f9fd6545
......@@ -26,7 +26,8 @@ ENTRY
chapter
edition
editor
howpublished
url
doi
institution
journal
key
......@@ -215,7 +216,7 @@ FUNCTION {format.names}
s num.names$ 'numnames :=
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{ff~}{vv~}{ll}{~jj}" format.name$ 't :=
{ s nameptr "{vv~}{ll}{, f.}{, jj}" format.name$ 't :=
nameptr #1 >
{ namesleft #1 >
{ ", " * t * }
......@@ -264,6 +265,26 @@ FUNCTION {format.title}
if$
}
FUNCTION {is.use.url} { #1 }
FUNCTION {format.url}
{ is.use.url
{ url empty$
{ doi empty$
{ ""
}
{ new.block "[Online]. Available: \href{https://dx.doi.org/" doi * "}{http://dx.doi.org/" * doi * "}" *
}
if$
}
{ new.block "[Online]. Available: \url{" url * "}" *
}
if$
}
{ "" }
if$
}
FUNCTION {n.dashify}
{ 't :=
""
......@@ -449,7 +470,7 @@ FUNCTION {format.in.ed.booktitle}
}
FUNCTION {empty.misc.check}
{ author empty$ title empty$ howpublished empty$
{ author empty$ title empty$ url empty$
month empty$ year empty$ note empty$
and and and and and
key empty$ not and
......@@ -577,6 +598,7 @@ FUNCTION {article}
format.pages output
}
if$
format.url output
new.block
note output
fin.entry
......@@ -619,8 +641,8 @@ FUNCTION {booklet}
format.authors output
new.block
format.title "title" output.check
howpublished address new.block.checkb
howpublished output
url address new.block.checkb
url output
address output
format.date output
new.block
......@@ -776,11 +798,12 @@ FUNCTION {mastersthesis}
FUNCTION {misc}
{ output.bibitem
format.authors output
title howpublished new.block.checkb
title url new.block.checkb
format.utitle output
howpublished new.block.checka
howpublished output
url new.block.checka
%url output
format.date output
format.url output
new.block
note output
fin.entry
......@@ -1250,3 +1273,4 @@ FUNCTION {end.bib}
}
EXECUTE {end.bib}
......@@ -27,6 +27,8 @@ ENTRY
edition
editor
howpublished
url
doi
institution
journal
key
......@@ -264,6 +266,26 @@ FUNCTION {format.title}
if$
}
FUNCTION {is.use.url} { #1 }
FUNCTION {format.url}
{ is.use.url
{ url empty$
{ doi empty$
{ ""
}
{ new.block "[Online]. Available: \href{https://dx.doi.org/" doi * "}{http://dx.doi.org/" * doi * "}" *
}
if$
}
{ new.block "[Online]. Available: \url{" url * "}" *
}
if$
}
{ "" }
if$
}
FUNCTION {n.dashify}
{ 't :=
""
......@@ -576,6 +598,7 @@ FUNCTION {article}
{ format.article.crossref output.nonnull
format.pages output
}
format.url output
if$
new.block
note output
......@@ -778,10 +801,11 @@ FUNCTION {misc}
format.authors output
title howpublished new.block.checkb
format.utitle output
howpublished new.block.checka
howpublished output
%howpublished new.block.checka
%howpublished output
format.date output
new.block
%new.block
format.url output
note output
fin.entry
empty.misc.check
......@@ -1268,3 +1292,4 @@ FUNCTION {end.bib}
}
EXECUTE {end.bib}
......@@ -117,6 +117,7 @@
\renewcommand*{\backreflastsep}{ et~}
}
\usepackage{xurl} % allow break url
%%%%%%%% Fancy Header %%%%%%%%
% Fancy Header Style Options
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment