Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält Thema ist als GELÖST markiert

Klassen und Pakete zur einfachen Umsetzung individueller Vorstellungen


MSJ
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Di 18. Apr 2023, 13:23

Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von MSJ »

Hallo,

ich schreibe gerade meine Masterthesis mit scrbook aus der KOMA-Script Klasse und habe folgendes Problem. Ich will keine Vakatseiten bei Zusatzkapiteln haben, die ich durch den Befehl \addchap erstellt habe. Anhand des Befehls oneside in meiner Präambel kann ich Vakatseiten verhindern, ABER nicht wenn ich dem Zusatzkapitel ein Befehl steht. Nach dem Zusatzkapiteln List of Tables wird trotzdem eine Vakatseite erzeugt und der einzige Unterschied zwischen diesem Zusatzkapiteln und anderen Zusatzkapiteln wie dem Abstract ohne Vakatseite ist, dass dort wo sich die Vakatseite nicht löschen lässt, ein Befehl wie bspw. \listoftables oder \bibliography steht.

Ich habe sehr viel in Latex-Foren nachgelesen, sowie im KOMA-Script und komme einfach nicht weiter.

Anbei ein Minimalbeispiel:

\documentclass[a4paper, 12pt, oneside, headsepline, headinclude, footinclude, BCOR5mm]{scrbook}
\usepackage[a4paper,left=2.5cm,right=2.5cm,bottom=2.5cm,top=2.5cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
%\usepackage{MnSymbol}
\usepackage{qtree}
\usepackage{tree-dvips}
\usepackage{tikz-qtree}
\usepackage{tipa}
\usepackage{linguex}
\usepackage{graphicx, subfig}
\usepackage{ulem}
\usepackage{caption}
\usepackage{natbib} %?????
\graphicspath{{}}
\usepackage{amssymb}
\usepackage{pifont}
\usepackage{stmaryrd}
\usepackage{todonotes}


\usepackage{chngcntr}
\counterwithout{ExNo}{chapter} %to have examples numbers not reset with each chapter
\renewcommand{\theExNo}{(\arabic{ExNo})} %example numbers in brackets, seems to be necessary because of previous line
\counterwithout{footnote}{chapter} %continuous footnote count


\usepackage{scrlayer-scrpage}
\automark[chapter]{chapter}
\clearpairofpagestyles % remove the default elements of headings and plain pages
\ohead{\pagemark} % page number right aligned in the head of headings pages only
\cfoot[\pagemark]{} % page number centered in foot of plain page
\lohead{\headmark} % prints the mark for odd pages, selected by \automark
\cehead{title} % non variable text on even pages
\setkomafont{pageheadfoot}{\normalcolor\itshape}% use bold for page header and footer (see table 5.1 of the KOMA-Script manual for the default)

\begin{document}

\pagenumbering{arabic}

\tableofcontents

\addchap{Abstract}
Hier entsteht keine Vakatseite, wahrscheinlich weil hier nur Text steht.

\addchap{List of Tables}
Hier entsteht eine Vakatseite und meine Vermutung ist wegen des Befehls. Genau diese Seite soll gelöscht werden.

\listoftables


\chapter{Introduction}

Bla bla bla


\addchap{Test}
Text

\begin{table}
\caption{Derivations of particular PCC patterns}
\begin{tabular}[h]{|ll|ll|ll|ll|}
\hline
Strong: & $\lbrack$+/-Auth$\rbrack$ & Weak: & $\lbrack$+Part$\rbrack$ & Me-First: & $\lbrack$+Auth$\rbrack$ & Str. D.: & $\lbrack$+Auth,+Part$\rbrack$ \\
\hline
IO DO & CA MV & IO DO & CA MV & IO DO & CA MV & IO DO & CA MV \\
\hline
1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & \\
1 \phantom{3} 2 & \phantom{3333} \ding{55} & 1 \phantom{3} 2 \ding{51} & & 1 \phantom{3} 2 \ding{51} & & 1 \phantom{3} 2 \ding{51} & \\
2 \phantom{3} 1 & \phantom{3333} \ding{55} & 2 \phantom{3} 1 \ding{51} & & 2 \phantom{3} 1 & \phantom{3} \ding{55} & 2 \phantom{3} 1 & \phantom{3} \ding{55} \\
2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} &\\
3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} \\
3 \phantom{3} 2 & \phantom{3} \ding{55} & 3 \phantom{3} 2 & \phantom{3} \ding{55} & 3 \phantom{3} 2 \ding{51} & & 3 \phantom{3} 2 & \phantom{3} \ding{55} \\
\hline
\end{tabular}
\end{table}
\label{table1}



\end{document}

Wie kann ich diese Vakatseite bei List of Tables trotzdem löschen und nur die zweite Seite sozusagen behalten, wo wirklich das Tabellenverzeichnis steht?

Benutzeravatar
u_fischer
Forum-Meister
Forum-Meister
Beiträge: 4266
Registriert: Do 22. Nov 2012, 11:09
Kontaktdaten:

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von u_fischer »

Du hast keine Vakatseite. \listoftables führt intern einfach einen \chapter-Befehl aus und der erzeugt wie alle anderen \chapter-Befehle eine neue Seite. Warum schreibst du denn \addchap{List of Tables} überhaupt?

MSJ
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Di 18. Apr 2023, 13:23

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von MSJ »

Ich schreibe \addchap, weil das Tabellenverzeichnis zwar ins Inhaltsverzeichnis soll, aber nicht als normales Kapitel gezählt werden soll. Das sind die Layoutvorgaben meiner Uni.

Gibt es eine Möglichkeit \listoftables ohne \addchap im Inhaltsverzeichnis anzuzeigen, sodass es als Zusatzkapitel gezählt wird, aber die erste Seite des \chapter-Befehls nicht erstellt wird?

MSJ
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Di 18. Apr 2023, 13:23

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von MSJ »

Update:

Mit \addcontentsline{toc}{chapter}{List of Tables} konnte ich das Problem lösen und brauche \addchap nicht für das Tabellenverzeichnis. Das gleiche funktioniert problemlos bei der Bibliographie.

Wenn ich den gleichen Befehl für das Abkürzungsverzeichnis machen möchte, geht mir aber der Titel verloren und in der Kopfzeile steht fälschlicherweise List of Tables. Wenn ich \addchap für das Abkürzungsverzeichnis verwende, habe ich meinen Titel, der auch korrekt in der Kopfzeile auftaucht, aber habe wieder eine leere Seite vor den Abkürzungen. Lösche ich aber \addchap{Abbreviations} und nutze den Befehl von oben, geht der Titel verloren und der Titel d. vorherigen Kapitels taucht in der Kopfzeile auf. Durch \markboth{Abbreviations}{Abbreviations} habe ich es geschafft, dass der richtige Titel in der Kopfzeile angezeigt wird, aber mir fehlt noch der Titel für die ganze Seite sozusagen.

Hier mein Beispiel:
\documentclass[a4paper, 12pt, oneside, headsepline, headinclude, footinclude, BCOR5mm]{scrbook}
\usepackage[a4paper,left=2.5cm,right=2.5cm,bottom=2.5cm,top=2.5cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{qtree}
\usepackage{tree-dvips}
\usepackage{tikz-qtree}
\usepackage{tipa}
\usepackage{linguex}
\usepackage{graphicx, subfig}
\usepackage{ulem}
\usepackage{caption}
\usepackage{natbib} %?????
\graphicspath{{}}
\usepackage{amssymb}
\usepackage{pifont}
\usepackage{stmaryrd}
\usepackage{todonotes}


\usepackage{chngcntr}
\counterwithout{ExNo}{chapter} %to have examples numbers not reset with each chapter
\renewcommand{\theExNo}{(\arabic{ExNo})} %example numbers in brackets, seems to be necessary because of previous line
\counterwithout{footnote}{chapter} %continuous footnote count


\usepackage{scrlayer-scrpage}
\automark[chapter]{chapter}
\clearpairofpagestyles % remove the default elements of headings and plain pages
\ohead{\pagemark} % page number right aligned in the head of headings pages only
\cfoot[\pagemark]{} % page number centered in foot of plain page
\lohead{\headmark} % prints the mark for odd pages, selected by \automark
\cehead{title} % non variable text on even pages
\setkomafont{pageheadfoot}{\normalcolor\itshape}% use bold for page header and footer (see table 5.1 of the KOMA-Script manual for the default)

\begin{document}

\pagenumbering{arabic}

\tableofcontents

\addchap{Abstract}
Hier entsteht keine Vakatseite, wahrscheinlich weil hier nur Text steht.

\addchap{Acknowledgements}

Text bla bla

%\addchap
  • {List of Tables}

    \addcontentsline{toc}{chapter}{List of Tables}
    \listoftables

    %\addchap{Abbreviations}

    \addcontentsline{toc}{chapter}{Abbreviations}
    \markboth{Abbreviations}{Abbreviations}

    \begin{tabular}[h]{ll}

    $\pi$ & person \\
    \# & number \\
    1 & First person\\
    2 & Second person\\
    3 & Third person\\
    \textsc{abs} & absolutive \\
    \textsc{acc} & accusative \\
    \textsc{addess} & adessive case\\
    \textsc{addr} & addressee \\
    \textsc{anim} & animate \\
    \textsc{auth} & author \\
    \textsc{ca} & Contiguous Agree \\
    \textsc{caus} & causative \\
    \textsc{cl} & clitic \\
    \textsc{dat} & dative \\
    \textsc{do} & direct object \\
    \textsc{epp} & Extended Projection Principle \\
    \textsc{f} & feminine \\
    \textsc{g} & goal \\
    \textsc{int} & interaction feature \\
    \textsc{io} & indirect object \\
    \textsc{m} & masculin \\
    \textsc{mv} & Matched Values \\
    \textsc{nom} & nominate \\
    \textsc{pass} & passive \\
    \textsc{past} & past \\
    \textsc{part} & participant \\
    \textsc{pcc} & Person-Case-Constraint \\
    \textsc{pic} & Phase Impenetrability Condition \\
    \textsc{pl} & plural \\
    \textsc{plc} & Person Licensing Condition \\
    \textsc{s} & subject \\
    \textsc{sat} & satisfaction feature \\
    \textsc{scopa} & Structural Condition on Person Agreement \\
    \textsc{sg} & singular \\
    \textsc{spkr} & speaker \\
    %\textsc{tonic} & tonic pronoun \\
    %\textit{u}\textsc{f} & unvalued feature \\
    \end{tabular}

    \chapter{Introduction}

    Bla bla bla


    \addchap{Test}
    Text

    \begin{table}
    \caption{Derivations of particular PCC patterns}
    \begin{tabular}[h]{|ll|ll|ll|ll|}
    \hline
    Strong: & $\lbrack$+/-Auth$\rbrack$ & Weak: & $\lbrack$+Part$\rbrack$ & Me-First: & $\lbrack$+Auth$\rbrack$ & Str. D.: & $\lbrack$+Auth,+Part$\rbrack$ \\
    \hline
    IO DO & CA MV & IO DO & CA MV & IO DO & CA MV & IO DO & CA MV \\
    \hline
    1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & & 1 \phantom{3} 3 \ding{51} & \\
    1 \phantom{3} 2 & \phantom{3333} \ding{55} & 1 \phantom{3} 2 \ding{51} & & 1 \phantom{3} 2 \ding{51} & & 1 \phantom{3} 2 \ding{51} & \\
    2 \phantom{3} 1 & \phantom{3333} \ding{55} & 2 \phantom{3} 1 \ding{51} & & 2 \phantom{3} 1 & \phantom{3} \ding{55} & 2 \phantom{3} 1 & \phantom{3} \ding{55} \\
    2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} & & 2 \phantom{3} 3 \ding{51} &\\
    3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} & 3 \phantom{3} 1 & \phantom{3} \ding{55} \\
    3 \phantom{3} 2 & \phantom{3} \ding{55} & 3 \phantom{3} 2 & \phantom{3} \ding{55} & 3 \phantom{3} 2 \ding{51} & & 3 \phantom{3} 2 & \phantom{3} \ding{55} \\
    \hline
    \end{tabular}
    \end{table}
    \label{table1}

    \end{document}

    Wie kann ich den Titel erstellen für das Abküzungsverzeichnis erstellen?

