copying over Nicolas upgrades

This commit is contained in:
Michael Kohlhase 2015-09-08 15:31:13 +02:00
parent 83abfea5d9
commit 71f6ec37a1
5 changed files with 40 additions and 3 deletions

View File

@ -541,6 +541,7 @@
%<*cls|reporting> %<*cls|reporting>
\newif\if@wpsubsection\@wpsubsectionfalse \newif\if@wpsubsection\@wpsubsectionfalse
\newif\ifsubmit\submitfalse \newif\ifsubmit\submitfalse
\newif\ifgrantagreement\grantagreementfalse
\newif\ifpublic\publicfalse \newif\ifpublic\publicfalse
\newif\ifkeys\keysfalse \newif\ifkeys\keysfalse
\newif\ifdelivs\delivsfalse \newif\ifdelivs\delivsfalse
@ -551,6 +552,7 @@
\def\proposal@class{article} \def\proposal@class{article}
\DeclareOption{wpsubsection}{\@wpsubsectiontrue} \DeclareOption{wpsubsection}{\@wpsubsectiontrue}
\DeclareOption{submit}{\submittrue} \DeclareOption{submit}{\submittrue}
\DeclareOption{grantagreement}{\grantagreementtrue}
\DeclareOption{gitinfo}{\@gitinfotrue} \DeclareOption{gitinfo}{\@gitinfotrue}
\DeclareOption{svninfo}{\@svninfotrue} \DeclareOption{svninfo}{\@svninfotrue}
\DeclareOption{public}{\publictrue} \DeclareOption{public}{\publictrue}
@ -634,11 +636,22 @@
% We specify the page headings. % We specify the page headings.
% \begin{macrocode} % \begin{macrocode}
\newif\ifofpage\ofpagefalse \newif\ifofpage\ofpagefalse
\ifgrantagreement
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
\else
\fancyhead[RE,LO]{\prop@gen@acronym} \fancyhead[RE,LO]{\prop@gen@acronym}
\fancyhfoffset{0pt} \fancyhfoffset{0pt}
\fi
\fancyfoot[C]{} \fancyfoot[C]{}
\newcommand\prop@of@pages[2]{page~#1\ifofpage~of~#2\fi} \newcommand\prop@of@pages[2]{page~#1\ifofpage~of~#2\fi}
\ifgrantagreement
\fancyfoot[L]{\prop@gen@proposalnumber\quad \prop@gen@acronym\quad --\quad Part B}
\fancyfoot[R]{\thepage}
\else
\fancyhead[LE,RO]{\prop@of@pages\thepage{\pdataref@num{prop}{page}{last}}} \fancyhead[LE,RO]{\prop@of@pages\thepage{\pdataref@num{prop}{page}{last}}}
\fi
\pagestyle{fancyplain} \pagestyle{fancyplain}
%</cls|reporting> %</cls|reporting>
% \end{macrocode} % \end{macrocode}
@ -709,6 +722,8 @@
\pdata@def{prop}{gen}{acronym}{#1}\@dmp{acro=#1}} \pdata@def{prop}{gen}{acronym}{#1}\@dmp{acro=#1}}
\define@key{prop@gen}{acrolong}{\def\prop@gen@acrolong{#1}% \define@key{prop@gen}{acrolong}{\def\prop@gen@acrolong{#1}%
\pdata@def{prop}{gen}{acrolong}{#1}} \pdata@def{prop}{gen}{acrolong}{#1}}
\define@key{prop@gen}{proposalnumber}{\def\prop@gen@proposalnumber{#1}%
\pdata@def{prop}{gen}{proposalnumber}{#1}}
\define@key{prop@gen}{discipline}{\def\prop@gen@discipline{#1}% \define@key{prop@gen}{discipline}{\def\prop@gen@discipline{#1}%
\pdata@def{prop}{gen}{discipline}{#1}} \pdata@def{prop}{gen}{discipline}{#1}}
\define@key{prop@gen}{areas}{\def\prop@gen@areas{#1}% \define@key{prop@gen}{areas}{\def\prop@gen@areas{#1}%
@ -1050,11 +1065,13 @@
% \begin{macrocode} % \begin{macrocode}
\newenvironment{workpackage}[1][]% \newenvironment{workpackage}[1][]%
{\begin{work@package}[#1]% {\begin{work@package}[#1]%
\ifgrantagreement\else
%\if@wpsubsection\subsubsection*{{\wp@mk@title\thewp}: \pdataref{wp}\wp@id{title}}\fi %\if@wpsubsection\subsubsection*{{\wp@mk@title\thewp}: \pdataref{wp}\wp@id{title}}\fi
\if@sites\goodbreak\medskip\wpheadertable% \if@sites\goodbreak\medskip\wpheadertable%
\else\subsubsection*{{\wptitle} (\wprm)}\fi% \else\subsubsection*{{\wptitle} (\wprm)}\fi%
\addcontentsline{toc}{paragraph}{{\wp@mk@title\thewp}: \pdataref{wp}\wp@id{title}}% \addcontentsline{toc}{paragraph}{{\wp@mk@title\thewp}: \pdataref{wp}\wp@id{title}}%
\noindent\ignorespaces} \noindent\ignorespaces%
\fi}
{\end{work@package}} {\end{work@package}}
% \end{macrocode} % \end{macrocode}
% \end{environment} % \end{environment}
@ -1302,6 +1319,7 @@
\else\def\current@label{\deliv@label{\thewa.\thedeliv}}\fi \else\def\current@label{\deliv@label{\thewa.\thedeliv}}\fi
\pdata@def{deliv}{\wpg@id\deliv@id}{label}{\current@label} \pdata@def{deliv}{\wpg@id\deliv@id}{label}{\current@label}
\pdata@def{deliv}{\wpg@id\deliv@id}{title}{#2} \pdata@def{deliv}{\wpg@id\deliv@id}{title}{#2}
\pdata@def{deliv}{\wpg@id\deliv@id}{page}{\thepage}%
\@ifundefined{deliv@short} \@ifundefined{deliv@short}
{\pdata@def{deliv}{\wpg@id\deliv@id}{short}{#2}} {\pdata@def{deliv}{\wpg@id\deliv@id}{short}{#2}}
{\pdata@def{deliv}{\wpg@id\deliv@id}{short}{\deliv@short}} {\pdata@def{deliv}{\wpg@id\deliv@id}{short}{\deliv@short}}
@ -1387,11 +1405,13 @@
\newcounter{milestone} \newcounter{milestone}
\define@key{milestone}{id}{\gdef\mile@id{#1}} \define@key{milestone}{id}{\gdef\mile@id{#1}}
\define@key{milestone}{month}{\gdef\mile@month{#1}} \define@key{milestone}{month}{\gdef\mile@month{#1}}
\define@key{milestone}{verif}{\gdef\mile@verif{#1}}
\newcommand\milestone[3][]{% \newcommand\milestone[3][]{%
\ifdelivs% \ifdelivs%
\setkeys{milestone}{#1}\stepcounter{milestone}% \setkeys{milestone}{#1}\stepcounter{milestone}%
\pdata@def{mile}\mile@id{label}{\milestone@label{\themilestone}}% \pdata@def{mile}\mile@id{label}{\milestone@label{\themilestone}}%
\pdata@def{mile}\mile@id{month}{\mile@month}% \pdata@def{mile}\mile@id{month}{\mile@month}%
\pdata@def{mile}\mile@id{verif}{\mile@verif}%
\pdata@def{mile}\mile@id{title}{#2}% \pdata@def{mile}\mile@id{title}{#2}%
\pdata@def{mile}\mile@id{description}{#3}% \pdata@def{mile}\mile@id{description}{#3}%
\@ifundefined{mile@stones}{\xdef\mile@stones{\mile@id}}{\xdef\mile@stones{\mile@stones,\mile@id}}% \@ifundefined{mile@stones}{\xdef\mile@stones{\mile@id}}{\xdef\mile@stones{\mile@stones,\mile@id}}%

View File

@ -304,7 +304,8 @@
% \begin{environment}{prop@proposal} % \begin{environment}{prop@proposal}
% \begin{macrocode} % \begin{macrocode}
\renewenvironment{prop@proposal} \renewenvironment{prop@proposal}
{\thispagestyle{empty}\begin{center} {\ifgrantagreement\else
\thispagestyle{empty}\begin{center}
{\Large \prop@gen@instrument}\\[.2cm] {\Large \prop@gen@instrument}\\[.2cm]
{\Large\textbf\prop@gen@callname}\\[.4cm] {\Large\textbf\prop@gen@callname}\\[.4cm]
{\LARGE \prop@gen@callid}\\[.8cm] {\LARGE \prop@gen@callid}\\[.8cm]
@ -341,6 +342,7 @@
{\@for\@site:=\prop@gen@sites\do{\wa@institution@logo[height=\prop@gen@iconrowheight]\@site\qquad}} {\@for\@site:=\prop@gen@sites\do{\wa@institution@logo[height=\prop@gen@iconrowheight]\@site\qquad}}
\end{center} \end{center}
\newpage \newpage
\fi% ifgrantagreement
\setcounter{tocdepth}{2}\setcounter{part}{2}} \setcounter{tocdepth}{2}\setcounter{part}{2}}
{\newpage\printbibliography[heading=warnpubs,maxnames=999]} {\newpage\printbibliography[heading=warnpubs,maxnames=999]}
% \end{macrocode} % \end{macrocode}

View File

@ -0,0 +1 @@
\input{proposal.tex}

View File

@ -0,0 +1,7 @@
\newcommand{\classoptions}{submit}
\input{proposal.tex}
%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% End:

View File

@ -0,0 +1,7 @@
\newcommand{\classoptions}{submit,grantagreement}
\input{proposal.tex}
%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% End: