-
Notifications
You must be signed in to change notification settings - Fork 2
/
dcchowto-template.latex
97 lines (88 loc) · 2.38 KB
/
dcchowto-template.latex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%%
%% This is file `dcchowto-template.latex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dcchowto.dtx (with options: `template')
%% ----------------------------------------------------------------
%% dcchowto --- A LaTeX class for DCC How-to Guides
%% Author: Alex Ball
%% E-mail: [email protected]
%% License: Released under the LaTeX Project Public License v1.3c or later
%% See: http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
\documentclass[numbers,$for(classoption)$$classoption$$sep$,$endfor$]{dcchowto}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
\renewcommand*{\bibfont}{\small}
\ifdraftdoc
\usepackage{embedfile}
\embedfile[desc={Source code for this document}]{\jobname.tex}
$if(biblio-files)$
\embedfile[desc={Biblatex database for this document}]{$biblio-files$}
$endif$
\fi
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
$for(author)$
\author{$author$}
$endfor$
\date{$date$}
$for(partner)$
\partner{$partner$}
$endfor$
$for(partnerlogo)$
\partnerlogo{$partnerlogo$}
$endfor$
\usepackage{environ}
\let\oldquote=\quote
\let\endoldquote=\endquote
\let\quote\relax
\let\endquote\relax
\NewEnviron{quote}{%
\global\let\tmp\BODY\aftergroup\docoverandabstract
}
\def\docoverandabstract{%
\let\quote=\oldquote
\let\endquote=\endoldquote
\maketitle[\tmp]%
}
\begin{document}
$for(include-before)$
$include-before$
$endfor$
$body$
$if(furtherinfo)$
$for(furtherinfo)$
\nocite{$furtherinfo$}
$endfor$
\printbibliography[category=notcited]
$endif$
\vspace{2\baselineskip plus 2\baselineskip minus 2\baselineskip}
\noindent\begingroup\color{dccblue}
The Digital Curation Centre (DCC) is a consortium of the Universities of Edinburgh, Glasgow and Bath,
and receives funding from Jisc.
\vspace{2\baselineskip plus 2\baselineskip minus 2\baselineskip}
\bfseries
Follow the DCC on Twitter: \href{http://twitter.com/digitalcuration}{@digitalcuration}, \href{https://twitter.com/hashtag/ukdcc}{\#ukdcc}
\vspace{2\baselineskip plus 2\baselineskip minus 2\baselineskip}
\raggedleft\mdseries\footnotesize\theversion\par
\endgroup
$for(include-after)$
$include-after$
$endfor$
\end{document}
%%
%% Copyright (C) 2015 by Alex Ball <[email protected]>
%%
%% End of file `dcchowto-template.latex'.