When compiling:
\documentclass{article}
\usepackage{derivative}
\begin{document}
\noindent
\[\pdv{P}{r}\]
\[\pdv{T}{r}\]
\[\pdv{X}{r}\]
\end{document}
one gets:
where it is clear that the T
get spaced or kerned differently than the other letters.
I would like to ensure the P
and the X
are also kerned/spaced like the T
in this example.
I believe I can insert \!
spacings, but that can quickly become a nuisance if I decide to change font (where the kerning happens correctly somehow), or if derivative
updates to address this issue.
edit: egreg's corrections
minimal
for examples, but ratherarticle
. Note also that$$
should never be used in a LaTeXdocument
environment.\partial\, y
in the numerator and\partial x
in the denomiator. It appears\pdv
does that automatically.\pdv[sep-inf-fun=1]{T}{r}
or\pdv{\mkern1mu T}{r}
as they result in the same code. For a higher order derivative you would need to usesep-ord-fun=1
instead.\odv{y}{x}
is reducing to\frac{dy}{dx}
without adding or removing any spacing, same for\pdv
but with\partial
instead of d. What you see is the default kerning between those characters. The package was made to give a simple and flexible way to consistently write derivatives. The philosophy behind the package default is to reproduce "the standard notation" (or rather a consistent notation) without adding or removing any spacing.