Skip to content

Styling of \section and \subsection is incorrect in epleval-derived classes due to bad titlesec options #841

@Jimvy

Description

@Jimvy

Ex: the LEPL1803 2016 June exam contains a small unnumbered (starred) section before the questions, where there are some instructions and recaps.
In eplbase.cls, we define, using sectsty, the sections, subsections... to have a sans-serif font.
In epleval.cls, in order to have the stylish icon for the question number, we use titlesec to change the styling. But titlesec erases the modifications done with sectsty, so the font is back to a serif font, while the subsections are still with a sans-serif font.

This is ridiculously ugly. I can't believe it's by design.

(As I'm working in #840 to insert some special code into \section, I've come across this inconsistency.)

Either we repair the titleformat command to have a sans-serif font again. Or we change the styling of all (sub)sections in epleval.cls to go back to a serif font. Or we give up with the styling question number (which would be my personal preference as it allows a much "cleaner" code for what I'm trying to achieve in #840 ).

Opinions?

(Related to #127 )

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions