%%
%% This is file `jura.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jura.dtx  (with options: `class')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% You are *not* allowed to modify this file.
%% 
%% You are *not* allowed to distribute this file.
%% For distribution of the original source see the terms
%% for copying and modification in the file jura.dtx.
%% 
%% $VER:jura 3.8 (30.8.96)
%% Written by Felix Braun
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{jura}
[1996/08/30 v3.8 juristische Hausarbeiten]
\DeclareOption{twoside}{\PassOptionsToClass{twoside}{report}}
\DeclareOption{draft}{\PassOptionsToClass{draft}{report}}
\newlength\frontwidth\newlength\ofrontmargin\newlength\efrontmargin
\DeclareOption{widefront}{\setlength{\frontwidth}{15,77cm}
\setlength{\efrontmargin}{0,75mm}\setlength{\ofrontmargin}{0,75mm}}
\DeclareOption{normalfront}{\setlength{\frontwidth}{12,2cm}
\setlength{\ofrontmargin}{4,46cm}\setlength{\efrontmargin}{-7,4mm}}
\ExecuteOptions{normalfront}
\ProcessOptions\relax
\LoadClass[a4paper,12pt]{report}
\setlength{\parskip}{0ex}
\setlength{\parindent}{1,3em}
\setlength{\textwidth}{12,2cm}
\setlength{\oddsidemargin}{4,46cm}
\setlength{\evensidemargin}{-7,4mm}
\setlength{\marginparwidth}{3,5cm}
\reversemarginpar
\linespread{1.3}
\setlength{\textheight}{34\baselineskip}
\setlength{\textheight}{\baselinestretch\textheight}
\setlength\topmargin{\paperheight}
\addtolength\topmargin{-2in}
\addtolength\topmargin{-\headheight}
\addtolength\topmargin{-\headsep}
\addtolength\topmargin{-\textheight}
\addtolength\topmargin{-\footskip}
\addtolength\topmargin{-\topskip}
\addtolength\topmargin{-.5\topmargin}
\@settopoint\topmargin
\newcommand*{\greek}[1]{\ifcase\value{#1}\or$\alpha$\or$\beta$\or
$\gamma$\or$\delta$\or$\varepsilon$\or$\zeta$\or$\eta$\or$\vartheta$\or
$\iota$\or$\kappa$\or$\lambda$\or$\mu$\or$\nu$\or$\xi$\or$o$\or$\pi$\or
$\rho$\or$\sigma$\or$\tau$\or$\upsilon$\or$\varphi$\or$\chi$\or$\psi$\or
$\omega$\else\@ctrerr\fi}
\renewcommand{\@footnotetext}[1]{\insert\footins{%
  \linespread{1}\reset@font\footnotesize
    \interlinepenalty\interfootnotelinepenalty
    \splittopskip\footnotesep
    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
    \hsize\columnwidth \@parboxrestore
    \protected@edef\@currentlabel{%
       \csname p@footnote\endcsname\@thefnmark
    }%
    \color@begingroup
      \@makefntext{%
        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}
    \color@endgroup}}
\newcounter{lvla}
\newcounter{lvlb} [lvla]
\newcounter{lvlc} [lvlb]
\newcounter{lvld} [lvlc]
\newcounter{lvle} [lvld]
\newcounter{lvlf} [lvle]
\newcounter{lvlg} [lvlf]
\newcounter{lvlh} [lvlg]
\newcounter{lvli} [lvlh]
\newcounter{lvlj} [lvli]
\newcounter{lvlk} [lvlj]
\newcounter{lvll} [lvlk]
\renewcommand*{\thelvla}{\Number}
\renewcommand*{\thelvlb}{\Number}
\renewcommand*{\thelvlc}{\Number}
\renewcommand*{\thelvld}{\Number}
\renewcommand*{\thelvle}{\Number}
\renewcommand*{\thelvlf}{\Number}
\renewcommand*{\thelvlg}{\Number}
\renewcommand*{\thelvlh}{\Number}
\renewcommand*{\thelvli}{\Number}
\renewcommand*{\thelvlj}{\Number}
\renewcommand*{\thelvlk}{\Number}
\renewcommand*{\thelvll}{\Number}
\if@twoside
\newcommand*{\lvlamark}[1]{\SetCurrent%
\@mkboth{\NumberRoot1\NumberEnd1\ #1}{\NumberRoot1\NumberEnd1\ #1}}
\newcommand*{\lvlbmark}[1]{\SetCurrent%
\@mkboth{\NumberRoot1\,\NumberRoot2\NumberEnd2\ #1}%
{\NumberRoot1\,\NumberRoot2\NumberEnd2\ #1}}
\newcommand*{\lvlcmark}[1]{\SetCurrent\markright{\Number\ #1}}
\else
\newcommand*{\lvlamark}[1]{\SetCurrent%
\markright{\NumberRoot1\NumberEnd1\ #1}}
\newcommand*{\lvlbmark}[1]{\SetCurrent%
\markright{\NumberRoot1\,\NumberRoot2\NumberEnd2\ #1}}
\newcommand*{\lvlcmark}[1]{\SetCurrent%
\markright{\NumberRoot1\,\NumberRoot2\,\Number\ #1}}
\fi
\newcommand*{\lvldmark}{\SetCurrent\@gobble}
\let\lvlemark\lvldmark
\let\lvlfmark\lvldmark
\let\lvlgmark\lvldmark
\let\lvlhmark\lvldmark
\let\lvlimark\lvldmark
\let\lvljmark\lvldmark
\let\lvlkmark\lvldmark
\let\lvllmark\lvldmark
\newcounter{tiefe}\setcounter{tiefe}{1}
\setcounter{tocdepth}{12}\setcounter{secnumdepth}{12}
\newcommand*{\Number}{%
\NumberRoot{\value{tiefe}}\NumberEnd{\value{tiefe}}}
\newcommand*{\NumberRoot}[1]{%
\ifcase#1\or
\Alph{lvla}\or
\Roman{lvlb}\or
\arabic{lvlc}\or
\alph{lvld}\or
\alph{lvle}\alph{lvle}\or
\greek{lvlf}\or
\greek{lvlg}\greek{lvlg}\or
(\arabic{lvlh})\or
(\alph{lvli})\or
(\alph{lvlj}\alph{lvlj})\or
(\greek{lvlk})\or
(\greek{lvll}\greek{lvll})\fi}
\newcommand*{\NumberEnd}[1]{\ifnum#1<8\ifnum#1<4.\else)\fi\fi}
\newcommand*\l@lvla{\@dottedtocline{1}{0em}{2,5em}}
\newcommand*\l@lvlb{\@dottedtocline{2}{1em}{2,5em}}
\newcommand*\l@lvlc{\@dottedtocline{3}{2em}{2,5em}}
\newcommand*\l@lvld{\@dottedtocline{4}{3em}{2,5em}}
\newcommand*\l@lvle{\@dottedtocline{5}{4em}{2,5em}}
\newcommand*\l@lvlf{\@dottedtocline{6}{5em}{2,5em}}
\newcommand*\l@lvlg{\@dottedtocline{7}{6em}{2,5em}}
\newcommand*\l@lvlh{\@dottedtocline{8}{7em}{2,5em}}
\newcommand*\l@lvli{\@dottedtocline{9}{8em}{2,5em}}
\newcommand*\l@lvlj{\@dottedtocline{10}{9em}{2,5em}}
\newcommand*\l@lvlk{\@dottedtocline{11}{10em}{2,5em}}
\newcommand*\l@lvll{\@dottedtocline{12}{11em}{2,5em}}
\newcommand*{\SetCurrent}{\edef\@currentlabel{\SCNum1\SCNum2\SCNum3%
\SCNum4\SCNum5\SCNum6\SCNum7\SCNum8\SCNum9\SCNum{10}\SCNum{11}\Number}}
\newcommand*{\SCNum}[1]{\ifnum#1<\value{tiefe}\NumberRoot#1\,\fi}
\newcommand*{\toc}{\secdef\LongToc\ShortToc}
\newcommand*{\ShortToc}[1]{\stepcounter{lvl\alph{tiefe}}\Number\ %
\addcontentsline{toc}{lvl\alph{tiefe}}{\protect\numberline{\Number}#1}%
\csname lvl\alph{tiefe}mark\endcsname{#1}\@gobblecr}
\newcommand*{\LongToc}[2][]{%
\@startsection{lvl\alph{tiefe}}{\value{tiefe}}{0pt}
{\ifnum\value{tiefe}=1 -4ex plus-1,5ex minus-0,ex\else
-2,7ex plus-0,8ex minus-0,2ex\fi}
{\ifnum\value{tiefe}>7 -1em plus-0,5em\relax\else
0,6ex plus0,3ex minus0,1ex\fi}
{\normalfont%
\ifnum\value{tiefe}=1\large\else\normalsize\fi
\ifnum\value{tiefe}>7\itshape\else\bfseries\fi}[#1]{#2}}
\renewcommand*{\@seccntformat}[1]{\csname the#1\endcsname\ }
\renewcommand*{\numberline}[1]{#1\ }
\newcommand*{\sub}{%
\ifnum\value{lvla}=0
\ClassWarning{jura}{\protect\sub\space without \protect\toc\space}\fi
\ifnum\value{tiefe}=12
\ClassWarning{jura}{too many sublevels!! Ignored \protect\sub.
\MessageBreak There will probably be an \protect\levelup\space
without \protect\sub\space warning later on}
    \setcounter{tiefe}{11}\fi
\stepcounter{tiefe}\toc}
\newcommand*{\levelup}{%
\ifnum\value{tiefe}=1
\ClassWarning{jura}{\protect\levelup\space without\protect\sub}
\stepcounter{tiefe}\fi
\ifnum\value{lvl\alph{tiefe}}=1
\ClassWarning{jura}{only one subitem in level "\Number" ending}\fi
\addtocounter{tiefe}{-1}\par\addvspace{2,7ex plus0,8ex minus1ex}}
\newcommand*{\frontmatter}{\cleardoublepage\pagenumbering{Roman}%
\oddsidemargin\ofrontmargin\evensidemargin\efrontmargin%
\hsize\frontwidth\columnwidth\hsize\linewidth\hsize\textwidth\hsize}
\newcommand*{\mainmatter}{\cleardoublepage\pagenumbering{arabic}%
\hsize12,2cm\columnwidth12,2cm\linewidth12,2cm\textwidth12,2cm%
\oddsidemargin4,46cm\evensidemargin-7,4mm}
\newcommand*{\backmatter}{\clearpage}
\renewenvironment*{titlepage}{%
 \thispagestyle{empty}\setcounter{page}{1}%
 \setlength{\oddsidemargin}{0,75mm}\setlength{\parindent}{0cm}%
 \hsize15,77cm\columnwidth15,77cm\linewidth15,77cm\textwidth15,77cm}%
 {\newpage\if@twoside\thispagestyle{empty}\null\clearpage\fi}
\renewcommand{\maketitle}{\begin{titlepage}%
\let\footnotesize\small\let\footnoterule\relax\let\footnote\thanks
\begin{tabular}[t]{l}%
\@author
\end{tabular}\par%
\null\vfill
\begin{center}%
{\LARGE\@title\par}\vspace{8ex}%
{\@date\par}%
\end{center}\par
\@thanks
\vfill\vfill\null
\end{titlepage}%
\setcounter{footnote}{0}\global\let\thanks\relax
\global\let\maketitle\relax\global\let\@thanks\@empty
\global\let\@author\@empty\global\let\@date\@empty
\global\let\@title\@empty\global\let\title\relax
\global\let\author\relax\global\let\date\relax
\global\let\and\relax}
\renewcommand*{\and}{\end{tabular}\hspace{1em}\hfill%
\begin{tabular}[t]{l}}
\newenvironment*{jurabibliography}
{\chapter*{\bibname
 \@mkboth{\bibname}{\bibname}}%
 \begin{description}\sloppy}{\end{description}}
\renewcommand*{\@cite}[2][]{#1#2}
\def\jbibitem#1#2#3{\item[#1]\if@filesw
 {\let\protect\noexpand\immediate
 \write\@auxout{\string\bibcite{#3}{#2}}}\fi\ignorespaces}
\newenvironment{sachverhalt}{\chapter*{Sachverhalt}%
\@mkboth{Sachverhalt}{Sachverhalt}}{\clearpage}
\endinput
%%
%% End of file `jura.cls'.
