I am a total TEX noob, so please forgive me :D
I am trying to prepare a template in LATEX, that I can potentially use for all papers I will have to write, in accordance with my faculty's regulations. However they request an inconsistent titling. The first title (chapter) should have an enddot, while subtitles (sections, subsections...) should not have an enddot.
(I don't think what I've done so far, helps you in figuring out how to solve the problem, but I'll do it anyways :D)
So basically titling (in TOC as well as the pages itself) should look somewhat like this:
1.
1.1
1.2
1.2.1
2.
2.1
%---------------------------------------------------------------------------- % LAYOUT %----------------------------------------------------------------------------
\documentclass[12pt,a4paper,headings=standardclasses]{scrreprt}
\usepackage{showframe}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc}
\usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.00cm]{geometry}
\usepackage[onehalfspacing]{setspace}
%---------------------------------------------------------------------------- % FONT %----------------------------------------------------------------------------
\usepackage{libertine}
\usepackage{libertinust1math}
%---------------------------------------------------------------------------- % TITLES %----------------------------------------------------------------------------
\KOMAoption{chapterprefix}{false}
\RedeclareSectionCommand
[%
beforeskip=-1sp
]
{chapter}
\renewcommand\chapterformat
{%
\mbox
{%
\chapappifchapterprefix{\nobreakspace}\thechapter\autodot
\IfUsePrefixLine{}{\enskip $|$\enskip}%
}%
}
I don't really know how I can achieve this (in a neat way). Also my appendices should be listed as
A
B
C
I did it like so, not sure if there's a prettier way:
\renewcommand{\thesection}{\Alph{section}}
\begin{appendices}
\input{appendices/demo-appendices.tex}
\end{appendices}
\makeatletter \def\@seccntformat#1{\@ifundefined{#1@cntformat}% {\csname the#1\endcsname\space}% default {\csname #1@cntformat\endcsname}}% enable individual control \newcommand\section@cntformat{\thesection.\space} % section-level \newcommand\subsection@cntformat{\thesubsection\space} % subsection-level \makeatother
(small changes).