Skip to content

Style unnumbered subheadings#26

Merged
maucejo merged 1 commit into
maucejo:mainfrom
alametti:unnumbered-headings
Apr 24, 2026
Merged

Style unnumbered subheadings#26
maucejo merged 1 commit into
maucejo:mainfrom
alametti:unnumbered-headings

Conversation

@alametti
Copy link
Copy Markdown
Contributor

Fix conditional for styling level 2 or greater headings when numbering is set to none.

The current logic does not style subheadings in italic because the styling logic is nested within an if numbering != none conditional. This is inconsistent with elsarticle behaviour which styles unnumbered subheadings, leaving them left-aligned (try \subsection*{Unnumbered}).

Fix conditional for styling level 2 or greater headings when numbering
is set to none.

The current logic does not style subheadings in italic because the
styling logic is nested within an `if numbering != none` conditional.
This is inconsistent with `elsarticle` behaviour which styles unnumbered
subheadings, leaving them left-aligned (try `\subsection*{Unnumbered}`).
Copy link
Copy Markdown
Owner

@maucejo maucejo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for PR!

@maucejo maucejo merged commit 94d3e81 into maucejo:main Apr 24, 2026
@maucejo maucejo mentioned this pull request Apr 25, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants