I use the following code for custom theorems, as I like slanted text in thereoms better than italicized, using amsthm
.
\newtheoremstyle{thm-sl}
{}{}
{\slshape} % slanted text instead of italicized
{}
{\bfseries}
{.}
{.5em}
{}
I get a warning from chktex
:
Warning 6 in doc.tex line 21: No italic correction (`\/') found.
{\slshape} % slanted text instead of italicized
^
I understand, that italic correction (\/
) should be used, to insert some space between italicized/slanted characters and upright characters, appearing directly after another. Though in my case, there should be no characters after the slanted text.
So is this just an overreaction of chktex
or is there a more "correct" to use newtheoremstyle
?
Funnily, using {\slshape\/}
mutes chktex
, but will not compile, due to the error
! You can't use `\/' in vertical mode.
chktex
happy. These automatic tools can't always get everything right.% chktex 6
after the{\slshape}
(haven't tested that).chktex
examines things in the preamble.