summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-phys
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-23 23:53:48 +0000
committerKarl Berry <karl@freefriends.org>2013-01-23 23:53:48 +0000
commitcef880c055e9f3de70d6c723608acb0ad87e64a2 (patch)
tree862a73214d2a3719efb767cc0b02640208dc3d32 /Master/texmf-dist/tex/latex/biblatex-phys
parent943d3f44319a81bca1245e19f0e0e894cf404a87 (diff)
biblatex-phys 0.9c (22jan13)
git-svn-id: svn://tug.org/texlive/trunk@28915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-phys')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx47
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx2
2 files changed, 37 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx b/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx
index 376a5eff1d9..6a7211231c9 100644
--- a/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx
@@ -76,6 +76,28 @@
{\href{http://dx.doi.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}%
}
+\DeclareFieldFormat{doi/url-link}{%
+ \ifhyperref
+ {%
+ \iffieldundef{doi}
+ {%
+ \iffieldundef{url}
+ {
+ \iffieldundef{eprint}
+ {\@firstofone}
+ {
+ \iffieldequalstr{eprinttype}{arXiv}
+ {\href{http://arxiv.org/\abx@arxivpath/\thefield{eprint}}}
+ {\@firstofone}%
+ }%
+ }
+ {\href{\thefield{url}}}%
+ }
+ {\href{http://dx.doi.org/\thefield{doi}}}%
+ }
+ {\@firstofone}%
+ {#1}%
+}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\DeclareFieldFormat[article]{pages}{%
\iftoggle{bbx:pageranges}{#1}{\mkfirstpage{#1}}%
@@ -90,6 +112,7 @@
{\mkbibquote{#1\isdot}}
{}%
}
+\DeclareFieldFormat{titlecase}{\MakeSentenceCase{#1}}
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}
\DeclareFieldFormat{year}{\mkbibparens{#1}}
@@ -205,17 +228,19 @@
\newunit\newblock
\printfield{version}%
\newunit\newblock
- \usebibmacro{journal+issuetitle}%
- \newunit
- \usebibmacro{byeditor+others}%
- \newunit
- \usebibmacro{note+pages}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \setunit{\addspace}%
- \printfield{year}%
+ \printtext[doi/url-link]{%
+ \usebibmacro{journal+issuetitle}%
+ \newunit
+ \usebibmacro{byeditor+others}%
+ \newunit
+ \usebibmacro{note+pages}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \setunit{\addspace}%
+ \printfield{year}%
+ }%
\setunit{\addspace}%
\iffieldundef{pages}
{%
diff --git a/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx b/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx
index d47edc7eef5..79922f5f4d2 100644
--- a/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{phys.cbx}[2013/01/04 v0.9b biblatex citation style]
+\ProvidesFile{phys.cbx}[2013/01/22 v0.9c biblatex citation style]
\RequireCitationStyle{numeric-comp}