Comments (7)
from herries-press.
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.
from herries-press.
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.
Oops, I was reading too quickly — ignore my comment above.
from herries-press.
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.
from herries-press.
Related Issues (20)
- verse: off-by-one error with repeating indent pattern
- vertbars should issue a \par at the beginning
- Make printed lengths more accurate?
- \needspace and \Needspace need to hide their actions better!
- The penalty used in \needspace is questionable and space check needs to apply \prevdepth correction HOT 3
- appendix: \Hy@chapapp uses \appendixname HOT 3
- Definition for \thedate (etc?) shouldn't use x-expansion HOT 1
- epigraph:there should be no page breaks generated between heading + epigraph + following text
- Make \RequirePackage{tocloft} work before \documentclass HOT 4
- epigraph: natural width
- epigraph: page breaks bad
- [Tocloft] Can't change title of tableofcontents HOT 2
- tocloft doc updates HOT 1
- How to set different toc depth for different parts?
- verse package
- tocloft issues a warning and renounces adding `\cfttocprehook` etc... to `\@starttoc` when parskip is loaded before it HOT 2
- \Romannum breaks with recent latex core HOT 3
- hanging package makes ' unusable in math HOT 1
- Change of length names, not reflected in documentation on CTAN HOT 1
- verse package defines \theHpoemline with \newcommand
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from herries-press.