diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-13 21:52:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-13 21:52:24 +0000 |
commit | 9f4ee8802a990da91232376f923963f9d909f472 (patch) | |
tree | 0e0b45f8e1119f0092ca94d5eded9f1da9065fb2 /Master/texmf-dist/tex/latex/hausarbeit-jura | |
parent | 451d03eed1f677a1c576f8b701e4068b42fd9039 (diff) |
hausarbeit-jura (13sep16)
git-svn-id: svn://tug.org/texlive/trunk@42054 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hausarbeit-jura')
-rw-r--r-- | Master/texmf-dist/tex/latex/hausarbeit-jura/hausarbeit-jura.cls | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/hausarbeit-jura/hausarbeit-jura.cls b/Master/texmf-dist/tex/latex/hausarbeit-jura/hausarbeit-jura.cls index 8f43f5bfc64..c57b21a017f 100644 --- a/Master/texmf-dist/tex/latex/hausarbeit-jura/hausarbeit-jura.cls +++ b/Master/texmf-dist/tex/latex/hausarbeit-jura/hausarbeit-jura.cls @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{hausarbeit-jura} -[2016/04/25 v1.4 Eine Klasse für juristische Hausarbeiten (ao, ms)] +[2016/09/13 v1.5 Eine Klasse für juristische Hausarbeiten (ao, ms)] \RequirePackage{ifthen} \DeclareOption{american}{% \PassOptionsToPackage{american,ngerman}{babel} @@ -38,7 +38,8 @@ \DeclareOption{applemac}{\PassOptionsToPackage{applemac}{inputenc}} \newif\if@centerpagenumber \@centerpagenumberfalse -\DeclareOption{centerpagenumber}{\AtBeginDocument{\@classiclayoutfalse}}%\@centerpagenumbertrue} +\DeclareOption{centerpagenumber}{% + \AtBeginDocument{\@classiclayoutfalse}} \newif\if@texgyre \@texgyretrue \DeclareOption{texgyre}{\@texgyretrue} @@ -55,7 +56,10 @@ \newif\if@headlinetitlepageleft \@headlinetitlepageleftfalse \DeclareOption{headlinetitlepageleft}{\@headlinetitlepagelefttrue} -\ExecuteOptions{american,utf8} +\newif\if@automatter +\DeclareOption{noautomatter}{\@automatterfalse} +\DeclareOption{automatter}{\@automattertrue} +\ExecuteOptions{american,utf8,automatter} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{jurabook}} \ProcessOptions\relax @@ -221,16 +225,12 @@ \addtolength{\subfivesectiontocindent}{\subfoursectionnumwidth}% \setlength{\subsixsectiontocindent}{\subfivesectiontocindent}% \addtolength{\subsixsectiontocindent}{\subfivesectionnumwidth}% - \setlength{\subsevensectiontocindent}{\subsixsectiontocindent}% \addtolength{\subsevensectiontocindent}{\subsixsectionnumwidth}% - \setlength{\subeightsectiontocindent}{\subsevensectiontocindent}% \addtolength{\subeightsectiontocindent}{\subsevensectionnumwidth}% - \setlength{\paragraphtocindent}{\subeightsectiontocindent}% \addtolength{\paragraphtocindent}{\subeightsectionnumwidth}% - \setlength{\subparagraphtocindent}{\paragraphtocindent}% \addtolength{\subparagraphtocindent}{\jb@defaulttocindent@length}% } @@ -239,38 +239,42 @@ \renewcommand{\jb@chapter@style}{\LARGE\bfseries} \setlength{\jb@chapterafter@length}{20\p@} \setlength{\jb@chapterbefore@length}{15\p@} +\newcommand{\setspacebeforechapter}[1]{\setjbooklength{chapterbefore}{#1}} +\newcommand{\setspaceafterchapter}[1]{\setjbooklength{chapterafter}{#1}} %%% %%% Abschnitte anpassen \newlength{\sectionbefore} -\setlength{\sectionbefore}{-2ex\@plus -1ex \@minus -.2ex} +\setlength{\sectionbefore}{2ex} \newlength{\sectionafter} -\setlength{\sectionafter}{1ex \@plus .1ex} +\setlength{\sectionafter}{1ex} +\newcommand{\setspacebeforesection}[1]{\setlength{\sectionbefore}{#1}} +\newcommand{\setspaceaftersection}[1]{\setlength{\sectionafter}{#1}} \renewcommand\section{\@startsection% {section}% {1}% {\z@}% - {-2.5ex \@plus -1ex \@minus -.2ex}% - {1.7ex \@plus.15ex}% + {-1\sectionbefore}% + {\sectionafter}% {\normalfont\Large\bfseries}} \renewcommand\subsection{\@startsection% {subsection}% {2}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\large\bfseries}} \renewcommand{\subsubsection}{\@startsection% {subsubsection}% {3}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \renewcommand{\subthreesection}{\@startsection% {subthreesection}% {4}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsection\subthreesection @@ -278,7 +282,7 @@ {subfoursection}% {5}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsubsection\subfoursection @@ -286,7 +290,7 @@ {subfivesection}% {6}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsubsubsection\subfivesection @@ -294,7 +298,7 @@ {subsixsection}% {7}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsubsubsubsection\subsixsection @@ -302,7 +306,7 @@ {subsevensection}% {8}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsubsubsubsubsection\subsevensection @@ -310,7 +314,7 @@ {subeightsection}% {9}% {\z@}% - {\sectionbefore}% + {-1\sectionbefore}% {\sectionafter}% {\normalfont\normalsize\bfseries}} \let\subsubsubsubsubsubsubsubsection\subeightsection @@ -323,7 +327,9 @@ \fancyfootoffset[RO]{0cm}% \pagestyle{fancyplain}% \if@headline\fancyheadoffset[L]{0pt}\fi} -\AtBeginDocument{\frontmatter} +\if@automatter + \AtBeginDocument{\frontmatter}% +\fi% \let\@ORIGmainmatter\mainmatter \renewcommand\mainmatter{\@ORIGmainmatter% @@ -333,7 +339,9 @@ \fancyfootoffset[RO,RE]{0cm}% \if@headline\fancyheadoffset[L]{\marginparsep+\marginparwidth}\fi} \renewcommand{\chapter}{% - \ifnum\value{chapter}=0\mainmatter\fi% Automatisch auf Hauptteil umschalten + \if@automatter + \ifnum\value{chapter}=0\mainmatter\fi% Automatisch auf Hauptteil umschalten + \fi% \chapterlevel% \if@headline\else\jubo@thispagestyle@empty\fi% \global\@topnum\z@% |