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}
34 \counterwithout{figure}{chapter}
35 \counterwithout{table}{chapter}
37 % reduce skip after section heading
38 \setaftersecskip{1.2ex}
40 \pretitle{\newline\centering \LARGE\scshape \MakeLowercase }
41 \posttitle{\par\vskip 1em}
42 \predate{\footnotesize \centering}
43 \postdate{\par\vskip 1em}
45 % 'abstract' title, bigger skip from title
46 \renewcommand{\abstractname}{}
49 % set name of bibliography to 'references'
50 \renewcommand{\bibname}{References}
54 \makechapterstyle{article-2}{
55 \setsecheadstyle{\Large\scshape\MakeLowercase}
56 \setsubsecheadstyle{\normalsize\itshape}
57 \setaftersubsubsecskip{-1em}
58 \setsubsubsecheadstyle{\small\bfseries}
59 \renewcommand{\printchaptername}{}
60 \renewcommand{\chapternamenum}{}
61 \renewcommand{\chapnumfont}{\chaptitlefont}
62 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
63 \renewcommand{\afterchapternum}{}
64 \renewcommand{\printchaptername}{\secheadstyle}
65 \renewcommand{\cftchapterfont}{\normalfont}
66 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
67 \renewcommand{\cftchapterpresnum}{\scshape}
68 \captiontitlefont{\small}
70 % turn off chapter numbering
71 \counterwithout{section}{chapter}
72 \counterwithout{figure}{chapter}
73 \counterwithout{table}{chapter}
75 % supress chapter numbers
76 \maxsecnumdepth{chapter}
77 \setsecnumdepth{chapter}
79 % reduce skip after section heading
80 \setaftersecskip{1.7ex}
83 \pretitle{\flushleft\LARGE \itshape}
84 \posttitle{\par\vskip 0.5em}
85 \preauthor{\flushleft \large \lineskip 1em}
86 \postauthor{\par\lineskip 1em}
87 \predate{\flushleft\footnotesize\vspace{0.65em}}
88 \postdate{\par\vskip 1em}
90 % 'abstract' title, bigger skip from title
91 \renewcommand{\abstractname}{\normalfont\scriptsize\noindent}
92 \renewcommand{\abstracttextfont}{\normalfont\scriptsize}
95 % set name of bibliography to 'references'
96 \renewcommand{\bibname}{References}
99 %%% Custom styles for headers and footers
103 %\makeevenfoot{kjh}{\thepage}{}{}
104 %\makeoddfoot{kjh}{}{}{\thepage}
105 %\makeheadrule{kjh}{\textwidth}{\normalrulethickness}
106 \newcommand{\@kjhmarks}{%
107 \let\@mkboth\markboth
108 \def\chaptermark##1{%
110 \ifnum \c@secnumdepth >\m@ne
116 \def\sectionmark##1{%
119 \makepsmarks{kjh}{\@kjhmarks}
121 \makeevenhead{kjh}{}{}{\scshape\thepage}
122 \makeoddhead{kjh}{}{}{\scshape\thepage}
124 %%% version control info in footers; requires vc package
125 % Make the style for vc-git revision control headers and footers
126 \makepagestyle{kjhgit}
127 \newcommand{\@kjhgitmarks}{%
128 \let\@mkboth\markboth
129 \def\chaptermark##1{%
131 \ifnum \c@secnumdepth >\m@ne
137 \def\sectionmark##1{%
140 \makepsmarks{kjhgit}{\@kjhgitmarks}
141 \makeevenhead{kjh}{}{}{\scshape\thepage}
142 \makeoddhead{kjh}{}{}{\scshape\thepage}
143 \makeevenfoot{kjhgit}{}{\texttt{\footnotesize{\textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}}{}
144 \makeoddfoot{kjhgit}{}{\texttt{\footnotesize \textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}{}
146 %% Create a command to make a note at the top of the first page describing the
147 %% publication status of the paper.
148 \newcommand{\published}[1]{%
151 \renewcommand{\maketitlehooka}{%
152 \par\noindent\footnotesize \puB}