Skip to content

Instantly share code, notes, and snippets.

@konn
Created February 10, 2016 12:55
Show Gist options
  • Save konn/f4215ff01cb04fd4eb8f to your computer and use it in GitHub Desktop.
Save konn/f4215ff01cb04fd4eb8f 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
@jimmytheneutrino
Copy link

This is great. I would love to see these among standard CTAN packages. Do you know if it is feasible to make that happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment