From cc9fc8c1031222ff0f0899b0119f8166de180e37 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 14 Jul 2012 23:30:42 +0000 Subject: new package biblatex-phys 0.9 (12jul12) git-svn-id: svn://tug.org/texlive/trunk@27058 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/biblatex-phys/README | 20 + .../doc/latex/biblatex-phys/biblatex-phys.bib | 409 +++++++++++++++++++++ .../doc/latex/biblatex-phys/biblatex-phys.pdf | Bin 0 -> 376219 bytes .../doc/latex/biblatex-phys/biblatex-phys.tex | 183 +++++++++ Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx | 409 +++++++++++++++++++++ Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx | 43 +++ 6 files changed, 1064 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/biblatex-phys/README create mode 100644 Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.bib create mode 100644 Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.pdf create mode 100644 Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.tex create mode 100644 Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/biblatex-phys/README b/Master/texmf-dist/doc/latex/biblatex-phys/README new file mode 100644 index 00000000000..0daccac47e0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-phys/README @@ -0,0 +1,20 @@ +---------------------------------------------------------------- +biblatex-phys --- A biblatex implementation of the AIP and APS + 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 +---------------------------------------------------------------- + +The biblatex-phys package provides an implementation of the +bibliography styles of both the AIP and the APS for biblatex. +This implementation follows standard biblatex conventions, and +can be used simply by loading biblatex with the appropriate option + + \usepackage[style=phys]{biblatex} + +A demonstration database is provided to show how to format +input for the style. Style options are provided to cover the +minor formatting variations between the AIP and APS bibliography +styles. diff --git a/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.bib b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.bib new file mode 100644 index 00000000000..9d2553f31b6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.bib @@ -0,0 +1,409 @@ +%% --------------------------------------------------------------- +%% biblatex-phys --- A biblatex implementation of the AIP and APS +%% 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.}, + date = {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}, + date = {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 + {C}hemist}, + shorttitle = {Heterogeneous catalysis}, + publisher = {Marcel Dekker}, + location = {New York}, + date = {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.}, + date = {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}, + date = {2006} +} + +@Book{Coghill2006, + hyphenation = {american}, + title = {The ACS Style Guide}, + publisher = {Oxford University Press, Inc. and The + American Chemical Society}, + date = {2006}, + editor = {Coghill, Anne M. and Garson, Lorrin R.}, + 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}, + date = {1999}, +} + +@Article{Danopoulos2008, + author = {Pugh, David and Wright, Joseph A. and + Danopoulos, Andreas A.}, + title = {`{P}incer' pyridine dicarbene iridium + complexes: facile {C}--{H} activations and unexpected + $\eta^2$-imidazol-2-ylidene coordination}, + journaltitle = {Angew. Chem. Int. Ed.}, + note = {in press} +} + +@Article{Dehnicke1981, + hyphenation = {german}, + author = {Dehnicke, Kurt and Str{\"a}hle, Joachim}, + title = {Die + {{\"U}}bergangsmetall-{S}tickstoff-{M}ehrfachbindung}, + journaltitle = {Angew. Chem.}, + date = {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.}, + date = {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}, + date = {2007}, + volume = {21}, + publisher = {Springer}, + location = {Berlin}, +} + +@Book{Hahn2002, + hyphenation = {british}, + title = {International Tables for Crystallography}, + publisher = {Kluwer Academic Publishers}, + date = {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}, + date = {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}, + date = {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}, + date = {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)}, + date = {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}, + date = {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}, + date = {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}, + date = {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}, + date = {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}, + date = {2002}, + editor = {Negishi, Ei-Ichi} +} + +@Manual{OxfordDiffraction2006, + hyphenation = {british}, + publisher = {Oxford Diffraction Ltd.}, + title = {ABSPACK, CrysAlis CCD and CrysAlis RED}, + location = {Abingdon, United Kingdom}, + date = {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.}, + date = {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 = {{K}atalytische {U}msetzungen von {O}lefinen an + {P}latinmetall-{V}erbindungen}, + journaltitle = {Angew. Chem.}, + date = {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.}, + date = {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 = {\{{A}midobis[$\eta^5$-1,3-bis\-(trimethylsilyl)% + \-cyclopentadienyl]titanium({III})\}}, + journaltitle = {Acta Crystallogr., Sect.~C: Cryst. Struct. + Commun.}, + date = {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}, + date = {1992}, + editor = {Wilson, A. J. C. and Prince, E.}, + volume = {C}, + location = {Dordrecht, Netherlands}, + edition = {3}, +} + +%% +%% Copyright (C) 2012 by +%% Joseph Wright +%% +%% 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 files biblatex-phys.bib, +%% biblatex-phys.tex, +%% phys.bbx and +%% phys.cbx, +%% and the derived file biblatex-phys.pdf. +%% +%% +%% End of file `biblatex-phys.bbx'. \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.pdf b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.pdf new file mode 100644 index 00000000000..57793cea26e Binary files /dev/null and b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.tex b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.tex new file mode 100644 index 00000000000..8beef63dc69 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-phys/biblatex-phys.tex @@ -0,0 +1,183 @@ +%% --------------------------------------------------------------- +%% biblatex-phys --- A biblatex implementation of the AIP and APS +%% 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=bibtex,style=phys]{biblatex} +\usepackage[final]{microtype} +\usepackage{csquotes,lmodern} +\usepackage{hyperref} + +\hypersetup{hidelinks} + +\addbibresource{biblatex-phys.bib} + +\author{Joseph Wright\thanks{E-mail: + \href{mailto:joseph.wright@morningstar2.co.uk} + {\texttt{joseph.wright@morningstar2.co.uk}}}} +\title{\pkg{biblatex-phys} -- A \pkg{biblatex} implementation of the + \textsc{aip} and \textsc{aps} bibliography style% + \footnote{This file describes v0.9, last revised 2012/07/12.}} +\date{Released 2012/07/12} + +\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 \textsc{aip} and \textsc{aps}. The citation style is numeric +and unsorted. The bibliography style follows the pattern of the official +REV\TeX{} class (\url{http://ctan.org/pkg/revtex}). The style should be loaded +in the usual way +\begin{verbatim} + \usepackage[style=phys]{biblatex} +\end{verbatim} +Load-time options are provided to deal with the small number of variations +between the \textsc{aip} and \textsc{aps} styles. +The References section of this document demonstrates the format +generated by the package using the \texttt{biblatex-phys.bib} database +of example citations. + +The styles use the standard \pkg{biblatex} database requirements. This means +that a database designed for traditional \pkg{biblatex} use may need some +editing for optimal output. The accompanying example database +\texttt{biblatex-phys.bib} shows examples of all of the supported entry types +with common fields filled in. + +\section{Style options} + +All of the styles here add a small number of package options to the standard +set provided by \pkg{biblatex}. This allows the styles to cover the variations +seen between the \textsc{aip} and \textsc{aps} styles. + +\DescribeOption{doi} +\DescribeOption{eprint} +\DescribeOption{isbn} +\DescribeOption{url} +The standard style options \opt{doi}, \opt{eprint} \opt{isbn} and +\opt{eprint}, as described in the \pkg{biblatex} manual. However, these +options are turned off as standard by the \pkg{phys} style. This reflects the +fact that these entries may be present in reference databases but are not +generally included in published bibliographies. Note that \textsc{doi} values +are printed for journal articles with no pages given, even if the \opt{doi} +option is \opt{false}. + +\DescribeOption{subentry} +In common with the standard \pkg{biblatex} numeric styles, all of the styles +in the bundle support the boolean \texttt{subentry} option. With this set +\opt{true}, entries of type \texttt{set} are given individual labels within +the bibliography. + +\DescribeOption{articletitle} +The use of article titles varies between the \textsc{aip} and \textsc{aps} +styles. The boolean option \opt{articletitle} is available is control this +behaviour. The standard settings is \opt{true}, which follows the guidelines of +the \textsc{aip}: it should be set to \opt{false} to follow the \textsc{aps} +style. (This option also applies to the titles of proceedings entries and +patents, which are treated in the same way.) + +\DescribeOption{biblabel} +The format of the numbers used in the bibliography (the \enquote{bibliography +label}) varies. he \opt{biblabel} option allows the user to easily set the +format used. This option takes a values \opt{superscript} (the standard +setting) and \opt{brackets}. + +\DescribeOption{chaptertitle} +Printing chapter titles for \texttt{incollection} entries is part of the +\textsc{aip} style but is not part of the \textsc{aps} style. The +\opt{chaptertitle} option can be used to control this. + +\DescribeOption{pageranges} +The inclusion of the full page range of journal articles varies between the +\textsc{aip} and \textsc{aps} styles. The boolean option \opt{pageranges} is +available is control this behaviour. The standard settings is \opt{true}, +which follows the guidelines of the \textsc{aip} and prints the full range: +it should be set to \opt{false} to follow the \textsc{aps} style, which will +result in only the first page being printed. + +\subsection{\textsc{aip} and \textsc{aps} styles} + +As detailed above, the standard settings follow the \textsc{aip} style. +To obtain the \textsc{aps} style, use +\begin{verbatim} + \usepackage[% + style=phys,% + articletitle=false,biblabel=brackets,% + chaptertitle=false,pageranges=false% + ] + {biblatex} +\end{verbatim} + +\section{\textsc{url} formatting} + +The style uses the \pkg{url} package to format hyperlinks. As such, the +format of these is left to the document author to alter. The \cs{urlstyle} +command may be used to alter this, either for the whole document or only +for the bibliography, for example by using +\begin{verbatim} +\AtBeginBibliography{% + \urlstyle{rm}% +} +\end{verbatim} + +\section{Interaction with \pkg{babel}} + +In common with other \pkg{biblatex} styles, \pkg{biblatex-phys} uses the +\pkg{csquotes} package mechanism to place article titles in quotation marks. +This means that the formatting of these will depend on the \pkg{babel} +language in use. Full details are covered in the manuals for \pkg{biblatex} +and \pkg{csquotes}. + +\section{Errors and omissions} + +Suggestions for improvement and bug reports can be logged in the package issue +database, found at +\url{https://bitbucket.org/josephwright/biblatex-phys/issues}, or can +be sent by e-mail to +\href{mailto:joseph.wright@morningstar2.co.uk} + {\texttt{joseph.wright@morningstar2.co.uk}}. + +\nocite{*} + +\printbibliography + +\PrintChanges + +\end{document} + +%% +%% Copyright (C) 2012 by +%% Joseph Wright +%% +%% 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 files biblatex-phys.bib, +%% biblatex-phys.tex, +%% biblatex-phys.tex, +%% phys.bbx and +%% phys.cbx, +%% and the derived file biblatex-phys.pdf. +%% +%% End of file `biblatex-phys.tex'. \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx b/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx new file mode 100644 index 00000000000..037202ccd4c --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-phys/phys.bbx @@ -0,0 +1,409 @@ +%% --------------------------------------------------------------- +%% biblatex-phys --- A biblatex implementation of the AIP and APS +%% 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{phys.bbx}[2012/07/12 v0.9 biblatex bibliography style] + +% Load the standard style to avoid copy-pasting unnecessary material +\RequireBibliographyStyle{numeric-comp} + +% New options +\newtoggle{bbx:articletitle} +\newtoggle{bbx:chaptertitle} +\newtoggle{bbx:pageranges} +\DeclareBibliographyOption{articletitle}[true]{% + \settoggle{bbx:articletitle}{#1}% +} +\DeclareBibliographyOption{chaptertitle}[true]{% + \settoggle{bbx:chaptertitle}{#1}% +} +\DeclareBibliographyOption{pageranges}[true]{% + \settoggle{bbx:pageranges}{#1}% +} +\DeclareBibliographyOption{biblabel}{% + \ifstrequal{#1}{brackets} + {% + \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{##1}}% + \setlength{\biblabelsep}{10 pt}% + } + {% + \DeclareFieldFormat{labelnumberwidth}{\mkbibsuperscript{##1}}% + \setlength{\biblabelsep}{0 pt}% + }% +} + +% Alter settings that carry through from biblatex +\ExecuteBibliographyOptions + { + articletitle = true , + chaptertitle = true , + biblabel = superscript, + doi = false , + eprint = false , + firstinits = true , + isbn = false , + maxnames = 999 , + maxcitenames = 2 , + pageranges = true , + url = false + } + +% Modify the name format +\DeclareNameFormat{default}{% + \usebibmacro{name:first-last}{#1}{#4}{#5}{#7}% + \usebibmacro{name:andothers}% +} + +\renewbibmacro*{name:first-last}[4]{% + \usebibmacro{name:delim}{#2#3#1}% + \usebibmacro{name:hook}{#2#3#1}% + \ifblank{#2}{}{\mkbibnamefirst{#2}\isdot\bibnamedelimd}% + \ifblank{#3}{}{% + \mkbibnameprefix{#3}\isdot + \ifpunctmark{'} + {} + {\ifuseprefix{\bibnamedelimc}{\bibnamedelimd}}}% + \mkbibnamelast{#1}\isdot + \ifblank{#4}{} + {\addcomma\space\mkbibnameaffix{#4}\isdot}% +} + +% Custom field formats +\DeclareFieldFormat[inproceedings]{booktitle}{#1} +\DeclareFieldFormat[online]{date}{\mkbibparens{#1}\nopunct} +\DeclareFieldFormat{doi}{% + \ifhyperref + {\href{http://dx.doi.org/#1}{\nolinkurl{#1}}} + {\nolinkurl{#1}}% +} +\DeclareFieldFormat{journaltitle}{#1\isdot} +\DeclareFieldFormat[article]{pages}{% + \iftoggle{bbx:pageranges}{#1}{\mkfirstpage{#1}}% +} +\DeclareFieldFormat[article,inproceedings,patent]{title}{% + \iftoggle{bbx:articletitle} + {\mkbibquote{#1\isdot}} + {}% +} +\DeclareFieldFormat[incollection]{title}{% + \iftoggle{bbx:chaptertitle} + {\mkbibquote{#1\isdot}} + {}% +} +\DeclareFieldFormat{url}{\url{#1}} +\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}} +\DeclareFieldFormat{year}{\mkbibparens{#1}} + +% Simple modifications to punctuation, etc. +\renewcommand*{\intitlepunct}{\addspace} +\renewcommand*{\newunitpunct}{\addcomma\space} + +% Bibliography strings +\DefineBibliographyStrings{english}{% + byeditor = edited by, + chapter = Chap\adddot, + volume = Vol\adddot +} + +% Bibliography macros +\renewbibmacro*{chapter+pages}{% + \setunit{\addspace}% + \printfield{chapter}% + \setunit{\bibpagespunct}% + \printfield{pages}% + \newunit +} + +\renewbibmacro*{institution+location+date}{% + \setunit{\addspace}% + \printtext[parens]{% + \printlist{institution}% + \newunit + \printlist{location}% + \newunit + \usebibmacro{date}% + }% +} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \usebibmacro{issue}% + \newunit +} + +\renewbibmacro*{maintitle+booktitle}{% + \iffieldundef{maintitle} + {} + {% + \usebibmacro{maintitle}% + \newunit + }% + \usebibmacro{booktitle}% + \newunit\newblock + \iffieldundef{volume} + {} + {% + \printfield{volume}% + \clearfield{volume}% + \printfield{part}% + \clearfield{part}% + }% + \newunit +} + +\newbibmacro*{organization+date}{% + \setunit{\addspace}% + \printtext[parens]{% + \printlist{organization}% + \newunit + \usebibmacro{date}% + }% + \newunit +} + +\renewbibmacro*{publisher+location+date}{% + \setunit{\addspace}% + \printtext[parens]{% + \printlist{publisher}% + \newunit + \printlist{location}% + \newunit + \usebibmacro{date}% + }% + \newunit +} + +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \newunit + \printfield{eid}% +} + +% 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 + \usebibmacro{title}% + \newunit + \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\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \setunit{\addspace}% + \printfield{year}% + \newunit\newblock + \iffieldundef{pages} + {% + \iftoggle{bbx:doi} + {} + {\printfield{doi}}% + } + {}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{organization+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 + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{patent}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{type}% + \setunit*{\addspace}% + \printfield{number}% + \iflistundef{location} + {} + {\setunit*{\addspace}% + \printtext[parens]{% + \printlist[][-\value{listtotal}]{location}}}% + \setunit{\addspace}% + \printtext[parens]{% + \usebibmacro{byholder}% + \newunit + \usebibmacro{date}% + }% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{finentry}% +} + +% Deal with repeated names or journals in entry sets: based on +% http://tex.stackexchange.com/a/63013 +\DeclareBibliographyDriver{set}{% + \entryset + {% + \ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \setunit*{\addnbspace}} + {}% + } + {% + \ifnumequal{\thefield{entrysetcount}}{1} + {% + \savefield{journaltitle}{\bbx@set@journal}% + \savefield{namehash}{\bbx@set@namehash}% + } + {}% + }% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry + \global\undef\bbx@set@namehash + \global\undef\bbx@set@journal +} + +\renewbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {% + \iffieldequals{namehash}{\bbx@set@namehash} + {\nopunct} + {% + \global\undef\bbx@set@namehash + \printnames{author}% + \iffieldundef{authortype} + {} + {% + \setunit{\addcomma\space}% + \usebibmacro{authorstrg}% + }% + }% + } + {}% +} + +\renewbibmacro*{journal}{% + \iffieldundef{journaltitle} + {} + {% + \iffieldequals{journaltitle}{\bbx@set@journal} + {\bibstring[\mkibid]{ibidem}} + {% + \global\undef\bbx@set@journal + \printtext[journaltitle]{% + \printfield[titlecase]{journaltitle}% + \setunit{\subtitlepunct}% + \printfield{journalsubtitle}% + }% + }% + }% +} + +%% +%% Copyright (C) 2012 by +%% Joseph Wright +%% +%% 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 files biblatex-phys.bib, +%% biblatex-phys.tex, +%% phys.bbx and +%% phys.cbx, +%% and the derived file biblatex-phys.pdf. +%% +%% +%% End of file `phys.bbx'. \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx b/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx new file mode 100644 index 00000000000..84a0ed9b009 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-phys/phys.cbx @@ -0,0 +1,43 @@ +%% --------------------------------------------------------------- +%% biblatex-phys --- A biblatex implementation of the AIP and APS +%% 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{phys.cbx}[2012/07/12 v0.9 biblatex citation style] + +\RequireCitationStyle{numeric-comp} + +\ExecuteBibliographyOptions + { + autocite = superscript, + autopunct = false , + sorting = none + } + +%% +%% Copyright (C) 2012 by +%% Joseph Wright +%% +%% 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 files biblatex-phys.bib, +%% biblatex-phys.tex, +%% phys.bbx and +%% phys.cbx, +%% and the derived file biblatex-phys.pdf. +%% +%% +%% End of file `phys.cbx'. -- cgit v1.2.3