X-Git-Url: https://git.donarmstrong.com/?p=don.git;a=blobdiff_plain;f=posts%2Fbiblatex_gi_style.mdwn;h=8791bb46eec437c9330ebadccda8e4e69aa7b4ed;hp=5aa88df87e422522004ff51919927a356f2870f8;hb=ba4ce053fff6f41b11c770f1c2a361b94dbec90b;hpb=4099a5e67ee48c3b511a607051b8c7f02af94f93 diff --git a/posts/biblatex_gi_style.mdwn b/posts/biblatex_gi_style.mdwn index 5aa88df..8791bb4 100644 --- a/posts/biblatex_gi_style.mdwn +++ b/posts/biblatex_gi_style.mdwn @@ -6,13 +6,13 @@ Here's a biblatex format for The following code in the preamble does almost all of the hard lifting: -[[!format latex """ +[[!format tex """ \usepackage[backend=biber,hyperref=true,doi=true,url=false,isbn=false,maxbibnames=6,minbibnames=6,sorting=none,firstinits=true,terseinits=true,autocite=inline,style=numeric-comp]{biblatex} \renewbibmacro{in:}{% \ifentrytype{article}{}{% \printtext{\bibstring{in}\intitlepunct}}} % from http://tex.stackexchange.com/questions/12806/guidelines-for-customizing-biblatex-styles -\DeclareCiteCommand{\parencite}[\mkbibbrackets] +\\DeclareCiteCommand{\parencite}[\mkbibbrackets] {\usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% @@ -20,15 +20,15 @@ The following code in the preamble does almost all of the hard lifting: {} {\usebibmacro{cite:dump}% \usebibmacro{postnote}} -\DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim} -\DeclareFieldFormat +\\DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim} +\\DeclareFieldFormat [article,inbook,incollection,inproceedings,patent,thesis,unpublished,manual] {title}{#1\isdot} -\DeclareFieldFormat{journaltitle}{\mkbibemph{#1}} -\DeclareFieldFormat[article,periodical]{volume}{\mkbibbold{#1}\addcolon} -\DeclareFieldFormat{year}{#1} -\DeclareNameAlias{default}{last-first} -\DeclareFieldFormat{pages}{#1} +\\DeclareFieldFormat{journaltitle}{\mkbibemph{#1}} +\\DeclareFieldFormat[article,periodical]{volume}{\mkbibbold{#1}\addcolon} +\\DeclareFieldFormat{year}{#1} +\\DeclareNameAlias{default}{last-first} +\\DeclareFieldFormat{pages}{#1} % from http://tex.stackexchange.com/questions/17583/biblatex-remove-commas-between-last-and-first-names-in-bibliography % remove commas between authors and first inits \renewcommand*{\revsdnamepunct}{}