\ProvidesFile{idcc.doc}[2014/08/08 automatically generated with makedoc.sty] \begin{lstlisting}[firstnumber=1] %% %% This is file `idcc.cls', %% generated with the docstrip utility. %% %% The original source files were: %% %% dccpaper.dtx (with options: `idcc') %% %% ---------------------------------------------------------------- %% 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{idcc} [\Version\space Class for submissions to the International Digital Curation Conference.] \end{lstlisting} These definitions are used to fill out the headers and footers. The ones for |\dccp@publ@short| and |\dccp@publ@msg| are a fallback, defined here but ordinarily overridden using a package option. \begin{lstlisting}[firstnumber=last] \def\dccp@publ@long{International Digital Curation Conference} \def\dccp@publ@short{IDCC} \def\dccp@publ@msg{The \dccp@publ@long\ takes place on [TBC] in [TBC]. URL: \url{http://www.dcc.ac.uk/events/international-digital-curation-conference-idcc}} \end{lstlisting} |\dccp@subject| will be used for the PDF subject. The value here is again a fallback, ordinarily overridden using a package option. \begin{lstlisting}[firstnumber=last] \def\dccp@subject{\dccp@publ@long} \end{lstlisting} Paper type is recorded in |\def\dccp@type|. The values can be `Research Paper', `Practice Paper', `Poster', `Demonstration', or `Workshop'. \begin{lstlisting}[firstnumber=last] \def\dccp@type{Practice Paper} \end{lstlisting} These options set the value of |\def\dccp@type| appropriately. The |practice| option is redundant, but included for symmetry. \begin{lstlisting}[firstnumber=last] \DeclareOption{research}{\def\dccp@type{Research Paper}} \DeclareOption{data}{\def\dccp@type{Data Paper}} \DeclareOption{poster}{\def\dccp@type{Poster}} \DeclareOption{demo}{\def\dccp@type{Demonstration}} \DeclareOption{bof}{\def\dccp@type{Birds of a Feather}} \DeclareOption{workshop}{\def\dccp@type{Workshop}} \DeclareOption{practice}{\def\dccp@type{Practice Paper}} \end{lstlisting} The details for each conference are slightly different, so they each have an associated option for overriding the fallback definitions for |\dccp@publ@short|, |\dccp@publ@msg| and |\dccp@subject|. \begin{lstlisting}[firstnumber=last] \DeclareOption{15}{% \def\dccp@publ@short{IDCC15} \def\dccp@publ@msg{The 10th \dccp@publ@long\ takes place on 9--12 February 2014 in London. URL: \url{http://www.dcc.ac.uk/events/idcc15/}} \def\dccp@subject{10th \dccp@publ@long, 2015} } \ProcessOptions\relax \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 %% %% %% End of file `idcc.cls'. \end{lstlisting}