introduce paragraphs and a law command
This commit is contained in:
+28
-3
@@ -191,19 +191,38 @@
|
|||||||
\setcounter{articleno}{1}
|
\setcounter{articleno}{1}
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
% AN ARTICLE (LAW) ENVIRONMENT
|
|
||||||
\newenvironment{article}[1][nil]{
|
\newenvironment{article}[1][nil]{
|
||||||
|
\begin{@paraorarticle}{#1}{Artikel}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
\end{@paraorarticle}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newenvironment{lawparagraph}[1][nil]{
|
||||||
|
\begin{@paraorarticle}{#1}{§}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
\end{@paraorarticle}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
|
||||||
|
% A GENERAL ARTICLE, PARAGRAPH, etc. ENVIRONMENT
|
||||||
|
\newenvironment{@paraorarticle}[2]{
|
||||||
\def\val{#1}
|
\def\val{#1}
|
||||||
\def\null{nil}
|
\def\null{nil}
|
||||||
\ifsquare
|
\ifsquare
|
||||||
\subsubsection{Artikel {\thearticleno}}
|
\subsubsection{#2 {\thearticleno}}
|
||||||
\ifx\val\null
|
\ifx\val\null
|
||||||
\else
|
\else
|
||||||
\vspace*{-2mm}
|
\vspace*{-2mm}
|
||||||
\noindent\bracketed{\textbf{#1}}
|
\noindent\bracketed{\textbf{#1}}
|
||||||
\fi
|
\fi
|
||||||
\else
|
\else
|
||||||
\subsubsection{Artikel {\thearticleno} \ifx\val\null\else(#1)\fi}
|
\subsubsection{#2 {\thearticleno} \ifx\val\null\else(#1)\fi}
|
||||||
\fi
|
\fi
|
||||||
\stepcounter{articleno}
|
\stepcounter{articleno}
|
||||||
\begin{enumerate}[(1)]
|
\begin{enumerate}[(1)]
|
||||||
@@ -213,6 +232,12 @@
|
|||||||
}
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
% LAW COMMAND
|
||||||
|
\newcommand{\law}[1]{
|
||||||
|
\section{#1}
|
||||||
|
\setcounter{articleno}{1}
|
||||||
|
}
|
||||||
|
|
||||||
% JUST TO MAKE CLEAR WHICH LEVEL TO USE
|
% JUST TO MAKE CLEAR WHICH LEVEL TO USE
|
||||||
\newcommand{\segmentoflaw}[1]{\subsection{#1}}
|
\newcommand{\segmentoflaw}[1]{\subsection{#1}}
|
||||||
|
|
||||||
|
|||||||
+9
-3
@@ -14,11 +14,11 @@
|
|||||||
\mytitle
|
\mytitle
|
||||||
|
|
||||||
|
|
||||||
\section{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949}
|
\law{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949}
|
||||||
|
|
||||||
\lipsum[1]
|
\lipsum[1]
|
||||||
|
|
||||||
\subsection{Das erste Gesetz}
|
\segmentoflaw{Das erste Gesetz}
|
||||||
|
|
||||||
\squarestyle
|
\squarestyle
|
||||||
\begin{article}[Menschenwürde]
|
\begin{article}[Menschenwürde]
|
||||||
@@ -29,10 +29,16 @@
|
|||||||
\end{article}
|
\end{article}
|
||||||
|
|
||||||
\parensstyle
|
\parensstyle
|
||||||
\begin{article}[Menschenwürde]
|
\begin{lawparagraph}[Menschenwürde]
|
||||||
\item Die Würde des Menschen ist unantastbar. blablabl
|
\item Die Würde des Menschen ist unantastbar. blablabl
|
||||||
blabla
|
blabla
|
||||||
\item Demokratie ist toll! Das ist Artikel \thearticleno
|
\item Demokratie ist toll! Das ist Artikel \thearticleno
|
||||||
|
\end{lawparagraph}
|
||||||
|
|
||||||
|
\law{Weiteres Gesetz}
|
||||||
|
|
||||||
|
\begin{article}[Meinungsfreiheit]
|
||||||
|
\item Nur richtige Meinungen sind zulässig!
|
||||||
\end{article}
|
\end{article}
|
||||||
|
|
||||||
\section{Politische Bildung}
|
\section{Politische Bildung}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user