Skip to content

Make \RequirePackage{tocloft} work before \documentclass #38

@dbitouze

Description

@dbitouze

As pointed out on TeX.SE, \RequirePackage{tocloft} currently doesn't work before \documentclass and that's too bad : it would be helpful for classes which load packages that need tocloft to be loaded before them, such as etoc.

Hence, would it be possible to make \RequirePackage{tocloft} work before \documentclass, e.g. by postponing the \@ifundefined{chapter} and \@ifundefined{section} checks \AtBeginDocument?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions