summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-10 22:53:37 +0000
committerKarl Berry <karl@freefriends.org>2010-09-10 22:53:37 +0000
commit18e2ae6688988e6a06f87f747a340b5fb872fa49 (patch)
tree489583e26b64878d5922fad27fe7931567495477 /Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty
parentd645f21775a095cea63b16fb33718904f2d12f81 (diff)
biblatex-chicago 0.9.5a (8sep10)
git-svn-id: svn://tug.org/texlive/trunk@19646 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty88
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty b/Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty
new file mode 100644
index 00000000000..6aebbb89278
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago.sty
@@ -0,0 +1,88 @@
+% $Id: biblatex-chicago.sty,v 0.1.1.29 2010/09/07 10:51:36 dfussner Exp $
+
+% Copyright (c) 2009-2010 David Fussner. This package is
+% author-maintained.
+%
+% This work may be copied, distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3 of
+% this license or (at your option) any later version. The latest
+% version of this license is in http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX version
+% 2005/12/01 or later. This software is provided as is,
+% without warranty of any kind, either expressed or implied, including,
+% but not limited to, the implied warranties of merchantability and
+% fitness for a particular purpose.
+
+\ProvidesPackage{biblatex-chicago}[2010/09/07 v.0.9d biblatex style]
+
+\RequirePackage{etoolbox}
+
+\DeclareOption{authordate}{\def\cms@style{authordate}}
+\DeclareOption{notes}{\def\cms@style{notes}}
+\DeclareOption*{\eappto\cms@options{\CurrentOption,}}
+\let\cms@options\empty
+\ExecuteOptions{notes}%
+
+\newtoggle{cms@nomark}
+
+\DeclareOption{footmarkoff}{\global\toggletrue{cms@nomark}}
+
+\DeclareOption{natbib}{%
+ \PassOptionsToPackage{natbib}{biblatex}}
+
+\ProcessOptions*
+
+\def\cms@authordate{%
+ \RequirePackage[style=chicago-authordate]{biblatex}%
+ \ExecuteBibliographyOptions{%
+ pagetracker=true,autocite=inline,alldates=comp,labelyear=true,
+ uniquename=true,useeditor=true,usetranslator=true,usecompiler=true,
+ ibidtracker=constrict,sorting=nyt,cmslos=true,nodates}}
+
+\def\cms@notes{%
+ \RequirePackage[style=chicago-notes]{biblatex}%
+ \ExecuteBibliographyOptions{%
+ pagetracker=true,autocite=footnote,abbreviate=false,alldates=comp,
+ citetracker=true,ibidtracker=constrict,usetranslator=true,
+ usecompiler=true,loccittracker=constrict,dateabbrev=false}}
+
+\csuse{cms@\cms@style}
+\undef\cms@authordate
+\undef\cms@notes
+\expandafter\ExecuteBibliographyOptions\expandafter{\cms@options}
+
+\setlength{\bibitemsep}{0.5\baselineskip plus 0.5\baselineskip}
+\setlength{\bibhang}{2em}
+\setlength{\lositemsep}{0.25\baselineskip plus 0.25\baselineskip}
+
+\renewcommand*{\bibnamedash}{---------}
+
+\iftoggle{cms@nomark}
+{}
+{\@ifclassloaded{memoir}%
+ {\blx@warning@noline{%
+ Since you are using the 'memoir' class,\MessageBreak
+ I'm leaving the formatting of the foot- and/or\MessageBreak
+ end-note mark and text to you.}}%
+ {\renewcommand\@makefntext[1]{% Provides in-line footnote marks
+ \setlength\parindent{1em}%
+ \noindent
+ \makebox[2.3em][r]{\@thefnmark.\,\,}#1}
+ \@ifpackageloaded{endnotes}% Provides in-line endnote marks
+ {\def\enotesize{\small}% This size recommended by the Manual
+ \renewcommand{\enoteformat}{%
+ \renewcommand{\makeenmark}{%
+ \hbox{\theenmark.\,\,}}
+ \rightskip\z@ \leftskip\z@ \parindent=2.3em
+ \leavevmode\llap{\makeenmark}}}
+ {}}}
+
+\@ifpackageloaded{babel}
+{\ifthenelse{\equal{\languagename}{american}}
+ {\DeclareLanguageMapping{american}{cms-american}}%
+ {\ifthenelse{\equal{\languagename}{english}}%
+ {\DeclareLanguageMapping{english}{cms-american}}%
+ {}}}%
+{\DeclareLanguageMapping{english}{cms-american}}
+
+\endinput