\NeedsTeXFormat{LaTeX2e} \ProvidesClass{mlcennote}[2005/12/14 Version 0.1 Rinke Hoekstra] \RequirePackage{graphicx} \RequirePackage{multicol} \RequirePackage{url} % Based on the isisarticle.cls by Rein van den Boomgaard of ISIS, University of Amsterdam, The Netherlands % we assume that the graphics files are in the current directory %\graphicspath{{n:/leibniz/leibnizreportclass/}} % the leibnizarticle.cfg file is the 'backdoor' to mess up the % official standard \InputIfFileExists{leibniznote.cfg}{}{} \newcommand{\Leibnizaff}{% Leibniz Center for Law\\ Faculty of Law\\ University of Amsterdam\\ The Netherlands } \newcommand{\defaultaffiliation}{\Leibnizaff} \newcommand{\Leibniz@colofon}{ {\small {\bfseries MetaLex CEN Workshop}\\ {\footnotesize\noindent tel: +31 20 525 3485\\ \url{http://www.metalex.eu}\\ \url{http://www.cen.eu/cenorm/businessdomains/businessdomains/isss/activity/ws_metalex.asp} } } } \newif\if@email \@emailfalse \def\email#1{\@emailtrue\gdef\@email{\url{#1}}} \newif\if@telephone \@telephonefalse \def\telephone#1{\@telephonetrue\gdef\@telephone{#1}} \newif\if@http \@httpfalse \def\http#1{\@httptrue\gdef\@http{\url{#1}}} \newif\if@correspondingauthorset \@correspondingauthorsetfalse \def\correspondingauthor#1{\@correspondingauthorsettrue\gdef\@correspondingauthor{#1}} \newcommand{\Leibniz@correspondingauthor}{\small \textbf{Corresponding author:}\\ \@correspondingauthor\\ \if@telephone tel:\,\@telephone\\ \fi \if@email{\@email}\\\fi\if@http{\@http}\fi } \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions \LoadClass[11pt,a4paper,oneside]{article} % % Defining the page size % \voffset -1in \hoffset -1in \topmargin 0mm \headheight 30mm \headsep 10mm \footskip 10mm \textheight 220mm \setlength{\textwidth}{140mm} \oddsidemargin 40mm \evensidemargin 30mm \renewcommand{\textfraction}{0.2} \renewcommand{\bottomfraction}{0.8} \renewcommand{\topfraction}{0.8} \renewcommand{\floatpagefraction}{0.8} \newif\ifthanks \newbox\@kapbox \newcount\@kapcount \newtoks\t@a \newtoks\t@b \long\def\append@item#1\to#2{\t@a={\@k@p{#1}}\t@b=\expandafter{#2}% \xdef#2{\the\t@b\the\t@a}} \def\get@left#1\to#2{\expandafter\g@l#1\g@l#1#2} \long\def\g@l\@k@p#1#2\g@l#3#4{\def#4{#1}\def#3{#2}} \def\@authors{} \def\@allauthors{} \def\@institutes{} \def\authors@institute{} \def\author@#1{\append@item#1\to\@authors \append@item#1\to\@allauthors} \def\institute@#1{\append@item#1\to\@institutes \expandafter\append@item\expandafter{\@authors}\to\authors@institute \gdef\@authors{}} \let\author=\author@ \let\oneauthor=\author@ \let\institute=\institute@ \def\@formatname#1#2{\@kapcount\c@footnote\begingroup \def\thanks##1{\global\thankstrue}\setbox\@kapbox\vbox{#1}\endgroup \c@footnote\@kapcount \begingroup \ifthanks \def\fn##1\thanks##2{{##1}\hbox to 0pt{#2\hss}\thanks{##2}}\expandafter\fn#1 \else \def\fn##1{{##1}#2}\expandafter\fn\expandafter{#1}\fi \endgroup\global\thanksfalse} \def\@formatauthors{{\small\begingroup \newcount\cnt@authors \cnt@authors=0\def\@k@p##1{\advance\cnt@authors by 1}\@curauths \def\@k@p##1{\advance\cnt@authors by -1 \ifnum\cnt@authors>1 \hbox{\@formatname{##1}{,}\penalty-1000}\space\fi \ifnum\cnt@authors=1 \hbox{\@formatname{##1}{} and\penalty-1000}\space\fi \ifnum\cnt@authors<1 \hbox{\@formatname{##1}{}}\par\fi}\@curauths \endgroup}} \def\@formatinstitute{{\@curinst\par}} \newif\if@runningtitleset \newif\if@runningauthorset \def\runningauthor#1{\if@runningauthorset\else \xdef\@runningauthor{{#1}}\fi \global\@runningauthorsettrue} \gdef\@runningauthor{} \def\@formatauthorsandinstitutes{\begingroup \newcount\cnt@institutes \newcount\cnt@authors \newbox\@authbox \cnt@authors=0\def\@k@p##1{\advance\cnt@authors by 1}\@allauthors \xdef\@authnames{}% \begingroup \def\thanks##1{}% \def\@k@p##1{\advance\cnt@authors by -1 \ifnum\cnt@authors=0 \xdef\@authnames{\@authnames ##1}\fi \ifnum\cnt@authors=1 \xdef\@authnames{##1\ and }\fi \ifnum\cnt@authors>1 \xdef\@authnames{##1\ et al.}\cnt@authors=0\fi}% \global\setbox\@authbox=\hbox{\@allauthors}% \expandafter\runningauthor\expandafter{\@authnames} \endgroup \cnt@institutes=0 \def\@k@p##1{\advance\cnt@institutes by 1}\@institutes \loop\ifnum\cnt@institutes>0 \get@left\authors@institute\to\@curauths {\normalsize\sffamily\bfseries\noindent\@formatauthors} \get@left\@institutes\to\@curinst {\normalsize\sffamily\noindent\@formatinstitute} \ifnum\cnt@institutes=2 \vskip 0.4\baselineskip %% and <<<==== this is ugly \fi \ifnum\cnt@institutes>1 \vskip 0.4\baselineskip \fi \advance\cnt@institutes by -1 \repeat\endgroup} \newif\if@subtitle \@subtitlefalse \def\subtitle#1{\@subtitletrue\gdef\@subtitle{#1}} \newif\if@affiliation \@affiliationfalse \def\affiliation#1{\@affiliationtrue\gdef\@affiliation{#1}} \newif\if@status \@statusfalse \def\status#1#2{\@statustrue\gdef\@statushead{#1}\gdef\@statustail{#2}} \newif\if@abstract \@abstractfalse \renewcommand{\abstract}[1]{\@abstracttrue\gdef\@abstract{#1}} \newif\if@acknowledge \@acknowledgefalse \newcommand{\acknowledge}[1]{\@acknowledgetrue\gdef\@acknowledge{#1}} \newif\if@Leibnizreport \@Leibnizreportfalse \newcommand{\Leibnizreport}[1]{\@Leibnizreporttrue\gdef\@Leibnizreport{#1}} \newif\if@Leibnizreportdate \@Leibnizreportdatefalse \newcommand{\Leibnizreportdate}[1]{\@Leibnizreportdatetrue\gdef\@Leibnizreportdate{#1}} %\AtEndDocument{\Leibniz@backcoverpage{\@Leibnizreport}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Headers en Footers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\ps@leibnizhead{% \let\@oddfoot\@empty \let\@evenfoot\@empty \def\@evenhead{% \parbox{\textwidth}{\sffamily\thepage\hfill\leftmark\\ \rule[1.5ex]{\textwidth}{.1pt}}} \def\@oddhead{% \parbox{\textwidth}{\sffamily\rightmark\hfill\thepage\\ \rule[1.5ex]{\textwidth}{.1pt}}} \let\@mkboth\markboth \def\sectionmark##1{% \markboth{\@runningauthor}{% \ifnum \c@secnumdepth >\m@ne Section \thesection\hskip 1em\relax \fi ##1}}} \pagestyle{leibnizhead} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Sans Serif font voor sections %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\@sectionfont{\bf\sffamily} \renewcommand{\section}{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\reset@font\Large\@sectionfont}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\reset@font\large\@sectionfont}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\reset@font\normalsize\@sectionfont}} \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\reset@font\normalsize\bfseries}} \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\reset@font\normalsize\bfseries}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Front cover page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand{\maketitle}{% % % Outside front cover page % \thispagestyle{empty} \enlargethispage{2cm} % just to make sure LaTeX doesn't % generate a new page %\vspace*{-3.5cm}\hspace*{-2cm} %\noindent % \begin{minipage}[t][27cm][t]{5cm} % \mbox{}\\ % \includegraphics[width=40mm]{leibnizvbanner.jpg} %\end{minipage} %\begin{minipage}[t][24cm][t]{10cm} \if@Leibnizreport %\vspace*{1.5ex} \hfill\textsf{Leibniz Center Note}% \if@Leibnizreportdate% , \@Leibnizreportdate \else , {\large NO DATE GIVEN} \fi \\[2cm] \else \mbox{}\\[4cm] \fi \noindent\@maketitle \if@abstract\vspace*{2cm}\noindent\textbf{\textsf{Abstract. }}{\small \@abstract}\vfill\mbox{}\fi %\if@status % \vfill % \begin{tabular}{lp{6cm}} % {\bf\large\@statushead\hspace{2mm}} & % \parbox[t]{6cm}{\normalsize\@statustail} % \end{tabular} %\fi %\end{minipage} % % Inside front cover page % % \newpage %\let\Leibniz@tempevenhead\@evenhead %\def\@evenhead{% % \parbox{\textwidth}{\sffamily\@title\hfill\\ % \rule[1.5ex]{\textwidth}{0.1pt}}} %\enlargethispage{2cm} %\vspace*{-\Leibniz@vup} %\tableofcontents \vspace*{\fill} \noindent\includegraphics[width=\textwidth]{metalexhbanner.jpg} %% nu het colofon zetten \if@correspondingauthorset% \noindent\hspace*{0.2cm}\begin{tabular}{@{}lr@{}} %\hline \begin{minipage}[t]{.45\textwidth} \vspace*{2mm} \Leibniz@colofon \end{minipage}& \begin{minipage}[t]{.55\textwidth} \vspace*{2mm} \noindent\Leibniz@correspondingauthor \end{minipage}\\ \vspace*{0.5ex}\mbox{}&\\ \end{tabular} \else %\hline\\ \begin{center}\Leibniz@colofon\end{center} \fi \setcounter{page}\z@ \newpage %\let\@evenhead\Leibniz@tempevenhead } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Title maken %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\@titlefont{\sffamily} \def\@maketitle{% {\LARGE\@titlefont\noindent\@title\\[.5ex]} \if@subtitle{\Large\@titlefont\noindent\@subtitle}\fi \hspace{0pt}\\[1.5cm] \@formatauthorsandinstitutes } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \long\def\@makecaption#1#2{% \vskip\abovecaptionskip {\sffamily\bfseries\small #1:}\hspace{.5em}#2 \vskip\belowcaptionskip} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Back cover page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % The back cover page contains a list of technical reports that are already % published within the series. \newcommand{\Leibniz@backcoverpage}[1]{ \cleardoublepage \let\Leibniz@oddtemphead\@oddhead \def\@oddhead{} \if@acknowledge\noindent\parbox[t]{\textwidth}{ \section*{Acknowledgements} \@acknowledge } \fi \newpage \enlargethispage{2cm} \let\@oddhead\Leibniz@oddtemphead \thispagestyle{empty} \vspace*{\fill} \if@Leibnizreport \section*{Leibniz reports} This report is in the series of Leibniz Center technical reports. The series editor is Rinke Hoekstra (\url{reports-leibniz@leibnizcenter.org}). Within this series the following titles are available: \begin{multicols}{2} \Leibniz@reportsfromfile \end{multicols} \noindent You may order copies of the Leibniz technical reports from the corresponding author or the series editor. Most of the reports can also be found on the web pages of the Leibniz Center (\url{http://www.leibnizcenter.org/publications}).\par \vspace*{\fill} \fi \noindent\includegraphics[width=\textwidth]{leibnizhbanner.jpg} } \newenvironment{leibnizbibliography}[1] {\small% \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \usecounter{enumiv}% \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} \newcommand{\Leibniz@reportsfromfile}{ \IfFileExists{Leibnizreport\@Leibnizreport.bbl}{ \input{Leibnizreport\@Leibnizreport.bbl} }%else { \fbox{The file with technical reports ``Leibnizreport\@Leibnizreport.bbl'' is missing} } } \endinput \jajaja % just to show that this code doesn't do anything \newlength{\Leibniz@vup} \setlength{\Leibniz@vup}{3cm} \newlength{\Leibniz@vdown} \setlength{\Leibniz@vdown}{2cm} \newlength{\Leibniz@tph} \setlength{\Leibniz@tph}{\textheight} \addtolength{\Leibniz@tph}{\Leibniz@vup} \addtolength{\Leibniz@tph}{\Leibniz@vdown} \addtolength{\Leibniz@tph}{-1cm} \newlength{\Leibniz@hleft} \setlength{\Leibniz@hleft}{2cm} \newlength{\Leibniz@tpw} \setlength{\Leibniz@tpw}{\textwidth} \addtolength{\Leibniz@tpw}{\Leibniz@hleft} \addtolength{\Leibniz@tpw}{-.5cm} \newlength{\Leibniz@vbannerwidth} \setlength{\Leibniz@vbannerwidth}{3cm} \newlength{\Leibniz@tpew} \setlength{\Leibniz@tpew}{\Leibniz@tpw} \addtolength{\Leibniz@tpew}{-\Leibniz@vbannerwidth} \addtolength{\Leibniz@tpew}{-17mm} \newsavebox{\Leibniz@vbanner} \sbox{\Leibniz@vbanner}{\includegraphics[bb=0 0 3cm 28cm,width=\Leibniz@vbannerwidth]{\Leibniz@vbannerfile}} \renewcommand{\maketitle}{% % % Outside cover page % \thispagestyle{empty} \enlargethispage{\Leibniz@vdown} \vspace*{-\Leibniz@vup}% \hspace*{-\Leibniz@hleft}\mbox{ \begin{minipage}[t][\Leibniz@tph][b]{\Leibniz@vbannerwidth} \usebox{\Leibniz@vbanner} \end{minipage}\hspace{.4cm}\rule[-\Leibniz@tph]{.1mm}{\Leibniz@tph}\hspace{1cm}\mbox{ \begin{minipage}[t][\Leibniz@tph][t]{\Leibniz@tpew} \if@Leibnizreport \vspace*{1.5ex}\noindent \textsf{Leibniz technical report series, Vol.\ }\@Leibnizreport\\[4.5cm] \else \mbox{}\\[5cm] \fi \noindent\@maketitle \if@abstract\vspace{3cm}{\small \@abstract}\vfill\mbox{}\fi \if@status\vfill \noindent{\sffamily \newlength{\Leibniz@shw}\newlength{\Leibniz@stw} \settowidth{\Leibniz@shw}{\large\@statushead\hspace{2mm}} \setlength{\Leibniz@stw}{\Leibniz@tpew} \addtolength{\Leibniz@stw}{-\Leibniz@shw} \ \begin{minipage}[t]{\Leibniz@shw} \large\@statushead\hspace{2mm} \end{minipage} \begin{minipage}[t]{\Leibniz@stw} \normalsize\@statustail \end{minipage}} \fi \end{minipage}} } % % Inside cover page % \newpage \let\Leibniz@tempevenhead\@evenhead \def\@evenhead{% \parbox{\textwidth}{\sffamily\@title\hfill\leftmark\\ \rule[1.5ex]{\textwidth}{1pt}}} \enlargethispage{\Leibniz@vdown} %\vspace*{-\Leibniz@vup} \tableofcontents \vspace*{\fill} %% nu het colofon zetten \if@correspondingauthorset% \noindent\begin{tabular}{@{}l|r@{}} \hline\\ \begin{minipage}[t]{.5\textwidth} \begin{center}\Leibniz@colofon\end{center} \end{minipage}& \begin{minipage}[t]{.5\textwidth} \vfill \begin{center}\Leibniz@correspondingauthor\end{center} \vfill \end{minipage}\\ \vspace*{0.5ex}\mbox{}&\\ \hline \end{tabular} \else \hline\\ \begin{center}\Leibniz@colofon\end{center} \fi \setcounter{page}\z@ \newpage \let\@evenhead\Leibniz@tempevenhead }