donau

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

taler-short.cls (10905B)


      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-short}
     14 %
     15 % uses a report style without tale of contents & list  of figures etc.
     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 \edef\mjtoday{%
    119   \number \day.\space%
    120   \ifcase \month \or January\or February\or March \or April\or May\or
    121   June\or July\or August\or September\or October\or November\or 
    122   December\fi\space \number \year}
    123 \global\let\today\mjtoday
    124 
    125 \def\@title{\@empty}
    126 \def\@author{\@empty}
    127 \def\@shorttitle{\@empty}
    128 \def\thedoccode{D.XXX.Y}
    129 \def\theleadcontractor{\\Eindhoven University of Technology\\
    130 {\tt www.taler.net/eurotaler}}
    131 \def\theduedate{\@empty}
    132 \def\theactualdate{\mjtoday}
    133 \def\thewpcontrib{\@empty}
    134 \def\theversion{Revision 1.0}
    135 \def\thedissemination{PU}
    136 \def\@date{\theactualdate\\ \theversion}
    137 \def\thereportabstract{\@empty}
    138 \def\thereportkeywords{\@empty}
    139 \def\thechangetable{\@empty}
    140 %%----------------------- (end user options) --------------------------
    141 
    142 
    143 
    144 %%---------------------- (warnings and errors) ------------------------
    145 \newcommand{\mj@warning}[1]{%
    146   \GenericWarning {\space \space \space \@spaces \@spaces \@spaces }%
    147   {TALER Warning: #1}}
    148 %--- Warning without line number
    149 \newcommand{\mj@warning@no@line}[1]{%
    150   \GenericWarning {\space \space \space \@spaces \@spaces \@spaces }%
    151   {TALER Warning: #1\@gobble}}
    152 \newcommand{\mj@error}[2]{%
    153   \GenericError {\space \space \space \@spaces \@spaces \@spaces }%
    154   {TALER Error: #1}{See the documentation for explanation.}{#2^^J}}
    155 %%-------------------- (end warnings and errors) ----------------------
    156 
    157 
    158 
    159 %%------------------- (maketitle and titlepage) -----------------------
    160 
    161 \if@titlepage
    162   \renewcommand{\maketitle}{%
    163     \ifx\thetitle\undefined
    164       \if!\@title!\mj@error{No title is given}{Give a title by
    165         \string\title{...}\space in the preamble of the document.}
    166       \fi
    167     \fi
    168     \if!\@author!\mj@warning@no@line{No \noexpand\author given}\fi
    169     \begin{titlepage}%
    170       \mj@titlepage
    171     \end{titlepage}
    172     \newpage
    173     \pagestyle{empty}
    174 
    175 \begin{center}
    176 \begin{tabular}{|c|c|p{10cm}|}\hline
    177 \multicolumn{3}{|c|}{HISTORY OF CHANGES}\\\hline
    178 VERSION&
    179 PUBLICATION &
    180 \multicolumn{1}{c|}{CHANGE}\\
    181  &
    182 DATE&\\\hline
    183 \thechangetable
    184 \end{tabular}
    185 \end{center}
    186 
    187 
    188 
    189     \begin{titlepage}
    190       \def\thanks##1{\unskip{}} 
    191       \let\footnoterule\relax \let\footnote\thanks 
    192       \null\vfil \vskip 60\p@
    193       \begin{center}
    194         {\LARGE\bfseries \ifx\thetitle\undefined\@title\else\thetitle\fi\par}
    195         \vskip 3em
    196         \if!\@author!\relax\else
    197           {\large \lineskip .75em%
    198            \begin{tabular}[t]{c}\@author\end{tabular}\par}
    199         \fi
    200         \vskip 1.5em
    201         {\large \@date\par}
    202       \end{center}
    203       \renewcommand{\thefootnote}{\fnsymbol{footnote}}
    204       \footnotetext[0]{The work described in this report has been funded (in
    205 part) by the European Union and by the Swiss State Secretariat for Education,
    206 Research and Innovation in the HORIZON-CL4-2023-HUMAN-01-CNECT call in
    207 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.}
    208       \vfil\null
    209     \end{titlepage}
    210     \newpage{\pagestyle{empty}\cleardoublepage}
    211     \pagenumbering{roman}
    212     \begin{abstract}
    213       \thereportabstract\\[1em]
    214       {\bf Keywords: }\thereportkeywords
    215     \end{abstract}
    216     \cleardoublepage
    217     \pagenumbering{arabic}
    218     \raggedbottom
    219     \if!\@shorttitle!\let\@shorttitle\@title\fi
    220     \markboth{TALER --- Taxable Anonymous Libre Electronic Reserves}{\thedoccode\ --- 
    221       \ifx\thetitle\undefined \@shorttitle\else\thetitle\fi}}
    222 \else
    223   \renewcommand{\maketitle}{%
    224     \if!\@title!\mj@error{No title is given}{Give a title by
    225       \string\title{...}\space in the preamble of the document.}
    226     \fi
    227     \if!\@author!\mj@warning@no@line{No \noexpand\author given}\fi
    228     \@maketitle}
    229 \fi
    230 
    231 %---Title page for a report/article
    232 \newcommand{\mj@titlepage}{%
    233   \begin{center}
    234     \includegraphics[width=0.3\textwidth]{../logo-NGI_TALER_Bold.png}
    235 %    \hfill
    236 %  	\includegraphics[width=80pt]{flag-with-h2020.jpg}
    237   \end{center}
    238 
    239   \vspace*{0.3cm}
    240 
    241   \begin{center}
    242     \Large {\bf TALER}\\[0.2cm]
    243     \Large {\bf Taxable Anonymous Libre Electronic Reserves}\\
    244   \end{center}
    245 
    246   \vspace*{0.2cm}
    247 
    248   \begin{flushleft}
    249     Project number: Horizon Europe 101135475\\
    250   \end{flushleft}
    251 
    252   \vspace*{0.5cm}
    253 
    254   \begin{center}
    255     {\bfseries\Large \thedoccode\\[3mm]
    256       \ifx\thetitle\undefined\@title\else\thetitle\fi}
    257   \end{center}
    258 
    259   \vspace*{1cm}
    260 
    261   \begin{center}
    262     \begin{tabular}{ll}
    263       \if!\theduedate!\else Due date of deliverable: \theduedate & \\\fi
    264       Actual submission date:  \theactualdate & \\[1em]
    265       \if!\thewpcontrib!\else WP contributing to the deliverable:  \thewpcontrib & \\\fi
    266     \end{tabular}
    267   \end{center}
    268 
    269   \vspace*{0.5cm}
    270 
    271   \begin{flushleft}
    272     Start date of project: 1.\ December 2023 \hfill Duration: 3 years\\[1cm]
    273     Coordinator: \theleadcontractor
    274   \end{flushleft}
    275 
    276   \vspace*{0.2cm}
    277   \begin{flushright}
    278     \theversion
    279   \end{flushright}
    280 
    281   \vspace*{0.5cm}
    282 
    283 %%% disemination level %%%
    284 %
    285 % put an X next to the dissemination level, 
    286 % if it is public (PU), no modification is needed
    287 %
    288   {\footnotesize
    289     \begin{center}
    290       \begin{tabular}{|l|l|c|}\hline
    291         \multicolumn{3}{|c|}{\bf Project co-funded by the European
    292         Commission within Horizon Europe}\\ \hline 
    293         \multicolumn{3}{|c|}{\bf Dissemination Level}\\ \hline
    294         {\bfseries PU} & Public &
    295         \def\mj@tmp{PU}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    296         {\bfseries PP} & Restricted to other programme participants
    297         (including the Commission services) &
    298         \def\mj@tmp{PP}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    299         {\bfseries RE} & Restricted to a group specified by the consortium
    300         (including the Commission services) &
    301         \def\mj@tmp{RE}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    302         {\bfseries CO} & Confidential, only for members of the consortium
    303         (including the Commission services) &
    304         \def\mj@tmp{CO}\ifx\thedissemination\mj@tmp X\fi\\ \hline
    305       \end{tabular}
    306     \end{center}}}
    307 %%----------------- (end maketitle and titlepage) ---------------------
    308 
    309 
    310 \RequirePackage{graphicx}
    311 \RequirePackage{amsmath}
    312 \numberwithin{table}{section}
    313 \numberwithin{figure}{section}
    314 
    315 \endinput
    316 %% 
    317 %% End of file 'taler.cls'.