To get a titlepage I started a new KOMA-script Layer which I used for a pagestyle. This pagestyle I would like to use at my first titlepage. How can I do that?
For further informations see also:
https://latex.org/forum/viewtopic.php?f=47&t=34826
Code: Select all
\documentclass[
% paper=a4,
fontsize=12pt,%
]{scrreprt}
\usepackage[T1]{fontenc}
%\usepackage{tgadventor}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage[ngerman]{babel}
% Only if the base font of the document is to be sans serif
%\renewcommand*\familydefault{\sfdefault}
%% PAGE AND DOCUMENT LAYOUT %%
\usepackage[
inner=2cm,
outer=1cm,
top=3cm,
% includehead,
bottom=2.5cm,
% includefoot
% includeheadfoot,
head=43.5pt
]{geometry}
\usepackage{lastpage}
\usepackage[
headsepline,
footsepline,
]{scrlayer-scrpage}
%\pagestyle{scrheadings} %Wird bereits mitscrlayer-scrpage mitgeladen
\clearpairofpagestyles
\setkomafont{pageheadfoot}{\normalfont\footnotesize}
\renewcommand*{\chapterpagestyle}{headings}
%% TITLE PAGES %%
\DeclareNewLayer[%
voffset=1cm,%
hoffset=2cm,%
width=\paperwidth-3cm,%
height=\paperheight-2cm,%
background,%
mode=picture,%
contents={%
\putLL{\line(1,0){\LenToUnit{\layerwidth}}}%
\putLR{\line(0,1){\LenToUnit{\layerheight}}}%
% \putUR{\line(-1,0){\LenToUnit{\layerwidth}}}%
\putUR{\line(-1,0){\LenToUnit{0.5\layerwidth}}}%
% \putUL{\line(0,-1){\LenToUnit{1cm}}}%
\putLL{\line(0,1){\LenToUnit{1,5cm}}}%
\put(%
\LenToUnit{0.5\layerwidth},0)%
{\line(0,1){\LenToUnit{1,5cm}}}%
\put(%
\LenToUnit{0.25\layerwidth},0)%
{\line(0,1){\LenToUnit{1,5cm}}}%
\put(%
\LenToUnit{0.75\layerwidth},0)%
{\line(0,1){\LenToUnit{1,5cm}}}%
\put(%
0,\LenToUnit{1,5cm})%
{\line(1,0){\LenToUnit{\layerwidth}}}%
\put(%
\LenToUnit{0.5\layerwidth},\LenToUnit{\layerheight})%
{\line(0,-1){\LenToUnit{4cm}}}%
\put(%
0,\LenToUnit{\layerheight-4cm})%
{\line(1,0){\LenToUnit{0.5\layerwidth}}}%
}
]{CoverPage}
\DeclareNewPageStyleByLayers{CoverPageSyle}{CoverPage}
\titlehead{Kopf der Titelei}
\subject{subject: Beispiel}
\title{Titel des Dokumentes}
\subtitle{Eine grosse Titelei als Beispiel auf goLaTeX.de}
\author{Max Muster \and goLaTeX\thanks{Fussnote zum Autor}}
\date{01.01.0001}
\publishers{Betreut und herausgegeben von Prof. Dr. rer. LaTeX}
\uppertitleback{Obiger Titelrückentitel}
\lowertitleback{Für dieses Beispiel wird keine Haftung übernommen.}
\pagestyle{CoverPageSyle}
\begin{document}
\begin{titlepage}
Auftraggeberin:\\
Forst und Wiesen GmbH\\
Am Eisenstein 5\\
1160 Gscheid\\
+43 1234 1234\\
%office@░wiesenforst.at\\
\end{titlepage}
%\makeatother
\restoregeometry
\tableofcontents
\chapter{Allgemeine Angaben}
\lipsum[2]
\section{Konsensinhaber}
\lipsum[5]
\subsection{Subsection}
\lipsum[3]
\subsubsection{Subsubsection}
\lipsum[2]
\paragraph{Paragraph}
\lipsum[1]
\subparagraph{Subparagraph}
\lipsum[8]
\end{document}