Hot answers tagged

8

This answer assumes you are using the report or book document classes. i.e. \documentclass[...]{report} or \documentclass[...]{book} is at the top of your document. The Easy Way The easiest way to achieve what you are looking for is to use the expanded form of the chapter command: % ## Expanded \chapter command ## % Format: ...


5

To add the chapters to the List of Corrections you can use \KOMAoptions{chapteratlists=entry} \addtotoclist[fixme.sty]{lox} \setuptoc{lox}{chapteratlist} \makeatletter \renewcommand*{\listoffixmes}{\listoftoc[{\@fxlistfixmename}]{lox}} \makeatother Result: To remove the chapter entries without fixmes you can use this solution of Markus Kohm (German): ...


5

It is not possible to include a package for one chapter and 'unload' it for another part of the document. However, it's possible to limit the effects what a chapter does, depending on the chapter. Explicitly define two different pagestyles, one for the particular chapter and another one, that restores the settings (or changes them to something other!) ...


4

The vertical skip between text page top margin and the chapter title is controlled by \vspace*{50\p@} in \@makechapterhead. (\p@ is an internal representation for pt) Either redefine this command completely or use a \xpatchcmd replacing \vspace*{50\p@} with some other length, that's easier to change, in a special length register, say \chaptertopskip. ...


3

\epigraphhead can be used to place the epigraph appropriately. The exact distance adjustment depends on the content of the chapter title and epigraph. See the documentation for details. Obviously, this also requires adjusting the alignment and width of the epigraph appropriately. For the first letters, I experimented with one of the decorative fonts ...


3

I do not really understand want you want to do and version 3.12 is really old. My oldest version for testing is 3.16, current version on CTAN is 3.19a. But you have to change the font element chapter to get it visible on the black background. To shift it up use a negative value for \vspace*. \documentclass{scrbook} \usepackage{lmodern}% <- added ...


3

One way to make partial compilations is to use \include{...} in the document body and \includeonly{fileA,fileB,...} in the preamble. Only the files fileA, fileB etc. are included then. \include preserves the reference labels, but introduces a new page, so it's predestinated for external files with \chapter. There's also a excludeonly package, with ...


2

First of all, your use of \renewcommand{\chaptername}{}% Remove a string "Chapter" for this chapter is incorrect, as there is still a space remaining as part of the chapter name printing macro. Instead you're looking to redefine \printchaptername to something like \renewcommand{\printchaptername}{\centering{\chapnumfont\thechapter}} Now, for setting ...


2

TeX/LaTeX complains about \likechapterheading as being undefined and used in \likechapter, i.e. it tries to expand \likechapter and stumbles over \likechapterheading, being unknown. The example should be compilable if \providecommand{\likechapterheading}[1]{} is given, i.e. provide it if is not defined already, otherwise ignore the new definition. Please ...


2

The internal \theH<counter> is already explained by Christian Hupfer's answer. The answer also shows, how to fix it in a general way. In this case, there is an alternative way. hyperref refines \@addtoreset, which is used by \counterwithin and \numberwithin to support \theH<counter>. However, if these commands are used before hyperref is loaded, ...


2

You'll want to throw \ChNameAsIs \ChTitleAsIs into your preamble. See also Section 2.1 (page 3) of the fancychap documentation.


2

Here is a solution. Use \ChTitleAsIs or \ChNameAsIs as you need \documentclass[hidelinks,12pt]{report} \renewcommand{\baselinestretch}{1.5} \usepackage[T1]{fontenc} \usepackage{charter} \usepackage[Conny]{fncychap} \ChTitleAsIs %\ChNameAsIs \begin{document} \chapter{High performance} \end{document}


1

Your \mfc macro does not set any marks for the page header. So you have to add something like \markboth{\chaptermarkformat #2}{} after \refstepcounter{chapter}. Here is different suggestion that also works for chapter titles which are longer than one line. And it is also possible to use the optional argument for a short title in TOC and/or header. ...


1

If you are using KOMA-Script version 3.17 or older you have to replace \include{...} by \clearpage\input{...}. If you do not want that the content of the loaded file starts on a new page then use only \input{...}. With KOMA-Script version 3.18 or newer there is no problem with the order of the TOC entries. But the code that removes the chapter heading does ...


1

Assuming you're using one of the "standard" document classes (i.e., article, report or book) or a document class that's based on one of the standard classes, you could achieve your objective by adding the following instructions to the preamble: \usepackage{sectsty} \chapterfont{\centering}


1

You could hack \chapterformat to add it, although I don't know what side-effects this might have. Note that \fixme is deprecated and the package tells you this when you try to use it. Also, KOMA Script is not at all happy about one of the packages - presumably fixme. See the console output for information and recommendations. \documentclass{scrreprt} ...


1

If I interpret your question and answer correctly then you have to add option cleardoublepage=plain and to remove plainheadsepline (if it is in your original code). \documentclass[ a4paper, headsepline, footsepline, plainfootsepline, cleardoublepage=plain% <- added ]{scrbook} \usepackage{blindtext}% dummy text \begin{document} ...


1

Here is a solution, both for numbered and unnumbered chapters. Note the weird discrepancy for the vertical distance between chapter titles and text in both cases. Is this wanted? \documentclass[a4paper,12pt,twoside, openany]{book} \usepackage[utf8]{inputenc} \usepackage{fourier} \usepackage{lipsum} \setlength{\parskip}{1em} % style paragraphs ...


1

One possibility is to put in a negative space (\vspace{-6pt}) at two places in the code. Instead of 6ptyou can use 0.5\baselineskip or perhaps the value {-10\p@}, in case you later change the font size. \documentclass[a4paper,12pt,twoside]{book} \usepackage[utf8]{inputenc} \usepackage{fourier} % Not necessary for the MWE to compile ...


1

The default \chapter command issues three different spaces to set the chapter heading: Space from the top of the text block to the word Chapter; default is 50pt. Space between Chapter and the chapter title; default is 20pt. Space between the chapter title and the chapter body text; default is 40pt. All of this is made by the macro \@makechapterhead (from ...


1

It needed to be preceeded by \newcommand{\empline}{\mbox{}\newline} \newcommand{\likechapterheading}[1] { \begin{center} \textbf{\MakeUppercase{#1}} \end{center} \empline} My bad. That's should be a lesson in attention to me.


1

Well, I'm not sure, if you want to have that automatically or not. Because only the chapter headings have to changed if needed you can use for example the command \mbox{...}. Command \mbox disallows an hyphenation of the included word .... Another possibility could be just to add \\, but the you can get a problem with your table of content or headers, ...



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