From d6925fc0016a1c61cd7eecf5b0d30b360940578f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 3 Jan 2011 00:21:57 +0000 Subject: biblatex-mla (2jan11) git-svn-id: svn://tug.org/texlive/trunk@20910 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-mla/american-mla.lbx | 26 + .../tex/latex/biblatex-mla/english-mla.lbx | 119 ++ .../tex/latex/biblatex-mla/italian-mla.lbx | 90 ++ Master/texmf-dist/tex/latex/biblatex-mla/mla.bbx | 1200 ++++++++++++++++++++ Master/texmf-dist/tex/latex/biblatex-mla/mla.cbx | 798 +++++++++++++ .../tex/latex/biblatex-mla/portuguese-mla.lbx | 82 ++ .../tex/latex/biblatex-mla/spanish-mla.lbx | 86 ++ 7 files changed, 2401 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/american-mla.lbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/english-mla.lbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/italian-mla.lbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/mla.bbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/mla.cbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/portuguese-mla.lbx create mode 100644 Master/texmf-dist/tex/latex/biblatex-mla/spanish-mla.lbx (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/american-mla.lbx b/Master/texmf-dist/tex/latex/biblatex-mla/american-mla.lbx new file mode 100644 index 00000000000..30ce645394c --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/american-mla.lbx @@ -0,0 +1,26 @@ +% american-mla.lbx v0.2 2009/07/07 + +\ProvidesFile{american-mla.lbx}[2009/07/07 v0.1.1 biblatex style localization] + +\InheritBibliographyExtras{american} + +\DeclareBibliographyExtras{% + \def\bibdatelong{% + \@tempcnta0\thefield{day} \the\@tempcnta\nobreakspace% + \mkbibmonth{\thefield{month}}\nobreakspace + \thefield{year}}% + \def\bibdateshort{% + \thefield{day}/\thefield{month}/\thefield{year}}% + \def\biburldatelong{% + \@tempcnta0\thefield{urlday} \the\@tempcnta\nobreakspace% + \mkbibmonth{\thefield{urlmonth}}\nobreakspace + \thefield{urlyear}}% + \def\biburldateshort{% + \thefield{urlday}/\thefield{urlmonth}/\thefield{urlyear}}% +} + +\DeclareBibliographyStrings{% + inherit = {english}, +}% + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/english-mla.lbx b/Master/texmf-dist/tex/latex/biblatex-mla/english-mla.lbx new file mode 100644 index 00000000000..ac327f09d51 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/english-mla.lbx @@ -0,0 +1,119 @@ +% english-mla.lbx v0.4 2010/12/27 + +\ProvidesFile{english-mla.lbx}[2010/12/27 v0.4 biblatex style localization] +\InheritBibliographyExtras{english} + +\DeclareBibliographyStrings{% + inherit = {english}, + bibliography = {{Works Cited}{Works Cited}}, + references = {{Works Cited}{Works Cited}}, + compilerandeditor = {{compiler and editor}{comp\adddotspace and ed\adddot}},% 0.95 + bycompilerandeditor = {{compiled and edited by}{comp\adddotspace and ed\adddot}},% 0.95 + % typecompilerandeditor = {{compiler and editor}{comp\adddotspace and ed\adddot}},% 0.7 + % bytypecompilerandeditor = {{compiled and edited by}{comp\adddotspace and ed\adddot}},% 0.7 + % typegeneraleditor = {{general editor}{gen\adddotspace ed\adddot}},% 0.7.1 + % bytypegeneraleditor = {{general editor}{gen\adddotspace ed\adddot}},% 0.7.1 + generaleditor = {{general editor}{gen\adddotspace ed\adddot}}, + bytranslator = {{translated by}{trans\adddot}}, + byeditor = {{edited by}{ed\adddot}}, + % byserieseditor = {{general editor}{general editor}},% not used? + page = {{\unskip}{\unskip}}, + pages = {{\unskip}{\unskip}}, + byeditortr = {{ed\adddotspace and trans\adddot}{ed\adddotspace and trans\adddot}}, + byeditorco = {{ed\adddotspace and comm\adddot}{ed\adddotspace and comm\adddot}}, + byeditoran = {{ed\adddotspace and annot\adddot}{ed\adddotspace and annot\adddot}}, + byeditorin = {{ed\adddotspace and introd\adddot}{ed\adddotspace and introd\adddot}}, + byeditorfo = {{ed\adddotspace and forew\adddot}{ed\adddotspace and forew\adddot}}, + byeditoraf = {{ed\adddotspace and afterw\adddot}{ed\adddotspace and afterw\adddot}}, + byeditortrco = {{ed, trans\adddot, and comm\adddot}{ed, trans\adddot, and comm\adddot}}, + byeditortran = {{ed, trans\adddot, and annot\adddot}{ed, trans\adddot, and annot\adddot}}, + byeditortrin = {{ed, trans\adddot, and introd\adddot}{ed, trans\adddot, and introd\adddot}}, + byeditortrfo = {{ed, trans\adddot, and forew\adddot}{ed, trans\adddot, and forew\adddot}}, + byeditortraf = {{ed, trans\adddot, and afterw\adddot}{ed, trans\adddot, and afterw\adddot}}, + byeditorcoin = {{ed, comm\adddot, and introd\adddot}{ed, comm\adddot, and introd\adddot}}, + byeditorcofo = {{ed, comm\adddot, and forew\adddot}{ed, comm\adddot, and forew\adddot}}, + byeditorcoaf = {{ed, comm\adddot, and afterw\adddot}{ed, comm\adddot, and afterw\adddot}}, + byeditoranin = {{ed, annot\adddot, and introd\adddot}{ed, annot\adddot, and introd\adddot}}, + byeditoranfo = {{ed, annot\adddot, and forew\adddot}{ed, annot\adddot, and forew\adddot}}, + byeditoranaf = {{ed, annot\adddot, and afterw\adddot}{ed, annot\adddot, and afterw\adddot}}, + byeditortrcoin = {{ed, trans\adddot, comm\adddot, and introd\adddot}{ed, trans\adddot, comm\adddot, and introd\adddot}}, + byeditortrcofo = {{ed, trans\adddot, comm\adddot, and forew\adddot}{ed, trans\adddot, comm\adddot, and forew\adddot}}, + byeditortrcoaf = {{ed, trans\adddot, comm\adddot, and afterw\adddot}{ed, trans\adddot, comm\adddot, and afterw\adddot}}, + byeditortranin = {{ed, trans\adddot, annot\adddot, and introd\adddot}{ed, trans\adddot, annot\adddot, and introd\adddot}}, + byeditortranfo = {{ed, trans\adddot, annot\adddot, and forew\adddot}{ed, trans\adddot, annot\adddot, and forew\adddot}}, + byeditortranaf = {{ed, trans\adddot, annot\adddot, and afterw\adddot}{ed, trans\adddot, annot\adddot, and afterw\adddot}}, + bytranslatorco = {{trans\adddotspace and comm\adddot}{trans\adddotspace and comm\adddot}}, + bytranslatoran = {{trans\adddotspace and annot\adddot}{trans\adddotspace and annot\adddot}}, + bytranslatorin = {{trans\adddotspace and introd\adddot}{trans\adddotspace and introd\adddot}}, + bytranslatorfo = {{trans\adddotspace and forew\adddot}{trans\adddotspace and forew\adddot}}, + bytranslatoraf = {{trans\adddotspace and afterw\adddot}{trans\adddotspace and afterw\adddot}}, + bytranslatorcoin = {{trans\adddot, comm\adddot, and introd\adddot}{trans\adddot, comm\adddot, and introd\adddot}}, + bytranslatorcofo = {{trans\adddot, comm\adddot, and forew\adddot}{trans\adddot, comm\adddot, and forew\adddot}}, + bytranslatorcoaf = {{trans\adddot, comm\adddot, and afterw\adddot}{trans\adddot, comm\adddot, and afterw\adddot}}, + bytranslatoranin = {{trans\adddot, annot\adddot, and introd\adddot}{trans\adddot, annot\adddot, and introd\adddot}}, + bytranslatoranfo = {{trans\adddot, annot\adddot, and forew\adddot}{trans\adddot, annot\adddot, and forew\adddot}}, + bytranslatoranaf = {{trans\adddot, annot\adddot, and afterw\adddot}{trans\adddot, annot\adddot, and afterw\adddot}}, + newseries = {{ns}{ns}}, + oldseries = {{os}{os}}, + reprintof = {{reprint of}{rpt\adddotspace of}},% 0.7.1 fixed + phdthesis = {{Diss\adddot}{Diss\adddot}}, + reviewof = {{rev\adddotspace of}{rev\adddotspace of}}, + specissue = {{spec\adddot\addspace issue of}{spec\adddot\addspace issue of}}, + section = {{sec\adddot}{sec\adddot}}, + withcommentator = {{comm\adddot}{comm\adddot}}, + withannotator = {{annot\adddot}{annot\adddot}}, + withintroduction = {{introd\adddot}{introd\adddot}}, + withforeword = {{forew\adddot}{forew\adddot}}, + withafterword = {{afterw\adddot}{afterw\adddot}}, + phd = {{Diss\adddot}{Diss\adddot}}, + dphil = {{Diss\adddot}{Diss\adddot}}, + lic = {{Licentiate thesis}{Licentiate thesis}}, + ma = {{{MA}\adddotspace thesis}{{MA}\adddotspace thesis}}, + ms = {{{MS}\adddotspace thesis}{{MS}\adddotspace thesis}}, + msc = {{{MS}c\adddotspace thesis}{{MS}c\adddotspace thesis}}, + mphil = {{{MP}hil\adddotspace thesis}{{MP}hil\adddotspace thesis}}, + mlitt = {{{ML}itt\adddotspace thesis}{{ML}itt\adddotspace thesis}}, + manuscript = {{ms\adddot}{ms\adddot}}, + typescript = {{ts\adddot}{ts\adddot}}, + director = {{dir\adddot}{dir\adddot}}, + screenplay = {{adapt\adddot}{adapt\adddot}}, + adaptation = {{adapt\adddot}{adapt\adddot}}, + adaptor = {{adapt\adddot}{adapt\adddot}}, + performer = {{perf\adddot}{perf\adddot}}, + performers = {{perf\adddot}{perf\adddot}}, + composer = {{composer\adddot}{composer\adddot}}, + composedby = {{composed~by}{composed~by}}, + producer = {{prod\adddot}{prod\adddot}}, + with = {{with}{with}}, + proceedings = {{proc\adddot}{proc\adddot}}, + transof = {{translation of}{trans\adddotspace of}},% 0.7 + volstodate = {{volumes to date}{vols\adddotspace to date}},% 0.7.1 + supptotitle = {{to}{to}},% 0.7.1 + print = {{print}{print}},% 0.9 + web = {{web}{web}},% 0.9 +}% + +\protected\gdef\lbx@us@mkbibrangetrunc@long#1#2{% + \printtext{% + \iffieldsequal{#2year}{#2endyear} + {\csuse{mkbibdate#1}{}{#2month}{#2day}} + {\csuse{mkbibdate#1}{#2year}{#2month}{#2day}}% + \iffieldundef{#2endyear} + {} + {\iffieldequalstr{#2endyear}{} + {\mbox{\bibdatedash{ }}} + {\bibdatedash + \iffieldsequal{#2year}{#2endyear} + {\iffieldsequal{#2month}{#2endmonth} + {\csuse{mkbibdate#1}{#2endyear}{}{#2endday}} + {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}} + {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}}}}} + +\endinput + +% ignore the below. It's a reference for me so I don't continually need to +% teach myself regular expressions. -JC +% +% regex for find and replace (moving from mla.bbx to localized modules) +% find: {(.*?)}, +% replace: {{$1}{$1}}, \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/italian-mla.lbx b/Master/texmf-dist/tex/latex/biblatex-mla/italian-mla.lbx new file mode 100644 index 00000000000..d4c43b67799 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/italian-mla.lbx @@ -0,0 +1,90 @@ +% italian-mla.lbx v0.1 2010/09/05 +% +% Italian localization in this file provided by Andrea Marchitelli. +% Abbreviations taken, whenever possible, from Italian Cataloguing Rules + +\ProvidesFile{italian-mla.lbx}[2010/09/05 v0.1 biblatex style localization] + +\InheritBibliographyExtras{italian} + +\DeclareBibliographyStrings{% + inherit = {italian}, + bibliography = {{Bibliografia}{Bibliografia}}, + references = {{Riferimenti bibliografici}{Riferimenti bibliografici}}, + typecompiler = {{compilatore}{comp\adddot}}, + typecompilers = {{compilatori}{comp\adddot}}, + typecompilerandeditor = {{comp\adddotspace e cur\adddot}{comp\adddotspace e cur\adddot}}, + bytranslator = {{tradotto da}{trad\adddot da}}, + byeditor = {{a cura di}{a c\adddot di}}, + typegeneraleditor = {{curatore generale}{cur\adddotspace gen\adddot}}, + bytypegeneraleditor = {{cura generale di}{cur\adddotspace gen\adddot di}}, + byserieseditor = {{a cura di}{a c\adddot di}}, + page = {{pagina}{p\addot}}, + pages = {{pagine}{p\addot}}, + andothers = {{et~al\adddot}{et~al\adddot}}, + byeditortr = {{cur\adddotspace e trad\adddot}{cur\adddotspace e trad\adddot}}, + byeditorco = {{cur\adddotspace e com\adddot}{cur\adddotspace e com\adddot}}, + byeditoran = {{cur\adddotspace e anot\adddot}{cur\adddotspace e anot\adddot}}, + byeditorin = {{cur\adddotspace e introd\adddot}{cur\adddotspace e introd\adddot}}, + byeditorfo = {{cur\adddotspace e pr\'{o}l\adddot}{cur\adddotspace e pr\'{o}l\adddot}}, + byeditoraf = {{cur\adddotspace e ep\'{i}l\adddot}{cur\adddotspace e ep\'{i}l\adddot}}, + byeditortrco = {{cur\adddot, trad\adddotspace e com\adddot}{cur\adddot, trad\adddotspace e com\adddot}}, + byeditortran = {{cur\adddot, trad\adddotspace e anot\adddot}{cur\adddot, trad\adddotspace e anot\adddot}}, + byeditortrin = {{cur\adddot, trad\adddotspace e introd\adddot}{cur\adddot, trad\adddotspace e introd\adddot}}, + byeditortrfo = {{cur\adddot, trad\adddotspace e pr\'{o}l\adddot}{cur\adddot, trad\adddotspace e pr\'{o}l\adddot}}, + byeditortraf = {{cur\adddot, trad\adddotspace e ep\'{i}l\adddot}{cur\adddot, trad\adddotspace e ep\'{i}l\adddot}}, + byeditorcoin = {{cur\adddot, com\adddotspace e introd\adddot}{cur\adddot, com\adddotspace e introd\adddot}}, + byeditorcofo = {{cur\adddot, com\adddotspace e pr\'{o}l\adddot}{cur\adddot, com\adddotspace e pr\'{o}l\adddot}}, + byeditorcoaf = {{cur\adddot, com\adddotspace e ep\'{i}l\adddot}{cur\adddot, com\adddotspace e ep\'{i}l\adddot}}, + byeditoranin = {{cur\adddot, anot\adddotspace e introd\adddot}{cur\adddot, anot\adddotspace e introd\adddot}}, + byeditoranfo = {{cur\adddot, anot\adddotspace e pr\'{o}l\adddot}{cur\adddot, anot\adddotspace e pr\'{o}l\adddot}}, + byeditoranaf = {{cur\adddot, anot\adddotspace e ep\'{i}l\adddot}{cur\adddot, anot\adddotspace e ep\'{i}l\adddot}}, + byeditortrcoin = {{cur\adddot, trad\adddot, com\adddotspace e introd\adddot}{cur\adddot, trad\adddot, com\adddotspace e introd\adddot}}, + byeditortrcofo = {{cur\adddot, trad\adddot, com\adddotspace e pr\'{o}l\adddot}{cur\adddot, trad\adddot, com\adddotspace e pr\'{o}l\adddot}}, + byeditortrcoaf = {{cur\adddot, trad\adddot, com\adddotspace e ep\'{i}l\adddot}{cur\adddot, trad\adddot, com\adddotspace e ep\'{i}l\adddot}}, + byeditortranin = {{cur\adddot, trad\adddot, anot\adddotspace e introd\adddot}{cur\adddot, trad\adddot, anot\adddotspace e introd\adddot}}, + byeditortranfo = {{cur\adddot, trad\adddot, anot\adddotspace e pr\'{o}l\adddot}{cur\adddot, trad\adddot, anot\adddotspace e pr\'{o}l\adddot}}, + byeditortranaf = {{cur\adddot, trad\adddot, anot\adddotspace e ep\'{i}l\adddot}{cur\adddot, trad\adddot, anot\adddotspace e ep\'{i}l\adddot}}, + bytranslatorco = {{trad\adddotspace e com\adddot}{trad\adddotspace e com\adddot}}, + bytranslatoran = {{trad\adddotspace e annot\adddot}{trad\adddotspace e annot\adddot}}, + bytranslatorin = {{trad\adddotspace e introd\adddot}{trad\adddotspace e introd\adddot}}, + bytranslatorfo = {{trad\adddotspace e pref\adddot}{trad\adddotspace e pref\adddot}}, + bytranslatoraf = {{trad\adddotspace e ep\'{i}l\adddot}{trad\adddotspace e ep\'{i}l\adddot}}, + bytranslatorcoin = {{trad\adddot, com\adddotspace e introd\adddot}{trad\adddot, com\adddotspace e introd\adddot}}, + bytranslatorcofo = {{trad\adddot, com\adddotspace e pr\'{o}l\adddot}{trad\adddot, com\adddotspace e pr\'{o}l\adddot}}, + bytranslatorcoaf = {{trad\adddot, com\adddotspace e ep\'{i}l\adddot}{trad\adddot, com\adddotspace e ep\'{i}l\adddot}}, + bytranslatoranin = {{trad\adddot, anot\adddotspace e introd\adddot}{trad\adddot, anot\adddotspace e introd\adddot}}, + bytranslatoranfo = {{trad\adddot, anot\adddotspace e pr\'{o}l\adddot}{trad\adddot, anot\adddotspace e pr\'{o}l\adddot}}, + bytranslatoranaf = {{trad\adddot, anot\adddotspace e ep\'{i}l\adddot}{trad\adddot, anot\adddotspace e ep\'{i}l\adddot}}, + phdthesis = {{Tesi di dottorato}{Tesi di dottorato}}, + reviewof = {{recensione di}{rec\adddotspace}}, + volume = {{{Vol\adddot}}{{Vol\adddot}}}, % for correct capitalization of volume reference + phd = {{Tesis}{Tesis}},% 0.6 + dphil = {{Tesis}{Tesis}},% 0.6 + lic = {{Lic\adddotspace tesis}{Lic\adddotspace tesis}},% 0.6 + ma = {{MA\addabbrvspace tesis}{MA\addabbrvspace tesis}},% 0.6 + ms = {{MS\addabbrvspace tesis}{MS\addabbrvspace tesis}},% 0.6 + msc = {{MSc\addabbrvspace tesis}{MSc\addabbrvspace tesis}},% 0.6 + mphil = {{MPhil\addabbrvspace tesis}{MPhil\addabbrvspace tesis}},% 0.6 + mlitt = {{MLitt\addabbrvspace tesis}{MLitt\addabbrvspace tesis}},% 0.6 + manuscript = {{manoscritto}{ms\adddot}}, + typescript = {{dattiloscritto}{datt\adddot}}, + director = {{regista}{reg\adddot}}, + screenplay = {{sceneggiatura\adddot}{scen\adddot}}, + adaptation = {{adattamento}{adatt\adddot}}, + adaptor = {{adatt\adddot}{adapt\adddot}},% + % performer = {{perf\adddot}{perf\adddot}},% + % performers = {{perf\adddot}{perf\adddot}},% + % composer = {{compositore}{compositore}}, + % composedby = {{composto~da}{composto~da}},% + % producer = {{produttore}{produttore}}, + with = {{con}{con}}, + proceedings = {{atti}{atti}},% FIXME + bycompiler = {{compilato da}{comp\addotspace da}}, + print = {{a stampa}{a stampa}},% 0.9 + web = {{online}{online}},% 0.9 + transof = {{traduzione di}{trad\adddotspace di}},% 0.7 + reprintof = {{ristampa di}{rpt\adddotspace of}},% 0.7.1 fixed +} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/mla.bbx b/Master/texmf-dist/tex/latex/biblatex-mla/mla.bbx new file mode 100644 index 00000000000..67183e9ddb4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/mla.bbx @@ -0,0 +1,1200 @@ +% mla.bbx v0.9 2010/02/15 * compatible with biblatex beta 0.9 +% Maintained at by James Clawson. +% +% Feel free to improve, redistribute, and adapt to your own ends. Please share improvements in formatting and MLA standards compliance back to James Clawson: . +% +% This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license. +% File is in constant progress. Things are messy. Ignore platypi. + +\ProvidesFile{mla.bbx}[2010/02/15 v0.9 biblatex bibliography style] + +\RequireBibliographyStyle{standard} +\DeclareLanguageMapping{american}{american-mla} +\DeclareLanguageMapping{english}{english-mla} +\DeclareLanguageMapping{spanish}{spanish-mla} + +\NewBibliographyString{byserieseditor} +\NewBibliographyString{reviewof} +\NewBibliographyString{specissue} +\NewBibliographyString{phd} +\NewBibliographyString{dphil} +\NewBibliographyString{lic} +\NewBibliographyString{ma} +\NewBibliographyString{ms} +\NewBibliographyString{msc} +\NewBibliographyString{mphil} +\NewBibliographyString{mlitt} +\NewBibliographyString{manuscript} +\NewBibliographyString{typescript} +\NewBibliographyString{director} +\NewBibliographyString{screenplay} +\NewBibliographyString{adaptation} +\NewBibliographyString{adaptor} +\NewBibliographyString{performer} +\NewBibliographyString{performers} +\NewBibliographyString{composer} +\NewBibliographyString{composedby} +\NewBibliographyString{producer} +\NewBibliographyString{with} +\NewBibliographyString{proceedings} +\NewBibliographyString{compilerandeditor}% 0.95 +\NewBibliographyString{bycompilerandeditor}% 0.95 +% \NewBibliographyString{typecompilerandeditor}% 0.7 +% \NewBibliographyString{bytypecompilerandeditor}% 0.7 +\NewBibliographyString{transof}% 0.7 +% \NewBibliographyString{typegeneraleditor}% 0.7.1 +% \NewBibliographyString{bytypegeneraleditor}% 0.7.1 +\NewBibliographyString{volstodate}% 0.7.1 +\NewBibliographyString{supptotitle}% 0.7.1 +\NewBibliographyString{print}% 0.9 +\NewBibliographyString{web}% 0.9 +\NewBibliographyString{generaleditor}% 0.9 + +\setlength{\bibitemsep}{0pt} +\renewcommand*{\mkbibnameaffix}[1]{\addcomma\addlowpenspace#1} + +\DeclareNameFormat{mla:last}{#1}% +\DeclareNameAlias{author}{sortname} +\DeclareNameFormat{default}{% 0.7.1 + \iffirstinits + {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}} + {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}% + % \usebibmacro{name:first-last:andothers}} + \usebibmacro{name:andothers}} + +\renewenvironment*{thebibliography} + {\list + {} + {\setlength{\leftmargin}{\bibhang}% + \setlength{\itemindent}{-\leftmargin}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}} + {\endlist} + +\DeclareFieldFormat{title:article}{\mkbibquote{#1}}% +\DeclareFieldFormat{title:inreference}{\mkbibquote{#1}}% +\DeclareFieldFormat{title:book}{\mkbibemph{#1}} +\DeclareFieldFormat{title:booklet}{\mkbibemph{#1}} +\DeclareFieldFormat{title:collection}{\mkbibemph{#1}} +\DeclareFieldFormat{title:incollection}{\mkbibquote{#1}}% +\DeclareFieldFormat{title:inproceedings}{\mkbibquote{#1}}% +\DeclareFieldFormat{title:thesis}{\mkbibquote{#1}}% +\DeclareFieldFormat{title:reviewedbook}{\bibstring{reviewof}\addspace\mkbibemph{#1}}% +\DeclareFieldFormat{title:reference}{\mkbibemph{#1}}% 0.7.1 +\DeclareFieldFormat{url}{$<$\url{#1}$>$}% suggested by Jay Savage +\DeclareFieldFormat{isbn}{} +\DeclareFieldFormat{pages}{#1}% +\DeclareFieldFormat[review]{volume}{#1}% +\DeclareListFormat[article]{location}% + {\unspace\mkbibbrackets{#1}\addspace}% +\DeclareFieldFormat[article]{version}{#1\isdot}% +\DeclareFieldFormat[incollection]{bibliography:origyear}{\openrangeformat{#1}\addperiod} +\DeclareFieldFormat{mla:capital}{\MakeCapital{#1}} +\DeclareFieldFormat{mla:lowercase}{\MakeLowercase{#1}} +\DeclareFieldFormat{nameaddon}{\mkbibbrackets{#1}}% 0.7.1 removed (extra) leading \addspace +\DeclareFieldFormat{issuetitle}{\mkbibemph{#1}} +\DeclareFieldFormat{mla:newspaper:section}{\bibstring{section}\addspace#1}% +\DeclareFieldFormat{library}{#1\isdot}% +\DeclareFieldFormat{reviewededitor}{\bibstring{byeditor}\addspace#1}% +\DeclareFieldFormat{reviewedauthor}{\bibstring{byauthor}\addspace#1}% +\DeclareFieldFormat{title:suppbook}{\mkbibquote{#1}} +% \DeclareFieldFormat{year}{\openrangeformat{#1}}% 0.7.1 % canceled in 0.9 +\DeclareFieldFormat{openrangevolumes}{#1~\bibstring{volstodate}}% 0.7.1 - not yet used +\DeclareFieldFormat{volumeof}{\bibstring{volume}~#1~\bibstring{ofseries}}% 0.7.1 +\DeclareFieldFormat{mla:sentence-case}{\MakeSentenceCase{#1}}% 0.7.1 +\DeclareFieldFormat{eprint:jstor}{% 0.9 + \ifhyperref% + {\href{http://www.jstor.org/stable/#1}{\nolinkurl{\emph{JSTOR}}}}% + {\nolinkurl{\emph{JSTOR}}}}% +\DeclareFieldFormat{eprint:googlebooks}{% 0.9 + \ifhyperref% + {\href{http://books.google.com/books?id=#1}{\emph{Google Books}}}% + {\emph{Google Books}}} +\DeclareFieldFormat{eprint:adelaide}{% 0.9 + \ifhyperref% + {\href{#1}{\emph{eBooks@Adelaide}}}% + {\emph{eBooks@Adelaide}}} +\DeclareFieldFormat{eprint:muse}{% 0.95 + \ifhyperref% + {\href{#1}{\emph{Project Muse}}}% + {\emph{Project Muse}}} + +\DeclareBibliographyAlias{booklet}{book} +\DeclareBibliographyAlias{collection}{book} +\DeclareBibliographyAlias{reference}{book} + +\DeclareBibliographyAlias{inbook}{customa} +\DeclareBibliographyAlias{manual}{customa} +\DeclareBibliographyAlias{misc}{customa} +\DeclareBibliographyAlias{online}{customa} +\DeclareBibliographyAlias{patent}{customa} +\DeclareBibliographyAlias{report}{customa} +\DeclareBibliographyAlias{suppcollection}{suppbook} + +\renewcommand*{\newunitpunct}{\addperiod\space} +\renewcommand*{\andothersdelim}{\ifcitation{}{\addcomma}\addspace} +\renewcommand*{\bibpagespunct}{\addperiod\space} +\renewcommand*{\subtitlepunct}{\ifterm{}{\addcolon}\space} + +\newboolean{bbx@mla-incollection} + +\newboolean{bbx@annotation}% same as biblatex-dw +\DeclareBibliographyOption{annotation}[true]{% +\setboolean{bbx@annotation}{#1}} + +\newboolean{bbx@totalnames} +\DeclareEntryOption{totalnames}[true]{% + \setboolean{bbx@totalnames}{#1}} + +% for translated incollections where the collection has no shared translator +\newboolean{bbx@uniquetranslator}% +\DeclareEntryOption{uniquetranslator}[true]{% + \setboolean{bbx@uniquetranslator}{#1}} + +\newbool{bbx:gnoreminfo}% 0.7.1 - same as biblatex-apa +\setboolean{bbx:gnoreminfo}{false} +\DeclareBibliographyOption{noremoteinfo}[true]{\setboolean{bbx:gnoreminfo}{#1}} + +\newbool{bbx:lnoreminfo}% 0.7.1 - same as biblatex-apa +\setboolean{bbx:lnoreminfo}{false} +\DeclareEntryOption{noremoteinfo}[true]{\setboolean{bbx:lnoreminfo}{#1}} + +\newbool{bbx@publimedium}% 0.9 +\setboolean{bbx@publimedium}{true}% platypus set as true by default for 0.95 +\DeclareBibliographyOption{showmedium}[true]{\setboolean{bbx@publimedium}{#1}}% 0.95 changed from declareentryoption (oops!) to declarebibliographyoption + +\newbool{bbx@guessmedium}% 0.9 +\setboolean{bbx@guessmedium}{true} +\DeclareBibliographyOption{guessmedium}[true]{\setboolean{bbx@guessmedium}{#1}}% 0.95 changed from declareentryoption (oops!) to declarebibliographyoption + +\newboolean{bbx@nodate}% 0.95 +\DeclareEntryOption{nodate}[true]{% + \setboolean{bbx@nodate}{#1}} + + +% 0.7.1 for years with open range +\newrobustcmd{\openrangeformat}[1]{% 0.7.1 + \begingroup% + \let\blx@org@rangedash=\bibrangedash% + \def\bibrangedash{% + \blx@org@rangedash% + \futurelet\@let@token\blx@openrangeformat}% + #1% + \endgroup} + +% 0.7.1 for years with open range +\newcommand*{\blx@openrangeformat}{% 0.7.1 + \ifx\@let@token\endgroup% + \openrangemark% + \fi} + +% 0.7.1 for years with open range +\newcommand*{\openrangemark}{\mbox{ }}% 0.7.1 + +% % 0.9 - new commands for open year ranges +% \newrobustcmd*{\mkbibrangefull}[2]{% +% \printtext{% +% \csuse{mkbibdate#1}{#2year}{#2month}{#2day}% +% \iffieldundef{#2endyear} +% {} +% {\iffieldequalstr{#2endyear}{} +% {\mbox{\bibdatedash}} +% {\bibdatedash +% \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}}}} + + +\renewcommand*{\bibnamedash}{% + \mbox{% + \mlanamedash% + \iffieldundef{nameaddon}% + {\unspace\newunitpunct}% + {\unspace\addspace}% + }% +}% + +\newcommand*{\mlanamedash}{\textendash\textendash\textendash} + +\renewbibmacro*{author}{% + \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}} + {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND + \NOT\iffirstonpage} + {\bibnamedash} + {\ifbool{bbx@totalnames}% + {\printnames[sortname][-\value{listtotal}]{author}} + {\printnames{author}}% + \savefield{fullhash}{\bbx@lasthash}} + \iffieldundef{nameaddon}% 0.7.1 wide support for nameaddon + {}% + {\setunit{\addspace}% + \printfield{nameaddon}}% + \iffieldundef{authortype}% 0.7.1 wide support for authortype + {}% + {\setunit{\addcomma\space}% + \usebibmacro{authorstrg}}} + {\global\undef\bbx@lasthash}} + +\renewbibmacro*{editor}{% + \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}% + {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND\NOT + \iffirstonpage}% + {\mbox{\mlanamedash\unspace\addcomma\addspace}}% + {\ifbool{bbx@totalnames}% + {\printnames[sortname][-\value{listtotal}]{editor}} + {\printnames{editor}}% + \setunit{\addcomma\space}% + \savefield{namehash}{\bbx@lasthash}}% + \usebibmacro{editorstrg}\clearname{editor}}% + {\global\undef\bbx@lasthash}} + +\renewbibmacro*{editor+others}{% + \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}% + {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND\NOT + \iffirstonpage}% + {\mbox{\mlanamedash\unspace\addcomma\addspace}}% + {\ifbool{bbx@totalnames}% + {\printnames[sortname][-\value{listtotal}]{editor}} + {\printnames[sortname]{editor}}% + \setunit{\addcomma\space}% + \savefield{namehash}{\bbx@lasthash}}% + \usebibmacro{editor+othersstrg}\clearname{editor}}% + {\global\undef\bbx@lasthash}} + +\renewbibmacro*{translator}{% 0.7.1 + \ifthenelse{\ifusetranslator\AND\NOT\ifnameundef{translator}} + {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND\NOT + \iffirstonpage}% + {\mbox{\mlanamedash\unspace\addcomma\addspace}}% + {\ifbool{bbx@totalnames}% 0.7.1 + {\printnames[sortname][-\value{listtotal}]{translator}}% + {\printnames[sortname]{translator}}% + \setunit{\addcomma\space}% + \savefield{namehash}{\bbx@lasthash}}% + \usebibmacro{translatorstrg}\clearname{translator}}% + {\global\undef\bbx@lasthash}} + +\renewbibmacro*{translator+others}{% 0.7.1 + \ifthenelse{\ifusetranslator\AND\NOT\ifnameundef{translator}} + {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND\NOT + \iffirstonpage}% + {\mbox{\mlanamedash\unspace\addcomma\addspace}}% + {\ifbool{bbx@totalnames}% 0.7.1 + {\printnames[sortname][-\value{listtotal}]{translator}}% + {\printnames[sortname]{translator}}% + \setunit{\addcomma\space}% + \savefield{namehash}{\bbx@lasthash}}% + \usebibmacro{translator+othersstrg}\clearname{translator}}% + {\global\undef\bbx@lasthash}} + +\newbibmacro*{journal+issue+year+pages}{% + \usebibmacro{journal+ser+vol+num}% + \setunit{\addspace}% + \printtext[parens]{% + \iffieldundef{issue}% + {\iffieldundef{month}% + {\printfield{year}}% + {\iffieldundef{day}% + {\printfield{month}% + \setunit{\addspace}% + \printfield{year}}% + {\printtext{\bibdate}}}}% + {\printfield{issue}% + \setunit{\addspace}% + \printfield{year}}}% + \addcolon\addspace + \printfield{pages}} + +\renewbibmacro*{url+urldate}{% + \ifthenelse{\boolean{bbx@publimedium}\AND\NOT \(\iffieldundef{url} \AND \iffieldundef{eprint}\)}% 0.9 platypus - check the logic here! should it be and or or between url and eprint? + {\printtext[mla:capital]{\bibstring{web}}\newunit}% + {\iffieldundef{urlyear}{}{\setunit{\addspace}}}% + \iffieldundef{urlyear}% + {}% + {\printtext{\biburldatelong}% + \setunit{\addspace}}% Suggested by Stephen Brumbaugh + \ifthenelse{\boolean{bbx@publimedium}\AND\NOT\iffieldundef{url}}% + {}% + {\printfield{url}}% + } + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \usebibmacro{editor}% + \setunit{\labelnamepunct}\newblock% + \usebibmacro{mla:article:journal+issuetitle}% + \newunit\newblock + \printfield{note}% + \setunit{\addcolon\addspace}\newblock + \printfield{pages}% + \newunit\newblock + \usebibmacro{mla:isbn/issn+doi+eprint}% + \newunit\newblock + \ifbool{bbx@publimedium}{}{\usebibmacro{url+urldate}}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + \usebibmacro{mlabelnamepunct}% + \usebibmacro{title}% + \newunit% + \usebibmacro{bytranslator+others}% + \newunit% + \usebibmacro{mla:article:journal+issuetitle}% + \newunit\newblock + \printfield{note}% + \setunit{\addcolon\addspace}\newblock + \printfield{pages}% + \newunit\newblock + \usebibmacro{mla:isbn/issn+doi+eprint}% + \newunit\newblock + \ifbool{bbx@publimedium}{}{\usebibmacro{url+urldate}}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + \usebibmacro{mlabelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit\newblock% + %\printlist{language}% 0.9 is this necessary? + % \newunit\newblock% + \usebibmacro{byeditor+others}% + \newunit\newblock% + \printfield{edition}\isdot% + \newunit% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \iffieldundef{volume}% 0.7.1 + {\printfield{volumes}\clearfield{volumes}}% + {}%% + \newunit\newblock% + \ifbool{bbx@publimedium}% + {}% + {\usebibmacro{series+number}}% + \newunit\newblock% + \printfield{note}% + \newunit\newblock% + \usebibmacro{publisher+location+date}% + \newunit\newblock% + \printfield{pages}% + \newunit\newblock% + \usebibmacro{mla:isbn/issn+doi+eprint}% + \newunit\newblock% + \iffieldundef{origtitle}% + {}% + {\ifbool{bbx@publimedium}% + {} + {\usebibmacro{mla:reprint}}}% + \newunit\newblock% + \iffieldundef{volumes}% 0.7.1 + {}% + {\usebibmacro{mla:multivolumes}}% + \newunit\newblock% + \printfield[mla:sentence-case]{addendum}% + \newunit\newblock% + \usebibmacro{pageref}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\newbibmacro*{mla:reprint}{% + \iffieldundef{origtitle}% + {\newunit}% + {\iffieldundef{origlanguage} + {\setunit{\newunitpunct\bibstring{reprintof}\addspace}}% + {\setunit{\newunitpunct\bibstring{transof}\addspace}}% +}% + \printfield[title:\strfield{entrytype}]{origtitle}% + \newunit\newblock% + \printlist{origlocation}\clearlist{origlocation}% + \setunit*{\addcolon\addspace}% + \printlist{origpublisher}\clearlist{origpublisher}% + \setunit*{\addcomma\addspace}% + \ifbool{bbx@mla-incollection} + {\printfield[bibliography:origyear]{origyear}\clearfield{origyear}}% + {}% + \ifthenelse{\iffieldundef{volume}\OR\iffieldundef{volumes}}% + {\printorigdate\clearfield{origyear}}% 0.9 + {}% +} + +\newbibmacro*{mla:multivolumes}{% 0.7.1 + \iffieldundef{maintitle}% + {}% + {\printfield[volumeof]{volume}% + \setunit{\addspace}% + \usebibmacro{maintitle}}% + \usebibmacro{mla:generaleditor}% + \iffieldequalstr{eventendyear}{}% 0.9 support for "X vols. to date" + {\printfield[openrangevolumes]{volumes}\clearfield{volumes}}% 0.9 + {\printfield{volumes}\clearfield{volumes}}% 0.9 + \newunit\newblock% + \printeventdate\clearfield{eventyear}% 0.9 changed from orig- to eventyear +} + + +\renewbibmacro*{byeditorx}{% + \usebibmacro{byeditorx:internal}{a}% + \usebibmacro{byeditorx:internal}{b}% + \usebibmacro{byeditorx:internal}{c}% +} + +\newbibmacro*{byeditorx:internal}[1]{% + \ifnameundef{editor#1} + {} + {\iffieldequalstr{editor#1type}{generaleditor} + {} + {\usebibmacro{bytypestrg}{editor#1}{editor}% + \setunit{\addspace}% + \printnames[byeditor#1]{editor#1}% + \newunit}}% +} + +\newbibmacro*{mla:generaleditor}{% 0.9 new support in multivolume + \usebibmacro{mla:generaleditor:internal}{}% + \usebibmacro{mla:generaleditor:internal}{a}% + \usebibmacro{mla:generaleditor:internal}{b}% + \usebibmacro{mla:generaleditor:internal}{c}% +} + +\newbibmacro*{mla:generaleditor:internal}[1]{% 0.9 new support in multivolume + \iffieldequalstr{editor#1type}{generaleditor}% + {\printnames{editor#1}% + \setunit{\addcomma\addspace}% + \bibstring{generaleditor}% + \newunit}% + {}% +} + +\newbibmacro*{mla:isbn/issn+doi+eprint}{% 0.7.1 modeled after biblatex-apa, here just a proof of concept and work in progress, ignoring any of the URL hiding implemented by Philip Kime + \ifthenelse{\boolean{bbx:gnoreminfo}\OR\boolean{bbx:lnoreminfo}}% + {\global\boolfalse{bbx:lnoreminfo}}% + {\printfield{isbn}\clearfield{isbn}% + \newunit\newblock% + \printfield{issn}\clearfield{issn}% + \newunit\newblock% + \printfield{isrn}\clearfield{isrn}% + \newunit\newblock% + \printfield{doi}\clearfield{doi}% + \newunit\newblock% + \usebibmacro{eprint}% + }} + +\DeclareBibliographyDriver{suppbook}{% 0.7 + \usebibmacro{bibindex}% + \usebibmacro{author/editor}% + \usebibmacro{mlabelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit\newblock + \printfield[mla:capital]{entrysubtype}% + \newunit\newblock + \iffieldundef{crossref}% + {\iffieldundef{xref}% + {\usebibmacro{mla:incollection:internal}}% + {\bbx@crossref{\thefield{xref}}% + \setunit{\addspace}% + \printfield{pages}}}% + {\bbx@crossref{\thefield{crossref}}% + \setunit{\addspace}% + \printfield{pages}% + \newunit}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + + +%%% crossrefs... %%% +% \DeclareCiteCommand{\bbx@crossref} +% {}% +% {\ifsingletitle% +% {\printtext[bibhyperref]{\printnames{labelname}}}% +% {\printnames{labelname}}% +% \ifsingletitle% +% {\unspace}% +% {\unspace\addcomma\addspace% +% \printtext[bibhyperref]{\printfield[citetitle:book]{labeltitle}}}}% +% {\unspace}% +% {\unspace} + +\DeclareCiteCommand{\bbx@crossref}% 0.7.1 slightly improved + {} + {\ifsingletitle% + {\printtext[bibhyperref]{\printnames{labelname}}% + \setunit{\space}}% + {\printnames{labelname}% + \setunit{\addcomma\addspace}% + \printtext[bibhyperref]{\printfield[citetitle:book]{labeltitle}} + \setunit{\space}}}% + {}% + {} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \ifthenelse{% + \iffieldequalstr{entrysubtype}{book}% + \OR% + \iffieldequalstr{entrysubtype}{play}}% + {\usebibmacro{title:incollection:italics}}% + {\setboolean{bbx@mla-incollection}{true}% + \usebibmacro{title}% + \setboolean{bbx@mla-incollection}{false}}% + \newunit\newblock% + \ifbool{bbx@uniquetranslator}% + {\usebibmacro{bytranslator+others}\newunit\newblock}% + {}% + \newunit\newblock% + \iffieldundef{crossref}% + {\iffieldundef{xref}% + {\usebibmacro{mla:incollection:internal}}% + {\bbx@crossref{\thefield{xref}}% + \setunit{\addspace}% + \printfield{pages}}}% + {\bbx@crossref{\thefield{crossref}}% + \setunit{\addspace}% + \printfield{pages}}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\newbibmacro*{mla:incollection:internal}{% + \setboolean{bbx@mla-incollection}{true}% + \usebibmacro{maintitle+booktitle}% + \ifthenelse{% 0.7.1 - added bookauthor for supptypes + \iffieldequalstr{entrytype}{suppbook}% + \OR% + \iffieldequalstr{entrytype}{suppcollection}}% + {\setunit{\newunitpunct\bibstring{byauthor}\addspace}% + \ifnamesequal{labelname}{bookauthor}% 0.7 + {\printnames[mla:last]{bookauthor}}% + {\printnames[byauthor]{bookauthor}}}% + {}% + \newunit\newblock% + \usebibmacro{byauthor}% + \newunit\newblock + %\printlist{language}% 0.9 is this necessary? + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}\isdot% + \newunit + \iffieldundef{maintitle}% + {\printfield{volume}\printfield{part}}% + {}% + \newunit + \iffieldundef{volume}% 0.7.1 + {\printfield{volumes}\clearfield{volumes}}% + {}%% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \usebibmacro{mla:isbn/issn+doi+eprint}% + \newunit\newblock + \ifbool{bbx@publimedium}{}{\usebibmacro{url+urldate}}% + \newunit\newblock + \iffieldundef{volumes}% 0.7.1 + {}% + {\usebibmacro{mla:multivolumes}}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \setboolean{bbx@mla-incollection}{false}} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{mla:proceedings:booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{proceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \usebibmacro{mla:proceedings:booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \usebibmacro{title}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{mla:all:type}% + \newunit\newblock + \printfield{number}% + \newunit\newblock + \printfield{library}% + \setunit{\addcomma\addspace}% + \printlist{location}% + \newunit\newblock + \printfield{addendum}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \usebibmacro{title}% + \newunit\newblock% + \usebibmacro{mla:thesis:type}% + \newunit\newblock + \printlist{institution}% + \setunit*{\addcomma\space}% + \iffieldequalstr{entrysubtype}{published}% + {\printfield{origyear}}% + {\printfield{year}}% + \newunit\newblock + \iffieldequalstr{entrysubtype}{published}% + {\ifbool{bbx@publimedium}% + {}% + {\usebibmacro{series+number}}% + \newunit% + \printlist{location}% + \setunit{\addcolon\addspace}% + \printlist{publisher}% + \setunit{\addcomma\addspace}% + \printfield{year}}% + {}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{review}{% + \usebibmacro{bibindex}% + \usebibmacro{author}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \printfield[title:article]{title}% + \newunit\newblock% + \printfield[title:reviewedbook]{booktitle}% + \setunit{\addcomma\space}% + \ifnameundef{bookauthor}% + {\printtext[reviewededitor]{\printnames[default]{editor}}}% + {\printtext[reviewedauthor]{\printnames[default]{bookauthor}}}% + \newunit\newblock + \usebibmacro{journal}% + \setunit*{\addspace}% + \ifthenelse{\iffieldequalstr{entrysubtype}{newspaper} \or \iffieldequalstr{entrysubtype}{magazine}}% + {\printfield[brackets]{location}% + \printtext{\bibdatelong}% + \newunit}% + {\printfield{series}% + \setunit{\addspace}% + \printfield[default]{volume}% + \setunit*{\adddot}% + \printfield{number}\clearfield{number}% + \setunit{\addcomma\space}% + \printfield{eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \newunit\newblock% + \usebibmacro{issue}% + \newunit}% + \iffieldundef{pages}% + {\iffieldundef{url}% + {}% + {\addcolon\usebibmacro{url+urldate}}% + }% + {\addcolon\printfield{pages}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inreference}{% + \usebibmacro{bibindex}% + \usebibmacro{author}% + % \printfield{nameaddon}% 0.7.1 + \usebibmacro{mlabelnamepunct}% + \usebibmacro{title}% + \newunit\newblock% + \iffieldundef{crossref}% + {\iffieldundef{xref}% + {\newunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit + %\printlist{language}% 0.9 is this necessary? + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \iffieldsequal{year}{edition}% + {\printfield{year}~\bibstring{edition}\clearfield{year}}% + {\printfield{edition}\isdot}% + \newunit + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \usebibmacro{mla:isbn/issn+doi+eprint}% + \newunit\newblock + \ifbool{bbx@publimedium}{}{\usebibmacro{url+urldate}}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}}% + {}}% + {\bbx@crossref{\thefield{crossref}}% + \nopunct\unspace\printfield{pages}}% + \newunit% + \usebibmacro{publimedium}% + \usebibmacro{finentry}} + +\newbibmacro{mlabelnamepunct}{\setunit{\labelnamepunct}\newblock} + +\newbibmacro{mla:video:localized:last-first}[1]{% + \ifnameundef{#1}% + {}% + {\printnames{#1}\addcomma\addspace% + \ifthenelse{\iffieldbibstring{#1type} \and \not % + \iffieldundef{#1type}}% + {\bibstring{\thefield{#1type}}}% + {\iffieldundef{#1type}% + {\bibstring{with}}% + {\printfield[mla:lowercase]{#1type}}}}% +\iffootnote{\setunit{\addcomma\addspace}}{\newunit}}% + +\newbibmacro{mla:video:name:first:footnote}[1]{% + \ifnameundef{#1}% + {}% + {\printnames[byeditor]{#1}\addcomma\addspace% + \ifthenelse{\iffieldbibstring{#1type} \and \not % + \iffieldundef{#1type}}% + {\bibstring{\thefield{#1type}}}% + {\iffieldundef{#1type}% + {\bibstring{with}}% + {\printfield[mla:lowercase]{#1type}}}}% + \clearname{#1}% +} + +\newbibmacro{mla:video:localized:first-last}[1]{% + \ifnameundef{#1}% + {}% + {\ifthenelse{\iffieldbibstring{#1type} \and \not % + \iffieldundef{#1type} \and \not % + \iffieldequalstr{#1type}{composer}}% + {\bibstring{\thefield{#1type}}}% + {\iffieldundef{#1type}% + {\bibstring{with}}% + {\iffieldequalstr{#1type}{composer}% + {\bibstring{composedby}}% + {\printfield[mla:capital]{#1type}}}}% + \addspace\printnames[byeditor][-\value{listtotal}]{#1}}% +\newunit}% + +\newbibmacro{mla:video:name:second:footnote}[1]{% + \ifnameundef{#1}% + {}% + {\ifthenelse{\iffieldbibstring{#1type} \and \not % + \iffieldundef{#1type} \and \not % + \iffieldequalstr{#1type}{composer}}% + {\bibstring{\thefield{#1type}}}% + {\iffieldundef{#1type}% + {\bibstring{with}}% + {\iffieldequalstr{#1type}{composer}% + {\bibstring{composedby}}% + {\printfield[mla:lowercase]{#1type}}}}% + \addspace\printnames[byeditor][-\value{listtotal}]{#1}% + }}% + +\DeclareBibliographyDriver{video}{% + \ifnamesequal{labelname}{author}% + {\usebibmacro{mla:video:localized:last-first}{author}}{}% + \ifnamesequal{labelname}{editor}% + {\usebibmacro{mla:video:localized:last-first}{editor}}{}% + \printfield{title}% + \setunit{\newunitpunct\bibstring{byauthor}\addspace}% + \printnames[byeditor]{bookauthor}% + \newunit% + \ifthenelse{\NOT\ifnamesequal{author}{labelname}% + \AND\NOT\ifnameundef{author}}% + {\usebibmacro{mla:video:localized:first-last}{author}}% + {}% + \ifthenelse{\NOT\ifnamesequal{editor}{labelname}% + \AND\NOT\ifnameundef{editor}}% + {\usebibmacro{mla:video:localized:first-last}{editor}}% + {}% + \usebibmacro{mla:video:localized:first-last}{namea}% + \usebibmacro{mla:video:localized:first-last}{nameb}% + \usebibmacro{mla:video:localized:first-last}{namec}% + \printfield{origyear}% + \newunit\newblock% + \printfield{howpublished}% + \newunit\newblock% + \printlist{publisher}% + \setunit{\addcomma\addspace}% + \printfield{year}% + \usebibmacro{finentry}% +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % % % % % % % % % % % % % % % % % % % % % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% drivers to add eventually: +% * \DeclareBibliographyDriver{misc} +% * \DeclareBibliographyDriver{artwork} +% * \DeclareBibliographyDriver{audio} +% * \DeclareBibliographyDriver{image} +% * \DeclareBibliographyDriver{movie} +% * \DeclareBibliographyDriver{music} +% * \DeclareBibliographyDriver{performance} +% +% Specifically important mainstay types to add for MLA users +% 0 support for multiple publishers? % can't do with bibtex +% * editorial +% * letter (to the editor, etc.) +% * interview + +\newbibmacro*{mtitle+mstitle+vol+part+title+stitle}{% + \iffieldundef{maintitle}% + {}% + {\printtext[maintitle]{% + \printfield[noformat]{maintitle}% + \newunit + \printfield[noformat]{mainsubtitle}}% + \newunit + \printfield{maintitleaddon}% + \newunit\newblock + \iffieldundef{volume}% + {}% + {\printfield{volume}% + \printfield{part}% + \setunit{\addcolon\space}}}% + \usebibmacro{title+stitle}} + +\renewbibmacro*{series+number}{% + \iffieldundef{series}% + {}% + {\printfield{series}\setunit*{\addspace}\printfield{number}}% +} + +\renewbibmacro*{title}{% + \iffieldequalstr{entrytype}{thesis}% + {\usebibmacro{mla:title:thesis}}% + {\iffieldequalstr{entrytype}{unpublished}% + {\usebibmacro{mla:title:unpublished}}% + {\usebibmacro{title+stitle}}}}% + +\renewbibmacro*{publisher+location+date}{% + \printlist{location}% + \iflistundef{publisher} + {\setunit*{\addcomma\space}} + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + \setunit*{\addcomma\space}% + % \printfield{year}% 0.9 + \ifbool{bbx@nodate}{\printtext{n.d.}}% 0.95 platypus-don't forget to localize this string! + \printdate% 0.9 + \newunit} + +\newbibmacro*{mla:title:unpublished}{% + \ifthenelse{\iffieldundef{author} \AND \iffieldundef{nameaddon}}% + {\unspace}% + {}% + \iffieldundef{title}% + {}% + {\printtext[title:article]{% + \printfield[noformat]{title}% + \setunit{\subtitlepunct}% + \printfield[noformat]{subtitle}}}% + \newunit + \printtext[title:book]{% + \printfield[noformat]{booktitle}% + \setunit{\subtitlepunct}% + \printfield[noformat]{booksubtitle}}% + \newunit + \ifcitation% + {\printfield[mla:lowercase]{titleaddon}}% + {\printfield{titleaddon}}% + \setunit{\addcomma\addspace}} + +\newbibmacro*{name:first-last:andothers}{% 0.7.1 + \ifthenelse{\value{listcount}=\value{liststop}\AND + \ifmorenames} + {\ifnum\value{liststop}>1 \finalandcomma\fi + \addspace\bibstring{andothers}} + {}} + +\newbibmacro*{mla:title:thesis}{% + \iffieldundef{title}% + {}% + {\iffieldequalstr{entrysubtype}{published}% + {\printtext[title:book]{% + \printfield[noformat]{title}% + \setunit{\subtitlepunct}% + \printfield[noformat]{subtitle}}}% + {\printtext[title:\strfield{entrytype}]{% + \printfield[noformat]{title}% + \setunit{\subtitlepunct}% + \printfield[noformat]{subtitle}}}% + \newunit% + \printfield{titleaddon}% + \newunit\newblock}} + +\newbibmacro*{mla:thesis:type}{% + \iffieldundef{type}% + {\printtext[mla:capital]{\bibstring{phdthesis}}}% + {\usebibmacro{mla:all:type}}}% + +\newbibmacro*{mla:all:type}{% + \ifbibstring{\thefield{type}}% + {\printtext[mla:capital]{\bibstring{\thefield{type}}}}% + {\printtext[mla:capital]{\printfield{type}}}}% + +\newbibmacro*{mla:all:type:foot}{% + \ifbibstring{\thefield{type}}% + {\printtext[noformat]{\bibstring{\thefield{type}}}}% + {\printtext[noformat]{\printfield{type}}}}% + +\renewbibmacro*{maintitle+title}{% 0.7.1 much modified + \usebibmacro{title}% + \newunit% + \iffieldsequal{maintitle}{title}% + {\clearfield{maintitle}% + \clearfield{mainsubtitle}% + \clearfield{maintitleaddon}}% + {}% + \iffieldundef{volume}% + {\usebibmacro{maintitle}}% + {}% + \iffieldundef{maintitle}% + {\printfield{volume}\clearfield{volume}}% 0.9.x clear volume to avoid reprinting it + {}% + \newunit\newblock} + +\renewbibmacro*{maintitle+booktitle}{% + \usebibmacro{booktitle}% + \newunit + \iffieldundef{maintitle}% + {}% + {\usebibmacro{maintitle}% + \newunit\newblock + \iffieldundef{volume}% + {}% + {\printfield{volume}% + \printfield{part}% + \setunit{\addcolon\space}}}% + \newunit} + +\newbibmacro*{mla:proceedings:booktitle}{% + \usebibmacro{booktitle}% + \newunit% + \iffieldundef{eventtitle}% + {}% + {\printtext[default]{% + \bibstring{proceedings}\addspace\bibstring{ofseries}\addspace% + \printfield[default]{eventtitle}\isdot}}% 0.7.1 moved \isdot + \setunit*{\isdot\addcomma\addspace}% 0.9 added asterisk + \printlist{organization}% + \setunit*{\addcomma\addspace}% 0.9 added asterisk + \printeventdate% 0.9 + \setunit*{\addcomma\addspace}% 0.9 added asterisk + \printlist{institution}% + \setunit*{\addcomma\addspace}% 0.9 added asterisk + \printfield{venue}} + +\newbibmacro*{title+stitle}{% + \iffieldundef{title}% + {\ifthenelse{% + \iffieldequalstr{entrytype}{suppbook}% + \OR% + \iffieldequalstr{entrytype}{suppcollection}}% + {}% + {\printtext[title:\strfield{entrytype}]{% + \printfield[noformat]{booktitle}% + \setunit*{\subtitlepunct}% 0.9 added asterisk + \printfield[noformat]{booksubtitle}}}}% + {\printtext[title:\strfield{entrytype}]{% + \printfield[noformat]{title}% + \setunit*{\subtitlepunct}% 0.9 added asterisk + \printfield[noformat]{subtitle}}}% + \newunit% + \printfield[noformat]{titleaddon}% + \newunit% + \usebibmacro{byauthor}% + \iffieldundef{origtitle}% + {\usebibmacro{mla:reprint}}% + {}% +}% + +\newbibmacro*{title:incollection:italics}{% + \iffieldundef{title}% + {}% + {\printtext[title:book]{% + \printfield[noformat]{title}% + \setunit*{\subtitlepunct}% 0.9 added asterisk + \printfield[noformat]{subtitle}}% + \newunit% + \printfield[noformat]{titleaddon}% + \newunit% + \usebibmacro{mla:reprint}% + \newunit\newblock}} + +\newbibmacro*{mla:article:journal+issuetitle}{% + \usebibmacro{issue}% + \newunit\newblock% + \iffieldundef{issuetitle}% + {}% + {\usebibmacro{byeditor+others}% + \newunit\newblock% + \bibstring{specissue}\setunit*{\addspace}}% + \ifthenelse{\iffieldequalstr{entrytype}{periodical} \AND \iffieldundef{journaltitle}}% + {\usebibmacro{periodical}}% + {\usebibmacro{journal}}% + \setunit*{\addspace}% + \ifthenelse{\iffieldequalstr{entrysubtype}{newspaper} \or \iffieldequalstr{entrysubtype}{magazine}}% + {\printlist[brackets]{location}% + \printtext{\bibdatelong}% + \setunit*{\addcomma\addspace}% 0.9 added asterisk + \printfield{version}% + \setunit*{\addcomma\addspace}% 0.9 added asterisk + \printfield[mla:newspaper:section]{chapter}% + }% + {\printfield{series}% + \setunit*{\addspace}% 0.9 added asterisk + \printfield{volume}% + \setunit*{\adddot}% + \printfield{number}\clearfield{number}% + \setunit*{\addcomma\space}% 0.9 added asterisk + \usebibmacro{mla:isbn/issn+doi+eprint}% + \setunit*{\addspace}% 0.9 added asterisk + \usebibmacro{issue+date}% + \newunit\newblock + \newunit}% +} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \ifthenelse{\iffieldequalstr{entrysubtype}{newspaper} \or \iffieldequalstr{entrysubtype}{magazine}}% + {\printlist[brackets]{location}% + \printtext{\bibdatelong}% + \setunit{\addcomma\addspace}% + \printfield{version}% + \setunit{\addcomma\addspace}% + \printfield[mla:newspaper:section]{chapter}% + }% + {\printfield{series}% + \setunit{\addspace}% + \printfield{volume}% + \setunit*{\adddot}% + \printfield{number}\clearfield{number}% + \setunit{\addcomma\space}% + \usebibmacro{mla:isbn/issn+doi+eprint}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \newunit\newblock + \usebibmacro{issue}% + \newunit}} + +\renewbibmacro{finentry}{% + \finentry% + \iffieldundef{annotation}% + {}% + {\ifbool{bbx@annotation}% + {\begin{quotation}\noindent% + \printfield{annotation}% + \end{quotation}}% + {}}% +} + +\newbibmacro{publimedium}{% 0.9 + \ifbool{bbx@publimedium}% + {\printfield[mla:capital]{howpublished}% + \ifthenelse{\iffieldundef{howpublished}\AND\boolean{bbx@guessmedium}}% + {\ifthenelse{\iffieldundef{url}\AND\iffieldundef{eprinttype}}% + {\printtext[mla:capital]{\bibstring{print}}}% + {\iffieldundef{eprinttype}% + {\printfield{eprint}}% + {\printfield[eprint:\strfield{eprinttype}]{eprint}}% + \newunit% + \usebibmacro{url+urldate}% + }% + }% + {}%-keep-blank + \newunit% + \usebibmacro{series+number}}% + \newunit% + \usebibmacro{mla:reprint}% + {}%-keep-blank +} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/mla.cbx b/Master/texmf-dist/tex/latex/biblatex-mla/mla.cbx new file mode 100644 index 00000000000..d68b2c7a454 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/mla.cbx @@ -0,0 +1,798 @@ +% mla.cbx, v0.9 2010/02/15 * compatible with biblatex beta 0.9 +% Maintained at by James Clawson. +% +% Feel free to improve, redistribute, and adapt to your own ends. Please share improvements in formatting and MLA standards compliance back to James Clawson: . +% +% This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license. +% File is in constant progress. Things are messy. + +\ProvidesFile{mla.cbx}[2010/02/15 v0.9 biblatex citation style] + +\newboolean{cbx@firstlonghand}% +\DeclareBibliographyOption{firstlonghand}[true]{\setboolean{cbx@firstlonghand}{#1}} +\newboolean{cbx@nofullfootnote}% +\DeclareBibliographyOption{nofullfootnote}[true]{\setboolean{cbx@nofullfootnote}{#1}} + +\DeclareBibliographyOption{mancitepar}[true]{% +\let\mypkg@@everypar\everypar +\newtoks\mypkg@everypar +\mypkg@everypar\expandafter{\the\everypar} +\mypkg@@everypar{\mypkgs@ownstuff\the\mypkg@everypar} +\def\mypkgs@ownstuff{% + \mancite +} +\let\everypar\mypkg@everypar} + +% The following is taken from biblatex-chicago-notes-df for parity of feature set. I don't like the naming of the option there ("strict"), so even though consistency trumps (or defines) clarity, I changed the name for now. +\DeclareBibliographyOption{footnoterulestrict}[true]{% 0.7 renamed + \let\splitfootnoterule\footnoterule + \renewcommand\footnoterule{}% + \advance\skip\footins 4\p@\@plus2\p@\relax + \gdef\split@prev{0} + \let\pagefootnoterule\footnoterule + \def\footnoterule{\relax + \ifnum\split@prev=\z@ + \pagefootnoterule + \else + \splitfootnoterule + \fi + \xdef\split@prev{\the\insertpenalties}% + }} + + +\ExecuteBibliographyOptions{citetracker=true,ibidtracker=constrict,opcittracker=constrict,singletitle,autocite=inline,uniquename=init,hyperref=true,useprefix=true,firstlonghand,annotation=false,loccittracker=strict,noremoteinfo=true}% + +\newbool{cbx@named}% +\newbool{cbx@mlafootnotes}% +\newbool{cbx@hyperpages}% + +\newbool{cbx@mladraft}% +\DeclareBibliographyOption{mladraft}[true]{% + \setboolean{cbx@mladraft}{#1}} + +\urlstyle{same} + +\newbibmacro*{cite:init}{% + \global\let\cbx@tempa=\empty + \global\undef\cbx@lasthash} + +% 0.7.1 trying to get \citereset working again after I fiddled around with \InitializeCitationStyle to add mladraft stuff +\renewcommand*{\citereset}{% + \usebibmacro{cite:reset} + \@ifstar + {} + {\global\cslet{blx@bsee@\the\c@refsection}\@empty + \global\cslet{blx@fsee@\the\c@refsection}\@empty + \blx@ibidreset@force + \blx@idemreset@force + \blx@opcitreset@force + \blx@loccitreset@force}} + +\InitializeCitationStyle{% + \usebibmacro{cite:reset}% + \@expandtwoargs\in@{,draft,}{,\@classoptionslist,}% + \ifin@% + \ExecuteBibliographyOptions{mladraft}% draft option present + \fi + \long\def\mlasymbolfootnote#1{\begingroup\def% + \thefootnote{\fnsymbol{footnote}}\footnote[0]{#1}\endgroup}% + \newcounter{mladraftnote}} + +\OnManualCitation{% + \usebibmacro{cite:reset}% + \global\let\cbx@lastpostnote=\empty} + +\newbibmacro*{cite:reset}{% + \global\undef\cbx@lasthash}% + % \global\undef\cbx@mlaincollection} 0.7.1 - commented out + +\newbibmacro*{cite:save}{% + \savefield{entrykey}{\cbx@lastkey}% + \savefield{namehash}{\cbx@lasthash}% + \savefieldcs{entrykey}{cbx@lastkey@\thefield{namehash}}% + \csxdef{cbx@lastcite@\thefield{entrykey}}{\the\value{instcount}}} + +% \begin{inlines} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%% In-Line Citations %%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newbibmacro*{cite:mla}{% + \bibhypertarget{cite\the\value{instcount}}{% + \ifciteseen% + {\usebibmacro{cite:mla:seen}} + {\usebibmacro{cite:mla:unseen}\usebibmacro{cite:save}}% + \global\boolfalse{cbx@mlafootnotes}}} + +\newbibmacro*{cite:mla:unseen}{% + \ifbool{cbx@firstlonghand} + {\usebibmacro{cite:mla:noshorthand}}% + {\usebibmacro{cite:mla:seen}}} + +\newbibmacro*{cite:mla:seen}{% + \iffieldundef{shorthand}% + {\usebibmacro{cite:mla:noshorthand}}% + {\usebibmacro{cite:mla:shorthand}% + \savefield{namehash}{\cbx@lasthash}}} + +\newbibmacro*{cite:mla:noshorthand}{% + \ifciteibid% + {\ifbool{cbx@mlafootnotes}% + {\usebibmacro{cite:mla:noibid}\usebibmacro{cite:save}}% + {\usebibmacro{cite:ibid}}}% + {\usebibmacro{cite:mla:noibid}\usebibmacro{cite:save}}}% + +\newbibmacro*{cite:mla:noibid}% + {\global\boolfalse{cbx@hyperpages}% + \ifthenelse{\iffieldequals{namehash}{\cbx@lasthash}}% + {\usebibmacro{cite:idem}% + \usebibmacro{cite:mla:title}}% + {\ifnameundef{labelname}% + {\global\boolfalse{cbx@named}\usebibmacro{cite:mla:title}}% + {\ifthenelse{\iffieldequalstr{entrytype}{incollection} \or \iffieldequalstr{entrytype}{inreference} \or \iffieldequalstr{entrytype}{review}} % 0.5, avoiding using editor's name in citations when incollection is an anonymous work: ie, citing Beowulf from the Norton Anthology + {\ifnameundef{author} + {\global\boolfalse{cbx@named} + \usebibmacro{cite:mla:title}} + {\usebibmacro{cite:name}% + \usebibmacro{cite:mla:title}\addspace}} + {\usebibmacro{cite:name}% + \usebibmacro{cite:mla:title}\addspace}}}}% + +\newbibmacro*{cite:mla:shorthand}{% + \ifciteibid% + {\ifbool{cbx@mlafootnotes}% 0.5 -- no ibid for MLA footnotes + {\printtext[bibhyperref]{% + \printfield[citetitle:\strfield{entrytype}]{shorthand}}\addspace}% + {\usebibmacro{cite:ibid}}}% + {\global\boolfalse{cbx@hyperpages}\printtext[bibhyperref]{% + \printfield[citetitle:\strfield{entrytype}]{shorthand}}\addspace}} + +\newbibmacro*{cite:name}{% + \ifsingletitle% + {\printtext[bibhyperref]{% + % \ifbool{bbx@totalnames}% platypus - still need to add support for option totalnames in citations + \printnames{labelname}}% + \savefield{namehash}{\cbx@lasthash}% + \global\booltrue{cbx@named}}%\printnames{labelname} + {\printnames{labelname}% + \savefield{namehash}{\cbx@lasthash}% + \global\booltrue{cbx@named}}}% + +\newbibmacro*{cite:mla:title}{% 0.7.1 tidied up + \unspace% + \ifnameundef{labelname}% + {\unspace% + \printtext[bibhyperref]{% + \printfield[citetitle:\strfield{entrytype}]{labeltitle}}% + \iffieldundef{postnote}% + {}% + {\addspace}}% + {\ifsingletitle% + {}% + {\usebibmacro{cite:mla:title:internal}}} + \ifthenelse{\iffieldequalstr{entrytype}{review}% + \and\ifnameundef{author}% + \and\iffieldundef{title}}% + {\printtext[bibhyperref]% + {\unspace\printtext{\bibcpstring{reviewof}% + \addspace\printfield{booktitle}}}}% + {}}% + +\newbibmacro*{cite:mla:title:internal}{% 0.7.1 new internal macro + \ifbool{cbx@named}% + {\unspace\addcomma\addspace}% + {\unspace}% + \iffieldundef{title}% + {\iffieldequalstr{entrytype}{review}% + {\printtext[bibhyperref]{\printtext{\bibstring{reviewof}% + \addspace\printfield{booktitle}}}}% + {\ifthenelse{\iffieldequalstr{entrytype}{suppbook}% 0.7.1 + \OR\iffieldequalstr{entrytype}{suppcollection}}% + {\printtext[bibhyperref]{% + \printfield[mla:capital]{entrysubtype}}}% + {}}}% + {\printtext[bibhyperref]{% + \printfield[citetitle:\strfield{entrytype}]{labeltitle}}}}% + +% %%%%%%%%%% for ibid, idem, opcit %%%%%%%% + +\newbibmacro*{cite:idem}{% + \ifsingletitle% + {\iffieldundef{postnote}% + {\usebibmacro{cite:name}}% + {\unspace\global\boolfalse{cbx@named}}}% + {\unspace\global\boolfalse{cbx@named}}} + +\newbibmacro*{cite:opcit}{% + \usebibmacro{cite:mla:title}\addspace} + +\newbibmacro*{cite:ibid}{% + \iffieldundef{postnote}% + {\unspace\usebibmacro{cite:mla:noibid}}% + {\unspace\global\booltrue{cbx@hyperpages}}% + \usebibmacro{cite:save}% + \iffieldundef{prenote} + {} + {\usebibmacro{cite:reset}}} + +\renewcommand*{\postnotedelim}{\addspace}% + +\renewbibmacro*{postnote}{% + \iffieldundef{postnote}{\unspace}{% + {\ifbool{cbx@hyperpages}% + {\printtext[bibhyperref]{\printfield[ibidpostnote]{postnote}}}% + {\printfield[ibidpostnote]{postnote}}}}}% + +\newbibmacro*{locpostnote}{% + \ifbool{cbx@mladraft}% + {\ifbool{cbx@hyperpages}% + {\printtext[mlarepeatedcites]{% + \printtext[bibhyperref]{\printfield[ibidpostnote]{postnote}}}}% + {\printtext[mlarepeatedcites]{% + \printfield[ibidpostnote]{postnote}}}% + \ifthenelse{\value{mladraftnote}<2}% + {\mlasymbolfootnote{\addtocounter{mladraftnote}{4}% + $\clubsuit$ It is best to cite once at the end % + of a passage quoting a single page range.}}% + {}}% + {\usebibmacro{postnote}}} + +% \end{inlines} +% \begin{footnotes} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%% Footnote Citations %%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newbibmacro*{cite:mla:foot}{% + \ifciteseen% + {\usebibmacro{cite:mla:seen}}% + {\ifbool{cbx@nofullfootnote}% + {\usebibmacro{cite:mla:seen}}% + {\usedriver{}{footcite:\strfield{entrytype}}}% + }} + +\newbibmacro*{cite:foot:name}{% + \global\boolfalse{cbx@named}% + \usebibmacro{cite:foot:author/editor}% + \savefield{namehash}{\cbx@lasthash}}% + +\newbibmacro*{cite:foot:author:review}{% + \global\boolfalse{cbx@named}% + \ifnameundef{author}% + {}% + {\usebibmacro{cite:foot:author}% + \savefield{namehash}{\cbx@lasthash}% + \global\booltrue{cbx@named}% + }}% + +\newbibmacro*{cite:foot:author/editor}% +{\ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}}% + {\usebibmacro{cite:foot:author}}% + {\usebibmacro{cite:foot:editor}}}% + +\newbibmacro*{cite:foot:author}{% + \ifbool{bbx@totalnames}% + {\printnames[byauthor][-\value{listtotal}]{author}}% + {\printnames[byauthor]{author}}% + \clearname{author}\global\booltrue{cbx@named}% + \printfield{nameaddon}} + +\newbibmacro*{cite:foot:editor}{% + \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}% + {\ifbool{bbx@totalnames}% + {\printnames[byeditor][[-\value{listtotal}]]{editor}}% + {\printnames[byeditor]{editor}}% + \setunit*{\addcomma\space}% + \usebibmacro{editorstrg}% + \clearname{editor}\global\booltrue{cbx@named}}% + {\ifusetranslator% + {\printnames[byeditor]{translator}% + \setunit*{\addcomma\space}% + \usebibmacro{translatorstrg}% + \clearname{translator}\global\booltrue{cbx@named}}% + {}% + }}% + +\newbibmacro*{cite:foot:byauthor:incollection}{% + \ifthenelse{\ifuseauthor\OR% + \ifnameundef{author}\OR% + \ifnamesequal{author}{bookauthor}}% + {}% + {\biblcstring{byauthor}\addspace% + \printnames[byauthor]{author}}} + +\newbibmacro*{cite:foot:byauthor}{% + \ifthenelse{\ifuseauthor\OR% + \ifnameundef{author}}% + {}% + {\bibstring{byauthor}\addspace\printnames[byauthor]{author}}} + +\newbibmacro*{cite:foot:bybookauthor}{% + \ifthenelse{\ifnameundef{bookauthor}\OR% + \(\ifnamesequal{author}{bookauthor}\AND\ifuseauthor\)}% + {}% + {\bibstring{byauthor}\addspace\printnames[byauthor]{bookauthor}}} + +\DeclareBibliographyDriver{footcite:booklet}{% + \usedriver{}{footcite:book}} + +\DeclareBibliographyDriver{footcite:collection}{% + \usedriver{}{footcite:book}} + +\DeclareBibliographyDriver{footcite:reference}{% + \usedriver{}{footcite:book}} + +\DeclareBibliographyDriver{footcite:book}{% + \usebibmacro{cite:foot:name}% + \ifbool{cbx@named}% 0.7.1 + {\setunit{\newunitpunct}}% + {\setunit{}}% + \usebibmacro{cite:foot:title}% + \newunit% + \usebibmacro{cite:foot:byauthor}% + \newunit% + \usebibmacro{cite:foot:byeditor}% + \newunit% + \usebibmacro{cite:foot:bytranslator}% + \newunit% + \printfield{edition}% + \newunit% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \printfield{volumes}% + \newunit% + \usebibmacro{series+number}% + \setunit{\addspace}% + \usebibmacro{cite:foot:publisher+location+year}} + +\newbibmacro*{cite:foot:publisher+location+year}{% + \printtext[parens]{% + \printfield[noformat]{origyear}% + \setunit*{\addsemicolon\addspace}% + \printlist{location}% + \iflistundef{publisher}% + {\setunit*{\addspace}}% + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + \newunit% + \printfield{year}}} + +\DeclareBibliographyDriver{footcite:article}{% + \usebibmacro{cite:foot:name}% + \newunit% + \usebibmacro{cite:foot:title}% + \newunit% + \usebibmacro{cite:foot:byauthor:incollection}% + \newunit% + \usebibmacro{cite:foot:bytranslator}% + \newunit% + \usebibmacro{journal+issuetitle}% + \newunit% + \iffieldundef{url}{}{\usebibmacro{cite:foot:url+urldate}}% + \setunit{\addcolon\addspace}% + \iffieldundef{postnote}% + {\printfield{pages}}% + {}}% + +\newbibmacro*{cite:foot:url+urldate}{% + \printtext{\biburldatelong}% + \setunit{\addspace}% + \printfield{url}} + +\DeclareBibliographyDriver{footcite:inreference}{% + \usedriver{}{footcite:incollection}} + +\DeclareBibliographyDriver{footcite:incollection}{% + \usebibmacro{cite:foot:name}% + \ifbool{cbx@named}% 0.7.1 + {\setunit{\newunitpunct}}% + {\setunit{}}% + \ifthenelse{% + \iffieldequalstr{entrysubtype}{book}% + \OR% + \iffieldequalstr{entrysubtype}{play}}% + {\usebibmacro{cite:foot:title:incollection:italics}}% + {\usebibmacro{cite:foot:title}}% + \newunit% + \printfield[mla:lowercase]{titleaddon}% + \newunit% + \usebibmacro{cite:foot:byauthor:incollection}% + \newunit% + \ifbool{bbx@uniquetranslator}% + {\usebibmacro{cite:foot:bytranslator}\clearname{translator}}% + {}% + \ifthenelse{% + \iffieldequalstr{entrysubtype}{book}% + \OR% + \iffieldequalstr{entrysubtype}{play}}% + {\setunit{\addcomma\addspace\bibstring{in}\addspace}}% + {\newunit}% + \printtext[citetitle:book]{% + \printfield[noformat]{booktitle}% + \setunit{\subtitlepunct}% + \printfield[noformat]{booksubtitle}% + }% + \usebibmacro{cite:foot:bybookauthor}% + \newunit% + \usebibmacro{cite:foot:byeditor}% ...check for spacing + \newunit% + \iffieldsequal{year}{edition}% 0.7 + {\printfield{year}~\bibstring{edition}\clearfield{year}}% + {\printfield[foot:cite:edition:format]{edition}\isdot}% + \newunit% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \printfield{volumes}% + \newunit% + \usebibmacro{series+number}% + \setunit{\addspace}% + \iffieldundef{year}% + {}% + {\usebibmacro{cite:foot:publisher+location+year}}% + \setunit{\addspace}% + \iffieldundef{postnote}% + {\printfield{pages}}% + {}% + }% + +\DeclareBibliographyDriver{footcite:phdthesis}{% + \usedriver{}{footcite:thesis}} + +\DeclareBibliographyDriver{footcite:thesis}{% + % \unspace + \usebibmacro{cite:foot:name}% + \newunit% + \usebibmacro{title}% + \newunit% + \ifbibstring{\thefield{type}}% + {\printtext[default]{\bibstring{\thefield{type}}}}% + {\printtext[default]{\printfield{type}}}% + \newunit% + \printlist{institution}% + \newunit% + \iffieldequalstr{entrysubtype}{published}% + {\printfield{origyear}\clearfield{origyear}}% + {\printfield{year}}% + \newunit% + \iffieldequalstr{entrysubtype}{published}% + {\usebibmacro{series+number}% + \setunit{\addspace}% + \usebibmacro{cite:foot:publisher+location+year}}% + {}} + +\DeclareBibliographyDriver{footcite:review}{% + \usebibmacro{cite:foot:author:review}% + \ifbool{cbx@named}% 0.7.1 + {\setunit{\newunitpunct}}% + {\setunit{}}% + \usebibmacro{cite:foot:title}% + \setunit*{\newunitpunct}% + \printtext[bibhyperref]% + {\bibstring{reviewof}\addspace\printfield{booktitle}}% + \newunit% + \ifnameundef{bookauthor}% + {\printtext[reviewededitor]{\printnames[default]{editor}}}% + {\printtext[reviewedauthor]{\printnames[default]{bookauthor}}}% + \newunit% + \usebibmacro{journal+issuetitle}% + \newunit% + \iffieldundef{url}{}{\usebibmacro{cite:foot:url+urldate}}% + \setunit{\addcolon\addspace}% + \iffieldundef{postnote}% + {\printfield{pages}}% + {}}% + +\DeclareBibliographyDriver{footcite:video}{% + \setbool{cbx@named}{false}% + \ifnamesequal{labelname}{author}% + {\usebibmacro{mla:video:name:first:footnote}{author}% + \setbool{cbx@named}{true}}% + {}% + \ifnamesequal{labelname}{editor}% + {\usebibmacro{mla:video:name:first:footnote}{editor}% + \setbool{cbx@named}{true}}% + {}% + \ifbool{cbx@named}% + {\setunit{\newunitpunct}}% + {\setunit{}}% + \printtext[bibhyperref]{\printfield{title}}% + \newunit% + \ifnameundef{bookauthor}% + {}% + {\printtext[reviewedauthor]{\printnames[byeditor]{bookauthor}}}% + \newunit% + \usebibmacro{mla:video:name:second:footnote}{author}% + \newunit% + \usebibmacro{mla:video:name:second:footnote}{editor}% + \newunit% + \usebibmacro{mla:video:name:second:footnote}{namea}% + \newunit% + \usebibmacro{mla:video:name:second:footnote}{nameb}% + \newunit% + \usebibmacro{mla:video:name:second:footnote}{namec}% + \newunit% + \printfield{origyear}% + \newunit% + \printfield{howpublished}% + \newunit% + \printlist{publisher}% + \newunit% + \printfield{year}% + \addperiod} + +\DeclareBibliographyDriver{footcite:suppcollection}{% + \usedriver{}{footcite:suppbook}} + +\DeclareCiteCommand{\titleandsubtitle} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\indexfield{indextitle}% + \printtext[citetitle]{% + \printfield[noformat]{title}% + \iffieldundef{subtitle}{}{\subtitlepunct}% + \printfield[noformat]{subtitle}}}% + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareBibliographyDriver{footcite:suppbook}{% + \usebibmacro{cite:foot:name}% + \newunit% + \usebibmacro{cite:foot:title}% + \newunit% + \printfield{entrysubtype}% + \newunit% + \usebibmacro{booktitle}% + \setunit{\newunitpunct\bibstring{bytypeauthor}\addspace}% + \ifnamesequal{labelname}{bookauthor}% 0.7 + {\printnames[mla:last]{bookauthor}}% + {\printnames[byauthor]{bookauthor}}% + \newunit% + \usebibmacro{byeditor+others}% + \newunit% + \printfield{edition}% + \newunit% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \printfield{volumes}% + \newunit% + \usebibmacro{series+number}% + \setunit{\addspace}% + \usebibmacro{cite:foot:publisher+location+year}% + \setunit{\addspace}% + \iffieldundef{postnote}% + {\printfield{pages}}% + {}} + +\DeclareBibliographyDriver{footcite:unpublished}{% + \usebibmacro{cite:foot:name}% + \newunit% + \usebibmacro{mla:title:unpublished}% + \newunit% + % \printfield[mla:lowercase]{titleaddon}% + \newunit% + \printfield{note}% + \newunit% + \usebibmacro{mla:all:type:foot}% + \setunit*{\isdot\addspace}% + \printfield{number}% + \newunit% + \printfield{library}% + \setunit{\addcomma\addspace}% + \printlist{location}% + \newunit% + \printfield{addendum}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{footcite:periodical}{% + \usebibmacro{cite:foot:editor}% + \setunit{\labelnamepunct}\newblock% + \usebibmacro{mla:article:journal+issuetitle}% + \newunit\newblock + \printfield{note}% + \setunit{\addcolon\addspace}\newblock + \iffieldundef{postnote}% + {\printfield{pages}}% + {}% + \newunit\newblock + \usebibmacro{url+urldate}% + \newunit\newblock + \printfield{addendum}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\newbibmacro*{cite:foot:title}{% + \iffieldundef{title}% + {}% + {\printtext[bibhyperref]{% + \printtext[citetitle:\strfield{entrytype}]{% + \printfield[noformat]{title}% + \setunit{\subtitlepunct}% + \printfield[noformat]{subtitle}}}% + }}% + +\newbibmacro*{cite:foot:title:incollection:italics}{% + \printtext[bibhyperref]{% + \printtext[title:book]{% + \printfield[noformat]{title}% + \setunit{\subtitlepunct}% + \printfield[noformat]{subtitle}}% + }}% + +\newbibmacro*{cite:foot:bytranslator}{% + \ifnameundef{translator}% + {}% + {\printtext[default]{\bibstring{bytranslator}\addspace% + \printnames[cite:foot:translator]{translator}}}} + +\newbibmacro*{cite:foot:byeditor}{% + \ifthenelse{\ifnameundef{editor}\OR% + \( \iffieldequalstr{entrytype}{collection}\AND% + \ifnameundef{author} \)}% + {}% + {\usebibmacro{byeditor+others}}} + +\newbibmacro*{mla:foot:postnote}{% + \iffieldundef{postnote}% + {\unspace}% + {\unspace\addspace\printfield[footpostnote]{postnote}}% + \usebibmacro{cite:reset}} + +%%%%% platypus TODO for footnotes %%%%% +% - inproceedings +% - articles +% - proceedings + +% \end{footnotes} +% \begin{formats} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%% Format Declarations %%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\DeclareFieldFormat{citetitle:article}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:inreference}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:book}{\mkbibemph{#1}} +\DeclareFieldFormat{citetitle:booklet}{\mkbibemph{#1}}% 0.7 +\DeclareFieldFormat{citetitle:collection}{\mkbibemph{#1}}% 0.7 +\DeclareFieldFormat{citetitle:reference}{\mkbibemph{#1}}% 0.7 +\DeclareFieldFormat{citetitle:incollection}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:inproceedings}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:unpublished}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:thesis}{\mkbibquote{#1}} +\DeclareFieldFormat{citetitle:video}{\mkbibemph{#1}} +\DeclareFieldFormat{citetitle:review}{\mkbibquote{#1}}% 0.7 +\DeclareFieldFormat{mla:lowercase}{\MakeLowercase{#1}} +\DeclareFieldFormat{ibidpostnote}{\unspace{}#1}% +\DeclareFieldFormat{footpostnote}{#1}% +\DeclareFieldFormat{mlarepeatedcites}{\fbox{#1}% + \marginpar{\hfill\footnotesize{$\clubsuit$}}}% +\DeclareNameFormat{cite:foot:editor}{% + \usebibmacro{name:first-last}{#1}{#3}{#5}{#7}% + \usebibmacro{name:andothers}}% +\DeclareNameFormat{cite:foot:translator}{% + \usebibmacro{name:first-last}{#1}{#3}{#5}{#7}% + \usebibmacro{name:andothers}}% +\DeclareFieldFormat{foot:cite:edition:format}{% + \ifinteger{#1}% + {\mkbibordinal{#1}~\bibstring{edition}}% + {\printtext[mla:lowercase]{#1}}} +\DeclareFieldFormat{supptotitle}% + {\bibstring{supptotitle}\addspace\mkbibemph{#1}} + + +% \end{formats} +% \begin{cites} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%% Cite Commands %%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\renewbibmacro*{prenote}{% + \iffieldundef{prenote} + {\global\undef\cbx@lastprenote} + {\printfield{prenote}% + \prenotedelim% + % \cbx@lastprenote + \ifthenelse{\iffieldequals{prenote}{\cbx@lastprenote} \and \iffieldequals{entrykey}{\cbx@lastkey}}% + {}% + {\usebibmacro{cite:reset}}% + \savefield{prenote}{\cbx@lastprenote}}} + +\DeclareCiteCommand{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite:mla}} + {} + {\ifthenelse{\iffieldequals{postnote}{\cbx@lastpostnote} \and \iffieldequals{entrykey}{\cbx@lastkey}}% + {\usebibmacro{locpostnote}}% + {\usebibmacro{postnote}}% + \savefield{postnote}{\cbx@lastpostnote}}% + +\DeclareCiteCommand*{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite:mla:starred:title}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\cite}[\mkbibparens] + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:mla}}% + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\cite}[\mkbibparens] + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:mla:starred:title}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\bibsentence% + \usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \global\booltrue{cbx@mlafootnotes}% + \renewcommand*{\newunitpunct}{\addcomma\space}% + \usebibmacro{cite:mla:foot}} + {} + {\usebibmacro{mla:foot:postnote}} + +\DeclareCiteCommand{\fullcite} + {\citereset\renewbibmacro*{author}{% + \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}} + {\ifthenelse{\iffieldequals{namehash}{\cbx@lasthash}\AND\NOT + \iffirstonpage} + {\mbox{\mlanamedash\unspace\newunitpunct}} + {\printnames{author}% + \savefield{namehash}{\cbx@lasthash}}} + {\let\cbx@lasthash\undefined}} +\begin{thebibliography}\thebibitem} + {\usedriver{}{\thefield{entrytype}}\addperiod} + {\thebibitem} + {\end{thebibliography}\citereset} +%\end{nothing} + +\newbibmacro*{cite:mla:starred:title}{% + \ifciteibid + {\iffieldundef{postnote} + {\usebibmacro{cite:mla:title:alone}} + {\global\booltrue{cbx@hyperpages}}} + {\iffieldundef{shorthand} + {\ifsingletitle% + {\iffieldundef{postnote} + {\usebibmacro{cite:mla:title:alone}} + {\global\booltrue{cbx@hyperpages}}}% + {\usebibmacro{cite:mla:title:alone}\addspace}} + {\usebibmacro{cite:mla:shorthand}}}} + +\newbibmacro*{cite:mla:title:alone}{% + \unspace\printtext[bibhyperref]{% + \printfield[citetitle:\strfield{entrytype}]{labeltitle}}% + \ifthenelse{\iffieldequalstr{entrytype}{suppbook}\and\iffieldundef{title}}% + {\printtext[bibhyperref]{% + \printfield[mla:capital]{entrysubtype}}}% + {}} + +% \end{cites} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/portuguese-mla.lbx b/Master/texmf-dist/tex/latex/biblatex-mla/portuguese-mla.lbx new file mode 100644 index 00000000000..8ed052b2d2e --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/portuguese-mla.lbx @@ -0,0 +1,82 @@ +% portuguese-mla.lbx v0.2 2009/07/07 +% +% Portuguese localization in this file provided by Paulo Ferreira. + +\ProvidesFile{portuguese-mla.lbx}[2009/07/07 v0.1.1 biblatex style localization] + +\InheritBibliographyExtras{portuguese} + +\DeclareBibliographyStrings{% + inherit = {portuguese}, + bibliography = {{Bibliografia}{Bibliografia}}, + references = {{Obras citadas}{Obras citadas}}, + % typecompilerandeditor = {{compiler and editor}{comp\adddot\ and ed\adddot}},% 0.7 FIXME in Portuguese + bytranslator = {{trad\adddot}{trad\adddot}}, + byeditor = {{ed\adddot}{ed\adddot}}, + typegeneraleditor = {{editor geral}{ed\adddotspace geral}},% 0.7.1 FIXME? + bytypegeneraleditor = {{editor geral}{ed\adddotspace geral}},% 0.7.1 FIXME? + % byserieseditor = {{editor geral}{editor geral}}, + page = {{\unskip}{\unskip}}, + pages = {{\unskip}{\unskip}}, + andothers = {{et~al\adddot}{et~al\adddot}}, + byeditortr = {{ed\adddot\ e trad\adddot}{ed\adddot\ e trad\adddot}}, % Capitalize Trans? + byeditorco = {{ed\adddot\ e com\adddot}{ed\adddot\ e com\adddot}}, % Etc? + byeditoran = {{ed\adddot\ e anot\adddot}{ed\adddot\ e anot\adddot}}, + byeditorin = {{ed\adddot\ e intr\adddot}{ed\adddot\ e intr\adddot}}, + byeditorfo = {{ed\adddot\ e pref\adddot}{ed\adddot\ e pref\adddot}}, + byeditoraf = {{ed\adddot\ e posf\adddot}{ed\adddot\ e posf\adddot}}, + byeditortrco = {{ed., trad. e com\adddot}{ed., trad. e com\adddot}}, + byeditortran = {{ed., trad. e anot\adddot}{ed., trad. e anot\adddot}}, + byeditortrin = {{ed., trad. e intro\adddot}{ed., trad. e intro\adddot}}, + byeditortrfo = {{ed., trad. e pref\adddot}{ed., trad. e pref\adddot}}, + byeditortraf = {{ed., trad. e posf\adddot}{ed., trad. e posf\adddot}}, + byeditorcoin = {{ed., com. e introd\adddot}{ed., com. e introd\adddot}}, + byeditorcofo = {{ed., com. e pref\adddot}{ed., com. e pref\adddot}}, + byeditorcoaf = {{ed., com. e posf\adddot}{ed., com. e posf\adddot}}, + byeditoranin = {{ed., anot. e introd\adddot}{ed., anot. e introd\adddot}}, + byeditoranfo = {{ed., anot. e pref\adddot}{ed., anot. e pref\adddot}}, + byeditoranaf = {{ed., anot. e posf\adddot}{ed., anot. e posf\adddot}}, + byeditortrcoin = {{ed., trad., com. e introd\adddot}{ed., trad., com. e introd\adddot}}, + byeditortrcofo = {{ed., trad., com. e pref\adddot}{ed., trad., com. e pref\adddot}}, + byeditortrcoaf = {{ed., trad., com. e posf\adddot}{ed., trad., com. e posf\adddot}}, + byeditortranin = {{ed., trad., anot. e introd\adddot}{ed., trad., anot. e introd\adddot}}, + byeditortranfo = {{ed., trad., anot. e pref\adddot}{ed., trad., anot. e pref\adddot}}, + byeditortranaf = {{ed., trad., anot. e posf\adddot}{ed., trad., anot. e posf\adddot}}, + bytranslatorco = {{trad\adddot\ e com\adddot}{trad\adddot\ e com\adddot}}, + bytranslatoran = {{trad\adddot\ e anot\adddot}{trad\adddot\ e anot\adddot}}, + bytranslatorin = {{trad\adddot\ e introd\adddot}{trad\adddot\ e introd\adddot}}, + bytranslatorfo = {{trad\adddot\ e pref\adddot}{trad\adddot\ e pref\adddot}}, + bytranslatoraf = {{trad\adddot\ e posf\adddot}{trad\adddot\ e posf\adddot}}, + bytranslatorcoin = {{trad., com. e introd\adddot}{trad., com. e introd\adddot}}, + bytranslatorcofo = {{trad., com. e pref\adddot}{trad., com. e pref\adddot}}, + bytranslatorcoaf = {{trad., com. e posf\adddot}{trad., com. e posf\adddot}}, + bytranslatoranin = {{trad., anot. e introd\adddot}{trad., anot. e introd\adddot}}, + bytranslatoranfo = {{trad., anot. e pref\adddot}{trad., anot. e pref\adddot}}, + bytranslatoranaf = {{trad., anot. e posf\adddot}{trad., anot. e posf\adddot}}, + phdthesis = {{Tese de Doutor\adddot}{Tese de Doutor\adddot}}, + reviewof = {{recens\~{a}o de}{recens\~{a}o de}}, + volume = {{{Vol\adddot}}{{Vol\adddot}}}, % for correct capitalization of volume reference + phd = {{Tese de Doutor\adddot}{Tese de Doutor\adddot}},% 0.6 + dphil = {{Tese de Doutor\adddot}{Tese de Doutor\adddot}},% 0.6 + lic = {{Diss. de Lic\adddot}{Diss. de Lic\adddot}},% 0.6 + ma = {{Tese de Mestr\adddot}{Tese de Mestr\adddot}},% 0.6 + ms = {{Tese de Mestr\adddot}{Tese de Mestr\adddot}},% 0.6 + msc = {{Tese de Mestr\adddot}{Tese de Mestr\adddot}},% 0.6 + mphil = {{Tese de Mestr\adddot}{Tese de Mestr\adddot}},% 0.6 + mlitt = {{Tese de Mestr\adddot}{Tese de Mestr\adddot}},% 0.6 + % manuscript = {{ms\adddot}{ms\adddot}},% FIXME + % typescript = {{ts\adddot}{ts\adddot}},% FIXME + % director = {{dir\adddot}{dir\adddot}},% FIXME + % screenplay = {{adapt\adddot}{adapt\adddot}},% FIXME + % adaptation = {{adapt\adddot}{adapt\adddot}},% FIXME + % adaptor = {{adapt\adddot}{adapt\adddot}},% FIXME + % performer = {{perf\adddot}{perf\adddot}},% FIXME + % performers = {{perf\adddot}{perf\adddot}},% FIXME + % composer = {{composer\adddot}{composer\adddot}},% FIXME + % composedby = {{composed~by}{composed~by}},% FIXME + % producer = {{prod\adddot}{prod\adddot}},% FIXME + % with = {{with}{with}},% FIXME + % proceedings = {{proc\adddot}{proc\adddot}},% FIXME +} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-mla/spanish-mla.lbx b/Master/texmf-dist/tex/latex/biblatex-mla/spanish-mla.lbx new file mode 100644 index 00000000000..331f363afb5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-mla/spanish-mla.lbx @@ -0,0 +1,86 @@ +% spanish-mla.lbx v0.2 2009/07/07 +% +% Spanish localization in this file provided by Ivan Fernandez. +% Abbreviations taken, whenever possible, from Appendix 2 of the +% Diccionario Panhispánico de Dudas, http://buscon.rae.es/dpdI/ + +\ProvidesFile{spanish-mla.lbx}[2009/07/07 v0.1.1 biblatex style localization] + +\InheritBibliographyExtras{spanish} + +\DeclareBibliographyStrings{% + inherit = {spanish}, + bibliography = {{Obras citadas}{Obras citadas}}, + references = {{Obras citadas}{Obras citadas}}, + typecompiler = {{recopilador}{rec\adddot}}, % FIXME: is this right? + typecompilers = {{recopiladors}{recs\adddot}}, % FIXME: is this right? + typecompilerandeditor = {{rec\adddotspace y ed\adddot}{rec\adddotspace y ed\adddot}},% 0.7 FIXME: is this right? + bytranslator = {{trad\adddot}{trad\adddot}},% FIXME to read "trans. by" in the first instance + byeditor = {{ed\adddot}{ed\adddot}},% FIXME "ed. by" in first instance + typegeneraleditor = {{editor general}{ed\adddotspace gen\adddot}},% 0.7.1 FIXME? + bytypegeneraleditor = {{editor general}{ed\adddotspace gen\adddot}},% 0.7.1 FIXME? + % byserieseditor = {editor general}, + page = {{\unskip}{\unskip}}, + pages = {{\unskip}{\unskip}}, + andothers = {{et~al\adddot}{et~al\adddot}}, + byeditortr = {{ed\adddotspace y trad\adddot}{ed\adddotspace y trad\adddot}}, + byeditorco = {{ed\adddotspace y com\adddot}{ed\adddotspace y com\adddot}}, + byeditoran = {{ed\adddotspace y anot\adddot}{ed\adddotspace y anot\adddot}}, + byeditorin = {{ed\adddotspace y introd\adddot}{ed\adddotspace y introd\adddot}}, + byeditorfo = {{ed\adddotspace y pr\'{o}l\adddot}{ed\adddotspace y pr\'{o}l\adddot}}, + byeditoraf = {{ed\adddotspace y ep\'{i}l\adddot}{ed\adddotspace y ep\'{i}l\adddot}}, + byeditortrco = {{ed\adddot, trad\adddotspace y com\adddot}{ed\adddot, trad\adddotspace y com\adddot}}, + byeditortran = {{ed\adddot, trad\adddotspace y anot\adddot}{ed\adddot, trad\adddotspace y anot\adddot}}, + byeditortrin = {{ed\adddot, trad\adddotspace e introd\adddot}{ed\adddot, trad\adddotspace e introd\adddot}}, + byeditortrfo = {{ed\adddot, trad\adddotspace y pr\'{o}l\adddot}{ed\adddot, trad\adddotspace y pr\'{o}l\adddot}}, + byeditortraf = {{ed\adddot, trad\adddotspace y ep\'{i}l\adddot}{ed\adddot, trad\adddotspace y ep\'{i}l\adddot}}, + byeditorcoin = {{ed\adddot, com\adddotspace e introd\adddot}{ed\adddot, com\adddotspace e introd\adddot}}, + byeditorcofo = {{ed\adddot, com\adddotspace y pr\'{o}l\adddot}{ed\adddot, com\adddotspace y pr\'{o}l\adddot}}, + byeditorcoaf = {{ed\adddot, com\adddotspace y ep\'{i}l\adddot}{ed\adddot, com\adddotspace y ep\'{i}l\adddot}}, + byeditoranin = {{ed\adddot, anot\adddotspace e introd\adddot}{ed\adddot, anot\adddotspace e introd\adddot}}, + byeditoranfo = {{ed\adddot, anot\adddotspace y pr\'{o}l\adddot}{ed\adddot, anot\adddotspace y pr\'{o}l\adddot}}, + byeditoranaf = {{ed\adddot, anot\adddotspace y ep\'{i}l\adddot}{ed\adddot, anot\adddotspace y ep\'{i}l\adddot}}, + byeditortrcoin = {{ed\adddot, trad\adddot, com\adddotspace e introd\adddot}{ed\adddot, trad\adddot, com\adddotspace e introd\adddot}}, + byeditortrcofo = {{ed\adddot, trad\adddot, com\adddotspace y pr\'{o}l\adddot}{ed\adddot, trad\adddot, com\adddotspace y pr\'{o}l\adddot}}, + byeditortrcoaf = {{ed\adddot, trad\adddot, com\adddotspace y ep\'{i}l\adddot}{ed\adddot, trad\adddot, com\adddotspace y ep\'{i}l\adddot}}, + byeditortranin = {{ed\adddot, trad\adddot, anot\adddotspace e introd\adddot}{ed\adddot, trad\adddot, anot\adddotspace e introd\adddot}}, + byeditortranfo = {{ed\adddot, trad\adddot, anot\adddotspace y pr\'{o}l\adddot}{ed\adddot, trad\adddot, anot\adddotspace y pr\'{o}l\adddot}}, + byeditortranaf = {{ed\adddot, trad\adddot, anot\adddotspace y ep\'{i}l\adddot}{ed\adddot, trad\adddot, anot\adddotspace y ep\'{i}l\adddot}}, + bytranslatorco = {{trad\adddotspace y com\adddot}{trad\adddotspace y com\adddot}}, + bytranslatoran = {{trad\adddotspace y anot\adddot}{trad\adddotspace y anot\adddot}}, + bytranslatorin = {{trad\adddotspace e introd\adddot}{trad\adddotspace e introd\adddot}}, + bytranslatorfo = {{trad\adddotspace y pr\'{o}l\adddot}{trad\adddotspace y pr\'{o}l\adddot}}, + bytranslatoraf = {{trad\adddotspace y ep\'{i}l\adddot}{trad\adddotspace y ep\'{i}l\adddot}}, + bytranslatorcoin = {{trad\adddot, com\adddotspace e introd\adddot}{trad\adddot, com\adddotspace e introd\adddot}}, + bytranslatorcofo = {{trad\adddot, com\adddotspace y pr\'{o}l\adddot}{trad\adddot, com\adddotspace y pr\'{o}l\adddot}}, + bytranslatorcoaf = {{trad\adddot, com\adddotspace y ep\'{i}l\adddot}{trad\adddot, com\adddotspace y ep\'{i}l\adddot}}, + bytranslatoranin = {{trad\adddot, anot\adddotspace e introd\adddot}{trad\adddot, anot\adddotspace e introd\adddot}}, + bytranslatoranfo = {{trad\adddot, anot\adddotspace y pr\'{o}l\adddot}{trad\adddot, anot\adddotspace y pr\'{o}l\adddot}}, + bytranslatoranaf = {{trad\adddot, anot\adddotspace y ep\'{i}l\adddot}{trad\adddot, anot\adddotspace y ep\'{i}l\adddot}}, + phdthesis = {{Tesis}{Tesis}}, + reviewof = {{rese\~{n}a de}{rese\~{n}a de}}, + volume = {{{Vol\adddot}}{{Vol\adddot}}}, % for correct capitalization of volume reference + phd = {{Tesis}{Tesis}},% 0.6 + dphil = {{Tesis}{Tesis}},% 0.6 + lic = {{Lic\adddotspace tesis}{Lic\adddotspace tesis}},% 0.6 + ma = {{MA\addabbrvspace tesis}{MA\addabbrvspace tesis}},% 0.6 + ms = {{MS\addabbrvspace tesis}{MS\addabbrvspace tesis}},% 0.6 + msc = {{MSc\addabbrvspace tesis}{MSc\addabbrvspace tesis}},% 0.6 + mphil = {{MPhil\addabbrvspace tesis}{MPhil\addabbrvspace tesis}},% 0.6 + mlitt = {{MLitt\addabbrvspace tesis}{MLitt\addabbrvspace tesis}},% 0.6 + % manuscript = {{ms\adddot}{ms\adddot}},% FIXME + % typescript = {{ts\adddot}{ts\adddot}},% FIXME + % director = {{dir\adddot}{dir\adddot}},% FIXME + % screenplay = {{adapt\adddot}{adapt\adddot}},% FIXME + % adaptation = {{adapt\adddot}{adapt\adddot}},% FIXME + % adaptor = {{adapt\adddot}{adapt\adddot}},% FIXME + % performer = {{perf\adddot}{perf\adddot}},% FIXME + % performers = {{perf\adddot}{perf\adddot}},% FIXME + % composer = {{composer\adddot}{composer\adddot}},% FIXME + % composedby = {{composed~by}{composed~by}},% FIXME + % producer = {{prod\adddot}{prod\adddot}},% FIXME + % with = {{with}{with}},% FIXME + % proceedings = {{proc\adddot}{proc\adddot}},% FIXME +} + +\endinput \ No newline at end of file -- cgit v1.2.3