swathesis icon indicating copy to clipboard operation
swathesis copied to clipboard

\chapter{...} and "birds-eye view"

Open marceltaeumel opened this issue 8 years ago • 5 comments

Is it possible to ignore the clear-page command for \chapter if we are in birds-eye mode?

marceltaeumel avatar Sep 21 '16 14:09 marceltaeumel

No, not easily.

krono avatar Sep 22 '16 06:09 krono

Can I redefine "chapter" manually?

marceltaeumel avatar Sep 22 '16 07:09 marceltaeumel

You can try this:

\makeatletter
\renewcommand*{\scr@startchapter}[1]{%
   \@afterindentfalse
  \expandafter\SecDef\csname @#1\expandafter\endcsname\csname @s#1\endcsname
}
\makeatother

krono avatar Sep 22 '16 08:09 krono

I got this but my koma-script version was too old: LaTeX Error: \scr@startchapter undefined.

Then I updated it and now I am getting a bunch of LaTeX Error: Float(s) lost. One for each \chapter command.

marceltaeumel avatar Sep 22 '16 08:09 marceltaeumel

Here is a simple workaround by declaring chapters to look like sections:

\RedeclareSectionCommand[
  style=section,
  indent=0pt
]{chapter}

marceltaeumel avatar Sep 22 '16 09:09 marceltaeumel