modify space at fncychap

391 views
Skip to first unread message

mfduqued

unread,
Apr 24, 2011, 11:08:42 PM4/24/11
to LaTeX Users Group
Hi community, thanks for your help at others occasions
In this moment my problem is, How do I reduce a space between the
chaptername and the beginning of the page?.
My preambule is
*************************************************************************************
\documentclass[11pt,titlepage,twoside,openright,dvipdfm,parskip=full]
{book}
\usepackage{amsmath,amssymb,latexsym,verbatim,array,longtable,url,flafter,textcomp,gensymb}
\usepackage[dvipdfm]{graphicx}
\usepackage[numbers,square,comma,sort&compress,nonamebreak]{natbib}
\usepackage[spanish]{babel}
\usepackage[small]{caption2}
\usepackage[left,final]{showlabels}
\usepackage[nice]{nicefrac}
\usepackage[tight]{units}
\usepackage[dvipdfm]{color}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[Glenn]{fncychap}
\pagestyle{plain}
*************************************************************************************
As I need to reduce a space between the chaptername and the beginning
of the page, then I add these lines
*************************************************************************************
\setlength{\topmargin}{0mm}
\setlength{\headsep}{0mm}
\setlength{\headheight}{0mm}
\makeatletter
\renewcommand{\DOTIS}[1]{
\CTV\FmTi{#1}\par\nobreak
\vskip 0\p@
}
\makeatother
*************************************************************************************
but I didn't got this.

How do I do this?

Thank you for your suggestions

mfduqued

mfduqued

unread,
Apr 25, 2011, 1:13:13 AM4/25/11
to LaTeX Users Group
I guess this solution is possible because I modify the space between
chapter title and first line of text if I add these lines at my
preambule
**************************************************************************************
\renewcommand{\DOTI}[1]{
\CTV\FmTi{#1}\par\nobreak
\vskip 25\p@
}
**************************************************************************************

Peter Flynn

unread,
Apr 25, 2011, 10:50:27 AM4/25/11
to latexus...@googlegroups.com
On Mon, Apr 25, 2011 at 4:08 AM, mfduqued <mfdu...@gmail.com> wrote:
Hi community, thanks for your help at others occasions
In this moment my problem is, How do I reduce a space between the
chaptername and the beginning of the page?.
My preambule is
*************************************************************************************
\documentclass[11pt,titlepage,twoside,openright,dvipdfm,parskip=full]
{book}
\usepackage{amsmath,amssymb,latexsym,verbatim,array,longtable,url,flafter,textcomp,gensymb}
\usepackage[dvipdfm]{graphicx}
\usepackage[numbers,square,comma,sort&compress,nonamebreak]{natbib}
\usepackage[spanish]{babel}
\usepackage[small]{caption2}
\usepackage[left,final]{showlabels}
\usepackage[nice]{nicefrac}
\usepackage[tight]{units}
\usepackage[dvipdfm]{color}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[Glenn]{fncychap}

fncychap modifies the chapter title layout, so you must find in fncychap.sty what macro the Glenn format uses and copy it into your Preamble, and then change the spacing it uses.

///Peter


mfduqued

unread,
May 12, 2011, 12:47:44 PM5/12/11
to LaTeX Users Group
I can to solve this problem as

%%Modify space between chapter´s box and textheight
\renewcommand{\DOCH}{%
\vskip -8em %% THISLINE IS IMPORTAN AND TO CONTROL THIS SPACE
\settoheight{\myhi}{\CTV\FmTi{Test}}
\setlength{\py}{\baselineskip}
\addtolength{\py}{\RW}
\addtolength{\py}{\myhi}
\setlength{\pyy}{\py}
\addtolength{\pyy}{-1\RW}
\raggedright
\CNV\FmN{\@chapapp}\space\CNoV\thechapter
\hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak
}
I added a line
\vskip -8em
this effect is present at all chapters.

For chapters nonenumerating the change is

%%%Modify space between chapter´s box and txtheight at \chapter*
\renewcommand{\DOTIS}[1]{%
\vskip -6em %% THISLINE IS IMPORTAN AND TO CONTROL THIS SPACE
\setlength{\py}{25pt}
\setlength{\pyy}{\py}
\setlength{\backskip}{\py}
\addtolength{\backskip}{2pt}
\addtolength{\pyy}{\RW}
\setlength{\myhi}{\baselineskip}
\addtolength{\myhi}{\pyy}
\mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak
\vskip -1\backskip
\rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 3pt %
\raggedleft\CTV\FmTi{#1}\par\nobreak
\vskip 32\p@
}
There I added the line
\vskip -6em

Thanks for your time and suggestions


On 25 abr, 09:50, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Mon, Apr 25, 2011 at 4:08 AM, mfduqued <mfduq...@gmail.com> wrote:
> > Hi community, thanks for your help at others occasions
> > In this moment my problem is, How do I reduce a space between the
> > chaptername and the beginning of the page?.
> > My preambule is
>
> > ***************************************************************************­**********
> > \documentclass[11pt,titlepage,twoside,openright,dvipdfm,parskip=full]
> > {book}
>
> > \usepackage{amsmath,amssymb,latexsym,verbatim,array,longtable,url,flafter,t­extcomp,gensymb}
> > \usepackage[dvipdfm]{graphicx}
> > \usepackage[numbers,square,comma,sort&compress,nonamebreak]{natbib}
> > \usepackage[spanish]{babel}
> > \usepackage[small]{caption2}
> > \usepackage[left,final]{showlabels}
> > \usepackage[nice]{nicefrac}
> > \usepackage[tight]{units}
> > \usepackage[dvipdfm]{color}
> > \usepackage[latin1]{inputenc}
> > \usepackage[T1]{fontenc}
> > \usepackage[Glenn]{fncychap}
>
> fncychap modifies the chapter title layout, so you must find in fncychap.sty
> what macro the Glenn format uses and copy it into your Preamble, and then
> change the spacing it uses.
>
> ///Peter- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
Reply all
Reply to author
Forward
0 new messages