summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dccpaper/ijdc-v9.doc
blob: 61212c7db0fa868ccb88324655cdb6b5470ebe32 (plain)
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
\ProvidesFile{ijdc-v9.doc}[2014/08/08 automatically generated with makedoc.sty]
\begin{lstlisting}[firstnumber=1]
%%
%% This is file `ijdc-v9.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dccpaper.dtx  (with options: `ijdc9')
%%
%% ----------------------------------------------------------------
%% The dccpaper bundle: Classes for submissions to IJDC and IDCC
%% Author:  Alex Ball
%% E-mail:  a.ball@ukoln.ac.uk
%% License: Released under the LaTeX Project Public License v1.3c or later
%% See:     http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
\def\Version{2014/08/07 v1.3}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ijdc-v9}
    [\Version\space Class for submissions to the International Journal of Digital Curation, volume 9 onwards.]
\end{lstlisting}

The type of paper is recorded in |\dccp@type|. The possible values are
`General Article', `Peer-Reviewed Paper', or `Editorial'.
The latter is provided through the constant |\dccp@editorial| so we can
test for it later with ease.

\begin{lstlisting}[firstnumber=last]
\def\dccp@type{General Article}
\def\dccp@editorial{Editorial}
\end{lstlisting}

These three options set |\dccp@type| appropriately. The |editorial|
option additionally switches page numbers to roman numerals.
The |article| option is redundant, but included for symmetry.

\begin{lstlisting}[firstnumber=last]
\DeclareOption{editorial}{\let\dccp@type=\dccp@editorial%
  \AtBeginDocument{% Editorials use Roman numerals for page numbers
    \pagenumbering{roman}%
    \renewcommand{\thelastpage}{\@roman\c@lastpage}%
  }%
}
\DeclareOption{paper}{\def\dccp@type{Peer-Reviewed Paper}}
\DeclareOption{article}{\def\dccp@type{General Article}}
\ProcessOptions\relax

\end{lstlisting}

These definitions are used to fill out the headers and footers. They include
some details that are defined in \textsf{dccpaper-base.tex} and provided by
the user: |\thedate|, |\thevolume|, |\theissue|, |\thelastpage|, |\thedoi|.

\begin{lstlisting}[firstnumber=last]
\def\dccp@publ@long{International Journal of Digital Curation}
\def\dccp@publ@short{IJDC}
\def\dccp@publ@msg{The \emph{\dccp@publ@long} is an international journal
committed to scholarly excellence and dedicated to the advancement of digital
curation across a wide range of sectors. The \dccp@publ@short\ is published by
the University of Edinburgh on behalf of the Digital Curation Centre. ISSN:
1746-8256. URL: \url{http://www.ijdc.net/}}
\def\dccp@titlefoot@bib{%
  \dccp@publ@long\\
  \thedate, Vol.\ \thevolume, Iss.\ \theissue, \thepage--\thelastpage.%
}
\def\dccp@titlefoot@doi{%
  \url{http://dx.doi.org/\thedoi}\\
  DOI: \thedoi
}
\def\dccp@normhead@doi{doi:\thedoi}
\end{lstlisting}

|\dccp@subject| will be used for the PDF subject, and will specify the journal
and the issue.

\begin{lstlisting}[firstnumber=last]
\def\dccp@subject{\dccp@publ@long, \thedate, Vol.\ \thevolume, Iss.\ \theissue}

\end{lstlisting}

The rest of the formatting happens in the following file.

\begin{lstlisting}[firstnumber=last]
\input{dccpaper-base}
%%
%% Copyright (C) 2014 Digital Curation Centre, University of Edinburgh
%% <info@dcc.ac.uk>
%%
%% End of file `ijdc-v9.cls'.

\end{lstlisting}