Benutzeravatar
u_fischer
Forum-Meister
Forum-Meister
Beiträge: 4266
Registriert: Do 22. Nov 2012, 11:09
Kontaktdaten:

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von u_fischer »

Mit \addcontentsline{toc}{chapter}{List of Tables} konnte ich das Problem lösen
Ich habe den Eindruck du googlest zuviel und schaust nicht in die Dokumentation. Mit den KOMA-Klassen ist sowas nicht nötig, dafür gibt es Optionen:
\documentclass[toc=listof]{scrbook}
\begin{document}
\tableofcontents 
\listoftables 

\chapter{a}

\end{document}

MSJ
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Di 18. Apr 2023, 13:23

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von MSJ »

Dass es auch einfacher geht, habe ich heute auch schon gelesen. Allerdings hatte ich vorher das Problem schon so gelöst und es deswegen so gelassen.

Es kommt mir aber so vor, dass da ich das Abkürzungsverzeichnis als Tabelle und nicht über das acronym Paket erstelle, ich keinen Befehl habe, der nochmal intern eine \chapter-Funktion hat wie \listoftables und deswegen kein Titel für das Abkürzungsverzeichnis generiert wird. Kann das sein?

MSJ
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Di 18. Apr 2023, 13:23

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von MSJ »

Letztes Update: Ich hab auch mein Abkürzungsverzeichnisproblem gelöst. Meine Tabelle war nur um 3 Zeilen zu lang.

Vielen Dank trotzdem für die Hilfe!

Benutzeravatar
u_fischer
Forum-Meister
Forum-Meister
Beiträge: 4266
Registriert: Do 22. Nov 2012, 11:09
Kontaktdaten:

Re: Vakatseite in \addchap lässt sich nicht löschen, wenn Kapitel einen Befehl enthält

Beitrag von u_fischer »

MSJ hat geschrieben:
Di 18. Apr 2023, 21:27
Dass es auch einfacher geht, habe ich heute auch schon gelesen. Allerdings hatte ich vorher das Problem schon so gelöst und es deswegen so gelassen.
\addcontentsline alleine löst es nicht. Da kannst du die falsche Seite erzeugen, und wenn du hyperref lädst, dann sind die Links falsch.

Antworten