changed "with" to "without"
[cdsc_tex.git] / paper_template / mako-mem.sty
1 % Some article styles and page layout tweaks for the LaTeX Memoir class.
2 %
3 % Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
4 % Copyright 2009 Benjamin Mako Hill <mako@atdot.cc>
5
6 % Distributed as free software under the GNU GPL v3
7
8 % This file is heavily based on one by Kieran Healy
9 % available here: http://github.com/kjhealy/latex-custom-kjh/
10
11 % blank footnote
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}
16
17 % >> article-1 << 
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}
31  
32  % turn off chapter numbering
33  \counterwithout{section}{chapter}
34  
35  % reduce skip after section heading
36  \setaftersecskip{1.2ex}
37  
38  \pretitle{\newline\centering \LARGE\scshape \MakeLowercase }
39  \posttitle{\par\vskip 1em}
40  \predate{\footnotesize \centering}
41  \postdate{\par\vskip 1em}
42  
43  % 'abstract' title, bigger skip from title
44  \renewcommand{\abstractname}{}
45  \abstractrunin
46
47 % set name of bibliography to 'references'
48 \renewcommand{\bibname}{References}
49 }
50
51 % >> article-2 <<
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}
67  
68  % supress chapter numbers 
69  \maxsecnumdepth{chapter} 
70  \setsecnumdepth{chapter}
71
72  % reduce skip after section heading
73  \setaftersecskip{1.7ex}
74  
75  % Title flush left
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}
82  
83  % 'abstract' title, bigger skip from title
84  \renewcommand{\abstractname}{\normalfont\scriptsize\emph{Abstract:}}
85  \renewcommand{\abstracttextfont}{\normalfont\scriptsize}
86  \abstractrunin
87
88  % set name of bibliography to 'references'
89  \renewcommand{\bibname}{References}
90 }
91
92 %%% Custom styles for headers and footers
93    
94 %%% Basic 
95 \makepagestyle{kjh}
96 %\makeevenfoot{kjh}{\thepage}{}{}
97 %\makeoddfoot{kjh}{}{}{\thepage}
98 %\makeheadrule{kjh}{\textwidth}{\normalrulethickness}
99 \newcommand{\@kjhmarks}{%
100   \let\@mkboth\markboth
101   \def\chaptermark##1{%
102     \markboth{%
103       \ifnum \c@secnumdepth >\m@ne
104         \if@mainmatter
105           \thechapter. \ %
106         \fi
107       \fi
108       ##1}{}}
109   \def\sectionmark##1{%
110     \markright{##1}}
111 }
112 \makepsmarks{kjh}{\@kjhmarks}
113 \makepsmarks{kjh}{}
114 \makeevenhead{kjh}{}{}{\scshape\thepage}
115 \makeoddhead{kjh}{}{}{\scshape\thepage}
116
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{%
123     \markboth{%
124       \ifnum \c@secnumdepth >\m@ne
125         \if@mainmatter
126           \thechapter. \ %
127         \fi
128       \fi
129       ##1}{}}
130   \def\sectionmark##1{%
131     \markright{##1}}
132 }
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}}}{}
138
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]{% 
142    \gdef\puB{#1}} 
143    \newcommand{\puB}{} 
144    \renewcommand{\maketitlehooka}{% 
145        \par\noindent\footnotesize \puB} 
146
147 \endinput
148

Community Data Science Collective || Want to submit a patch?