fix some issues
This commit is contained in:
+46
-13
@@ -12,12 +12,29 @@
|
|||||||
\RequirePackage[rm={lining,proportional},sf={lining, proportional},tt={lining, proportional, variable}]{cfr-lm}
|
\RequirePackage[rm={lining,proportional},sf={lining, proportional},tt={lining, proportional, variable}]{cfr-lm}
|
||||||
\RequirePackage[T1]{fontenc}
|
\RequirePackage[T1]{fontenc}
|
||||||
\RequirePackage{indentfirst}
|
\RequirePackage{indentfirst}
|
||||||
|
\RequirePackage{fancyhdr}
|
||||||
|
\RequirePackage{bm}
|
||||||
|
\RequirePackage{roboto}
|
||||||
|
|
||||||
% SET PAGE GEOMETRY
|
% SET PAGE GEOMETRY
|
||||||
\geometry{
|
\geometry{
|
||||||
left=12mm,
|
left=13mm,
|
||||||
right=12mm,
|
right=13mm,
|
||||||
top=8mm}
|
top=8mm,
|
||||||
|
includeheadfoot}
|
||||||
|
|
||||||
|
% ENABLE FANCY HEADERS
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
|
||||||
|
% DISABLE HEADER RULE
|
||||||
|
\renewcommand{\headrulewidth}{0pt}
|
||||||
|
|
||||||
|
% ADD PAGE NUMBER TO TOP RIGHT / LEFT (ODD / EVEN)
|
||||||
|
\fancyhead[R]{\sffamily\bfseries\large{\textbf{\thepage}} \ifodd\value{page}\else\hfill\fi}
|
||||||
|
|
||||||
|
% SET COLUMN GAP OF TWOCOLUMN LAYOUT
|
||||||
|
\setlength{\columnsep}{6mm}
|
||||||
|
|
||||||
% SET PLACE COMMAND
|
% SET PLACE COMMAND
|
||||||
\makeatletter
|
\makeatletter
|
||||||
@@ -33,6 +50,13 @@
|
|||||||
}
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
% SET NUMBER COMMAND (COLLIDES WITH BUILTIN)
|
||||||
|
\makeatletter
|
||||||
|
\newcommand{\edition}[1]{
|
||||||
|
\def\@edition{#1}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
% HELPER TO EXTRACT YEAR FROM DATE
|
% HELPER TO EXTRACT YEAR FROM DATE
|
||||||
\newcommand*\TheLastWord[1]{\expandafter\xreverseit\expandafter{\expandafter}#1 \relax}
|
\newcommand*\TheLastWord[1]{\expandafter\xreverseit\expandafter{\expandafter}#1 \relax}
|
||||||
\def\xreverseit#1#2 #3{%
|
\def\xreverseit#1#2 #3{%
|
||||||
@@ -44,8 +68,6 @@
|
|||||||
}
|
}
|
||||||
\def\xthree#1#2#3{}
|
\def\xthree#1#2#3{}
|
||||||
|
|
||||||
\renewcommand{\arraystretch}{2.5}
|
|
||||||
|
|
||||||
% ------------------
|
% ------------------
|
||||||
% SECTION FORMATTING
|
% SECTION FORMATTING
|
||||||
% ------------------
|
% ------------------
|
||||||
@@ -69,7 +91,7 @@
|
|||||||
% -----------------
|
% -----------------
|
||||||
|
|
||||||
% DISABLE BOLD
|
% DISABLE BOLD
|
||||||
\renewcommand{\cftsecfont}{\normalfont}
|
\renewcommand{\cftsecfont}{\normalfont\ostyle}
|
||||||
|
|
||||||
% ONLY SHOW SECTIONS IN TOC
|
% ONLY SHOW SECTIONS IN TOC
|
||||||
\setcounter{tocdepth}{1}
|
\setcounter{tocdepth}{1}
|
||||||
@@ -77,9 +99,6 @@
|
|||||||
% HIDE NUMBERING OF SECTIONS
|
% HIDE NUMBERING OF SECTIONS
|
||||||
\setcounter{secnumdepth}{0}
|
\setcounter{secnumdepth}{0}
|
||||||
|
|
||||||
% DEFINE OWN COLUMN TYPE
|
|
||||||
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
|
|
||||||
|
|
||||||
% DEFINE SPACING BETWEEN ITEMS
|
% DEFINE SPACING BETWEEN ITEMS
|
||||||
\setlength{\cftbeforesecskip}{-3mm}
|
\setlength{\cftbeforesecskip}{-3mm}
|
||||||
|
|
||||||
@@ -89,8 +108,6 @@
|
|||||||
% SET DOTS FOR SECTIONS
|
% SET DOTS FOR SECTIONS
|
||||||
\renewcommand{\cftsecdotsep}{\cftdotsep}
|
\renewcommand{\cftsecdotsep}{\cftdotsep}
|
||||||
|
|
||||||
%\setlength{\cftsecnumwidth}{0mm}
|
|
||||||
|
|
||||||
% Redefinition of ToC command to remove heading
|
% Redefinition of ToC command to remove heading
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\renewcommand\tableofcontents{%
|
\renewcommand\tableofcontents{%
|
||||||
@@ -99,6 +116,7 @@
|
|||||||
}
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
% CUSTOM TOC COMMAND
|
||||||
\newcommand{\mycontents}{%
|
\newcommand{\mycontents}{%
|
||||||
\ostyle
|
\ostyle
|
||||||
\begin{tabular}{lp{.9\textwidth}}
|
\begin{tabular}{lp{.9\textwidth}}
|
||||||
@@ -111,10 +129,19 @@
|
|||||||
% TITLE (THIS IS WHERE THE MAGIC HAPPENS)
|
% TITLE (THIS IS WHERE THE MAGIC HAPPENS)
|
||||||
% ---------------------------------------
|
% ---------------------------------------
|
||||||
|
|
||||||
|
% SET WIDTH OF RULES IN TABULAR
|
||||||
\setlength{\arrayrulewidth}{.3mm}
|
\setlength{\arrayrulewidth}{.3mm}
|
||||||
|
|
||||||
|
% SET CELL HEIGHT
|
||||||
|
\renewcommand{\arraystretch}{2.5}
|
||||||
|
|
||||||
|
% DEFINE OWN COLUMN TYPE
|
||||||
|
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
|
||||||
|
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\def\@maketitle{
|
\def\@maketitle{
|
||||||
|
\vspace*{-10mm}
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\textbf{\ostyle{\HUGE{\@title}}}
|
\textbf{\ostyle{\HUGE{\@title}}}
|
||||||
\end{center}
|
\end{center}
|
||||||
@@ -123,11 +150,17 @@
|
|||||||
\hline
|
\hline
|
||||||
\large \ostyle{\TheLastWord{\@datum}} &
|
\large \ostyle{\TheLastWord{\@datum}} &
|
||||||
\large \ostyle{Ausgegeben in {\@place} am {\@datum}} &
|
\large \ostyle{Ausgegeben in {\@place} am {\@datum}} &
|
||||||
\large \ostyle{Nr. 1}
|
\large \ostyle{Nr. {\@edition}}
|
||||||
\\ \hline
|
\\ \hline
|
||||||
\multicolumn{3}{p{\textwidth}}{\mycontents} \\ \hline
|
\multicolumn{3}{p{\dimexpr\textwidth-2\tabcolsep}}{\mycontents} \\ \hline
|
||||||
\end{tabular}
|
\end{tabular}
|
||||||
|
|
||||||
\vspace{10mm}
|
\vspace{10mm}
|
||||||
|
%\thispagestyle{fancy}
|
||||||
}
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
\newcommand{\mytitle}{
|
||||||
|
\maketitle
|
||||||
|
\thispagestyle{fancy}
|
||||||
|
}
|
||||||
|
|||||||
+2
-1
@@ -7,8 +7,9 @@
|
|||||||
\title{Bundesgesetzblatt}
|
\title{Bundesgesetzblatt}
|
||||||
\place{Bonn}
|
\place{Bonn}
|
||||||
\datum{23. Mai 1949}
|
\datum{23. Mai 1949}
|
||||||
|
\edition{1}
|
||||||
|
|
||||||
\maketitle
|
\mytitle
|
||||||
|
|
||||||
\section{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949}
|
\section{Grundgesetz für die Bundesrepublik Deutschland vom 23. Mai 1949}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user