donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

taler.cls (10906B)


      1 \def\fileversion{1.7}
      2 \def\filedate{2015/03/31}
      3 
      4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      5 %
      6 %                            CLASS pqcrypto.cls
      7 %
      8 %---------------------------------------------------------------------
      9 %
     10 % LaTeX class for TALER deliverable in LaTeX report/article style
     11 % (based on the ECRYPT and CACE and ... deliverable templates)
     12 %
     13 %          \documentclass{taler}
     14 %
     15 % uses a report style.
     16 %
     17 %          \documentclass[article]{taler}
     18 %
     19 % uses an article style.
     20 %
     21 % version 1.8, 2023.12.01, T. Lange (converted from PQCRYPTO to TALER)
     22 % version 1.7, 2015.03.31, T. Lange (converted from PUFFIN to PQCRYPTO)
     23 % version 1.6, 2012.06.11, D. J. Bernstein (converted from CACE to PUFFIN)
     24 % version 1.5, 21-2-08, Guido Blady (added \wpcontrib and \cacekeywords commands)
     25 % version 1.4, 20-2-08, Guido Blady (converted to CACE deliverable template)
     26 % version 1.3, 5-12-07, Christian Cachin (removed broken PDF graphics opt)
     27 % version 1.2,  2-2-06, Christian Cachin (added \ecryptabstract command)
     28 % version 1.1, 14-2-05, Marc Joye
     29 % version 1.0, 27-1-05, Antoon Bosselaers & Christian Cachin
     30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     31 
     32 \NeedsTeXFormat{LaTeX2e}
     33 \typeout{^^J  ***  TALER Class \fileversion\space for LaTeX2e ***^^J}
     34 \ProvidesClass{taler}[\filedate]
     35 
     36 %%------------------------ (class options) ----------------------------
     37 \newcommand\mj@class{}
     38 \newif\ifmj@report\mj@reporttrue
     39 \DeclareOption{article}{\mj@reportfalse\renewcommand\mj@class{article}}
     40 \DeclareOption{report}{\renewcommand\mj@class{report}}
     41 
     42 \newcommand\mj@papersize{}
     43 \DeclareOption{a4paper}{\renewcommand\mj@papersize{a4}}
     44 \DeclareOption{a5paper}{\renewcommand\mj@papersize{a5}}
     45 \DeclareOption{b5paper}{\renewcommand\mj@papersize{b5}}
     46 \DeclareOption{letterpaper}{\renewcommand\mj@papersize{letter}}
     47 \DeclareOption{legalpaper}{\renewcommand\mj@papersize{legal}}
     48 \DeclareOption{executivepaper}{\renewcommand\mj@papersize{executive}}
     49 
     50 \newcommand\mj@ptsize{}
     51 \DeclareOption{10pt}{\renewcommand\mj@ptsize{0}}
     52 \DeclareOption{11pt}{\renewcommand\mj@ptsize{1}}
     53 \DeclareOption{12pt}{\renewcommand\mj@ptsize{2}}
     54 
     55 \newcommand\mj@titlep@ge{}
     56 \DeclareOption{titlepage}{\renewcommand\mj@titlep@ge{titlepage}}
     57 \DeclareOption{notitlepage}{\renewcommand\mj@titlep@ge{notitlepage}}
     58 
     59 \newcommand\mj@twoside{}
     60 \DeclareOption{twoside}{\renewcommand\mj@twoside{twoside}}
     61 \DeclareOption{oneside}{\renewcommand\mj@twoside{oneside}}
     62 
     63 \ExecuteOptions{report,a4paper,11pt,titlepage,twoside}
     64 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\mj@class}}
     65 \ProcessOptions
     66 \LoadClass[\mj@papersize paper,1\mj@ptsize pt,\mj@titlep@ge,\mj@twoside]{\mj@class}
     67 %---Chapters automatically start on a new right-hand page
     68 \ifmj@report\@openrighttrue\fi
     69 %%---------------------- (end class options) --------------------------
     70 
     71 
     72 
     73 %%------------------------ (page settings) ----------------------------
     74 \IfFileExists{a4wide.sty}{\RequirePackage{a4wide}}{}
     75 \IfFileExists{url.sty}{\RequirePackage{a4wide}}{\let\url\texttt}
     76 \setlength\arraycolsep{1.4\p@}
     77 \setlength\tabcolsep{1.4\p@}
     78 \def\vtopx{\hsize9cm\vtop}
     79 \def\marginnote#1{\marginpar{\footnotesize #1}}
     80 \pagestyle{myheadings}
     81 %%---------------------- (end page settings) --------------------------
     82 
     83 
     84 
     85 %%---------------------------- (macros) -------------------------------
     86 \newcommand{\F}{{\bfseries F}}
     87 \newcommand{\complet}{{\bfseries TO BE COMPLETED}}
     88 \renewcommand{\pmod}[1]{\allowbreak \mkern 10mu({\operator@font mod}\,\,#1)}
     89 %%-------------------------- (end macros) -----------------------------
     90 
     91 
     92 
     93 %%------------------------- (user options) ----------------------------
     94 %% \title[...]{...}        (mandatory!!!)
     95 %% \author{...}
     96 %% \doccode{...}
     97 %% \leadcontractor{...}
     98 %% \duedate{...}
     99 %% \actualdate{...}
    100 %% \version{...}
    101 %% \dissemination{...}
    102 %% \reportabstract{...}
    103 
    104 \long\def\title{\@ifnextchar [{\mj@title}{\mj@title[]}}
    105 \def\mj@title[#1]#2{\gdef\@shorttitle{#1}\gdef\@title{#2}}
    106 \newcommand{\doccode}[1]{\gdef\thedoccode{#1}}
    107 \newcommand{\leadcontractor}[1]{\gdef\theleadcontractor{#1}}
    108 \newcommand{\duedate}[1]{\gdef\theduedate{#1}}
    109 \newcommand{\wpcontrib}[1]{\gdef\thewpcontrib{#1}}
    110 \newcommand{\actualdate}[1]{\gdef\theactualdate{#1}}
    111 \newcommand{\version}[1]{\gdef\theversion{#1}}
    112 \newcommand{\dissemination}[1]{\gdef\thedissemination{#1}}
    113 \renewcommand{\date}[1]{\gdef\@date{\let\today\mjtoday #1}}
    114 \newcommand{\reportabstract}[1]{\gdef\thereportabstract{#1}}
    115 \newcommand{\reportkeywords}[1]{\gdef\thereportkeywords{#1}}
    116 \newcommand{\changetable}[1]{\gdef\thechangetable{#1}}
    117 
    118 
    119 \edef\mjtoday{%
    120   \number \day.\space%
    121   \ifcase \month \or January\or February\or March \or April\or May\or
    122   June\or July\or August\or September\or October\or November\or 
    123   December\fi\space \number \year}
    124 \global\let\today\mjtoday
    125 
    126 \def\@title{\@empty}
    127 \def\@author{\@empty}
    128 \def\@shorttitle{\@empty}
    129 \def\thedoccode{D.XXX.Y}
    130 \def\theleadcontractor{\\Eindhoven University of Technology\\
    131 {\tt www.taler.net/eurotaler}}
    132 \def\theduedate{\@empty}
    133 \def\theactualdate{\mjtoday}
    134 \def\thewpcontrib{\@empty}
    135 \def\theversion{Revision 1.0}
    136 \def\thedissemination{PU}
    137 \def\@date{\theactualdate\\ \theversion}
    138 \def\thereportabstract{\@empty}
    139 \def\thereportkeywords{\@empty}
    140 \def\thechangetable{\@empty}
    141 %%----------------------- (end user options) --------------------------
    142 
    143 
    144 
    145 %%---------------------- (warnings and errors) ------------------------
    146 \newcommand{\mj@warning}[1]{%
    147   \GenericWarning {\space \space \space \@spaces \@spaces \@spaces }%
    148   {TALER Warning: #1}}
    149 %--- Warning without line number
    150 \newcommand{\mj@warning@no@line}[1]{%
    151   \GenericWarning {\space \space \space \@spaces \@spaces \@spaces }%
    152   {TALER Warning: #1\@gobble}}
    153 \newcommand{\mj@error}[2]{%
    154   \GenericError {\space \space \space \@spaces \@spaces \@spaces }%
    155   {TALER Error: #1}{See the documentation for explanation.}{#2^^J}}
    156 %%-------------------- (end warnings and errors) ----------------------
    157 
    158 
    159 
    160 %%------------------- (maketitle and titlepage) -----------------------
    161 
    162 \if@titlepage
    163   \renewcommand{\maketitle}{%
    164     \ifx\thetitle\undefined
    165       \if!\@title!\mj@error{No title is given}{Give a title by
    166         \string\title{...}\space in the preamble of the document.}
    167       \fi
    168     \fi
    169     \if!\@author!\mj@warning@no@line{No \noexpand\author given}\fi
    170     \begin{titlepage}%
    171       \mj@titlepage
    172     \end{titlepage}
    173     \newpage{\pagestyle{empty}\cleardoublepage}
    174     \begin{titlepage}
    175       \def\thanks##1{\unskip{}} 
    176       \let\footnoterule\relax \let\footnote\thanks 
    177       \null\vfil \vskip 60\p@
    178       \begin{center}
    179         {\LARGE\bfseries \ifx\thetitle\undefined\@title\else\thetitle\fi\par}
    180         \vskip 3em
    181         \if!\@author!\relax\else
    182           {\large \lineskip .75em%
    183            \begin{tabular}[t]{c}\@author\end{tabular}\par}
    184         \fi
    185         \vskip 1.5em
    186         {\large \@date\par}
    187       \end{center}
    188       \renewcommand{\thefootnote}{\fnsymbol{footnote}}
    189       \footnotetext[0]{The work described in this report has been funded (in
    190 part) by the European Union in the HORIZON-CL4-2023-HUMAN-01-CNECT call in
    191 project 101135475 TALER. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union. Neither the European Union nor the granting authority can be held responsible for them.}
    192       \vfil\null
    193     \end{titlepage}
    194     \newpage
    195     \pagestyle{empty}
    196 
    197 \begin{center}
    198 \begin{tabular}{|c|c|p{12cm}|}\hline
    199 \multicolumn{3}{|c|}{HISTORY OF CHANGES}\\\hline
    200 VERSION&
    201 PUBLICATION &
    202 \multicolumn{1}{c|}{CHANGE}\\
    203  &
    204 DATiE&\\\hline
    205 \thechangetable
    206 \end{tabular}
    207 \end{center}
    208 
    209 \newpage
    210 
    211     \pagenumbering{roman}
    212     \begin{abstract}
    213       \thereportabstract\\[1em]
    214       {\bf Keywords: }\thereportkeywords
    215     \end{abstract}
    216     \cleardoublepage
    217     \tableofcontents
    218     \listoffigures 
    219     \listoftables 
    220     \global\let\tableofcontents\relax
    221     \cleardoublepage
    222     \pagenumbering{arabic}
    223     \raggedbottom
    224     \if!\@shorttitle!\let\@shorttitle\@title\fi
    225     \markboth{TALER --- Taxable Anonymous Libre Electronic Reserves}{\thedoccode\ --- 
    226       \ifx\thetitle\undefined \@shorttitle\else\thetitle\fi}}
    227 \else
    228   \renewcommand{\maketitle}{%
    229     \if!\@title!\mj@error{No title is given}{Give a title by
    230       \string\title{...}\space in the preamble of the document.}
    231     \fi
    232     \if!\@author!\mj@warning@no@line{No \noexpand\author given}\fi
    233     \@maketitle}
    234 \fi
    235 
    236 %---Title page for a report/article
    237 \newcommand{\mj@titlepage}{%
    238   \begin{center}
    239     \includegraphics[width=0.3\textwidth]{../logo-NGI_TALER_Bold.png}
    240 %    \hfill
    241 %  	\includegraphics[width=80pt]{flag-with-h2020.jpg}
    242   \end{center}
    243 
    244   \vspace*{0.3cm}
    245 
    246   \begin{center}
    247     \Large {\bf TALER}\\[0.2cm]
    248     \Large {\bf Taxable Anonymous Libre Electronic Reserves}\\
    249   \end{center}
    250 
    251   \vspace*{0.2cm}
    252 
    253   \begin{flushleft}
    254     Project number: Horizon Europe 101135475\\
    255   \end{flushleft}
    256 
    257   \vspace*{0.5cm}
    258 
    259   \begin{center}
    260     {\bfseries\Large \thedoccode\\[3mm]
    261       \ifx\thetitle\undefined\@title\else\thetitle\fi}
    262   \end{center}
    263 
    264   \vspace*{1cm}
    265 
    266   \begin{center}
    267     \begin{tabular}{ll}
    268       \if!\theduedate!\else Due date of deliverable: \theduedate & \\\fi
    269       Actual submission date:  \theactualdate & \\[1em]
    270       \if!\thewpcontrib!\else WP contributing to the deliverable:  \thewpcontrib & \\\fi
    271     \end{tabular}
    272   \end{center}
    273 
    274   \vspace*{0.5cm}
    275 
    276   \begin{flushleft}
    277     Start date of project: 1.\ December 2023 \hfill Duration: 3 years\\[1cm]
    278     Coordinator: \theleadcontractor
    279   \end{flushleft}
    280 
    281   \vspace*{0.2cm}
    282   \begin{flushright}
    283     \theversion
    284   \end{flushright}
    285 
    286   \vspace*{0.5cm}
    287 
    288 %%% disemination level %%%
    289 %
    290 % put an X next to the dissemination level, 
    291 % if it is public (PU), no modification is needed
    292 %
    293   {\footnotesize
    294     \begin{center}
    295       \begin{tabular}{|l|l|c|}\hline
    296         \multicolumn{3}{|c|}{\bf Project co-funded by the European
    297         Commission within Horizon Europe}\\ \hline 
    298         \multicolumn{3}{|c|}{\bf Dissemination Level}\\ \hline
    299         {\bfseries PU} & Public &
    300         \def\mj@tmp{PU}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    301         {\bfseries PP} & Restricted to other programme participants
    302         (including the Commission services) &
    303         \def\mj@tmp{PP}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    304         {\bfseries RE} & Restricted to a group specified by the consortium
    305         (including the Commission services) &
    306         \def\mj@tmp{RE}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    307         {\bfseries CO} & Confidential, only for members of the consortium
    308         (including the Commission services) &
    309         \def\mj@tmp{CO}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    310       \end{tabular}
    311     \end{center}}}
    312 %%----------------- (end maketitle and titlepage) ---------------------
    313 
    314 
    315 \RequirePackage{graphicx}
    316 \RequirePackage{amsmath}
    317 \numberwithin{table}{section}
    318 \numberwithin{figure}{section}
    319 
    320 \endinput
    321 %% 
    322 %% End of file 'taler.cls'.