Skip to content

Instantly share code, notes, and snippets.

@jimmytheneutrino
Forked from konn/math-alphabetic.bbx
Created July 9, 2018 14:48
Show Gist options
  • Select an option

  • Save jimmytheneutrino/2af985215fd9d67285342189c5f62ee0 to your computer and use it in GitHub Desktop.

Select an option

Save jimmytheneutrino/2af985215fd9d67285342189c5f62ee0 to your computer and use it in GitHub Desktop.
AMSRefs-like bib style for BibLaTeX
\ProvidesFile{math-alphabetic.bbx}[2016/02/10 alphabetic biblatex bibliography style for mathematicians]
\RequireBibliographyStyle{alphabetic}
\RequireBibliographyStyle{math-standard}
\ExecuteBibliographyOptions{labelalpha,sorting=anyt}
\endinput
\ProvidesFile{math-alphabetic.cbx}[2016/02/10 numeric biblatex bibliography style for mathematicians]
\RequireCitationStyle{alphabetic}
\endinput
\ProvidesFile{math-alphabetic.bbx}[2016/02/10 alphabetic biblatex bibliography style for mathematicians]
\RequireBibliographyStyle{alphabetic}
\RequireBibliographyStyle{math-standard}
\ExecuteBibliographyOptions{labelalpha,sorting=anyt}
\endinput
\ProvidesFile{math-numeric.cbx}[2016/02/10 numeric biblatex bibliography style for mathematicians]
\RequireCitationStyle{numeric}
\endinput
\ProvidesFile{math-standard.bbx}[2016/02/10 biblatex bibliography style for mathematicians]
\RequireBibliographyStyle{standard}
\renewcommand*{\bibfont}{\footnotesize}
\renewcommand*{\subtitlepunct}{\textup{\addcolon}\space}
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand*{\mkbibquote}[1]{\mkbibemph{#1}}
\renewcommand*{\labelnamepunct}{\addcomma\space}
\renewbibmacro*{in:}{}
\DeclareFieldFormat{journaltitle}{\textup{#1}}
\DeclareFieldFormat{booktitle}{\textup{#1}}
\DeclareFieldFormat[article]{number}{\mkbibbold{#1}}
\DeclareFieldFormat[book]{number}{\mkbibbold{#1}}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{\mkbibemph{#1\isdot}}
\endinput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment