Versuch Inhaltsverzeichnis nachbauen

Inhalt, Abbildungen, Tabellen, Quellcodes und andere Verzeichnisse


esdd
Forum-Meister
Forum-Meister
Beiträge: 2561
Registriert: So 7. Feb 2010, 16:36

Beitrag von esdd »

Mit einer aktuellen KOMA-Script Version kannst Du den style für part und chapter ändern:
\documentclass[fontsize=12pt, 
 parskip=half,numbers=noenddot,captions=nooneline, 
 listof=entryprefix,listof=leveldown,%listof=totoc,
 headings=small
]{scrreprt} 
\usepackage{selinput} 
    \SelectInputMappings{adieresis={ä},germandbls={ß}} 
\usepackage[T1]{fontenc} 
\usepackage{lmodern} 
\usepackage[ngerman]{babel}
\usepackage{blindtext} 

\RedeclareSectionCommand[style=section,indent=0pt]{chapter}
\RedeclareSectionCommand[style=chapter,afterskip=3cm,beforeskip=1sp]{part}
\renewcommand\partformat{\partname~\thepart:\enskip}
\renewcommand\thepart{\arabic{part}}
\renewcommand\thechapter{\Roman{chapter}}

\begin{document} 
\tableofcontents 
\addchap[Verzeichnisse]{Verzeichnisse:}
\listoftables
\listoffigures
\part{Ein Teil}
\chapter{Ein Kapitel}
\Blindtext
\chapter{Noch ein Kapitel}
\Blindtext

\part{Noch ein Teil}
\chapter{Ein Kapitel}
\Blindtext
\chapter{Noch ein Kapitel}
\Blindtext
\end{document}

nullkommanix
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 55
Registriert: Mi 3. Sep 2014, 20:01

Beitrag von nullkommanix »

\RedeclareSectionCommand[style=section,indent=0pt]{chapter}
\RedeclareSectionCommand[style=chapter,afterskip=3cm,beforeskip=1sp]{part}
\renewcommand\partformat{\partname~\thepart:\enskip}
Verdammt, das sieht so einfach aus. Ich ärgere mich, dass ich sowas nicht hinkrieg. Trotzdem cool, thx.

nullkommanix
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 55
Registriert: Mi 3. Sep 2014, 20:01

Beitrag von nullkommanix »

Ich kann mich immer noch nicht dazu bewegen wichtigere Dinge zu tun. :D

Ich hab das jetzt mal soweit nachgebastelt. Den Code habe ich zusammengeklaut.
\RedeclareSectionCommand[style=section,indent=0pt]{chapter}
\RedeclareSectionCommand[style=chapter,afterskip=3cm,beforeskip=1sp]{part}

\renewcommand\partformat{\thepart~\partname:\enskip}
	
\renewcommand\addparttocentry[2]{%
    \addtocentrydefault{part}{}{%
     #1~{\partname:}\enskip#2}}
		
\addtokomafont{partentrypagenumber}{\color{white}}
Aus Teil 1: ist jetzt 1. Teil: geworden und selbiges steht jetzt auch im Inhaltsverzeichnis. Das Unterdrücken der Seitenzahl ist wohl die billigste Variante. Hier habe ich zwar eine Lösung für Kapitel gefunden, konnte das aber, wie schon mal erwähnt, mangels Können nicht auf part anwenden.

Antworten