Git Product home page Git Product logo

Comments (7)

wspr avatar wspr commented on June 29, 2024

from herries-press.

cousteaulecommandant avatar cousteaulecommandant commented on June 29, 2024

For now, this workaround seems to work:

\makeatletter
\let\OLD@starttoc=\@starttoc
\renewcommand{\@starttoc}[1]{%
    \begingroup%
        \parskip=\cftparskip%
        \OLD@starttoc{#1}%
    \endgroup%
}
\makeatother

(so if someone else is having this issue they can add this after the \usepackage[titles]{tocloft} invocation.)

After inspecting the source code of the package, it seems that the problem is that the \parskip=\cftparskip assignment is done inside the \tableofcontents et al. commands, but these commands are only redefined when the [titles] option is not provided.

(If this workaround looks good enough, it could be added to the package, replacing the \parskip\cftparskip lines.)

from herries-press.

wspr avatar wspr commented on June 29, 2024

from herries-press.

wspr avatar wspr commented on June 29, 2024

Sorry it has taken me so long to look at this. I'm afraid I don't understand your use case — in the documentation it states:

% The \Lopt{titles} option causes
% the titles of the ToC, LoF, and LoT lists to be typeset using the
% default \LaTeX{} methods. This can be useful, for example, when the
% \Lpack{tocloft} and \Lpack{fncychap} packages are used together and
% the `fancy' chapter styles should be used for the ToC, etc., titles.

So I think the behaviour you're tried to change is intentional.

from herries-press.

wspr avatar wspr commented on June 29, 2024

Oops, I was reading too quickly — ignore my comment above.

from herries-press.

cousteaulecommandant avatar cousteaulecommandant commented on June 29, 2024

The documentation suggests that the [titles] option only affects the title of the ToC (i.e. the Table of contents line); my issue was about the formatting of the ToC content, not the title (the lines below the title, e.g. 1. Introduction, 2. Background...).

(PS: I had this issue nearly 2 years ago so I don't quite remember the details)

from herries-press.

wspr avatar wspr commented on June 29, 2024

from herries-press.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.