1 % Some article styles and page layout tweaks for the LaTeX Memoir class.
3 % Copyright 2009 Benjamin Mako Hill <mako@atdot.cc>
4 % Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
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/
14 % Use \symbolfootnote[0]{Footnote text} for a blank footnote.
15 % Useful for initial acknowledgment note.
16 \long\def\symbolfootnote[#1]#2{\begingroup%
17 \def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
20 \makechapterstyle{article-1}{
21 \renewcommand{\rmdefault}{ugm}
22 \renewcommand{\sfdefault}{phv}
24 \setsecheadstyle{\large\scshape}
25 \setsubsecheadstyle{\normalsize\itshape}
26 \renewcommand{\printchaptername}{}
27 \renewcommand{\chapternamenum}{}
28 \renewcommand{\chapnumfont}{\chaptitlefont}
29 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
30 \renewcommand{\afterchapternum}{}
31 \renewcommand{\printchaptername}{\secheadstyle}
32 \renewcommand{\cftchapterfont}{\normalfont}
33 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
34 \renewcommand{\cftchapterpresnum}{\scshape}
35 \captiontitlefont{\small}
37 % turn off chapter numbering
38 \counterwithout{section}{chapter}
39 \counterwithout{figure}{chapter}
40 \counterwithout{table}{chapter}
42 % reduce skip after section heading
43 \setaftersecskip{1.2ex}
45 \pretitle{\newline\centering \LARGE\scshape \MakeLowercase }
46 \posttitle{\par\vskip 1em}
47 \predate{\footnotesize \centering}
48 \postdate{\par\vskip 1em}
50 % 'abstract' title, bigger skip from title
51 \renewcommand{\abstractname}{}
54 % set name of bibliography to 'references'
55 \renewcommand{\bibname}{References}
59 \makechapterstyle{article-2}{
60 \renewcommand{\rmdefault}{ugm}
61 \renewcommand{\sfdefault}{phv}
63 \setsecheadstyle{\Large\scshape\MakeLowercase}
64 \setsubsecheadstyle{\normalsize\itshape}
65 \setaftersubsubsecskip{-1em}
66 \setsubsubsecheadstyle{\small\bfseries}
67 \renewcommand{\printchaptername}{}
68 \renewcommand{\chapternamenum}{}
69 \renewcommand{\chapnumfont}{\chaptitlefont}
70 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
71 \renewcommand{\afterchapternum}{}
72 \renewcommand{\printchaptername}{\secheadstyle}
73 \renewcommand{\cftchapterfont}{\normalfont}
74 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
75 \renewcommand{\cftchapterpresnum}{\scshape}
76 \captiontitlefont{\small}
78 % turn off chapter numbering
79 \counterwithout{section}{chapter}
80 \counterwithout{figure}{chapter}
81 \counterwithout{table}{chapter}
83 % supress chapter numbers
84 \maxsecnumdepth{chapter}
85 \setsecnumdepth{chapter}
87 % reduce skip after section heading
88 \setaftersecskip{1.7ex}
91 \pretitle{\flushleft\LARGE \itshape}
92 \posttitle{\par\vskip 0.5em}
93 \preauthor{\flushleft \large \lineskip 1em}
94 \postauthor{\par\lineskip 1em}
95 \predate{\flushleft\footnotesize\vspace{0.65em}}
96 \postdate{\par\vskip 1em}
98 % 'abstract' title, bigger skip from title
99 \renewcommand{\abstractname}{\normalfont\scriptsize\noindent}
100 \renewcommand{\abstracttextfont}{\normalfont\scriptsize}
103 % set name of bibliography to 'references'
104 \renewcommand{\bibname}{References}
108 \makechapterstyle{article-3}{
109 \renewcommand{\rmdefault}{ugm}
110 \renewcommand{\sfdefault}{phv}
112 \setsecheadstyle{\large\sffamily\bfseries\MakeUppercase}
113 \setsubsecheadstyle{\normalsize\itshape}
114 \setaftersubsubsecskip{-1em}
115 \setsubsubsecheadstyle{\small\bfseries}
116 \renewcommand{\printchaptername}{}
117 \renewcommand{\chapternamenum}{}
118 \renewcommand{\chapnumfont}{\chaptitlefont}
119 \renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
120 \renewcommand{\afterchapternum}{}
121 \renewcommand{\printchaptername}{\secheadstyle}
122 \renewcommand{\cftchapterfont}{\normalfont}
123 \renewcommand{\cftchapterpagefont}{\normalfont\scshape}
124 \renewcommand{\cftchapterpresnum}{\scshape}
125 \captiontitlefont{\small}
127 % turn off chapter numbering
128 \counterwithout{section}{chapter}
129 \counterwithout{figure}{chapter}
130 \counterwithout{table}{chapter}
132 % supress chapter numbers
133 \maxsecnumdepth{chapter}
134 \setsecnumdepth{chapter}
136 % reduce skip after section heading
137 \setaftersecskip{1pt}
138 \setbeforesecskip{-1em}
140 % 'abstract' title, bigger skip from title
141 % \renewcommand{\maketitle}{\{\preauthor \theauthor\} \hfill \thetitle}
142 \renewcommand{\maketitle}{
143 {\Large\sffamily\bfseries\MakeUppercase\thetitle} \hfill
144 {\Large\sffamily\MakeUppercase\theauthor}
146 \renewcommand{\abstractname}{\normalfont\scriptsize\noindent}
147 \renewcommand{\abstracttextfont}{\normalfont\scriptsize}
150 % set name of bibliography to 'references'
151 \renewcommand{\bibname}{References}
157 %%% Custom styles for headers and footers
159 \makepagestyle{mako-mem}
160 %\makeevenfoot{mako-mem}{\thepage}{}{}
161 %\makeoddfoot{mako-mem}{}{}{\thepage}
162 %\makeheadrule{mako-mem}{\textwidth}{\normalrulethickness}
163 \newcommand{\@makomarks}{%
164 \let\@mkboth\markboth
165 \def\chaptermark##1{%
167 \ifnum \c@secnumdepth >\m@ne
173 \def\sectionmark##1{%
176 \makepsmarks{mako-mem}{\@makomarks}
177 \makepsmarks{mako-mem}{}
178 \makeevenhead{mako-mem}{}{}{\scshape\thepage}
179 \makeoddhead{mako-mem}{}{}{\scshape\thepage}
181 %%% version control info in footers; requires vc package
182 % Make the style for vc-git revision control headers and footers
183 \makepagestyle{kjhgit}
184 \newcommand{\@kjhgitmarks}{%
185 \let\@mkboth\markboth
186 \def\chaptermark##1{%
188 \ifnum \c@secnumdepth >\m@ne
194 \def\sectionmark##1{%
197 \makepsmarks{kjhgit}{\@kjhgitmarks}
198 \makeevenhead{kjhgit}{}{}{\scshape\thepage}
199 \makeoddhead{kjhgit}{}{}{\scshape\thepage}
200 \makeevenfoot{kjhgit}{}{\texttt{\footnotesize{\textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}}{}
201 \makeoddfoot{kjhgit}{}{\texttt{\footnotesize \textcolor{Blue}{git revision \VCRevision\ on \VCDateTEX}}}{}
203 %% Create a command to make a note at the top of the first page describing the
204 %% publication status of the paper.
205 \newcommand{\published}[1]{%
208 \renewcommand{\maketitlehooka}{%
209 \par\noindent\footnotesize \puB}
212 \makeevenhead{memo}{}{}{}
213 \makeoddhead{memo}{}{}{}
215 \makeevenfoot{memo}{}{\scshape \thepage/\pageref{LastPage}}{}
216 \makeoddfoot{memo}{}{\scshape \thepage/\pageref{LastPage}}{}