I recently started using the diffcoeff
package for writing derivatives, and I came across the following issue, which I don't know how to solve.
By following the syntax presented in the package, I wanted to write:
However, the output that I got was:
Below you will find three examples, two of which follow the syntax in the package (they produce the wrong output).
\documentclass[10pt, a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[ISO]{diffcoeff}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
Wrong output \#1:
\begin{equation}
\diffp*{\diff{x^\mu}{\lambda}}{x^\sigma}.
\end{equation}
Wrong output \#2:
\begin{equation}
\diffp*{\frac{\dl x^\mu}{\dl \lambda}}{x^\sigma}.
\end{equation}
Right output:
\begin{equation}
\diffp{}{x^\sigma}\diff{x^\mu}{\lambda}.
\end{equation}
\end{document}
Can anybody tell me why the ordinary derivative becomes a partial derivative when placed inside \diffp{}{}
, and maybe also how to prevent this?