I have a relatively simple LaTeX document with a few sections and subsections and everything would be fine, BUT: I would like to have a custom designed titlepage for every section. (btw. MWE at the bottom!) My TOC looks like this:
Right now, the page with a new section (e.g. 2 A second...) looks like this:
But I rather would like to have something that stands out! This is my idea, how I would like to see e.g. section 2:
You find a MWE is below!
My question now is: How can I create these nice looking title pages for my sections? I think there are some possibilities with the titlesec
package. But I'm not good in trying it myself. Can anybody help me with this? Any help is very much appreciated!
\documentclass[%
a4paper,
11pt,
headsepline,
footsepline,
]
{scrartcl}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{seqsplit}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{ulem}
\usepackage[version=3,arrows=pgf]{mhchem}
\usepackage[pdf]{pstricks}
\usepackage{acronym}
\usepackage{wasysym}
\usepackage{rsphrase}
\usepackage{siunitx}
\usepackage{tikz}
\usepackage{float}
\usepackage{geometry}
\geometry{bottom=3.5cm}
\geometry{top=3.5cm}
\geometry{left=2.5cm}
\geometry{right=2.5cm}
\usepackage{enumerate}
\usepackage{multirow}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{subfigure}
\usepackage{url}
\usepackage{setspace}
\usepackage{threeparttable}
\usepackage{array}
\usepackage{graphicx}
\usepackage[labelfont=bf,format=plain]{caption}
\usepackage[linkcolor=black,citecolor=black]{hyperref}
\makeatletter
\@addtoreset{figure}{section}
\@addtoreset{table}{section}
\makeatother
\renewcommand{\thefigure}{\thesection.\arabic {figure}}
\renewcommand{\thetable}{\thesection.\arabic{table}}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\sisetup{%
obeyall,
per=frac,
decimalsymbol=comma,
unitmode=text
}
\hbadness=10000
\vbadness=10000
\hyphenpenalty=100000
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\linespread{1.25}
\begin{document}
\sloppy
\thispagestyle{empty}
\LARGE
\vspace{0.5cm}
\begin{center} \LARGE
\textbf{\LARGE XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\}
\textbf{\LARGE XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\}
\end{center}
\vspace{1.0cm}
\begin{center}
\Large
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
\end{center}
\vspace{1.0cm}
\begin{table}[!h]
\Large
\begin{tabular}{ll}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX & \\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX& \\
\end{tabular}
\normalsize
\end{table}
\vspace{0.5cm}
\begin{table}[!b]
\Large
\begin{tabular}{ll}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXh\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\
v & \\
\end{tabular}
\normalsize
\end{table}
\normalsize
\clearpage
\thispagestyle{empty}
\setcounter{page}{1}
\pagenumbering{Roman}
\clearpage
\thispagestyle{plain}
\section*{section X}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX \\
\large
\paragraph{XXXXXXXXXXXXXXXXXXXXXXXXXXXXX}
\clearpage
\thispagestyle{empty}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\phantom{oben}
\begin{flushright} \LARGE
\textbf{\LARGE It will be fine.\\}
\end{flushright}
\vspace{1.0cm}
\clearpage
\thispagestyle{plain}
\tableofcontents
\clearpage
\listoffigures
\addcontentsline{toc}{section}{List of Figures}
\clearpage
\listoftables
\addcontentsline{toc}{section}{List of Tables}
\clearpage
\clearpage
\section*{some other hidden chapter}
XXXXXXXXXXXXXXXXXXXXXXXXXXXX
\clearpage
\setcounter{page}{1}
\pagenumbering{arabic}
\section{A first very nice and fancy looking title}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsection{subsectionn 1-1}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsection{subsectionn 1-2}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsubsection{subsubsection 1-2-1}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{A second very nice and fancy looking title}
\subsection{subsection 2-1}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsection{subsection 2-2}
\subsubsection{subsubsection 2-2-1}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsubsection{subsubsection 2-2-1}
\subsection{subsection 2-3}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{A third very nice and fancy looking title}
\subsection{subsection 3-1}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsection{subsection 3-2}
\subsubsection{subsubsection 3-2-1}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\subsubsection{subsubsection 3-2-1}
\subsection{subsection 3-3}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\end{document}
titlesec
and KOMA is a bad combination – user31729 Feb 24 '17 at 22:08geometry
and KOMA isn't a great choice, either. (Not as bad astitlesec
and KOMA.) – cfr Feb 25 '17 at 1:18geometry
is the package of choice with KOMA script if fixed margins are to be defined. – Johannes_B Feb 25 '17 at 7:13