Ignore "parts" commands when parts is not in the package options

Issue #111 closed
Emiliano Heyns created an issue

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)

  1. André Miede repo owner

    Sorry, I don't get the problem here. Usually, if you don't use any \part in your document, you remove the option part when loading classicthesis. (Yet another dirty workaround to get the spacing between "Table of Contents" and the first item right.)

  2. Emiliano Heyns 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 when parts is not in the options.

  3. Ivo Pletikosić

    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.

  4. Log in to comment