Page Layout ⇒ How to remove empty page after appendix in scrbook
-
Georg
How to remove empty page after appendix in scrbook
I used all your advises, but unfortunately the problem is still not solved. I think we need to write a command before or after \chapter ?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove empty page after appendix in scrbook
Can you post your document preamble? That's the stuff before
\begin{document}.Stefan
-
Georg
How to remove empty page after appendix in scrbook
\usepackage[titletoc]{appendix}
\makeatletter
\g@addto@macro\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\nobreakspace\thechapter\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\nobreakspace\thechapter\autodot\enskip}%
}
\let\oldaddcontentsline\addcontentsline
\newcommand\hackedaddcontentsline[3]{\oldaddcontentsline{#1}{#2}{\chapapp\nobreakspace#3}}
\let\oldchapter\chapter
\renewcommand*\chapter[1]{%
\let\addcontentsline\hackedaddcontentsline%
\oldchapter{#1}%
\let\addcontentsline\oldaddcontentsline%
}
}
\makeatother
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove empty page after appendix in scrbook
Stefan
-
Georg
How to remove empty page after appendix in scrbook
\documentclass[enabledeprecatedfontcommands,
a4paper, oneside, onecolumn,
openany, parskip=full*,
toc=flat, table,
]{scrbook}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[english]{babel}
\usepackage[a4paper,left=20mm,right=10mm,top=20mm,bottom=10mm,includeheadfoot]{geometry}
\usepackage{url}
\let\OLDthebibliography\thebibliography
\renewcommand\thebibliography[1]{
\OLDthebibliography{#1}
\setlength{\parskip}{0pt}
}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[Glenn]{fncychap}
\usepackage{fix-cm}
\ChTitleVar{\large\bfseries\selectfont}
\ChNameVar{\normalsize\bfseries\selectfont}
\ChNumVar{\fontsize{35}{10}\bfseries\selectfont}
\usepackage[titletoc]{appendix}
\makeatletter
\g@addto@macro\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\nobreakspace\thechapter\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\nobreakspace\thechapter\autodot\enskip}%
}
\let\oldaddcontentsline\addcontentsline
\newcommand\hackedaddcontentsline[3]{\oldaddcontentsline{#1}{#2}{\chapapp\nobreakspace#3}}
\let\oldchapter\chapter
\renewcommand*\chapter[1]{%
\let\addcontentsline\hackedaddcontentsline%
\oldchapter{#1}%
\let\addcontentsline\oldaddcontentsline%
}
}
\makeatother
\begin{document}
\appendix
\include{Appendices}
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove empty page after appendix in scrbook
this preamble is missing at least:
Code: Select all
\usepackage{float}% for the H option
\usepackage{graphicx}% for \includegraphics
\usepackage{natbib}% for \citetIn the partial code above I see you use
fncychap. I think that doesn't respect the standard openany option, so it inserts an empty page so that the next (appendix) chapter starts at a right hand page. Check it by commenting it out, also the \Ch commands:Code: Select all
%\usepackage[Glenn]{fncychap}
%\ChTitleVar{\large\bfseries\selectfont}
%\ChNameVar{\normalsize\bfseries\selectfont}
%\ChNumVar{\fontsize{35}{10}\bfseries\selectfont}-
Georg
How to remove empty page after appendix in scrbook
That is why there should be a command to add before or after those chapters to stop creating new pages. Can you please suggest any that works in our case? Or to do something
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove empty page after appendix in scrbook
height=0.7\textheight, make it smaller. It happens when fncychap is used, as I noticed, not with the standard chapter headings, but that's because with fncychap the chapter heading is bigger and needs more space, so the image cannot be as large as 0.7\textheight. Try a bit smaller. Otherwise the page is too full and it's moved to the next page.Stefan
-
Georg
How to remove empty page after appendix in scrbook
Actually I tried your advice before writing you. It was not working. But now I made too small and it works now.
The interesting fact is that in one chapter it accepts height=0.68 and in the other it accepts only height=0.4. Why is it distinctive? It should be the same size for each page, or?
Another linked question is on this picture:
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove empty page after appendix in scrbook
Same for the page header, the code above doesn't have header entries. Can you show your header settings?
Stefan