0

In the fancychap preset Glenn, the unnumbered chapters (eg contents, bibliography) don't have any text in the top left corner of the box, and so the corner is visible. The thing is, the lines don't connect at the corner - see image.enter image description here

Is this a bug or intended, and is there any way to change it to connect and form the complete box?

Here's an example of code that reproduces the bug. I think I've determined that the parskip package is the issue - what in particular could be the conflict, and how could I resolve it?

\documentclass[12pt]{report}
\usepackage[Glenn]{fncychap}
\usepackage{parskip}

\begin{document}

\tableofcontents
\chapter{Introduction}

\end{document}

Edit: resolved, though it was kind of jank. Before each chapter header, I set the \parskip to 0, and immediately after I set it back to 7.25 (the default value in the parskip package). So, each chapter looked something like this:

\setlength{\parskip}{0.0pt plus1.0pt}
\tableofcontents
\setlength{\parskip}{7.25pt plus2.0pt}

\setlength{\parskip}{0.0pt plus1.0pt}
\chapter{Introduction}
\setlength{\parskip}{7.25pt plus2.0pt}
\input{chapters/introduction}
4
  • 2
    Welcome! If you really like that style (I dislike it very much), please add a complete example of code producing the issue.
    – egreg
    Mar 29, 2020 at 15:27
  • @egreg edited! out of curiosity, what about the style is most egregious to you?
    – AWhite
    Mar 29, 2020 at 16:01
  • I find those in fncychap very distasteful. Sorry. Anyway, the problem is with parskip, as you found out.
    – egreg
    Mar 29, 2020 at 16:19
  • Add \parskip=0pt plus 1pt after \usepackage{parskip}. This is the default values of parskip package.
    – user31034
    Mar 29, 2020 at 16:21

1 Answer 1

1

If you really find this style attractive, patch it so it (locally) sets \parskip to zero.

\documentclass[12pt]{report}
\usepackage[Glenn]{fncychap}
\usepackage{parskip}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\@makechapterhead}
  {\parindent}
  {\setlength{\parskip}{0pt}\parindent}
  {}{}
\patchcmd{\@makeschapterhead}
  {\parindent}
  {\setlength{\parskip}{0pt}\parindent}
  {}{}
\makeatother

\begin{document}

\tableofcontents
\chapter{Introduction}

\end{document}

I won't reproduce the output, sorry.

I'm also against parskip, but that's a different story.

1
  • Thank you! It worked perfectly.
    – AWhite
    Mar 29, 2020 at 22:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .