1 % Some article styles and page layout tweaks for the LaTeX Memoir class.
3 % Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
4 % Copyright 2009 Benjamin Mako Hill <mako@atdot.cc>
6 % Distributed as free software under the GNU GPL v3
8 % This file is heavily based on one by Kieran Healy
9 % available here: http://github.com/kjhealy/latex-custom-kjh/
12 % Use \symbolfootnote[0]{Footnote text} for a blank footnote.
13 % Useful for initial acknowledgment note.
14 \long\def\symbolfootnote[#1]#2{\begingroup%
15 \def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
18 \makechapterstyle{article-1}{
19 \setsecheadstyle{\large\scshape}
20 \setsubsecheadstyle{\normalsize\itshape}
21 \renewcommand{\printchaptername}{}
22 \renewcommand{\chapternamenum}{}
23 \renewcommand{\chapnumfont}{\chaptitlefont}
24 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
25 \renewcommand{\afterchapternum}{}
26 \renewcommand{\printchaptername}{\secheadstyle}
27 \renewcommand{\cftchapterfont}{\normalfont}
28 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
29 \renewcommand{\cftchapterpresnum}{\scshape}
30 \captiontitlefont{\small}
32 % turn off chapter numbering
33 \counterwithout{section}{chapter}
35 % reduce skip after section heading
36 \setaftersecskip{1.2ex}
38 \pretitle{\newline\centering \LARGE\scshape \MakeLowercase }
39 \posttitle{\par\vskip 1em}
40 \predate{\footnotesize \centering}
41 \postdate{\par\vskip 1em}
43 % 'abstract' title, bigger skip from title
44 \renewcommand{\abstractname}{}
47 % set name of bibliography to 'references'
48 \renewcommand{\bibname}{References}
52 \makechapterstyle{article-2}{
53 \setsecheadstyle{\Large\scshape\MakeLowercase}
54 \setsubsecheadstyle{\normalsize\itshape}
55 \setaftersubsubsecskip{-1em}
56 \setsubsubsecheadstyle{\small\bfseries}
57 \renewcommand{\printchaptername}{}
58 \renewcommand{\chapternamenum}{}
59 \renewcommand{\chapnumfont}{\chaptitlefont}
60 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
61 \renewcommand{\afterchapternum}{}
62 \renewcommand{\printchaptername}{\secheadstyle}
63 \renewcommand{\cftchapterfont}{\normalfont}
64 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
65 \renewcommand{\cftchapterpresnum}{\scshape}
66 \captiontitlefont{\small}
68 % supress chapter numbers
69 \maxsecnumdepth{chapter}
70 \setsecnumdepth{chapter}
72 % reduce skip after section heading
73 \setaftersecskip{1.7ex}
76 \pretitle{\flushleft\LARGE \itshape}
77 \posttitle{\par\vskip 0.5em}
78 \preauthor{\flushleft \large \lineskip 1em}
79 \postauthor{\par\lineskip 1em}
80 \predate{\flushleft\footnotesize\vspace{0.65em}}
81 \postdate{\par\vskip 1em}
83 % 'abstract' title, bigger skip from title
84 \renewcommand{\abstractname}{\normalfont\scriptsize\emph{Abstract:}}
85 \renewcommand{\abstracttextfont}{\normalfont\scriptsize}
88 % set name of bibliography to 'references'
89 \renewcommand{\bibname}{References}
92 %%% Custom styles for headers and footers
96 %\makeevenfoot{kjh}{\thepage}{}{}
97 %\makeoddfoot{kjh}{}{}{\thepage}
98 %\makeheadrule{kjh}{\textwidth}{\normalrulethickness}
99 \newcommand{\@kjhmarks}{%
100 \let\@mkboth\markboth
101 \def\chaptermark##1{%
103 \ifnum \c@secnumdepth >\m@ne
109 \def\sectionmark##1{%
112 \makepsmarks{kjh}{\@kjhmarks}
114 \makeevenhead{kjh}{}{}{\scshape\thepage}
115 \makeoddhead{kjh}{}{}{\scshape\thepage}
117 %%% version control info in footers; requires vc package
118 % Make the style for vc-git revision control headers and footers
119 \makepagestyle{kjhgit}
120 \newcommand{\@kjhgitmarks}{%
121 \let\@mkboth\markboth
122 \def\chaptermark##1{%
124 \ifnum \c@secnumdepth >\m@ne
130 \def\sectionmark##1{%
133 \makepsmarks{kjhgit}{\@kjhgitmarks}
134 \makeevenhead{kjh}{}{}{\scshape\thepage}
135 \makeoddhead{kjh}{}{}{\scshape\thepage}
136 \makeevenfoot{kjhgit}{}{\texttt{\footnotesize{\textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}}{}
137 \makeoddfoot{kjhgit}{}{\texttt{\footnotesize \textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}{}
139 %% Create a command to make a note at the top of the first page describing the
140 %% publication status of the paper.
141 \newcommand{\published}[1]{%
144 \renewcommand{\maketitlehooka}{%
145 \par\noindent\footnotesize \puB}