# Tag Info

5


5

I leave my original answer. Some possible changes according to the edit in the question are listed below. A little piece to cover all the details of the question is still missing and explained in the last section. Original answer I tried to find a solution within the following design principles: No changes in the files include.tex, deck_1.tex, ...

5

Your Mistake You are actually using the book or report class or something like that. \documentclass{book} \begin{document} \section{Section 1} \section{Section 2} \subsection{SubSection 1} \end{document} So, your output looks like this as reported by you. The Solution Please use the article class in place of book class. \documentclass{article} ...

5

This looks very much like the regular chapter head. Here's the default report.cls header(s): \def\@makechapterhead#1{% Header for \chapter \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries \@chapapp\space \thechapter \par\nobreak \vskip 20\p@ \fi ...

4

Use the macro \chaptervc to start your chapters. As you can see, it takes only one argument, just like the regular \chapter command. It works by putting the original \chapter command output at vertical center, by using two \vfills, one before, one after. Then it uses a \clearpage to get a new page, since you wanted to have your chapter title in an ...

4

You can simply add a patched version of the \@makechapterhead macro (which is responsable for creating the chapter headings) to the \appendices macro which will be called when using the appendices environment via \g@addto@macro. This patch is locally bounded because it will be applied inside the environment. Complete Code ...

2

The problem is that the title is too long in that particular chapter, so the whole title page block gets moved to the next page, which is numbered. You can change your chapter macro so that the title is set in a box of a fixed height: write \parbox[t][height]... and include some \vspace at the end that can stretch or shrink: \documentclass[10pt]{book} ...

2

Adding \vfill before and after \chapter{#1} seems to do nothing to move the chapter heading down to the middle of the page. MMA's answer looks the same with or without them. The problem is that \chapter issues a \clearpage and the first \vfill ends up at the bottom of the previous page. Also, defining \chaptervc without an optional argument and without a ...

2

setspace is the best solution for manipulating the linespread (see also @ThorstenDonigs comments). The following solution patches \@makechapterhead relying on setspaces \singlespacing macro. \documentclass[12pt,oneside]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \inputencoding{utf8} \usepackage{helvet} \usepackage{mathpazo} ...

2

As proposed by the question-opener in the comments to my first answer, here a different approach: Change section to subsection and include the different decks a sections. No changes in deck_n.tex. Replace \section by \subsection in deck_n_slides.tex. To specify the appearance of the "Deck TOC" use the options for for \tableofcontents. (e.g. use ...

2

Since you're already using babel with the ngerman option, you could solve the issue at hand by (i) replacing Marketing-Forschung with Marketing"=Forschung in the chapter header and (ii) adding \raggedright to the second argument of the \titleformat{chapter}{...}{...}{} directive: \titleformat{\chapter}{\fontseries{eb}\huge\raggedright}{\thechapter}{1em}{} ...

1

You don't need to patch \chapter or \@makechapterhead. Simply add your command to the font command: \documentclass[12pt,a4paper,oneside,parskip=half-]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{helvet} \usepackage{mathpazo} \usepackage{setspace,lipsum} \doublespacing %to see better the difference \makeatletter ...

1

Here a suggestion using mdframed. I also removed the package tocloft which isn't needed. \documentclass[12pt,a4paper, % Add lists to TOC listof=numbered,numbers=noenddot,version=first, ]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \inputencoding{utf8} \usepackage{helvet} \usepackage{mathpazo} \usepackage{setspace, lipsum} ...

1

You can't redefine \chapter in terms of itself. Use the internal version \@schapter which is called when \chapter* is issued. We have to take into account that \tableofcontents calls \chapter*, so an indirect call has to be made. \documentclass{report} \title{An Example} \author{Nobody} \makeatletter ...

Only top voted, non community-wiki answers of a minimum length are eligible