Skip to content
Snippets Groups Projects
Commit 585277c7 authored by Jan Wille's avatar Jan Wille
Browse files

use more compact command for abstract

parent bab0ebc9
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,8 @@ ...@@ -74,6 +74,8 @@
\@todostrue \@todostrue
} }
%</article|report> %</article|report>
%
%% defere all other options to the base class
%<article>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrartcl}} %<article>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrartcl}}
%<report>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrreprt}} %<report>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrreprt}}
%<standalone>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{standalone}} %<standalone>\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{standalone}}
...@@ -341,24 +343,22 @@ ...@@ -341,24 +343,22 @@
\makeatother \makeatother
} }
% %
%<*article|report> %<*report>
%% nicer abstract --------------------------------------------------------------------------------- %% nicer abstract ---------------------------------------------------------------------------------
\renewenvironment{abstract}{ \renewenvironment{abstract}{
\quotation \quotation
\setlength\parindent{0pt} \setlength\parindent{0pt}
%<article> \section*{\abstractname} \addchap{\abstractname}
%<article> \addcontentsline{toc}{section}{\abstractname}
%<report> \chapter*{\abstractname}
%<report> \addcontentsline{toc}{chapter}{\abstractname}
}{% }{%
\ifx\@keywords\@empty\else \ifx\@keywords\@empty\else
%<article> \vskip 0.5em \vskip 2em
%<report> \vskip 2em
\paragraph{\if@german Schlüsselwörter:\else Keywords:\fi} \paragraph{\if@german Schlüsselwörter:\else Keywords:\fi}
\@keywords \@keywords
\fi \fi
\endquotation \endquotation
} }
%</report>
%<*article|report>
%% decloration of Authorship ---------------------------------------------------------------------- %% decloration of Authorship ----------------------------------------------------------------------
\newif\if@oneAuthor \@oneAuthortrue \newif\if@oneAuthor \@oneAuthortrue
\if@german \if@german
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
\DeclareOption{todos}{ \DeclareOption{todos}{
\@todostrue \@todostrue
} }
%% defere all other options to the base class
\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrartcl}} \DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrartcl}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % default options \ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % default options
\ProcessOptions\relax \ProcessOptions\relax
...@@ -240,20 +241,6 @@ ...@@ -240,20 +241,6 @@
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}}
\makeatother \makeatother
} }
%% nicer abstract ---------------------------------------------------------------------------------
\renewenvironment{abstract}{
\quotation
\setlength\parindent{0pt}
\section*{\abstractname}
\addcontentsline{toc}{section}{\abstractname}
}{%
\ifx\@keywords\@empty\else
\vskip 0.5em
\paragraph{\if@german Schlüsselwörter:\else Keywords:\fi}
\@keywords
\fi
\endquotation
}
%% decloration of Authorship ---------------------------------------------------------------------- %% decloration of Authorship ----------------------------------------------------------------------
\newif\if@oneAuthor \@oneAuthortrue \newif\if@oneAuthor \@oneAuthortrue
\if@german \if@german
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
\DeclareOption{todos}{ \DeclareOption{todos}{
\@todostrue \@todostrue
} }
%% defere all other options to the base class
\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrreprt}} \DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrreprt}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % default options \ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % default options
\ProcessOptions\relax \ProcessOptions\relax
...@@ -260,8 +261,7 @@ ...@@ -260,8 +261,7 @@
\renewenvironment{abstract}{ \renewenvironment{abstract}{
\quotation \quotation
\setlength\parindent{0pt} \setlength\parindent{0pt}
\chapter*{\abstractname} \addchap{\abstractname}
\addcontentsline{toc}{chapter}{\abstractname}
}{% }{%
\ifx\@keywords\@empty\else \ifx\@keywords\@empty\else
\vskip 2em \vskip 2em
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
\DeclareOption{roman}{ \DeclareOption{roman}{
\renewcommand{\familydefault}{\rmdefault} \renewcommand{\familydefault}{\rmdefault}
} }
%% defere all other options to the base class
\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{standalone}} \DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{standalone}}
\ExecuteOptions{margin=0.25cm,fontsize=11pt,a4paper,ngerman,sans} % default options \ExecuteOptions{margin=0.25cm,fontsize=11pt,a4paper,ngerman,sans} % default options
\ProcessOptions\relax \ProcessOptions\relax
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment