\ProvidesFile{chem-angew.bbx} [2010/10/14 v0.9g biblatex bibliography style] \ExecuteBibliographyOptions{labelnumber,maxnames=999} \newbibmacro*{begentry}{} \newbibmacro*{finentry}{\finentry} % Option handling \providebool{bbx:articletitle} \providebool{bbx:chaptertitle} \providebool{bbx:doi} \providebool{bbx:pageranges} \providebool{bbx:subentry} \DeclareBibliographyOption{articletitle}[true]{% \setbool{bbx:articletitle}{#1}} \DeclareBibliographyOption{chaptertitle}[true]{% \setbool{bbx:chaptertitle}{#1}} \DeclareBibliographyOption{biblabel}{% \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{##1}}% \def\@tempa{plain}% \def\@tempb{#1}% \ifx\@tempa\@tempb \DeclareFieldFormat{labelnumberwidth}{##1}% \fi \def\@tempa{parens}% \ifx\@tempa\@tempb \DeclareFieldFormat{labelnumberwidth}{\mkbibparens{##1}}% \fi \def\@tempa{dot}% \ifx\@tempa\@tempb \DeclareFieldFormat{labelnumberwidth}{##1\adddot\midsentence}% \fi } \DeclareBibliographyOption{doi}[true]{% \setbool{bbx:doi}{#1}} \DeclareBibliographyOption{pageranges}[true]{% \setbool{bbx:pageranges}{#1}} \DeclareBibliographyOption{subentry}[true]{% \setbool{bbx:subentry}{#1}} \ExecuteBibliographyOptions{biblabel=brackets,pageranges=true} % The standard aliases \DeclareNameAlias{author}{default} \DeclareNameAlias{editor}{default} % Some basic formatting \DeclareFieldFormat{bibentrysetcount}{% \mknumalph{#1})} \DeclareFieldFormat[inproceedings]{booktitle}{#1} \DeclareFieldFormat{doi}{% DOI\addspace \ifhyperref {\href{http://dx.doi.org/#1}{\nolinkurl{#1}}} {\nolinkurl{#1}}} \DeclareFieldFormat{journaltitle}{\mkbibemph{#1\isdot}} \DeclareFieldFormat[article]{pages}{% \ifbool{bbx:pageranges}{#1}{\mkpagefirst{#1}}% } \DeclareFieldFormat{parens}{\mkbibparens{#1}} \DeclareFieldFormat{part}{\addslash#1}% physical part of a logical volume \DeclareFieldFormat{removecomma}{\bbx@comma@remove{#1}} \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} \DeclareFieldFormat{title}{#1} \DeclareFieldFormat[article]{title}{#1} \DeclareFieldFormat[book]{title}{\mkbibemph{#1}} \DeclareFieldFormat[collection]{title}{\mkbibemph{#1}} \DeclareFieldFormat[patent]{type}{\ifbibstring{#1}{% \mkbibemph{\bibstring{#1}}}{\mkbibemph{#1}}} \DeclareFieldFormat{url}{\url{#1}} \DeclareFieldFormat[article]{volume}{\mkbibemph{#1}} \DeclareFieldFormat[periodical]{volume}{% \mkbibemph{\bibstring{volume}~#1}} \DeclareFieldFormat{year}{\textbf{#1}} \DeclareNameFormat{default}{% \usebibmacro{name:first-last}{#1}{#4}{#5}{#7}% \usebibmacro{name:andothers}} \renewcommand*{\thebibitem}{\item} \renewcommand*{\thelositem}{\item} \renewcommand*{\finalnamedelim}{\multinamedelim} \renewcommand*{\mkbibnameaffix}[1]{\addcomma\addspace#1} \renewcommand*{\newunitpunct}{\addcomma\addspace} % The environments are set up correctly \renewenvironment*{thebibliography} {\list {\printfield[labelnumberwidth]{labelnumber}} {\setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}% \renewcommand*{\makelabel}[1]{\hss##1}} {\endlist} \renewenvironment*{theshorthands} {\list {\printfield[shorthandwidth]{shorthand}} {\setlength{\labelwidth}{\shorthandwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}% \renewcommand*{\makelabel}[1]{\hss##1}}} {\endlist} % Some altered strings, in English at least \DefineBibliographyStrings{english}{% chapter = {Chapter}, editor = {Ed\adddot}, editors = {Eds\adddot}, patentus = {US Pat\adddot}, volume = {Vol\adddot} } % Custom code to remove commas from titles \newcommand*{\bbx@comma@remove}[1]{% \begingroup \let\@tempa\@empty \bbx@comma@parse#1\bbx@comma@end } \newcommand*{\bbx@comma@parse}{% \futurelet\@let@token\bbx@comma@check } \newcommand*{\bbx@comma@check}{% \ifx\@let@token\bbx@comma@end \expandafter\bbx@comma@end \fi \ifx\@let@token\@sptoken \expandafter\bbx@comma@space \fi \ifx\@let@token,\relax \expandafter\bbx@comma@comma \fi \ifx\@let@token\bgroup \expandafter\bbx@comma@group \fi \bbx@comma@other \relax } \newcommand*{\bbx@comma@space}{% \def\bbx@comma@space##1\relax } \@nameuse{bbx@comma@space} {% \appto\@tempa{ }% \bbx@comma@parse } \def\bbx@comma@comma#1\relax,{% \bbx@comma@parse } \def\bbx@comma@group#1\relax#2{% \appto\@tempa{{#2}}% \bbx@comma@parse } \def\bbx@comma@other\relax#1{% \appto\@tempa{#1}% \bbx@comma@parse } \def\bbx@comma@end#1\bbx@comma@end{% \expandafter\endgroup\@tempa } % New and altered bibliography macros \renewbibmacro*{byholder}{% \setunit{\addspace}% \ifnameundef{holder}{} {\printtext[parens]{\printnames{holder}}}} \newbibmacro*{chapter+pages}{% \printfield{chapter}% \newunit \printfield{pages}% \newunit} \renewbibmacro*{editor}{% \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} {\setunit{\addspace}% \printtext[parens]{% \usebibmacro{editorstrg} \addcolon\addspace \printnames{editor}% \clearname{editor}}} {}} \newbibmacro*{in}{% \bibstring{in}% \setunit{\addspace}} \newbibmacro*{institution+location+year}{% \printlist{institution}% \newunit \printlist{location}% \newunit \printfield{year}% \newunit} \renewbibmacro*{journal}{% \iffieldundef{journaltitle} {} {\printtext[journaltitle]{% \printfield[removecomma]{journaltitle}% \newunit \printfield[removecomma]{journalsubtitle}}}} \newbibmacro*{journal+volume}{% \usebibmacro{journal}% \setunit{\addspace}% \printfield{year}% \newunit \printfield{volume}} \newbibmacro*{location+year}{% \printlist{location}% \newunit \printfield{year}% \newunit} \renewbibmacro*{maintitle}{% \ifthenelse{\iffieldundef{maintitle}\AND\iffieldundef{mainsubtitle}} {} {\printtext[maintitle]{% \printfield[noformat]{maintitle}\addspace \printfield[parens]{mainsubtitle}}% \newunit}% \printfield{maintitleaddon}} \newbibmacro*{maintitle/booktitle}{% \iffieldundef{maintitle}{% \usebibmacro{booktitle}% }{% \usebibmacro{maintitle}% }} \newbibmacro*{maintitle/title}{% \iffieldsequal{maintitle}{title} {\clearfield{maintitle}% \clearfield{mainsubtitle}% \clearfield{maintitleaddon}} {}% \iffieldundef{maintitle} {\usebibmacro{title}} {\usebibmacro{maintitle}}% \newunit} \newbibmacro*{type+number}{% \printfield{type}% \setunit*{\addspace}% \printfield{number}% \newunit} \newbibmacro*{organization+location+year}{% \printlist{organization}% \newunit \printlist{location}% \newunit \printfield{year}% \newunit} \newbibmacro*{pages/doi}{% \iffieldundef{pages} {\printfield{doi}} {% \printfield{pages}}% \ifbool{bbx:doi} {% \setunit*{\adddot\addspace}% \printfield{doi}% } {}% } \newbibmacro*{publisher+location}{% \printlist{publisher}% \newunit \printlist{location}% \newunit} \newbibmacro*{series+number}{% \printfield{series}% \setunit*{\addspace}% \printfield{number}% \newunit} \newbibmacro*{volume+part}{% \iffieldundef{series} {\mkbibemph{% \printfield{volume}% \printfield{part}}} {}} % Drivers, edited from the standard versions, some quite heavily \DeclareBibliographyDriver{article}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \ifbool{bbx:articletitle} {\usebibmacro{title}% \newunit} {}% \usebibmacro{journal+volume}% \newunit \printfield{note}% \newunit \usebibmacro{pages/doi}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{book}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \usebibmacro{maintitle/title}% \newunit \usebibmacro{volume+part}% \newunit \usebibmacro{editor}% \newunit \usebibmacro{publisher+location}% \newunit \printfield{edition}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{booklet}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/editor}% \newunit \usebibmacro{title}% \newunit \printfield{howpublished}% \newunit \printfield{type}% \newunit \printfield{note}% \newunit \usebibmacro{location+year}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{collection}{% Very similar to a book \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{maintitle/title}% \newunit \usebibmacro{volume+part}% \newunit \usebibmacro{editor}% \newunit \usebibmacro{publisher+location}% \newunit \printfield{edition}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{inbook}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \ifbool{bbx:chaptertitle} {\usebibmacro{title}} {}% \setunit{\addspace}% \usebibmacro{in}% \usebibmacro{bybookauthor}% \newunit \usebibmacro{maintitle/booktitle}% \newunit \usebibmacro{volume+part}% \newunit \usebibmacro{editor}% \newunit \usebibmacro{publisher+location}% \newunit \printfield{edition}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{incollection}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \ifbool{bbx:chaptertitle} {\usebibmacro{title}} {}% \setunit{\addspace}% \usebibmacro{in}% \usebibmacro{maintitle/booktitle}% \newunit \usebibmacro{volume+part}% \newunit \usebibmacro{editor}% \newunit \usebibmacro{publisher+location}% \newunit \printfield{edition}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{inproceedings}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \setunit{\addspace}% \printfield{booktitle}% \newunit \usebibmacro{editor}% \newunit \printfield{venue}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{manual}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/editor}% \newunit \usebibmacro{title}% \newunit \printfield{edition}% \newunit \usebibmacro{series+number}% \newunit \printfield{type}% \newunit \printfield{version}% \newunit \printfield{note}% \newunit \usebibmacro{organization+location+year}% \newunit \usebibmacro{chapter+pages}% \newunit \usebibmacro{url+urldate}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{misc}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/editor}% \newunit \usebibmacro{title}% \newunit \printfield{howpublished}% \newunit \printfield{type}% \newunit \printfield{version}% \newunit \printfield{note}% \newunit \printlist{organization+location+date}% \newunit \printfield{doi}% \newunit \usebibmacro{url+urldate}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{online}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/editor}% \newunit \usebibmacro{title}% \newunit \printfield{version}% \newunit \printfield{note}% \newunit \printlist{organization}% \newunit \usebibmacro{date}% \newunit \usebibmacro{url+urldate}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{patent}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \usebibmacro{byholder}% \newunit \printfield{type}% \newunit \printfield{number}% \newunit \printfield{location}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{periodical}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \printfield{issuetitle}% \newunit \usebibmacro{volume+part}% \newunit \usebibmacro{editor}% \newunit \usebibmacro{publisher+location}% \newunit \printfield{edition}% \newunit \printfield{title}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{proceedings}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{maintitle/title}% \newunit \usebibmacro{editor}% \newunit \printfield{venue}% \newunit \printfield{year}% \newunit \printfield{note}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{report}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \usebibmacro{title}% \newunit \usebibmacro{type+number}% \newunit \printfield{version}% \newunit \printfield{note}% \newunit \usebibmacro{institution+location+year}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{set}{% \ifbool{bbx:subentry} {\entryset{% \printfield[bibentrysetcount]{entrysetcount}% \setunit*{\addnbspace}}{}} {\entryset{}{}} \setunit{\addperiod\addspace}% \usebibmacro{setpageref}% \finentry} \DeclareBibliographyDriver{thesis}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \printfield{note}% \newunit \printfield{type}% \newunit \usebibmacro{institution+location+year}% \newunit \usebibmacro{chapter+pages}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{unpublished}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author}% \newunit \printfield{journaltitle}% \newunit \printfield{howpublished}% \newunit \printfield{note}% \newunit \usebibmacro{date}% \newunit \usebibmacro{url+urldate}% \newunit \printfield{addendum}% \setunit{\bibpagerefpunct}% \usebibmacro{pageref}% \usebibmacro{finentry}} % Some aliases \DeclareBibliographyAlias{review}{article} \DeclareBibliographyAlias{reference}{collection} \DeclareBibliographyAlias{inreference}{incollection} \DeclareBibliographyAlias{suppbook}{inbook} \DeclareBibliographyAlias{suppcollection}{incollection} \DeclareBibliographyAlias{suppperiodical}{article} \endinput