PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Koma Script: recommand \chaptermark wirkt sich nicht auf Inhaltsverzeichnis aus



misterjan
06-01-2015, 15:54
Hallo,

ich nutze für mein Dokument scrbook und definiere wie folgt \chaptermark um, damit im Kolumnentitel der Kapitelname in Großbuchstaben dargestellt wird:
\renewcommand{\chaptermark}[1]{\markboth{\uppercase{\textsf{#1}}}{}}

Leider wirkt sich diese Definition nicht auf das Inhaltsverzeichnis und Abbildungsverzeichnis aus. Dort steht es im Kolumentitel weiterhin in Klein- anstatt Großbuchstaben. Ich bin mal testweise von scrbook nach book gewechselt: dort wird dann (wie von mir erwartet) INHALTSVERZEICHNIS und ABBILDUNGSVERZEICHNIS im Kolumentitel angezeigt.

Kann mir jemand sagen, wie ich dies auch im Koma Script erreiche?

Johannes_B
06-01-2015, 16:30
Kannst du uns ein Minimalbeispiel erstellen, an dem wir sofort testen können?
`book` setzt header immer uppercased, `scrbook` hingegen macht das anders. Denn mal ehrlich, Header komplett in Versalien sehen ein wenig lächerlich aus.

Nutzt du denn zusätlich ein Paket für Kopf- und Fußzeilen? Das sollte sich dann im Minimalbeispiel niederschlagen.

esdd
06-01-2015, 17:04
Zum Beispiel so:


\documentclass{scrbook}

\newcommand\MakeMarkcase[1]{\MakeUppercase{#1}}
\renewcommand\chaptermarkformat{}% keine Ausgabe der Kapitelnummer in der Kopfzeile

\usepackage{blindtext}% für Fülltext

\begin{document}
\tableofcontents
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\end{document}

Oder mit dem Paket scrlayer-scpage:


\documentclass{scrbook}

\usepackage[automark,markcase=upper]{scrlayer-scrpage}
\renewcommand\chaptermarkformat{}% keine Ausgabe der Kapitelnummer in der Kopfzeile

\usepackage{blindtext}% für Fülltext

\begin{document}
\tableofcontents
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\end{document}

Gruß
Elke

klops
07-01-2015, 06:38
Was esdd gezeigt hat, bringt schon einmal den schlechten Versalsatz der Standardklassen. Schlecht deshalb, weil Text in Versalien immer leicht gesperrt und ausgeglichen gehört. Behelfsmäßig sollte man daher min. microtype verwenden:
\documentclass{scrbook}
\usepackage{microtype}

\newcommand\MakeMarkcase[1]{\lsstyle\MakeUppercase{#1}}
\renewcommand\chaptermarkformat{}% keine Ausgabe der Kapitelnummer in der Kopfzeile

\usepackage{blindtext}% für Fülltext

\begin{document}
\tableofcontents
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\end{document}

Behelfsmäßig deshalb, weil microtype keinen echten optischen Ausgleich durchführt, sondern nur basierend auf dem Kerning ein angepasstes Sperren. Auch viele Laien erkennen den Mangel im Beispiel am etwas zu frei stehenden "A" (z. B. Seite 4). Wie gut die Sperrung von microtype ist, hängt stark vom Font ab.

Wie weit insgesamt gesperrt werden soll, kann man bei microtype ebenfalls einstellen. Ob man das tun sollte, hängt ebenfalls vom Font ab.

Man kann übrigens auch bei Verwendung von scrlayer-scrpage \MakeMarkcase entsprechend umdefinieren, dann ggf. nach Setzen der Option (die man in dem Fall auch weglassen könnte).

misterjan
07-01-2015, 12:45
Herzlichen Dank für Eure Hilfe. Allerdings erreiche ich so noch nicht ganz, was ich will. In meinem ersten Post habe ich allerdings auch vergessen zu erwähnen, dass ich die Auftreten der Section-Überschriften im Kolumentitel von ungeraden Seiten in Kleinbuchstaben setzen will. Dafür habe ich bisher folgende zwei Befehle genutzt:


\renewcommand{\chaptermark}[1]{\markboth{\uppercase{\textsf{#1}}}{}}
\renewcommand{\sectionmark}[1]{\markright{\textsf{#1}}}


Ich habe hier noch mal ein vollständiges Beispiel inkl. ausreichend Einträge fürs Literaturverzeichnis, sodass dieses auf zwei Seiten dargestellt wird, um den Kolumnentitel zu sehen:


\documentclass[a4paper, 11pt, titlepage, BCOR12mm, toc=listof, toc=bib, index=totoc]{scrbook}

\KOMAoptions{listof=totoc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[final]{microtype}
\usepackage{blindtext}

\usepackage{filecontents}
\begin{filecontents}{lit.bib}
@inproceedings{Bar98,
author={Roswitha Bardohl},
title={{GenGed}: A Generic Graphical Editor for Visual Languages based on Algebraic Graph Grammars},
booktitle={Proceedings of the IEEE Symposium on Visual Languages},
year={1998},
month=sep,
pages={48--55},
hyphenation = {english},
keywords = {VisLang}
}

@article{BB94,
author = {Margaret M. Burnett and Marla J. Baker},
title = {{A Classification System for Visual Programming Languages}},
journal = {Journal of Visual Languages and Computing},
volume = {5},
number = {3},
pages = {287--300},
year = {1994},
hyphenation = {english},
keywords = {VisLang}
}

@article{BBB+95,
author={Margaret M. Burnett and Marla J. Baker and Carisa Bohus and Paul Carlson and Sherry Yang and Pieter Van Zee},
title={{Scaling Up Visual Programming Languages}},
journal={IEEE Computer},
year={1995},
volume={28},
number={3},
pages={45--54},
hyphenation = {english},
keywords = {VisLang}
}

@INPROCEEDINGS{BG04,
author={Paolo Bottoni and Antonio Grau},
title={{A Suite of Metamodels as a Basis for a Classification of Visual Languages}},
booktitle={Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)},
year={2004},
month=sep,
pages={83--90},
hyphenation = {english},
keywords = {VisLang}
}

@article{CDP04,
author = {Gennaro Costagliola and Vincenzo Deufemia and Giuseppe Polese},
title = {{A Framework for Modeling and Implementing Visual Notations With Applications to Software Engineering}},
journal = {ACM Transactions on Software Engineering and Methodology},
volume = {13},
number = {4},
month = oct,
year = {2004},
pages = {431--487},
hyphenation = {english},
keywords = {VisLang}
}

@inproceedings{Cit93,
author={Wayne V. Citrin},
title={{Requirements for Graphical Front Ends for Visual Languages}},
booktitle={Proceedings of the IEEE Symposium on Visual Languages},
year={1993},
month=aug,
pages={142--150},
hyphenation = {english},
keywords = {VisLang}
}

@inproceedings{CK09,
author={Bastian Cramer and Uwe Kastens},
title={{Animation automatically generated from simulation specifications}},
booktitle={Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)},
year={2009},
month=sep,
pages={157--164},
hyphenation = {english},
keywords = {VisLang}
}

@inproceedings{Fra89,
author = {Paul Franchi{-}Zannettacci},
title = {Attribute Specifications for Graphical Interface Generation},
booktitle = {Proceedings of the 11th World Computer {IFIP} Congress},
year = {1989},
month = aug,
pages = {149--155},
hyphenation = {english},
keywords = {VisLang}
}

@inproceedings{GBF91,
author={Ephraim P. Glinert and Meera M. Blattner and Christopher J. Frerking},
title={{Visual Tools and Languages: Directions for the '90s}},
booktitle={Proceedings of the IEEE Workshop on Visual Languages},
year={1991},
month=oct,
pages={89--95},
hyphenation = {english},
keywords = {VisLang}
}

@article{Gra98,
author = {Calum A.M. Grant},
title = {{Visual Language Editing Using a Grammar-Based Visual Structure Editor}},
journal = {Journal of Visual Languages and Computing},
volume = {9},
number = {4},
pages = {351--374},
year = {1998},
hyphenation = {english},
keywords = {VisLang}
}

@article{Kah96,
author = {Ken Kahn},
title = {{ToonTalk\texttrademark---An Animated Programming Environment for Children}},
journal = {Journal of Visual Languages and Computing},
volume = {7},
number = {2},
pages = {197--217},
year = {1996},
hyphenation = {english},
keywords = {VisLang}
}

@inproceedings{KS90,
author={Kenneth M. Kahn and Vijay A. Saraswat},
title={{Complete Visualizations of Concurrent Programs and their Executions}},
booktitle={Proceedings of the IEEE Workshop on Visual Languages},
year={1990},
month=oct,
pages={7--15},
hyphenation = {english},
keywords = {VisLang}
}

\end{filecontents}

\usepackage[babel, german=quotes]{csquotes}
\usepackage[style=alphabetic, backend=biber]{biblatex}
\addbibresource{lit.bib}
\ExecuteBibliographyOptions{
maxalphanames = 4,
maxcitenames = 3,
minalphanames = 3,
maxbibnames = 99,
minnames = 1,
bibwarn=true,
backref=true
}%

\renewcommand{\chaptermark}[1]{\markboth{\uppercase{\textsf{#1}}}{}}%markboth hat zwei argumente für die linke und rechte seite
\renewcommand{\sectionmark}[1]{\markright{\textsf{#1}}}

\begin{document}
\tableofcontents

\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument

\nocite{*}
\printbibliography

\end{document}


Wenn ich den Hinweis von Elke nutze, werden auch Inhalts- und Abbildunsgverzeichnis im Kolumnentitel groß dargestellt. Allerdings werden auch die Section-Überschriften in Großbuchstaben gesetzt. Ich würde gerne wissen, wie ich dort zwischen Chapter und Section differenzieren kann.

Weiterhin wird bei Verwendung von Elkes Hinweis "Literatur" im Kolumnentitel in Kleinbuchstaben dargestellt, wenn dieses mit dem biblatex-Paket (wie bei mir) anstatt bibtex generiert wird.

Hat jemand noch einen Tipp, wie ich all diese Anforderungen mit dem Koma-Script realisieren kann?

Beste Grüße,
Jan

esdd
07-01-2015, 14:08
Dann musst Du die von biblatex gesetzte Überschrift so definieren, dass sie die Einstellungen von KOMA-Script übernimmt:


\defbibheading{bibliography}[\bibname]{%
\ifkomabibtotocnumbered{\chapter{#1}}{%
\ifkomabibtotoc{\addchap{#1}}{%
\chapter*{#1}}}}

Mit scrlayer-scrpage kannst Du das gewünschte dann so erreichen:


\documentclass[a4paper, 11pt, titlepage, BCOR12mm, toc=listof, toc=bib, index=totoc]{scrbook}

%\KOMAoptions{listof=totoc}% entspricht toc=listof
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[final]{microtype}
\usepackage{blindtext}

\usepackage[babel, german=quotes]{csquotes}
\usepackage[style=alphabetic, backend=biber]{biblatex}
\addbibresource{lit.bib}
\ExecuteBibliographyOptions{
maxalphanames = 4,
maxcitenames = 3,
minalphanames = 3,
maxbibnames = 99,
minnames = 1,
bibwarn=true,
backref=true
}%

\defbibheading{bibliography}[\bibname]{%
\ifkomabibtotocnumbered{\chapter{#1}}{%
\ifkomabibtotoc{\addchap{#1}}{%
\chapter*{#1}}}}

\usepackage[automark]{scrlayer-scrpage}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\addtokomafont{pageheadfoot}{\sffamily}

\begin{document}

{\KOMAoption{markcase}{upper}\tableofcontents} % die Klammern halten die Änderung lokal

\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument
\blinddocument\blinddocument\blinddocument\blinddo cument\blinddocument

\nocite{*}
\printbibliography
\end{document}

Schön finde ich die Kopfzeilen mit der Großschreibung auch nicht, aber es sind nicht meine Kopfzeilen ;-)

Gruß
Elke

misterjan
07-01-2015, 16:36
Herzlichen Dank! Das hat mir sehr geholfen; ist jetzt alles, wie ich es mir vorgestellt hatte.