Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paragraph headers always end in a period #5

Open
shinnar opened this issue Mar 3, 2023 · 1 comment
Open

Paragraph headers always end in a period #5

shinnar opened this issue Mar 3, 2023 · 1 comment

Comments

@shinnar
Copy link

shinnar commented Mar 3, 2023

Paragraph headers are always ended in a period, even if they end in a punctuation.

This is due to

\titleformat{\paragraph}[runin]%
            {\bfseries\normalsize}%
            {}%
            {0.5em}%
            {}%
            [.]%

Using the amsmath package, I can fix this by changing it to

\titleformat{\paragraph}[runin]%
            {\bfseries\normalsize}%
            {}%
            {0.5em}%
            {}%
            [\@addpunct{.}]%

I would submit a PR, but am not sure if the dependency on amsmath is reasonable.

@rmgarnett
Copy link
Collaborator

It would be easy to simply borrow the definition of \@addpunct from amsmath.

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

No branches or pull requests

2 participants