diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/biblatex-contrib/biblatex-nature |
Initial commit
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-nature')
6 files changed, 1303 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/README.md b/macros/latex/contrib/biblatex-contrib/biblatex-nature/README.md new file mode 100644 index 0000000000..3cab72a3ca --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/README.md @@ -0,0 +1,15 @@ +biblatex-nature - A biblatex implementation of the Nature bibliography style +============================================================================ + +The `biblatex-nature` package provides an implementation of +the bibliography style of the journal Nature for `biblatex`. This +implementation follows standard` biblatex` conventions, and can +be used simply by loading `biblatex` with the appropriate option + + \usepackage[style=nature]{biblatex} + +A demonstration database is provided to show how to format +input for the style. + +The `biblatex-nature` style requires `biblatex` 1.2 or later, +and works with both BibTeX and Biber as the database back-end. diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.bib b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.bib new file mode 100644 index 0000000000..1ccddbf7b8 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.bib @@ -0,0 +1,410 @@ +%% --------------------------------------------------------------- +%% biblatex-nature --- A biblatex implementation of the Nature +%% bibliography style +%% Maintained by Joseph Wright +%% E-mail: joseph.wright at morningstar2.co.uk +%% Released under the LaTeX Project Public License v1.3c or later +%% See http://www.latex-project.org/lppl.txt +%% --------------------------------------------------------------- +%% + +@Report{Allen1961, + hyphenation = {british}, + author = {Allen, R. A. and Smith, D. B. and Hiscott, J. + E.}, + title = {Radioisotope Data}, + institution = {H.M.S.O.}, + location = {London}, + type = {UKAEA Research Group Report}, + number = {AERE-R 2938}, + year = {1961} +} + +@Article{Arduengo1991, + hyphenation = {american}, + author = {Arduengo, III, Anthony J. and Harlow, + Richard L. and Kline, Michael}, + title = {A stable crystalline carbene}, + journaltitle= {J.~Am. Chem. Soc.}, + year = {1991}, + volume = {113}, + pages = {361-363}, + number = {1}, + doi = {10.1021/ja00001a054}, +} + +@Patent{Arduengo2001, + author = {Arduengo, III, Anthony J. and Gentry, Jr., + Frederick P. and Taverkere, Prakash~K. and Simmons, + III, Howard E.}, + title = {Process for manufacture of imidazoles}, + year = {2001}, + type = {patentus}, + holder = {{E.~I. DuPont}}, + number = {6177575}, +} + +@Book{Armarego2003, + hyphenation = {british}, + title = {Purification of Laboratory Chemicals}, + publisher = {Butterworth--Heine\-mann}, + year = {2003}, + author = {Armarego, W. L. F. and Chai, Christina Lin Li}, + location = {London}, + edition = {5}, +} + +@Book{Augustine1995, + hyphenation = {american}, + author = {Augustine, Robert L.}, + title = {Heterogeneous Catalysis for the Synthetic + Chemist}, + shorttitle = {Heterogeneous catalysis}, + publisher = {Marcel Dekker}, + location = {New York}, + year = {1995}, +} + +@Article{Booth1962, + hyphenation = {british}, + author = {Booth, G. and Chatt, J.}, + title = {The reactions of carbon monoxide and nitric + oxide with tertiary phosphine complexes of iron(II), + cobalt(II), and nickel(II)}, + journaltitle = {J.~Chem. Soc.}, + year = {1962}, + pages = {2099-2106}, + doi = {10.1039/JR9620002099}, +} + +@Online{Corina2006, + title = {CORINA: Generation of 3D coordinates}, + url = {http://www.molecular-networks.com/software/corina/index.html}, + year = {2006}, + urlyear = {2006} +} + +@Book{Coghill2006, + hyphenation = {american}, + title = {The ACS Style Guide}, + publisher = {Oxford University Press, Inc. and The + American Chemical Society}, + year = {2006}, + editor = {Coghill, Anne M. and Garson, LorrinR.}, + location = {New York}, + edition = {3} +} + +@Book{Cotton1999, + hyphenation = {british}, + author = {Cotton, Frank Albert and Wilkinson, Geoffrey + and Murillio, Carlos A. and Bochmann, Manfred}, + title = {Advanced Inorganic Chemistry}, + edition = {6}, + publisher = {Wiley}, + location = {Chichester, United Kingdom}, + year = {1999}, +} + +@Article{Danopoulos2008, + author = {Pugh, David and Wright, Joseph A. and + Danopoulos, Andreas A.}, + title = {`Pincer' pyridine dicarbene iridium + complexes: facile C--H activations and unexpected + $\eta^2$-imidazol-2-ylidene coordination}, + journaltitle = {Angew. Chem. Int. Ed.}, + howpublished = {in press} +} + +@Article{Dehnicke1981, + hyphenation = {german}, + author = {Dehnicke, Kurt and Str{\"a}hle, Joachim}, + title = {Die + {\"U}bergangsmetall-Stickstoff-Mehrfachbindung}, + journaltitle = {Angew. Chem.}, + year = {1981}, + volume = {93}, + pages = {451-464}, + number = {5}, + doi = {10.1002/ange.19810930506}, +} + +@Article{Dehnicke1981a, + hyphenation = {british}, + author = {Dehnicke, Kurt and Str{\"a}hle, Joachim}, + title = {The transition metal--nitrogen multiple bond}, + journaltitle = {Angew. Chem., Int. Ed. Engl.}, + year = {1981}, + volume = {20}, + pages = {413-426}, + number = {5}, + doi = {10.1002/anie.198104133}, +} + +@Thesis{Gaunt1999, + hyphenation = {british}, + author = {Gaunt, Matthew James}, + title = {The investigation and design of palladium + catalysed reactions}, + institution = {University of Cambridge}, + year = {1999}, + type = {phdthesis}, + location = {Cambridge, United Kingdom} +} + +@Book{Glorius2007, + hyphenation = {british}, + editor = {Glorius, Frank}, + title = {N-Heterocyclic Carbenes in Transition + Metal Catalysis}, + series = {Topics in Organometallic Chemistry}, + year = {2007}, + volume = {21}, + publisher = {Springer}, + location = {Berlin}, +} + +@Book{Hahn2002, + hyphenation = {british}, + title = {International Tables for Crystallography}, + publisher = {Kluwer Academic Publishers}, + year = {2002}, + editor = {Hahn, Theo}, + volume = {A}, + location = {Dordrecht, Netherlands}, + edition = {5}, +} + +@Book{Hammond1997, + hyphenation = {british}, + author = {Hammond, Christopher}, + title = {The Basics of Crystallography and + Diffraction}, + publisher = {International Union of Crystallography and + Oxford University Press}, + location = {Oxford, United Kingdom}, + year = {1997}, + chapter = {1}, + pages = {1-40} +} + +@InCollection{Henry2002, + hyphenation = {american}, + author = {Henry, Patrick M.}, + title = {The Wacker oxidation and related asymmetric + syntheses}, + booktitle = {Handbook Of Organopalladium Chemistry for + Organic Synthesis}, + publisher = {Wiley Interscience}, + year = {2002}, + editor = {Negishi, Ei-Ichi}, + volume = {2}, + chapter = {V.3.1.1}, + pages = {2119--2140}, + location = {New York}, +} + +@Book{Heyn1986, + hyphenation = {german}, + title = {Anorganische Synthesechemie: ein integriertes + Praktikum}, + publisher = {Springer-Verlag}, + location = {Weinheim, Germany}, + year = {1986}, + author = {Heyn, Bodo and Hippler, B. and Kreisel, G. and + Schreer, H. and Walther, D.}, +} + +@InProceedings{Hope2005, + hyphenation = {american}, + author = {Hope, E. and Bennett, J. and Stuart, A.}, + title = {Fluorous zirconium phosphonates: novel + inorganic supports for catalysis}, + booktitle = {Pacifichem (International Chemical + Congress of Pacific Basin Societies)}, + year = {2005}, + number = {961}, + venue = {Hawaii, USA}, + organization = {Pacific Basin Chemical Societies} +} + +@InCollection{Kabbe1973, + hyphenation = {german}, + author = {Kabbe, H.-J. and Jira, R.}, + title = {Durch Oxidation unter erhalt des + Kohlenstoffger{\"u}stes}, + substitle = {C) Ketone aus Olefinen}, + booktitle = {Ketone}, + booksubtitle = {Teil 1}, + chapter = {III}, + pages = {781--790}, + maintitle = {Methoden der organischen Chemie}, + mainsubtitle = {Houben--Weyl}, + publisher = {Georg Thieme Verlag}, + location = {Stuttgart, Germany}, + year = {1973}, + volume = {VII}, + part = {2a}, + edition = {4} +} + +@Periodical{Kirschning2004, + title = {Topics in Current Chemisty}, + issuetitle = {Immobilized Catalysts}, + publisher = {Springer-Verlag}, + year = {2004}, + editor = {Kirschning, Andreas}, + volume = {242}, + location = {Berlin, Germany and London}, + doi = {10.1007/b94543}, +} + +@Online{Lancaster2003, + author = {Lancaster, Simon J.}, + title = {Alkylation of boron trifluoride with + pentafluorophenyl Grignard reagent}, + year = {2003}, + urldate = {2008-10-08}, + url = {http://www.syntheticpages.org/pages/215} +} + +@Collection{Leeuwen1995, + hyphenation = {british}, + title = {Theoretical Aspects of Homogeneous Catalysis}, + publisher = {Kluwer Academic Press}, + year = {1995}, + editor = {van Leeuwen, Piet W. M. N. and Morokuma, Keiji + and van Lenthe, Joop~H.}, + number = {18}, + series = {Catalysis by Metal Compounds}, + location = {Dordrecht, Netherlands} +} + +@InBook{Muller2006, + hyphenation = {british}, + booktitle = {Crystal Structure Refinement}, + booksubstitle = {A Crystallographer's Guide to SHELXL}, + bookauthor = {M{\"u}ller, Peter and Herbst-Irmer, Regine + and Spek, Anthony L. and Schneider, Thomas R. and Sawaya, + Michael R.}, + publisher = {International Union of Crystallography and + Oxford University Press}, + location = {Oxford, United Kingdom}, + year = {2006}, + title = {A Short History of SHELXL}, + author = {Sheldrick, George M.} +} + +@Collection{Negishi2002, + hyphenation = {american}, + title = {Handbook of Organopalladium Chemistry for + Organic Synthesis}, + publisher = {Wiley Interscience}, + location = {New York}, + year = {2002}, + editor = {Negishi, Ei-Ichi} +} + +@Manual{OxfordDiffraction2006, + hyphenation = {british}, + publisher = {Oxford Diffraction Ltd.}, + title = {ABSPACK, CrysAlis CCD and CrysAlis RED}, + location = {Abingdon, United Kingdom}, + year = {2006}, + version = {1.171} +} + +@Article{Rees2000, + hyphenation = {british}, + author = {Bunge, Scott D. and Just, Oliver and Rees, Jr., + William S.}, + title = {[\{Au[$\mu$-N(SiMe$_3$)$_2$]\}$_4$]: the first + base-free gold amide}, + journaltitle = {Angew. Chem. Int. Ed.}, + year = {2000}, + volume = {39}, + pages = {3082-3084}, + number = {17}, +} + +@Article{Smidt1959, + hyphenation = {german}, + author = {Smidt, J. and Hafner, W. and Jira, R. and + Sedlmeier, J. and Sieber, R. and R{\"u}ttinger, R. and + Kojer, H.}, + title = {Katalytische Umsetzungen von Olefinen an + Platinmetall-Verbindungen}, + journaltitle = {Angew. Chem.}, + year = {1959}, + volume = {71}, + pages = {176--182}, + number = {5}, +} + +@Article{Smidt1962, + hyphenation = {british}, + author = {Smidt, J{\"u}rgen and Hafner, W. and Jira, R. + and Sieber, R. and Sedlmeier, J. and Sabel, A.}, + title = {The oxidation of olefins with palladium + chloride catalysts}, + journaltitle = {Angew. Chem., Int. Ed. Engl.}, + year = {1962}, + volume = {1}, + pages = {80--88}, + number = {2}, + doi = {10.1002/anie.196200801}, +} + +@Article{Sofield2004, + hyphenation = {british}, + author = {Sofield, Chadwick D. and Walter, Marc D. and + Andersen, Richard A.}, + title = {\{Amidobis[$\eta^5$-1,3-bis\-(trimethylsilyl)\relax + \-cyclopentadienyl]titanium(III)\}}, + journaltitle = {Acta Crystallogr., Sect.~C: Cryst. Struct. + Commun.}, + year = {2004}, + doi = {10.1107/S0108270104018840}, +} + +@Proceedings{Toulouse1980, + title = {Proceedings of the 21st International + Conference on Coordination Chemistry}, + venue = {Toulouse, France}, + year = {1980}, +} + +@Book{Wilson1992, + hyphenation = {british}, + title = {Mathematical, Physical and Chemical Tables}, + maintitle = {International Tables for Crystallography}, + publisher = {Kluwer Academic Publishers}, + year = {1992}, + editor = {Wilson, A. J. C. and Prince, E.}, + volume = {C}, + location = {Dordrecht, Netherlands}, + edition = {3}, +} + +%% +%% Copyright (C) 2010-2013,2016-2018 by +%% Joseph Wright <joseph.wright at morningstar2.co.uk> +%% +%% It may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License (LPPL), either version 1.3c of +%% this license or (at your option) any later version. The latest +%% version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Joseph Wright. +%% +%% This work consists of the file biblatex-nature.bib, +%% biblatex-nature.tex, +%% nature.bbx and +%% nature.cbx, +%% and the derived file biblatex-nature.pdf. +%% +%% +%% End of file `biblatex-nature.bib'.
\ No newline at end of file diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.pdf Binary files differnew file mode 100644 index 0000000000..4e68c441fd --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.pdf diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.tex b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.tex new file mode 100644 index 0000000000..843199df94 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/biblatex-nature.tex @@ -0,0 +1,123 @@ +%% --------------------------------------------------------------- +%% biblatex-nature --- A biblatex implementation of the Nature +%% bibliography style +%% Maintained by Joseph Wright +%% E-mail: joseph.wright@morningstar2.co.uk +%% Released under the LaTeX Project Public License v1.3c or later +%% See http://www.latex-project.org/lppl.txt +%% --------------------------------------------------------------- +%% + +\documentclass[a4paper]{ltxdoc} +\usepackage[T1]{fontenc} +\usepackage[backend=biber,style=nature]{biblatex} +\usepackage[final]{microtype} +\usepackage{csquotes,lmodern} +\usepackage{hyperref} + +\hypersetup{hidelinks} + +\addbibresource{biblatex-nature.bib} + +\author{Joseph Wright\thanks{E-mail: + \href{mailto:joseph.wright@morningstar2.co.uk} + {\texttt{joseph.wright@morningstar2.co.uk}}}} +\title{The \pkg{nature} bibliography style for \pkg{biblatex}% + \footnote{This file describes v1.3c, last revised 2018/10/18.}} +\date{Released 2018/10/18} + +\providecommand*{\opt}[1]{\texttt{#1}} +\providecommand*{\pkg}[1]{\textsf{#1}} + +\let\DescribeOption\DescribeEnv + +\RecordChanges + +\begin{document} + +\maketitle + +This package provides a style for \pkg{biblatex} which follows the +guidelines of the journal \emph{Nature}. The citation style is numeric +and unsorted. The bibliography style follows the pattern of the layout +used in the journal. The style should be loaded in the usual way +\begin{verbatim} +\usepackage[style=nature]{biblatex} +\end{verbatim} +The References section of this document demonstrates the format +generated by the package using the \texttt{biblatex-nature.bib} database +of example citations. + +\DescribeOption{articletitle} +Article titles are not always included in the bibliography: for example, +standard articles in \emph{Nature} use these but \emph{Letters to the Editor} +do not. To control this behaviour, the boolean option \opt{articletitle} +is provided; this is set \opt{true} as standard. + +\DescribeOption{intitle} +The boolean option \opt{intitle} determines whether the title of books +is printed for \texttt{inbook} and \texttt{incollection} entries. It is +set \opt{false} as standard. + +Suggestions for improvement and bug reports can be logged in the package +issue database, found at +\url{https://github.com/josephwright/biblatex-nature/issues}, or can +be sent by e-mail to +\href{mailto:joseph.wright@morningstar2.co.uk} + {\texttt{joseph.wright@morningstar2.co.uk}}. + +\nocite{*} + +\printbibliography + +\changes{v1.0}{2010/11/20}{First stable release} +\changes{v1.0a}{2011/01/10}{Use new \opt{maxbibnames} option in + \pkg{biblatex} v1.1} +\changes{v1.1}{2011/02/27}{Heavily revise style internals to aid + long-term maintenance} +\changes{v1.1}{2011/02/27}{Print location for all cases where relevant} +\changes{v1.1a}{2011/03/11}{Change log updates} +\changes{v1.2}{2011/09/13}{New \opt{articletitle} option} +\changes{v1.2a}{2012/05/18}{Fix issue with \texttt{inbook} entries which + lack distinct \texttt{author} and \texttt{bookauthor}} +\changes{v1.2b}{2012/06/07}{Remove some extraneous warnings} +\changes{v1.2c}{2013/01/27}{Include related data} +\changes{v1.2d}{2013/05/09}{Minor adjustment to \textsc{url} formatting + to allow for OT1 encoding} +\changes{v1.2e}{2013/05/20}{Include article title for \texttt{inproceedings} + entries when the \opt{articletitle} option is \opt{true}} +\changes{v1.2f}{2016/03/10}{Track \pkg{biblatex} changes} +\changes{v1.2g}{2016/03/13}{Ensure style works with both backends} +\changes{v1.2h}{2016/09/13}{Work properly with \texttt{urldate} option} +\changes{v1.3}{2016/10/22}{New \opt{intitle} option} +\changes{v1.3a}{2016/10/26}{Correct \opt{intitle} default value} +\changes{v1.3b}{2017/03/01}{Update \texttt{url} formatting} +\changes{v1.3c}{2018/10/18}{Better \texttt{doi} support} +\changes{v1.3c}{2018/10/18}{Better \texttt{related} support} + +\PrintChanges + +\end{document} + +%% +%% Copyright (C) 2010-2013,2016-2018 by +%% Joseph Wright <joseph.wright@morningstar2.co.uk> +%% +%% It may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License (LPPL), either version 1.3c of +%% this license or (at your option) any later version. The latest +%% version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Joseph Wright. +%% +%% This work consists of the file biblatex-nature.bib, +%% biblatex-nature.tex, +%% nature.bbx and +%% nature.cbx, +%% and the derived file biblatex-nature.pdf. +%% +%% +%% End of file `biblatex-nature.tex'. diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.bbx new file mode 100644 index 0000000000..bd9efec403 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.bbx @@ -0,0 +1,713 @@ +%% --------------------------------------------------------------- +%% biblatex-nature --- A biblatex implementation of the Nature +%% bibliography style +%% Maintained by Joseph Wright +%% E-mail: joseph.wright@morningstar2.co.uk +%% Released under the LaTeX Project Public License v1.3c or later +%% See http://www.latex-project.org/lppl.txt +%% --------------------------------------------------------------- +%% + +\ProvidesFile{nature.bbx}[2018/10/18 v1.3c biblatex bibliography style] + +% Load the standard style to avoid copy-pasting unnecessary material +\RequireBibliographyStyle{numeric-comp} + +% New options +\newtoggle{bbx:articletitle} +\DeclareBibliographyOption{articletitle}[true]{% + \settoggle{bbx:articletitle}{#1}% +} +\newtoggle{bbx:intitle} +\DeclareBibliographyOption{intitle}[true]{% + \settoggle{bbx:intitle}{#1}% +} + +\ExecuteBibliographyOptions{ + articletitle , + doi = false , + giveninits , + maxnames = 5 , + maxcitenames = 2 , + punctfont , + urldate = year , + useprefix , +} + +\@ifpackagelater{biblatex}{2016/03/27} + {\ExecuteBibliographyOptions{giveninits}} + {\ExecuteBibliographyOptions{firstinits}} + +% Modify the name format +\@ifpackagelater{biblatex}{2016/03/27} + { + \DeclareNameFormat{default}{% + \nameparts{#1}% + \usebibmacro{name:family-given} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix}% + \usebibmacro{name:andothers}% + } + } + { + \DeclareNameFormat{default}{% + \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% + \usebibmacro{name:andothers}% + } + } + +% Field formats for the bibliography environment +\DeclareFieldFormat{labelnumberwidth}{#1\adddot} + +% Custom field formats +\DeclareFieldFormat*{booktitle}{\mkbibemph{#1}\nopunct} +\DeclareFieldFormat{doi}{% + doi\addcolon + \ifhyperref + {\href{http://dx.doi.org/#1}{\nolinkurl{#1}}} + {\nolinkurl{#1}}% +} +\DeclareFieldFormat*{pages}{#1} +\DeclareFieldFormat[book,collection]{number}{\mkbibbold{#1}} +\DeclareFieldFormat*{series}{\mkbibemph{#1}\nopunct} +\DeclareFieldFormat*{title}{\mkbibemph{#1}\nopunct} +\DeclareFieldFormat[article]{title}{#1} +\DeclareFieldFormat[patent]{type}{% + \mkbibemph{% + \ifbibstring{#1}{\bibstring{#1}}{#1}% + }% +} +\DeclareFieldFormat{url}{\url{#1}} +\DeclareFieldFormat{urldate}{\mkbibparens{#1}} +\DeclareFieldFormat*{volume}{\mkbibbold{#1}} +\DeclareFieldFormat[book]{volume}{#1} + +% Simple modifications to punctuation, etc. +\renewcommand*{\finalnamedelim}{\addspace\&\addspace} +\renewcommand*{\intitlepunct}{\addspace} + +% Bibliography strings +\DefineBibliographyStrings{english}{ + editor = ed , + editors = eds , + patentus = US Patent , +} + +% Bibliography macros +\renewbibmacro*{byeditor+others}{% + \ifnameundef{editor} + {} + {% + \nopunct + \printtext[parens]{\usebibmacro{editor}}% + \clearname{editor}% + \nopunct + }% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}% +} + +\renewbibmacro*{chapter+pages}{% + \iffieldundef{pages} + {\printfield{chapter}} + {}% + \setunit{\bibpagespunct}% + \printfield{pages}% + \newunit +} + +\renewbibmacro*{editor}{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {% + \midsentence + \usebibmacro{editorstrg}% + \setunit{\addspace}% + \printnames{editor}% + \clearname{editor}% + } + {}% +} + +\renewbibmacro*{editor+others}{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {% + \nopunct + \printtext[parens]{\usebibmacro{editor}} + \clearname{editor}% + \nopunct + } + {}% +} + +\renewbibmacro*{event+venue+date}{% + \printfield{eventtitle}% + \ifboolexpr{ + test {\iffieldundef{venue}} + and + test {\iffieldundef{eventyear}} + } + {} + {% + \printfield{venue}% + \setunit*{\addcomma\space}% + \printeventdate + }% + \newunit +} + +\renewbibmacro*{in:}{% + \printtext{\biblcstring{in}\intitlepunct}% +} + +\renewbibmacro*{institution+location+date}{% + \nopunct + \printtext[parens]{% + \printlist{institution}% + \setunit*{\addcomma\space}% + \printlist{location}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + }% +} + +\renewbibmacro*{issue+date}{% + \iffieldundef{year} + {} + {% + \iffieldundef{issue} + {\printtext[parens]{\usebibmacro{date}}} + {% + \printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}% + }% + }% + }% + \newunit +} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {% + \newunit + \printfield{series}% + \setunit{\addspace}% + }% + \printfield{volume}% + \newunit + \usebibmacro{issue}% + \newunit +} + +\renewbibmacro*{name:andothers}{% + \ifboolexpr + { + test {\ifnumequal{\value{listcount}}{\value{liststop}}} + and + test \ifmorenames + } + { + \ifnumgreater{\value{liststop}}{1} + {\finalandcomma} + {}% + \andothersdelim + \mkbibemph{\bibstring{andothers}}% + } + {}% +} + +\renewbibmacro*{name:last-first}[4]{% + \ifuseprefix + {% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3}{} + {% + \ifcapital + {\mkbibnameprefix{\MakeCapital{#3}}\isdot} + {\mkbibnameprefix{#3}\isdot}% + \ifpunctmark{'}{}{\addhighpenspace}% + }% + \mkbibnamelast{#1}\isdot + \ifblank{#2} + {}{\addcomma\addlowpenspace\mkbibnamefirst{#2}\isdot}% + \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}% + } + {% + \usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamelast{#1}\isdot + \ifblank{#2#3}{}{\addcomma}% + \ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}\isdot}% + \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}% + \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}% + }% +} + +\renewbibmacro*{publisher+location+date}{% + \nopunct + \printtext[parens]{% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \printlist{location}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + }% +} + +\renewbibmacro*{series+number}{% + \iffieldundef{number} + {} + {% + \printfield{series}% + \setunit*{\addspace}% + \printfield{number}% + \newunit + }% +} + +\newbibmacro*{title+volume}{% + \printfield{title}% + \setunit*{\addspace}% + \printfield{volume}% + \newunit +} + +% New bibliography drivers, using the required order of fields. These +% are mainly copied from standard.bbx then modified. +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \iftoggle{bbx:articletitle} + {% + \usebibmacro{title}% + \newblock + } + {}% + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \usebibmacro{note+pages}% + \newunit + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \setunit{\addspace}\newblock + \usebibmacro{issue+date}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{maintitle+title}% + \setunit{\addspace}% + \printfield{edition}% + \newunit\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{collection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{maintitle+title}% + \newunit + \usebibmacro{editor+others}% + \setunit{\labelnamepunct}\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \iftoggle{bbx:intitle} + {% + \usebibmacro{title}% + \newblock + } + {}% + \usebibmacro{in:}% + \usebibmacro{bybookauthor}% + \setunit*{\newunitpunct}\newblock + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \iftoggle{bbx:intitle} + {% + \usebibmacro{title}% + \newblock + } + {}% + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \iftoggle{bbx:articletitle} + {% + \usebibmacro{title}% + \newblock + } + {}% + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{online}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{version}% + \newunit + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit\newblock + \iftoggle{bbx:eprint} + {\usebibmacro{eprint}} + {}% + \newunit\newblock + \usebibmacro{url+urldate}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{patent}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \nopunct + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{type}% + \setunit*{\addspace}% + \printfield{number}% + \iflistundef{location} + {} + {\setunit*{\addspace}% + \printtext[parens]{% + \printlist[][-\value{listtotal}]{location}}}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \nopunct + \printfield[parens]{year}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \printfield{issuetitle}% + \setunit{\addspace}% + \printfield{edition}% + \newunit\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{title+volume}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \iffieldundef{year} + {\usebibmacro{doi+eprint+url}} + {}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +%% +%% Copyright (C) 2010-2013,2016-2018 by +%% Joseph Wright <joseph.wright@morningstar2.co.uk> +%% +%% It may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License (LPPL), either version 1.3c of +%% this license or (at your option) any later version. The latest +%% version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Joseph Wright. +%% +%% This work consists of the file biblatex-nature.bib, +%% biblatex-nature.tex, +%% nature.bbx and +%% nature.cbx, +%% and the derived file biblatex-nature.pdf. +%% +%% +%% End of file `nature.bbx'. diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.cbx new file mode 100644 index 0000000000..5652d22f14 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-nature/nature.cbx @@ -0,0 +1,42 @@ +%% --------------------------------------------------------------- +%% biblatex-nature --- A biblatex implementation of the Nature +%% bibliography style +%% Maintained by Joseph Wright +%% E-mail: joseph.wright@morningstar2.co.uk +%% Released under the LaTeX Project Public License v1.3c or later +%% See http://www.latex-project.org/lppl.txt +%% --------------------------------------------------------------- +%% + +\ProvidesFile{nature.cbx}[2018/10/18 v1.3c biblatex citation style] + +\RequireCitationStyle{numeric-comp} + +\ExecuteBibliographyOptions{ + autocite = superscript , + autopunct = false , + sorting = none , +} + +%% +%% Copyright (C) 2010-2013,2016-2018 by +%% Joseph Wright <joseph.wright@morningstar2.co.uk> +%% +%% It may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License (LPPL), either version 1.3c of +%% this license or (at your option) any later version. The latest +%% version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Joseph Wright. +%% +%% This work consists of the file biblatex-nature.bib, +%% biblatex-nature.tex, +%% nature.bbx and +%% nature.cbx, +%% and the derived file biblatex-nature.pdf. +%% +%% +%% End of file `nature.cbx'. |