summaryrefslogtreecommitdiff
path: root/texmf/tex/latex
diff options
context:
space:
mode:
authorSean Whitton <spw+git@sdf.org>2014-05-05 07:44:15 +0000
committerSean Whitton <spw+git@sdf.org>2014-05-05 07:45:33 +0000
commitc8d583f71ef4f1d87c97a14ba399816a76ec90d1 (patch)
tree81e4601d2974a671e186ce0b42777e276607190d /texmf/tex/latex
parent4f664f912baa359526669d0522d43cb9ff4a1188 (diff)
downloaddotfiles-c8d583f71ef4f1d87c97a14ba399816a76ec90d1.tar.gz
Transfer cleaned-up texmf to dotfiles repository
Diffstat (limited to 'texmf/tex/latex')
-rw-r--r--texmf/tex/latex/spwdnd/spwdnd.cls46
-rw-r--r--texmf/tex/latex/spwdoc/spwdoc.cls126
-rw-r--r--texmf/tex/latex/spwessay/spwessay.cls186
-rw-r--r--texmf/tex/latex/spworg/spworg.sty50
-rw-r--r--texmf/tex/latex/spwoutline/spwoutline.cls172
-rw-r--r--texmf/tex/latex/spwpaper/spwpaper.cls194
-rw-r--r--texmf/tex/latex/spwtitle/spwtitle.sty26
7 files changed, 800 insertions, 0 deletions
diff --git a/texmf/tex/latex/spwdnd/spwdnd.cls b/texmf/tex/latex/spwdnd/spwdnd.cls
new file mode 100644
index 00000000..ac1b817c
--- /dev/null
+++ b/texmf/tex/latex/spwdnd/spwdnd.cls
@@ -0,0 +1,46 @@
+\ProvidesClass{spwdnd}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions
+\LoadClass[12pt,a4paper,twoside,twocolumn]{article}
+
+\setlength{\columnsep}{1cm}
+
+\RequirePackage[protrusion=true,expansion=true]{microtype}
+\RequirePackage{geometry}
+\geometry{includehead,rmargin=1.5in,lmargin=.4in,tmargin=.7in,bmargin=1.6in,headheight=.36in,footskip=1.96cm}
+\RequirePackage{fancyhdr}
+\RequirePackage{ifthen}
+\RequirePackage{amssymb}
+\RequirePackage[charter]{mathdesign}
+\RequirePackage[scaled]{berasans}
+\RequirePackage[sf,bf,compact,medium]{titlesec}
+\RequirePackage{textcomp}
+\RequirePackage[onehalf]{spwtitle}
+\RequirePackage{ellipsis}
+\RequirePackage{stmaryrd}
+\RequirePackage{amsmath}
+
+\RequirePackage{framed}
+\RequirePackage{color}
+\definecolor{shadecolor}{gray}{0.8}
+
+%% allow lots and lots of images
+\RequirePackage{etex}
+\reserveinserts{18}
+\RequirePackage{morefloats}
+
+\pagestyle{fancy}
+
+\fancyhf{}
+\fancyhead[EL]{\hskip 0.75in \nouppercase{\leftmark}}
+\fancyhead[OR]{\nouppercase{\leftmark} \hskip 0.7in}
+\fancyfoot[EL]{\hskip -1.1cm \LARGE\textsf{\thepage}}
+\fancyfoot[OR]{\LARGE\textsf{\thepage} \hskip -1.35cm}
+\renewcommand{\headrulewidth}{0pt}
+
+\fancypagestyle{plain}{ %
+ \fancyhf{} % remove everything
+ \fancyhead[OR]{\nouppercase{\leftmark} \hskip 0.7in}
+ \fancyfoot[OR]{\LARGE\textsf{\thepage} \hskip -1.204cm}
+\renewcommand{\headrulewidth}{0pt} % remove lines as well
+\renewcommand{\footrulewidth}{0pt}}
diff --git a/texmf/tex/latex/spwdoc/spwdoc.cls b/texmf/tex/latex/spwdoc/spwdoc.cls
new file mode 100644
index 00000000..1c365f5e
--- /dev/null
+++ b/texmf/tex/latex/spwdoc/spwdoc.cls
@@ -0,0 +1,126 @@
+\ProvidesClass{spwdoc}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions
+\LoadClass[12pt,a4paper]{article}
+
+\RequirePackage[protrusion=true,expansion=true]{microtype}
+\RequirePackage{geometry}
+\geometry{includeheadfoot,lmargin=1in,rmargin=1in,tmargin=.7in,bmargin=.7in}
+\RequirePackage{fancyhdr}
+\RequirePackage{ifthen}
+\RequirePackage{amssymb}
+%\RequirePackage[charter]{mathdesign}
+%\RequirePackage[scaled]{berasans}
+\RequirePackage[sf,bf,compact,medium]{titlesec}
+\RequirePackage{textcomp}
+\RequirePackage[onehalf]{spwtitle}
+%\RequirePackage{ellipsis}
+\RequirePackage{stmaryrd}
+\RequirePackage{amsmath}
+
+%%% BEGIN BIBTEX STUFF
+
+\RequirePackage[%
+authorformat=smallcaps,%
+titleformat=italic,%
+titleformat=commasep,%
+commabeforerest,%
+ibidem=nostrict,% % used to be strictdoublepage
+citefull=first,%
+oxford,%
+pages=format,% pages=test doesn't seem to work but is otherwise better to use
+idem,%
+super,%
+opcit,%
+% human,%
+bibformat=ibidem
+]{jurabib}
+\makeatletter
+\jb@dotfalse
+\makeatother
+
+\AddTo\bibsenglish{%
+ \def\edbyname{ed.}%
+ \def\editorname{(ed.)}%
+ \def\editorsname{(eds.)}%
+ \def\incollinname{in}%
+ \def\inname{in}%
+ \def\transby{$\!\!$}%
+ \def\bibchaptername{ch.}%
+ \def\Bibchaptername{Ch.}%
+ \def\Volumename{Vol.}%
+ \def\volumename{vol.}%
+}
+
+\bibliographystyle{jox}
+
+\renewcommand{\jbbtasep}{ \& }
+\renewcommand{\jbbstasep}{ \& }
+\renewcommand{\jbbtesep}{ \& }
+\renewcommand{\jbbstesep}{ \& }
+\renewcommand{\bibbtasep}{ \& }
+\renewcommand{\bibbstasep}{ \& }
+\renewcommand{\bibbtesep}{ \& }
+\renewcommand{\bibbstesep}{ \& }
+
+% to use this put this at end of essay: \nobibliography{/home/swhitton/doc/swhittonfhs}
+
+%%% END BIBTEX STUFF
+
+%%% BEGIN JURABIB HACKING
+
+% want translator's name in smallcaps
+% much commenting out here to fix some pdflatex errors, and since I
+% don't do anything in German
+\DeclareRobustCommand{\translator}[3]{%
+ \unskip\unskip\space%
+ \ifthenelse{\equal{#1}{}}{% translator missing
+ \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2}%
+ }{% translator given
+ % \ifthenelse{\equal{\bbl@main@language}{german}}{% main language german
+ % \ifthenelse{\equal{#2}{}}{% language missing
+ % {\"U}bers. \transby{} #1%
+ % }{% language given
+ % \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2} ^^fcbers. \transby{} #1%
+ % }%
+ % }{%
+ \ifthenelse{\equal{#2}{}}{% language missing
+ \trans{} \transby{} \textsc{#1}%
+ }{% language given
+ \trans{} \transfrom{}\jbflanguage{#2} \transby{} \textsc{#1}%
+ }%
+ % }%
+ }% dot or not?
+ \ifjbchicago
+ \ifthenelse{\equal{#3}{1}}{% \(type=incollection \and editor given\) \or type=article
+ \bibatsep{}%
+ }{}%
+ \else
+ \ifthenelse{\equal{#3}{1}\and\not\boolean{jboxford}}{%
+ \bibatsep{}%
+ }{}%
+ \fi
+}%
+
+%%% END JURABIB HACKING
+
+\makeatletter
+\newcommand*{\textoverline}[1]{$\overline{\hbox{#1}}\m@th$}
+\makeatother
+
+% from http://stackoverflow.com/questions/2522173/how-to-get-the-value-of-the-document-title-in-latex
+\makeatletter\def\title#1{\gdef\@title{#1}\gdef\THETITLE{#1}}\makeatother
+\makeatletter\def\author#1{\gdef\@author{#1}\gdef\THEAUTHOR{#1}}\makeatother
+\makeatletter\def\date#1{\gdef\@date{#1}\gdef\THEDATE{#1}}\makeatother
+
+\pagestyle{fancy}
+
+\fancyhead{}
+\fancyhead[R]{\textsf{\thepage}}
+\fancyfoot{}
+\renewcommand{\headrulewidth}{0pt}
+
+\fancypagestyle{plain}{ %
+\fancyhf{} % remove everything
+\renewcommand{\headrulewidth}{0pt} % remove lines as well
+\renewcommand{\footrulewidth}{0pt}}
diff --git a/texmf/tex/latex/spwessay/spwessay.cls b/texmf/tex/latex/spwessay/spwessay.cls
new file mode 100644
index 00000000..a35ed680
--- /dev/null
+++ b/texmf/tex/latex/spwessay/spwessay.cls
@@ -0,0 +1,186 @@
+\ProvidesClass{spwessay}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions
+\LoadClass[twoside,a4paper]{article}
+%\setlength{\evensidemargin}{63pt}
+%\setlength{\oddsidemargin}{\evensidemargin}
+\usepackage[margin=1.75in]{geometry}
+
+\RequirePackage[protrusion=true,expansion=true]{microtype}
+\RequirePackage{fancyhdr}
+\RequirePackage{ifthen}
+\RequirePackage{amssymb} % for $\blacksquare$ at end
+
+%\RequirePackage[charter]{mathdesign}
+\RequirePackage{pslatex}
+%\RequirePackage[scaled]{berasans}
+
+\RequirePackage[sf,bf,compact,medium]{titlesec}
+\RequirePackage{textcomp}
+\RequirePackage[onehalf]{spwtitle}
+\RequirePackage[norule,splitrule,stable,multiple]{footmisc}
+\RequirePackage[utf8]{inputenc}
+\RequirePackage{ellipsis}
+\RequirePackage{stmaryrd}
+\RequirePackage{amsmath}
+
+%%% BEGIN BIBTEX STUFFn
+
+\RequirePackage[%
+%authorformat=smallcaps,%
+titleformat=italic,%
+titleformat=commasep,%
+commabeforerest,%
+ibidem=nostrict,% % used to be strictdoublepage
+citefull=first,%
+oxford,%
+pages=format,% pages=test doesn't seem to work but is otherwise better to use
+%idem,%
+super,%
+opcit,%
+% human,%
+bibformat=ibidem
+]{jurabib}
+\makeatletter
+\jb@dotfalse
+\makeatother
+
+\AddTo\bibsenglish{%
+ \def\edbyname{ed.}%
+ \def\editorname{(ed.)}%
+ \def\editorsname{(eds.)}%
+ \def\incollinname{in}%
+ \def\inname{in}%
+ \def\transby{$\!\!$}%
+ \def\bibchaptername{ch.}%
+ \def\Bibchaptername{Ch.}%
+ \def\Volumename{Vol.}%
+ \def\volumename{vol.}%
+}
+
+\bibliographystyle{jox}
+
+\renewcommand{\jbbtasep}{ \& }
+\renewcommand{\jbbstasep}{ \& }
+\renewcommand{\jbbtesep}{ \& }
+\renewcommand{\jbbstesep}{ \& }
+\renewcommand{\bibbtasep}{ \& }
+\renewcommand{\bibbstasep}{ \& }
+\renewcommand{\bibbtesep}{ \& }
+\renewcommand{\bibbstesep}{ \& }
+
+% to use this put this at end of essay: \nobibliography{/home/swhitton/doc/swhittonfhs}
+
+%%% END BIBTEX STUFF
+
+%%% BEGIN BIBLIOGRAPHY HACKING
+
+\makeatletter
+\renewenvironment{thebibliography}[1]
+{\subsection*{\bibname}% <-- this line was changed from \chapter* to \section*
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+{\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\makeatother
+
+\newcommand{\bibname}{Bibliography}
+
+%%% END BIBLIOGRAPHY HACKING
+
+%%% BEGIN JURABIB HACKING
+
+% % want translator's name in smallcaps
+% % much commenting out here to fix some pdflatex errors, and since I
+% % don't do anything in German
+% \DeclareRobustCommand{\translator}[3]{%
+% \unskip\unskip\space%
+% \ifthenelse{\equal{#1}{}}{% translator missing
+% \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2}%
+% }{% translator given
+% % \ifthenelse{\equal{\bbl@main@language}{german}}{% main language german
+% % \ifthenelse{\equal{#2}{}}{% language missing
+% % {\"U}bers. \transby{} #1%
+% % }{% language given
+% % \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2} ^^fcbers. \transby{} #1%
+% % }%
+% % }{%
+% \ifthenelse{\equal{#2}{}}{% language missing
+% \trans{} \transby{} \textsc{#1}%
+% }{% language given
+% \trans{} \transfrom{}\jbflanguage{#2} \transby{} \textsc{#1}%
+% }%
+% % }%
+% }% dot or not?
+% \ifjbchicago
+% \ifthenelse{\equal{#3}{1}}{% \(type=incollection \and editor given\) \or type=article
+% \bibatsep{}%
+% }{}%
+% \else
+% \ifthenelse{\equal{#3}{1}\and\not\boolean{jboxford}}{%
+% \bibatsep{}%
+% }{}%
+% \fi
+% }%
+
+%%% END JURABIB HACKING
+
+\makeatletter
+\newcommand*{\textoverline}[1]{$\overline{\hbox{#1}}\m@th$}
+\makeatother
+
+% from http://stackoverflow.com/questions/2522173/how-to-get-the-value-of-the-document-title-in-latex
+\makeatletter\def\title#1{\gdef\@title{#1}\gdef\THETITLE{#1}}\makeatother
+\makeatletter\def\author#1{\gdef\@author{#1}\gdef\THEAUTHOR{#1}}\makeatother
+\makeatletter\def\date#1{\gdef\@date{#1}\gdef\THEDATE{#1}}\makeatother
+
+\pagestyle{fancy}
+
+\fancyhead{}
+\fancyhead[LE]{\textsf{\thepage} \hfill \textsl{\textsf{\THEAUTHOR}} \hfill}
+\fancyhead[RO]{\hfill \textsf{\THETITLE} \hfill \textsf{\thepage}}
+\fancyfoot{}
+%\fancyfoot[LE,RO]{\textsf{\thepage}}
+
+\renewcommand{\headrulewidth}{0pt}
+
+\fancypagestyle{plain}{ %
+\fancyhf{} % remove everything
+\renewcommand{\headrulewidth}{0pt} % remove lines as well
+\renewcommand{\footrulewidth}{0pt}}
+
+%\renewcommand{\section}[1]{\addtocounter{section}{1}\textbf{\textsection \thesection.} $\quad$\ifthenelse{\equal{#1}{}}{}{ \textsc{#1} $\quad$}}
+
+% following is the above with no blank line - as it should be, rather
+% than requiring one to not end a para
+% http://tex.stackexchange.com/questions/8657/prevent-a-paragraph-break-after-a-section-heading
+\renewcommand{\section}[1]{%
+ \par
+ \ifthenelse{\equal{\thesection}{0}}{}{\bigskip}
+ \pagebreak[2]%
+ \refstepcounter{section}%
+ \everypar={%
+ {\setbox0=\lastbox}% Remove the indentation
+% \addcontentsline{toc}{section}{%
+% {\protect\makebox[0.3in][r]{\textsection \thesection.} \hspace*{3pt}}}%
+% \textbf{\textsection \thesection.} $\quad$% old version with \textsection symbol
+ \thesection. $\quad$%
+ \ifthenelse{\equal{#1}{}}{}{ \textsl{#1} $\quad$}% textsl here used to be textsc
+% \textsc{\thesubsection\space\space{#1} }%
+ \everypar={}%
+ }%
+ \ignorespaces
+}
diff --git a/texmf/tex/latex/spworg/spworg.sty b/texmf/tex/latex/spworg/spworg.sty
new file mode 100644
index 00000000..3117bd5a
--- /dev/null
+++ b/texmf/tex/latex/spworg/spworg.sty
@@ -0,0 +1,50 @@
+\ProvidesPackage{spworg}
+
+\usepackage[protrusion=true,expansion=true]{microtype}
+\usepackage{multicol}
+\usepackage[a4paper]{geometry}
+\geometry{a4paper,verbose,includehead,tmargin=30pt,headsep=15pt,bmargin=50pt,lmargin=60pt,rmargin=80pt}
+\usepackage{fancyhdr} % this has to go after the geometry or the header appears too short
+%\pagestyle{fancy}
+%\usepackage{spwmaths}
+\usepackage[charter]{mathdesign}
+\usepackage[scaled]{berasans}
+\usepackage[sf,bf,compact,medium]{titlesec}
+%\setlength{\parindent}{0pt} % not sure why this was here and it was
+% meaning no indent on top level - be willing to uncomment
+
+\setlength{\headheight}{15pt}
+
+\pagestyle{fancy}
+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+\renewcommand{\sectionmark}[1]{\markright{#1}{}}
+
+\usepackage[onehalf]{spwtitle}
+
+\fancyhead{}
+\fancyhead[LE,RO]{\textsf{\thepage}}
+\makeatletter\fancyhead[CE]{\textsc{\nouppercase{\@title}}}\makeatother
+\fancyhead[CO]{\textsc{\nouppercase{\rightmark}}}
+\fancyfoot{}
+
+\fancypagestyle{plain}{ %
+\fancyhf{} % remove everything
+\renewcommand{\headrulewidth}{0pt} % remove lines as well
+\renewcommand{\footrulewidth}{0pt}}
+
+\setlength{\columnsep}{25pt}
+\setlength{\columnseprule}{.5pt}
+
+\newenvironment{lowitemize}{\begin{list}{$\quad\boldsymbol{\star}\;$}{%
+\setlength{\itemsep}{0pt}%
+\setlength{\parsep}{3pt}%
+\setlength{\leftmargin}{20pt}%
+}}{\end{list}}
+\renewenvironment{itemize}{\begin{list}{--}{%
+\setlength{\itemsep}{0pt}%
+\setlength{\parsep}{3pt}%
+\setlength{\leftmargin}{40pt}%
+}}{\end{list}}
+
+\renewcommand{\subsubsection}[1]{\par\bigskip\textbf{#1}\bigskip\par}
+%\renewcommand{\paragraph}[1]{\par\bigskip\textsc{#1}\bigskip\par}
diff --git a/texmf/tex/latex/spwoutline/spwoutline.cls b/texmf/tex/latex/spwoutline/spwoutline.cls
new file mode 100644
index 00000000..cdf9a807
--- /dev/null
+++ b/texmf/tex/latex/spwoutline/spwoutline.cls
@@ -0,0 +1,172 @@
+% spwoutline.cls - export Org-mode outlines to LaTeX in an indented hierarchy
+% Copyright (C) 2010-2012 Sean Whitton
+
+% This program is free software; you can redistribute it and/or
+% modify it under the terms of the GNU General Public License
+% as published by the Free Software Foundation; either version 2
+% of the License, or (at your option) any later version.
+
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+
+% You should have received a copy of the GNU General Public License
+% along with this program; if not, write to the Free Software
+% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+% Org-mode config to make use of this class:
+% (add-to-list 'org-export-latex-classes
+% '("spwoutline"
+% "\\documentclass{spwoutline}"
+% ("\\section{%s}" . "\\section*{%s}")
+% ("\\subsection{%s}" . "\\subsection*{%s}")
+% ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
+% (setq org-export-latex-low-levels '("\\begin{lowitemize}\\setlength{\\parindent}{2em}" "\\end{lowitemize}" "\\item \\textbf{%s}\\indent %s")) ; four slashes used to be a \\par
+
+% ; used after things like e.g. to prevent a double space
+% (setq org-entities-user '(("space" "\\ " nil " " " " " " " ")))
+
+\ProvidesClass{spwoutline}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions
+\LoadClass[a4paper]{article}
+
+\RequirePackage[protrusion=true,expansion=true]{microtype}
+\RequirePackage{multicol}
+\RequirePackage[a4paper]{geometry}
+\geometry{a4paper,verbose,includehead,tmargin=30pt,headsep=15pt,bmargin=50pt,lmargin=60pt,rmargin=80pt}
+\RequirePackage{fancyhdr} % this has to go after the geometry or the header appears too short
+%\pagestyle{fancy}
+%\RequirePackage{spwmaths}
+\RequirePackage[charter]{mathdesign}
+\RequirePackage[scaled]{berasans}
+\RequirePackage[sf,bf,compact,medium]{titlesec}
+%\setlength{\parindent}{0pt} % not sure why this was here and it was
+% meaning no indent on top level - be willing to uncomment
+\RequirePackage{ellipsis}
+\RequirePackage{amsbsy} % boldsymbol
+\RequirePackage[norule,splitrule,stable,multiple]{footmisc}
+
+%%% BEGIN BIBTEX STUFF
+
+\RequirePackage[%
+authorformat=smallcaps,%
+titleformat=italic,%
+titleformat=commasep,%
+commabeforerest,%
+ibidem=strictdoublepage,%
+citefull=first,%
+oxford,%
+pages=format,% pages=test doesn't seem to work but is otherwise better to use
+idem,%
+super,%
+opcit,%
+% human,%
+bibformat=ibidem
+]{jurabib}
+\makeatletter
+\jb@dotfalse
+\makeatother
+
+\AddTo\bibsenglish{%
+ \def\edbyname{ed.}%
+ \def\editorname{(ed.)}%
+ \def\editorsname{(eds.)}%
+ \def\incollinname{in}%
+ \def\inname{in}%
+ \def\transby{$\!\!$}%
+ \def\bibchaptername{ch.}%
+ \def\Bibchaptername{Ch.}%
+ \def\Volumename{Vol.}%
+ \def\volumename{vol.}%
+}
+
+\bibliographystyle{jox}
+
+\renewcommand{\jbbtasep}{ \& }
+\renewcommand{\jbbstasep}{ \& }
+\renewcommand{\jbbtesep}{ \& }
+\renewcommand{\jbbstesep}{ \& }
+\renewcommand{\bibbtasep}{ \& }
+\renewcommand{\bibbstasep}{ \& }
+\renewcommand{\bibbtesep}{ \& }
+\renewcommand{\bibbstesep}{ \& }
+
+% to use this put this at end of essay: \nobibliography{/home/swhitton/doc/swhittonfhs}
+
+%%% END BIBTEX STUFF
+
+%%% BEGIN JURABIB HACKING
+
+% want translator's name in smallcaps
+% much commenting out here to fix some pdflatex errors, and since I
+% don't do anything in German
+\DeclareRobustCommand{\translator}[3]{%
+ \unskip\unskip\space%
+ \ifthenelse{\equal{#1}{}}{% translator missing
+ \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2}%
+ }{% translator given
+ % \ifthenelse{\equal{\bbl@main@language}{german}}{% main language german
+ % \ifthenelse{\equal{#2}{}}{% language missing
+ % {\"U}bers. \transby{} #1%
+ % }{% language given
+ % \ifjboxford\transfrom\else\Transfrom\fi\jbflanguage{#2} ^^fcbers. \transby{} #1%
+ % }%
+ % }{%
+ \ifthenelse{\equal{#2}{}}{% language missing
+ \trans{} \transby{} \textsc{#1}%
+ }{% language given
+ \trans{} \transfrom{}\jbflanguage{#2} \transby{} \textsc{#1}%
+ }%
+ % }%
+ }% dot or not?
+ \ifjbchicago
+ \ifthenelse{\equal{#3}{1}}{% \(type=incollection \and editor given\) \or type=article
+ \bibatsep{}%
+ }{}%
+ \else
+ \ifthenelse{\equal{#3}{1}\and\not\boolean{jboxford}}{%
+ \bibatsep{}%
+ }{}%
+ \fi
+}%
+
+%%% END JURABIB HACKING
+
+\setlength{\headheight}{15pt}
+
+\pagestyle{fancy}
+%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+\renewcommand{\sectionmark}[1]{\markright{#1}{}}
+\newcommand{\chaptermark}[1]{\markboth{#1}{}}
+
+\RequirePackage[onehalf]{spwtitle}
+
+\fancyhead{}
+\fancyhead[LE,RO]{\textsf{\thepage}}
+\makeatletter\fancyhead[CE]{\textsf{\nouppercase{\@title}}}\makeatother
+\fancyhead[CO]{\textsf{\nouppercase{\rightmark}}}
+\fancyfoot{}
+
+\fancypagestyle{plain}{ %
+\fancyhf{} % remove everything
+\renewcommand{\headrulewidth}{0pt} % remove lines as well
+\renewcommand{\footrulewidth}{0pt}}
+
+\setlength{\columnsep}{25pt}
+\setlength{\columnseprule}{.5pt}
+
+\newenvironment{lowitemize}{\begin{list}{$\quad\boldsymbol{\star}\;$}{%
+\setlength{\itemsep}{0pt}%
+\setlength{\parsep}{3pt}%
+\setlength{\leftmargin}{20pt}%
+}}{\end{list}}
+\renewenvironment{itemize}{\begin{list}{--}{%
+\setlength{\itemsep}{0pt}%
+\setlength{\parsep}{3pt}%
+\setlength{\leftmargin}{40pt}%
+}}{\end{list}}
+
+\renewcommand{\subsubsection}[1]{\par\bigskip\textbf{#1}\bigskip\par}
+%\renewcommand{\paragraph}[1]{\par\bigskip\textsc{#1}\bigskip\par}
diff --git a/texmf/tex/latex/spwpaper/spwpaper.cls b/texmf/tex/latex/spwpaper/spwpaper.cls
new file mode 100644
index 00000000..24e0402e
--- /dev/null
+++ b/texmf/tex/latex/spwpaper/spwpaper.cls
@@ -0,0 +1,194 @@
+\ProvidesClass{spwpaper}
+
+\newcommand{\initialdouble}{\RequirePackage[doublespacing]{setspace}\setstretch{2}}
+\newcommand{\startdouble}{\doublespacing\setstretch{2}}
+\newcommand{\finishdouble}{\onehalfspacing}
+\DeclareOption{onehalf}{\renewcommand{\initialdouble}{\RequirePackage{setspace}\onehalfspacing}\renewcommand{\startdouble}{}}
+\DeclareOption{pseudodouble}{\renewcommand{\initialdouble}{\RequirePackage[doublespacing]{setspace}\onehalfspacing}\renewcommand{\startdouble}{\doublespacing}}
+\DeclareOption{single}{\renewcommand{\initialdouble}{\RequirePackage{setspace}}\renewcommand{\startdouble}{}\renewcommand{\finishdouble}{}}
+
+\newcommand{\notesandrefs}[1]{\noteshere
+ \bibhere{#1}}
+\newcommand{\doendnotes}{
+ \renewcommand{\footnote}[1]{\endnote{##1}}}
+\DeclareOption{footnotes}{\renewcommand{\notesandrefs}[1]{\bibhere{#1}}\renewcommand{\doendnotes}{}}
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions
+\LoadClass[12pt,a4paper]{article}
+\RequirePackage[a4paper,headheight=0.5in,margin=1in,nofoot]{geometry}
+% \RequirePackage[headings]{fullpage}
+
+\RequirePackage{enumitem}
+\setenumerate[1]{resume,label={\arabic*.},ref={(\arabic*)},itemindent=0.30in,labelsep=1em,itemsep=-1em,before=\vspace{-0.5em},after=\vspace{-0.5em}}
+
+\initialdouble % replaces below four lines to allow it to be disabled
+ % in class options
+%%% \RequirePackage[doublespacing]{setspace}
+%%% % \doublespacing
+%%% % \renewcommand{\baselinestretch}{2}
+%%% \setstretch{2} % setspace *doesn't* get doublespacing right
+\setlength\parindent{.40in}
+
+\RequirePackage[protrusion=true,expansion=true]{microtype}
+\RequirePackage{fancyhdr}
+\RequirePackage{ifthen}
+
+\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
+\DeclareMathSymbol{\strictif}{\mathrel}{symbolsC}{74}
+\DeclareMathSymbol{\boxright}{\mathrel}{symbolsC}{128} % from
+% http://www.latex-community.org/forum/viewtopic.php?f=48&t=6262
+\RequirePackage{wasysym}
+
+\RequirePackage{pslatex}
+%\RequirePackage[scaled]{berasans}
+
+\RequirePackage[sf,bf,compact,medium]{titlesec}
+\RequirePackage{textcomp}
+\RequirePackage[norule,splitrule,stable,multiple]{footmisc}
+\RequirePackage[utf8]{inputenc}
+\RequirePackage{ellipsis}
+\RequirePackage{stmaryrd}
+
+\RequirePackage{endnotes}
+\doendnotes
+
+\RequirePackage[all]{nowidow}
+
+\pagestyle{fancy}
+
+\fancyhf{}
+\fancyhead[R]{\textsf{\thepage}}
+
+\fancypagestyle{plain}{ %
+ \fancyhf{} % remove everything
+ \renewcommand{\headrulewidth}{0pt} % remove lines as well
+ \renewcommand{\footrulewidth}{0pt}}
+
+\renewcommand{\headrulewidth}{0pt}
+
+\makeatletter\renewcommand{\maketitle}{\finishdouble\thispagestyle{plain}
+ \begin{center}\textsf{\@title}
+
+
+ \textsf{\@author}\ifthenelse{\equal{\@date}{}}{}{$\qquad\quad$}\textsf{\@date}
+
+ % \hfill\large\textsf{\@author}\par\hfill\large\textsf{\@date}\normalsize
+ % \vspace{8.5pt}
+\end{center}\startdouble
+}\makeatother
+
+% following is the above with no blank line - as it should be, rather
+% than requiring one to not end a para
+% http://tex.stackexchange.com/questions/8657/prevent-a-paragraph-break-after-a-section-heading
+\renewcommand{\section}[1]{%
+ \par
+ \ifthenelse{\equal{\thesection}{0}}{}{\bigskip}
+ \pagebreak[2]%
+ \refstepcounter{section}%
+ \everypar={%
+ {\setbox0=\lastbox}% Remove the indentation
+% \addcontentsline{toc}{section}{%
+% {\protect\makebox[0.3in][r]{\textsection \thesection.} \hspace*{3pt}}}%
+% \textbf{\textsection \thesection.} $\quad$% old version with \textsection symbol
+ \thesection. $\quad$%
+ \ifthenelse{\equal{#1}{}}{}{ \textsl{#1} $\quad$}% textsl here used to be textsc
+% \textsc{\thesubsection\space\space{#1} }%
+ \everypar={}%
+ }%
+ \ignorespaces
+}
+
+% endnote and quotation formatting, some from Gregory Wheeler's
+% philosophy.sty
+\makeatletter
+\renewcommand{\@makeenmark}{\hbox{$^{\tt\@theenmark}$}}
+
+\newcommand{\noteshere}{%
+ \begingroup
+ \singlespacing
+ \parindent 0pt
+ \parskip 2ex
+ \def\enotesize{\normalsize}
+ \def\enoteformat{\rightskip=.75in \leftskip\z@ \parindent=0em
+ \leavevmode\llap{\hbox{$^{\tt \@theenmark}$}}}%(tt) added, from AC's brain_damage.sty
+ \theendnotes
+ \endgroup}
+\renewcommand{\enoteformat}{\singlespacing\rightskip\z@ \leftskip\z@ \parindent=.40in
+ \leavevmode\llap{\hbox{$^{\@theenmark}$}}}
+\renewcommand{\enoteheading}{\subsection*{\textsc{\notesname}
+ \@mkboth{\uppercase{\notesname}}{\uppercase{\notesname}}}}
+ % \leavevmode\par\vskip-\baselineskip}
+\makeatother
+
+\renewenvironment{quote}% No extra indent on first line
+{\list{}%
+ \small\item[]}
+{\endlist}
+
+% bibliography management
+% \RequirePackage{bibtex}
+\RequirePackage[authoryear,sort,elide]{natbib}
+% \RequirePackage{chicago}
+\bibliographystyle{spwchicago}
+
+\makeatletter \let\citeN\citealt \makeatother % fixes situations where
+ % citing multiple articles from one
+ % edited collection
+
+\newcommand{\bibhere}[1]{%
+ \begingroup
+ \singlespacing
+ \parindent 0pt
+ \parskip 2ex
+ \bibliography{#1}
+ \endgroup}
+
+\setlength{\itemindent}{5em}
+\makeatletter
+\def\thebibliography#1{\subsection*{\textsc{\refname}\@mkboth
+ {\uppercase{\refname}}{\uppercase{\refname}}}\list
+ {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ % \advance\leftmargin\bibindent
+ \advance\leftmargin.35em
+ \itemindent -\bibindent
+ \listparindent \itemindent
+ \parsep \z@
+ \usecounter{enumi}}
+ \def\newblock{}
+ \sloppy
+ \sfcode`\.=1000\relax}
+\makeatother
+%\setcitestyle{aysep={}}
+\bibpunct{(}{)}{;}{a}{}{,}
+
+%% get resizeable Quine Corner Quotes
+\makeatletter
+\DeclareFontFamily{OMX}{MnSymbolE}{}
+\DeclareSymbolFont{MnLargeSymbols}{OMX}{MnSymbolE}{m}{n}
+\SetSymbolFont{MnLargeSymbols}{bold}{OMX}{MnSymbolE}{b}{n}
+\DeclareFontShape{OMX}{MnSymbolE}{m}{n}{
+ <-6> MnSymbolE5
+ <6-7> MnSymbolE6
+ <7-8> MnSymbolE7
+ <8-9> MnSymbolE8
+ <9-10> MnSymbolE9
+ <10-12> MnSymbolE10
+ <12-> MnSymbolE12
+}{}
+\DeclareFontShape{OMX}{MnSymbolE}{b}{n}{
+ <-6> MnSymbolE-Bold5
+ <6-7> MnSymbolE-Bold6
+ <7-8> MnSymbolE-Bold7
+ <8-9> MnSymbolE-Bold8
+ <9-10> MnSymbolE-Bold9
+ <10-12> MnSymbolE-Bold10
+ <12-> MnSymbolE-Bold12
+}{}
+\DeclareMathDelimiter{\ulcorner}
+ {\mathopen}{MnLargeSymbols}{'036}{MnLargeSymbols}{'036}
+\DeclareMathDelimiter{\urcorner}
+ {\mathclose}{MnLargeSymbols}{'043}{MnLargeSymbols}{'043}
+\makeatother
diff --git a/texmf/tex/latex/spwtitle/spwtitle.sty b/texmf/tex/latex/spwtitle/spwtitle.sty
new file mode 100644
index 00000000..fd9a9653
--- /dev/null
+++ b/texmf/tex/latex/spwtitle/spwtitle.sty
@@ -0,0 +1,26 @@
+\ProvidesPackage{spwtitle}
+
+% onehalf option is for documents that want onehalfspacing in general.
+% This has to be set here because we force onehalf for the title and
+% need to know whether to switch it off or not after
+\RequirePackage{setspace}
+\RequirePackage{ifthen}
+\newcommand{\spaceafter}{\singlespacing}
+\DeclareOption{onehalf}{\renewcommand{\spaceafter}{}}
+\ProcessOptions
+
+\usepackage{setspace}
+
+\makeatletter\renewcommand{\maketitle}{\onehalfspacing\thispagestyle{plain}
+%\noindent\rule{\columnwidth}{2pt}
+%\begin{center}\textnormal{\LARGE\@title}
+\noindent\textnormal{\LARGE\textsf{\@title}}
+
+% \hfill\large\@author$\qquad\quad$\@date$\qquad$\normalsize
+\vspace{5pt}
+\hfill\large\textsf{\@author}\par\hfill\large\textsf{\@date}\normalsize
+\vspace{8.5pt}
+%\rule{\columnwidth}{1.5pt}
+%\end{center}
+\spaceafter
+}\makeatother