2014-02-15 12:01:14 +01:00
|
|
|
%%
|
|
|
|
%% This is file `euproposal.cls',
|
|
|
|
%% generated with the docstrip utility.
|
|
|
|
%%
|
|
|
|
%% The original source files were:
|
|
|
|
%%
|
|
|
|
%% euproposal.dtx (with options: `cls')
|
|
|
|
%%
|
|
|
|
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
|
2016-12-15 12:25:55 +01:00
|
|
|
\ProvidesClass{euproposal}[2016/07/06 v1.5 EU Proposal]
|
2016-06-12 13:07:14 +02:00
|
|
|
|
2015-01-08 08:41:28 +01:00
|
|
|
\newif\ifpartB\partBfalse
|
|
|
|
\DeclareOption{partB}{\partBtrue}
|
2014-02-15 12:01:14 +01:00
|
|
|
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{proposal}}
|
|
|
|
\ProcessOptions
|
2015-01-08 08:41:28 +01:00
|
|
|
\ifpartB\LoadClass[report,noRAM]{proposal}\else\LoadClass[noRAM]{proposal}\fi
|
2014-02-15 12:01:14 +01:00
|
|
|
\RequirePackage{longtable}
|
|
|
|
\RequirePackage{eurosym}
|
|
|
|
\RequirePackage{wrapfig}
|
|
|
|
\RequirePackage{eupdata}
|
2015-01-15 12:40:29 +01:00
|
|
|
\RequirePackage{chngcntr}
|
|
|
|
\counterwithin{figure}{subsection}
|
|
|
|
\counterwithin{table}{subsection}
|
2015-01-08 08:41:28 +01:00
|
|
|
\ifpartB
|
2014-02-15 12:01:14 +01:00
|
|
|
\def\thepart{\Alph{part}}
|
|
|
|
\setcounter{part}{2}
|
|
|
|
\def\thechapter{\thepart.\arabic{chapter}}
|
|
|
|
\def\numberline#1{\hb@xt@\@tempdima{#1\hfil} }
|
2015-01-08 08:41:28 +01:00
|
|
|
\fi
|
2014-02-15 12:01:14 +01:00
|
|
|
\newcommand\prop@sites@table{\def\@@table{}
|
|
|
|
{\let\tabularnewline\relax\let\hline\relax
|
|
|
|
\@for\@I:=\prop@gen@sites\do{\xdef\@@table{\@@table\pdataref{site}\@I{number}}
|
2015-01-15 12:40:29 +01:00
|
|
|
\xdef\@@table{\@@table&\@nameuse{wa@institution@\@I @name}
|
|
|
|
\ifx\@I\prop@gen@coordinatorsite (coordinator)\fi}
|
2014-02-15 12:01:14 +01:00
|
|
|
\xdef\@@table{\@@table&\@nameuse{wa@institution@\@I @acronym}}
|
|
|
|
\xdef\@@table{\@@table&\@nameuse{wa@institution@\@I @countryshort}\tabularnewline\hline}}}
|
2014-02-15 12:13:10 +01:00
|
|
|
\begin{tabular}{|l|p{8cm}|l|l|}\hline%|
|
2014-02-15 12:01:14 +01:00
|
|
|
\# & Participant organisation name & Short name & Country\\\hline\hline
|
|
|
|
\@@table
|
|
|
|
\end{tabular}}
|
|
|
|
\renewenvironment{prop@proposal}
|
2015-11-20 09:44:11 +01:00
|
|
|
{\ifgrantagreement\else
|
|
|
|
\thispagestyle{empty}\begin{center}
|
2014-02-15 12:01:14 +01:00
|
|
|
{\Large \prop@gen@instrument}\\[.2cm]
|
2015-01-15 12:40:29 +01:00
|
|
|
{\Large\textbf\prop@gen@callname}\\[.4cm]
|
|
|
|
{\LARGE \prop@gen@callid}\\[.8cm]
|
|
|
|
{\huge\textbf\prop@gen@title}\\[.4cm]
|
|
|
|
{\LARGE Acronym: {\prop@gen@acronym}}\\[2cm]
|
2014-02-15 12:01:14 +01:00
|
|
|
\end{center}
|
|
|
|
{\large\textbf{Date of Preparation: \today}}
|
2015-01-15 12:40:29 +01:00
|
|
|
\\[1em]
|
2014-02-15 12:01:14 +01:00
|
|
|
\begin{large}
|
|
|
|
\begin{description}
|
2015-01-15 12:40:29 +01:00
|
|
|
% \item[Work program topics addressed by \pn:]
|
|
|
|
% \@ifundefined{prop@gen@topicsaddressed}
|
|
|
|
% {\textbf{Challenge \prop@gen@challengeid}: \prop@gen@challenge,
|
|
|
|
% \textbf{Objective \prop@gen@objectiveid}: \prop@gen@objective,
|
|
|
|
% \textbf{target outcome \prop@gen@outcomeid}) \prop@gen@outcome.
|
|
|
|
% {\prop@gen@topicsaddressed}\\[1em]
|
2016-07-06 10:35:37 +02:00
|
|
|
\item[Coordinator:] \wa@ref3{person}\prop@gen@coordinator{name}
|
|
|
|
\item[e-mail:] \wa@ref3{person}\prop@gen@coordinator{email}
|
|
|
|
\item[tel/fax:] \wa@ref3{person}\prop@gen@coordinator{worktelfax}
|
2015-01-15 12:40:29 +01:00
|
|
|
\@ifundefined{prop@gen@keywords}{}{\item[Keywords:] \prop@gen@keywords}
|
2014-02-15 12:01:14 +01:00
|
|
|
\end{description}
|
|
|
|
\end{large}
|
|
|
|
\vspace*{1em}
|
|
|
|
\begin{center}
|
|
|
|
\prop@sites@table\vfill
|
|
|
|
\@ifundefined{prop@gen@iconrowheight}{}
|
|
|
|
{\@for\@site:=\prop@gen@sites\do{\wa@institution@logo[height=\prop@gen@iconrowheight]\@site\qquad}}
|
|
|
|
\end{center}
|
|
|
|
\newpage
|
2015-11-20 09:44:11 +01:00
|
|
|
\fi% ifgrantagreement
|
2014-02-15 12:01:14 +01:00
|
|
|
\setcounter{tocdepth}{2}\setcounter{part}{2}}
|
2016-06-12 12:42:42 +02:00
|
|
|
{\newpage\printbibliography[heading=warnpubs]}
|
2014-02-15 12:01:14 +01:00
|
|
|
\def\prop@gen@instrument{Proposal Instrument (e.g. IP)}
|
2015-01-08 08:41:28 +01:00
|
|
|
\define@key{site@desc}{box}[true]{\def\site@desc@box{#1}%
|
|
|
|
\pdata@def{sitedesc}{\@site}{box}{#1}}
|
|
|
|
\define@key{site@desc}{logo}[true]{\def\site@desc@logo{#1}%
|
|
|
|
\pdata@def{sitedesc}{\@site}{logo}{#1}}
|
|
|
|
\define@key{site@desc}{width}{\def\site@desc@width{#1}%
|
|
|
|
\pdata@def{sitedesc}{\@site}{width}{#1}\@dmp{wd=#1}}
|
|
|
|
\define@key{site@desc}{height}{\def\site@desc@height{#1}%
|
|
|
|
\pdata@def{sitedesc}{\@site}{height}{#1}\@dmp{ht=#1}}
|
|
|
|
\newenvironment{sitedescription}[2][]%
|
2015-01-13 11:37:28 +01:00
|
|
|
{\def\c@site{#2}% remember the site ID
|
2015-01-08 08:41:28 +01:00
|
|
|
\newcounter{site@#2@PM} % for the site PM
|
|
|
|
\def\site@desc@box{false}% not box unless requested
|
|
|
|
\def\site@desc@logo{false}% not logo unless requested
|
|
|
|
\def\site@desc@height{1.3cm}% default height
|
|
|
|
\def\site@desc@width{5cm}% default width
|
|
|
|
\setkeys{site@desc}{#1}% read the keys to overwrite the defaults
|
|
|
|
\ifx\@site@desc@box\@true% if we want a logo
|
|
|
|
\begin{wrapfigure}{r}{\site@desc@width}\vspace{-2.5ex}%
|
|
|
|
\begin{tabular}{|p{\site@desc@width}|}\hline\vspace{1mm}%
|
|
|
|
\ifx\@site@desc@logo\@true% if we want a logo
|
|
|
|
\wa@institution@logo[height=\site@desc@width]{#2}\\[1ex]%
|
|
|
|
\fi% end logo
|
2016-07-06 10:35:37 +02:00
|
|
|
\textbf{\wa@ref3{institution}{#2}{type}.\hfill \wa@ref3{institution}{#2}{country}}\\%
|
|
|
|
\small\wa@ref3{institution}{#2}{streetaddress}, \wa@ref3{institution}{#2}{townzip}\\\hline%
|
2014-02-15 12:01:14 +01:00
|
|
|
\end{tabular}\vspace{-2.5ex}%
|
|
|
|
\end{wrapfigure}%
|
2015-01-08 08:41:28 +01:00
|
|
|
\fi% end box
|
2014-02-15 12:01:14 +01:00
|
|
|
\pdata@target{site}{#2}%
|
2016-07-06 10:35:37 +02:00
|
|
|
{\subsubsection{\wa@ref3{institution}{#2}{acronym}: % space here
|
|
|
|
{\textsc{\wa@ref3{institution}{#2}{name}} (\wa@ref3{institution}{#2}{countryshort})}}}%
|
2014-02-15 12:01:14 +01:00
|
|
|
\small%
|
|
|
|
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
|
|
|
|
{0.25ex \@plus1ex \@minus.2ex}%
|
|
|
|
{-1em}%
|
|
|
|
{\normalfont\normalsize\bfseries}}}
|
2015-01-13 11:37:28 +01:00
|
|
|
{\pdata@def{site}{\c@site}{reqPM}{\csname thesite@\c@site @PM\endcsname}}
|
2015-01-08 08:41:28 +01:00
|
|
|
\define@key{site@part}{type}{\def\site@part@type{#1}\@dmp{type=#1}}
|
|
|
|
\define@key{site@part}{PM}{\def\site@part@PM{#1}\@dmp{PM=#1}}
|
|
|
|
\define@key{site@part}{salary}{\def\site@part@salary{#1}}%\@dmp{\euro=#1}}
|
2015-01-13 11:37:28 +01:00
|
|
|
\define@key{site@part}{gender}{\def\site@part@gender{#1}}%\@dmp{\euro=#1}}
|
2015-01-08 08:41:28 +01:00
|
|
|
\newenvironment{participant}[2][]%
|
2015-01-13 11:37:28 +01:00
|
|
|
{\def\site@part@type{}\def\site@part@PM{}\def\site@part@salary{}\def\site@part@gender{}%
|
2015-01-08 08:41:28 +01:00
|
|
|
\setkeys{site@part}{#1}%
|
2015-01-13 11:37:28 +01:00
|
|
|
\ifx\site@part@PM\@empty\else\addtocounter{site@\c@site @PM}{\site@part@PM}\fi%
|
|
|
|
\paragraph*{#2\ %
|
|
|
|
(\ifx\site@part@type\@empty\else\site@part@type\fi%
|
|
|
|
\ifx\site@part@gender\@empty\else, \site@part@gender\fi%
|
|
|
|
\ifx\site@part@PM\@empty\else, \site@part@PM~PM\fi%
|
|
|
|
)}%
|
2015-01-08 08:41:28 +01:00
|
|
|
\ignorespaces}
|
|
|
|
{\par\medskip}
|
2014-02-15 12:01:14 +01:00
|
|
|
\newmdenv[frametitle=Objectives]{wpobjectives}
|
|
|
|
\newmdenv[frametitle=Description]{wpdescription}
|
|
|
|
\renewenvironment{workpackage}[1][]
|
2015-01-08 08:41:28 +01:00
|
|
|
{\begin{work@package}[#1]\medskip\wpheadertable%
|
2014-02-15 12:01:14 +01:00
|
|
|
\addcontentsline{toc}{subsubsection}{\wp@label\wp@num: \pdataref{wp}\wp@id{title}}}
|
|
|
|
{\end{work@package}}
|
|
|
|
\newcounter{@sitespo}\newcounter{@sitespt}
|
|
|
|
\renewcommand\wpheadertable{%
|
|
|
|
\wp@sites@efforts@lines%
|
|
|
|
\setcounter{@sitespo}{\thewp@sites@num}\addtocounter{@sitespo}{1}%
|
|
|
|
\par\noindent\begin{tabular}{|l|*{\thewp@sites@num}{c|}c|}\hline%
|
2015-01-08 08:41:28 +01:00
|
|
|
\multicolumn{\the@sitespo}{|l|}{\textbf{\wp@mk@title{\wp@num}: }%
|
|
|
|
\textsf{\pdata@target{wp}{\wp@id}{\pdataref{wp}\wp@id{title}}}}
|
|
|
|
&\textbf{Start: }\pdataref{wp}\wp@id{start}\\\hline%
|
2014-02-15 12:01:14 +01:00
|
|
|
\wp@sites@line\\\hline%
|
|
|
|
\wp@efforts@line\\\hline%
|
|
|
|
\end{tabular}\smallskip\par\noindent\ignorespaces}
|
2015-01-08 08:41:28 +01:00
|
|
|
\surroundwithmdframed{wpdelivs}
|
2015-01-15 14:07:17 +01:00
|
|
|
\define@key{milestone}{verif}{\gdef\mile@verif{#1}\pdata@def{mile}\mile@id{verif}{#1}}
|
|
|
|
\define@key{mst}{caption}{\gdef\mst@caption{#1}}
|
|
|
|
\define@key{mst}{wname}{\gdef\mst@wname{#1}}
|
|
|
|
\define@key{mst}{wdeliv}{\gdef\mst@wdeliv{#1}}
|
|
|
|
\define@key{mst}{wverif}{\gdef\mst@wverif{#1}}
|
|
|
|
\newcommand\milestonetable[1][]{%
|
|
|
|
\def\mst@caption{Milestones, Deliverables, and Verification}%
|
|
|
|
\def\mst@wname{2.5cm}\def\mst@wdeliv{7cm}\def\mst@wverif{4cm}
|
|
|
|
\setkeys{mst}{#1}%
|
|
|
|
{\gdef\mst@lines{}%initialize
|
|
|
|
\let\tabularnewline\relax\let\hline\relax% so they
|
|
|
|
\let\textbf\relax\let\emph\relax% do not bother us
|
|
|
|
\edef\@@miles{\pdataref{all}{mile}{ids}}
|
|
|
|
\@for\@I:=\@@miles\do{
|
|
|
|
\edef\@delivs{\pdataref@safe{mile}{\@I}{delivs}}%
|
|
|
|
\def\@@delivs{}
|
|
|
|
\@for\@J:=\@delivs\do{\xdef\@@delivs{\@@delivs\ \pdataref{deliv}\@J{label}}}
|
|
|
|
\def\@@line{
|
|
|
|
\textbf{\pdataref{mile}\@I{label}}&
|
|
|
|
\emph{\pdataref{mile}{\@I}{title}} &
|
|
|
|
\@@delivs&
|
|
|
|
\pdataref{mile}\@I{month} &
|
|
|
|
\pdataref{mile}\@I{verif}}
|
|
|
|
\xdef\mst@lines{\mst@lines\@@line\tabularnewline\hline}}}
|
|
|
|
\begin{table}[ht]
|
|
|
|
\begin{tabular}{|l|p{\mst@wname}|p{\mst@wdeliv}|l|p{\mst@wverif}|}\hline
|
|
|
|
\#&\textbf{\miles@legend@name}
|
|
|
|
&\textbf{\miles@legend@involved}
|
|
|
|
&\textbf{\miles@legend@mo}
|
|
|
|
&\textbf{\miles@legend@verif}\\\hline\hline
|
|
|
|
\mst@lines
|
|
|
|
\end{tabular}
|
|
|
|
\caption{\mst@caption}\label{tab:milestonetable}
|
|
|
|
\end{table}
|
|
|
|
\footnotetext\miles@legend@footnote}
|
|
|
|
\newcommand\miles@legend@name{Name}
|
|
|
|
\newcommand\miles@legend@mo{Mo}
|
|
|
|
\newcommand\miles@legend@verif{Means of Verif.}
|
|
|
|
\newcommand\miles@legend@involved{WPs\footnotemark/Deliverables involved}
|
|
|
|
\newcommand\miles@legend@footnote{The work package number is the first number in the deliverable number.}
|
|
|
|
\newcommand\prop@milesfor[1]{\edef\@delivs{\pdataref@safe{mile}{#1}{delivs}}%
|
|
|
|
\let\m@sep=\relax\def\new@sep{,\ }%
|
|
|
|
\@for\@I:=\@delivs\do{\m@sep\pdataRef{deliv}\@I{label}\let\m@sep=\new@sep}}
|
2014-02-15 12:01:14 +01:00
|
|
|
\newenvironment{risk}[3]
|
|
|
|
{\paragraph{Risk: #1}\hfill\emph{probability}: #2, \emph{gravity}: #3\par\noindent\ignorespaces}
|
|
|
|
{}
|
|
|
|
\newenvironment{riskcont}[3]
|
|
|
|
{\begin{risk}{#1}{#2}{#3}\textbf{Contingency:} }
|
|
|
|
{\end{risk}}
|
2016-06-12 13:07:14 +02:00
|
|
|
\newcommand\keypubs[2][]{%
|
2014-02-15 12:01:14 +01:00
|
|
|
\paragraph{Key publications relevant to the project}%
|
2016-06-12 13:07:14 +02:00
|
|
|
{\prop@paperlist[#1]{#2}}}
|
2014-02-15 12:01:14 +01:00
|
|
|
\endinput
|
|
|
|
%%
|
|
|
|
%% End of file `euproposal.cls'.
|