Bläddra i källkod

add new description of article option

master
erichhasl 8 år sedan
förälder
incheckning
173ab802b9
4 ändrade filer med 48 tillägg och 3 borttagningar
  1. +33
    -2
      texed/sasbase.cls
  2. +10
    -1
      texed/test.tex
  3. Binär
      texed/verfassung.pdf
  4. +5
    -0
      texed/verfassung.tex

+ 33
- 2
texed/sasbase.cls Visa fil

@@ -17,6 +17,7 @@
\RequirePackage{fancyhdr} \RequirePackage{fancyhdr}
\RequirePackage{bm} \RequirePackage{bm}
\RequirePackage{roboto} \RequirePackage{roboto}
\RequirePackage{varwidth}


% SET PAGE GEOMETRY % SET PAGE GEOMETRY
\geometry{ \geometry{
@@ -85,7 +86,14 @@
\titleformat \titleformat
{\subsection} {\subsection}
{\centering\normalfont\bf} {\centering\normalfont\bf}
{\thesection}
{\thesubsection}
{1em}
{}

\titleformat
{\subsubsection}
{\normalfont\bf}
{\thesubsubsection}
{1em} {1em}
{} {}


@@ -172,21 +180,44 @@
% DEFINITION OF USEFUL MACROS % DEFINITION OF USEFUL MACROS
% --------------------------- % ---------------------------


% OPTION TO ENABLE SQUARE BRACKETS OR ADDITIONS TO THE ARTICLES NAME
\newif\ifsquare\squarefalse

\newcommand{\squarestyle}{\squaretrue}
\newcommand{\parensstyle}{\squarefalse}

% ARTICLE COUNTER % ARTICLE COUNTER
\newcounter{articleno} \newcounter{articleno}
\setcounter{articleno}{1} \setcounter{articleno}{1}


\makeatletter
% AN ARTICLE (LAW) ENVIRONMENT % AN ARTICLE (LAW) ENVIRONMENT
\newenvironment{article}[1][nil]{ \newenvironment{article}[1][nil]{
\def\val{#1} \def\val{#1}
\def\null{nil} \def\null{nil}
\subsubsection{Artikel {\thearticleno} {\ifx\val\null\else(#1)\fi}}
\ifsquare
\subsubsection{Artikel {\thearticleno}}
\ifx\val\null
\else
\vspace*{-2mm}
\noindent\bracketed{\textbf{#1}}
\fi
\else
\subsubsection{Artikel {\thearticleno} \ifx\val\null\else(#1)\fi}
\fi
\stepcounter{articleno} \stepcounter{articleno}
\begin{enumerate}[(1)] \begin{enumerate}[(1)]
} }
{ {
\end{enumerate} \end{enumerate}
} }
\makeatother


% 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}}

% TEXT IN SQUARE BRACKETS
\newcommand{\bracketed}[1]{$\left[\varwidth{\linewidth}#1\endvarwidth\right]$}

% INCREASE HEIGHT OF BRACKETS
\setlength\delimitershortfall{-2pt}

+ 10
- 1
texed/test.tex Visa fil

@@ -11,13 +11,22 @@


\mytitle \mytitle



\section{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949} \section{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949}


\lipsum[1] \lipsum[1]


\subsection{Das erste Gesetz} \subsection{Das erste Gesetz}


\begin{article}{1}
\squarestyle
\begin{article}[Hallo]
\item Die Würde des Menschen ist unantastbar. blablabl
blabla
\item toll
\end{article}

\parensstyle
\begin{article}[Hallo]
\item Die Würde des Menschen ist unantastbar. blablabl \item Die Würde des Menschen ist unantastbar. blablabl
blabla blabla
\item toll \item toll


Binär
texed/verfassung.pdf Visa fil


+ 5
- 0
texed/verfassung.tex Visa fil

@@ -12,6 +12,11 @@


\mytitle \mytitle


% OPTIONAL
%\squarestyle
% OR
\parensstyle

\section{Verfassung von Goethopia} \section{Verfassung von Goethopia}


\segmentoflaw{Präambel} \segmentoflaw{Präambel}


Laddar…
Avbryt
Spara