LaTeX-proposal/dfg/dfgproposal.cls

103 lines
3.6 KiB
OpenEdge ABL
Raw Permalink Normal View History

2014-02-15 12:01:14 +01:00
%%
%% This is file `dfgproposal.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dfgproposal.dtx (with options: `cls')
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
2020-08-24 11:49:25 +02:00
\ProvidesClass{dfgproposal}[2020/08/21 v1.5 DFG Proposal]
2014-02-15 12:01:14 +01:00
\newif\ifgeneral\generalfalse
\DeclareOption{general}{\generaltrue}
\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{dfgpdata}}
2020-09-09 07:02:56 +02:00
\PassOptionsToClass{11pt}{article}
2014-02-15 12:01:14 +01:00
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{proposal}}
\ProcessOptions
\LoadClass{proposal}
\RequirePackage{eurosym}
2019-12-18 11:02:51 +01:00
\RequirePackage{dfgpdata}
2014-02-15 12:01:14 +01:00
\ifdeutsch\RequirePackage[ngerman]{babel}
2019-12-18 11:02:51 +01:00
\else\RequirePackage[ngerman,english]{babel}\fi
2020-09-09 07:02:56 +02:00
\RequirePackage[scaled=.90]{helvet}
\renewcommand{\familydefault}{\sfdefault}
2014-02-15 12:01:14 +01:00
\newenvironment{sitedescription}[2][]%
2020-08-19 14:57:48 +02:00
{\def\@test{#1}\def\@@title{\ifx\@test\@empty\pdataref{site}{#2}{acronym}\else #1\fi:
\textsc{\pdataref{site}{#2}{name}}}
2014-02-15 12:01:14 +01:00
\@for\@I:=#2\do{\pdata@target{site}\@I{}}\subsubsection\@@title}
{}
\renewenvironment{prop@proposal}
2020-08-19 07:28:18 +02:00
{\ifsubmit\setcounter{page}{1}\else\thispagestyle{empty}\fi
2014-02-15 12:01:14 +01:00
\begin{center}
2020-03-04 08:18:03 +01:00
{\LARGE \prop@gen@instrument}\\[.2cm]
2014-02-15 12:01:14 +01:00
{\LARGE\textbf{\prop@gen@title}}\\[.3cm]
2017-05-31 08:16:21 +02:00
\ifx\prop@gen@acronym\@empty\else{\LARGE Acronym: {\prop@gen@acronym}}\\[.2cm]\fi
2020-03-04 08:18:03 +01:00
{\large\today}\\[1em]
\edef\the@PIs{\pdataref{all}{PI}{count}}
\edef\prop@gen@PIs{\pdataref{all}{PI}{ids}}
2020-08-19 14:57:48 +02:00
\begin{tabular}{c*{\the@PIs}{c}}
2020-08-24 11:19:16 +02:00
\prop@tl\prop@gen@PIs{\pdataref@safe{PI}\tl@ext{name}}\\
\prop@tl\prop@gen@PIs{\pdataref@safe{PI}\tl@ext{affiliation}}\\
\prop@tl\prop@gen@PIs{\pdataref@safe{PI}\tl@ext{dept}}\\
2020-08-19 14:57:48 +02:00
\end{tabular}\\[2cm]
2014-02-15 12:01:14 +01:00
\end{center}
2020-08-19 07:28:18 +02:00
\ifgeneral
\ifsubmit\else
2020-03-04 08:18:03 +01:00
\setcounter{section}{-1}
2014-02-15 12:01:14 +01:00
\edef\keep@tocdepth{\value{tocdepth}}
\setcounter{tocdepth}{2}\tableofcontents
\setcounter{tocdepth}{\keep@tocdepth}
\newpage\thispagestyle{empty}
\ifdeutsch\section{Allgemeine Angaben (nur f\"ur ELAN)}\else
\section{General Information (for the ELAN system only)}\fi
\dfg@topic
\dfg@area@field
\ifdeutsch\subsection{Voraussichtliche Gesamtdauer}\else
\subsection{Anticipated total duration}
2018-03-22 10:25:37 +01:00
\fi% ifdeutsch
2014-02-15 12:01:14 +01:00
\@ifundefined{prop@gen@totalduration}{????}{\prop@gen@totalduration};
\ifdeutsch
\@ifundefined{prop@gen@since}{Erstantrag}{Fortsetungsantrag, das Project l\"auft seit
\prop@gen@since.}
\else
\@ifundefined{prop@gen@since}{initial proposal}{continuation proposal, the project started
\prop@gen@since.}
2018-03-22 10:25:37 +01:00
\fi%ifdeutsch
2020-08-24 10:45:52 +02:00
\ifdeutsch
2020-07-06 12:57:59 +02:00
\subsection{Schl\"usselw\"orter}\prop@gen@Dkeywords
2020-08-24 10:45:52 +02:00
\else\subsection{Keywords}\prop@gen@keywords
\fi
2014-02-15 12:01:14 +01:00
\ifdeutsch\subsection{Antragszeitraum}\else
\subsection{Application period}\fi
2014-02-15 12:01:14 +01:00
\prop@gen@months\quad Months starting \prop@gen@start
\@ifundefined{prop@gen@fundsuntil}{}
2014-10-28 08:04:52 +01:00
{ (\ifdeutsch Mittel reichen bis\else funds last until\fi\ \prop@gen@fundsuntil)}
2019-12-18 11:02:51 +01:00
\ifdeutsch\else\selectlanguage{english}\fi
2018-03-22 10:25:37 +01:00
\newpage
2017-06-12 07:05:47 +02:00
\setcounter{page}{0}%
2020-03-04 08:18:03 +01:00
\fi\fi}% ifsubmit ifgeneral
2014-02-15 12:01:14 +01:00
{}
\ifdeutsch
\def\prop@warnpubs@message{Viele der Publikationen der Antragsteller sind verf\"ugbar unter folgenden URLs:}
\def\prop@warnpubs@title{Literatur}
\fi
\newcommand\attachments{\ifdeutsch\section{Verzeichnis der Anlagen}\else
\section{List of Attachments}\fi
2014-02-15 12:01:14 +01:00
\begin{itemize}
\@for\@I:=\prop@gen@PIs\do{%
2020-08-24 10:45:52 +02:00
\item\ifdeutsch Lebenslauf und Publikatinsverzeichnis\else Curriculum Vitae and list of publications for \fi
\pdataref{PI}\@I{title}\pdataref{PI}\@I{name}}
2014-02-15 12:01:14 +01:00
\end{itemize}}
\ifgeneral
\newenvironment{Zusammenfassung}{\thispagestyle{empty}\subsection{Zusammenfassung}\begin{otherlanguage}{ngerman}}
{\end{otherlanguage}\newpage\setcounter{page}1}
\newenvironment{Summary}{\thispagestyle{empty}\subsection{Summary}}
{\newpage\setcounter{page}1}
\else
\excludecomment{Summary}
\excludecomment{Zusammenfassung}
\fi
\endinput
%%
%% End of file `dfgproposal.cls'.