Page LayoutFancy headers - get rid of box in ToC / list of figures

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ntsekhs
Posts: 4
Joined: Sun Apr 25, 2010 10:27 am

Fancy headers - get rid of box in ToC / list of figures

Post by ntsekhs »

Hi,

anyone that has an idea how to get rid of the box in Table of Contents / List of Figures? I need it only for the chapters but not before. I use PDFLatex for compilation. Thanks
Attachments
latex_getRidOfThis.png
latex_getRidOfThis.png (8.43 KiB) Viewed 3754 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Fancy headers - get rid of box in ToC / list of figures

Post by meho_r »

Try using another page style (redefined fancy style or maybe simply using plain style) for that part of document. Try putting \pagestyle{plain} before \tableofcontents, and put \pagestyle{fancy} after it, if TOC is at the beginning of the document. If it is on the end, then just put \pagestyle{plain} before it. As I said, you may use redefind fancy style instead of plain if you like.
ntsekhs
Posts: 4
Joined: Sun Apr 25, 2010 10:27 am

Re: Fancy headers - get rid of box in ToC / list of figures

Post by ntsekhs »

\pagestyle{empty} and \pagestyle{plain} didn't work.
I tried also the mods as proposed in http://www.kronto.org/thesis/thesis/
but without success.

any more ideas?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Fancy headers - get rid of box in ToC / list of figures

Post by frabjous »

It's impossible to know how to remove this without knowing what's creating it to begin with. Please provide a minimal working example showing the problem.
ntsekhs
Posts: 4
Joined: Sun Apr 25, 2010 10:27 am

Re: Fancy headers - get rid of box in ToC / list of figures

Post by ntsekhs »

you are right. I included a link on the previous message but not clearly. Here is a minimal version.

thanks for any help
Attachments
fncychapleo.sty
style
(11.1 KiB) Downloaded 238 times
latex_test.tex
minimal working example
(2.29 KiB) Downloaded 224 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Fancy headers - get rid of box in ToC / list of figures

Post by meho_r »

A fragment of code from fncychapleo.sty (with the addition of \ChRuleWidth{0.5pt} which is also present in it, but not inside this fragment):

Code: Select all

\makeatletter
\renewcommand{\DOTIS}[1]{%
% JD - We add a box to \chapter* a well
    \ChRuleWidth{0.5pt}
    \settoheight{\pyy}{\CNoV\thechapter}
    \addtolength{\pyy}{-2pt}
    \parbox[b]{\textwidth}{%
    \rule[\py]{\RW}{\pyy}%		% Vertical line at left
    \hskip -\RW%			% and back
    \rule[\pyy]{\textwidth}{\RW}%	% Horizontal line at top
    \hskip -\textwidth%			% and back
    \mghrulefill{\RW}%			% Horizontal line at bottom
    \rule{\RW}{\pyy}\par\nobreak}%	% Vertical line at right
    \vskip 20\p@
% JD - Original code:
    \raggedright
    \CTV\FmTi{#1}\par\nobreak
    \vskip -10\p@}
\makeatother
So, basically, redefining \ChRuleWidth{0.5pt} and setting it to 0pt instead of 0.5pt should do the trick. Place above code in your Preamble and test the change to see if this is what you want.
ntsekhs
Posts: 4
Joined: Sun Apr 25, 2010 10:27 am

Re: Fancy headers - get rid of box in ToC / list of figures

Post by ntsekhs »

yes it did.
Thanks for your help.
Post Reply