Ignore "parts" commands when parts is not in the package options
Is it possible to ignore \part
and \ctparttext
when the parts
option isn't loaded? I've tried
\providecommand{\part}[1]{}
\providecommand{\ctparttext}[1]{}
using something like this using \@ifpackagewith{<name>}{<option-list>}{<true>}{<false>}
but I haven't been able to get it to work.
Comments (5)
-
repo owner -
reporter I've removed them now, but I just took the unchanged classicthesis and removed the
parts
option; the\part
and\ctparttext
calls are still in there at that point. I figured it could be interesting to have those be noops whenparts
is not in the options. -
repo owner - changed status to open
-
If "parts' option is false, then these won't be touched by classicthesis.sty: check the code that's within the first block of \ifthenelse{\boolean{@parts}} there. If you're using a document class that still has the \part command defined, you'll get its own definition for the command. I'd say this is an invalid request.
-
repo owner - changed status to closed
Closed due to invalid report.
- Log in to comment
Sorry, I don't get the problem here. Usually, if you don't use any
\part
in your document, you remove the optionpart
when loadingclassicthesis
. (Yet another dirty workaround to get the spacing between "Table of Contents" and the first item right.)