Page LayoutHow do I adjust the package quotchap?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

How do I adjust the package quotchap?

Post by Medova »

I would like to make a slight adjustmest to the look of the quotchap by raising the chapter number/header on normal chapter pages. This is in general possible with the command:

Code: Select all

\renewcommand\chapterheadstartvskip{\vspace*{-5\baselineskip}}
However, this also raises the header on my table of content, bibliography etc., which I do not want to change.

Here is a MWE of the problem, consisting a master file and the preamble:

Master:

Code: Select all

\input{preamble}
\begin{document}
\selectlanguage{english}
\thispagestyle{empty}
\tableofcontents

\chapter{Introduction}
\textsl{Is this chapter, something very interesting is explained.}
\section{First section}
First section of Master's Thesis.

\bibliography{litteratur}
\addcontentsline{toc}{chapter}{Bibliography}
\end{document}
Preamble:

Code: Select all

\documentclass[a4paper,11pt,twoside,openright,fleqn]{report}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage{geometry}
\geometry{left=4cm,top=3cm,right=3cm,bottom=3cm} 
\usepackage{psboxit}
\usepackage{fancyhdr}
\headheight=14pt
\fancyhf{} 
\fancyhead[LE]{\leftmark} 
\fancyhead[RO]{\rightmark}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\usepackage[times]{quotchap} % Chapter package
\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{chicago}
Last edited by Medova on Wed Mar 10, 2010 4:12 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How do I adjust the package quotchap?

Post by localghost »

Medova wrote:[...] Here is a MWE of the problem, consisting a master file and the preamble [...]
This is not a MWE [1]. Correct your sample code where necessary.

[1] View topic: Avoidable mistakes


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

How do I adjust the package quotchap?

Post by Medova »

Is this a MWE? Or would anyone just reply to anything else than the fact that I don't know what a MWE is - would be a great help.

Code: Select all

\documentclass[a4paper,11pt,twoside,openright,fleqn]{report}
\usepackage[english]{babel}
\usepackage{geometry} 
\usepackage{psboxit}
\usepackage[times]{quotchap} % Chapter package
\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{chicago}

\begin{document}
\selectlanguage{english}
\thispagestyle{empty}
\tableofcontents

\chapter{Introduction}
\textsl{Is this chapter, something very interesting is explained.}
\section{First section}
First section of Master's Thesis.

\bibliography{litteratur}
\addcontentsline{toc}{chapter}{Bibliography}
\end{document}
Last edited by Medova on Mon Mar 08, 2010 11:02 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How do I adjust the package quotchap?

Post by localghost »

Medova wrote:Is this a MWE? Or would anyone just reply to anything else than the fact that I don't know what a MWE is - would be a great help.[...]
You are not new to the forum so in the meantime you should have learned what a minimal working example (MWE) is and how to build it. And your question shows me that you didn't follow the link in my previous reply. A MWE is essential to find out what might be going wrong. It is in your own interest that you follow given links. This concerns especially the link to the forum topic about avoidable mistakes. Most people here are not motivated to tinker with some code snippets which furthermore contain commands to access files which are not present here (i. e. the bibliography database). In this case your bibliography has nothing to do with the problem you described. So get rid of things that are not problem related and provide minimal code. You can find more instructions when following the given links. Nobody refuses to help you. But you have to make this process as easy as possible.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

Re: How do I adjust the package quotchap?

Post by Medova »

The bib actually has something to do with my problem - without it and without the table of contents you can easily think that you have solved the problem (as I thought), but you have moved the header of the bib and toc as well.
I left it there intentionally, and I think it should stay there.
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

How do I adjust the package quotchap?

Post by Medova »

I would like to make a slight adjustmest to the look of the quotchap by raising the chapter number/header on normal chapter pages. This is in general possible with the command:

Code: Select all

\renewcommand\chapterheadstartvskip{\vspace*{-5\baselineskip}}
However, this also raises the header on my table of content, bibliography etc., which I do not want to change.
Another possibility is the command:

Code: Select all

\setlength\headsep{-2cm}
in the definition of \fancypagestyle{plain}, the problem of course is the same, since toc and bib are plain-styles. So HOW do I do that?

code:

Code: Select all

\documentclass[a4paper,11pt,twoside,openright,fleqn]{report}
\usepackage[english]{babel}
\usepackage{geometry} 
\usepackage{psboxit}
\usepackage[times]{quotchap} % Chapter package
\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{chicago}

\begin{document}
\selectlanguage{english}
\thispagestyle{empty}
\tableofcontents

\chapter{Introduction}
\textsl{Is this chapter, something very interesting is explained.}
\section{First section}
First section of Master's Thesis.

\bibliography{litteratur}
\addcontentsline{toc}{chapter}{Bibliography}
\end{document}
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How do I adjust the package quotchap?

Post by localghost »

Double posts are not tolerated (see Board Rules). So the topics have been merged.

You example still lacks a sample bibliography database. Finally I managed to reduce the problem to a MWE. The lines below show how to adjust the bibliography heading (maybe needs accommodation).

Code: Select all

\begin{filecontents*}{sample.bib}
@BOOK{lamport94,
  author={Leslie Lamport},
  title={\LaTeX\ -- A Document Preparation System},
  note={User's Guide and Reference Manual},
  year={1994},
  publisher={Addison-Wesley},
  edition={Second}
}\end{filecontents*}
\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[numbers,sort&compress]{natbib}
\usepackage[times]{quotchap}
\usepackage{blindtext}

\begin{document}
  \tableofcontents
  \renewcommand{\chapterheadstartvskip}{\vspace*{-5\baselineskip}}

  \blinddocument
  \renewcommand{\chapterheadstartvskip}{\vspace*{2.3\baselineskip}}

  \nocite{*}
  \bibliographystyle{chicago}
  \bibliography{sample}
\end{document}
Just for your notification. The psboxit package was made for LaTeX2.09 long time ago. Therefore it should not be used any more.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

Re: How do I adjust the package quotchap?

Post by Medova »

Thx a lot...
Post Reply