Consider the following, with the package:



The code compiles.

However with:


It returns me "A left brace was mandatory here..."

Why so ? Isn't it possible with this package to have variables with index ?


Apparently, esdiff scans the second argument to \diffp in order to compute automatically the order of the derivative.

Since Q_L has three tokens, this makes esdiff think to a third order derivative with respect to Q, _ and L; errors ensue.

Just brace the “composite” variable to make \diffp consider it as a single object:

| improve this answer | |

My it is only an humble alternative to your used old packageesdiff (Writing derivatives, Eddie Saudrais, April 24, 2008). There are also two recent packages to write the derivates (of type classic or partial):

1) diffcoeff package with a simple syntax;


Using \textit{diffcoeff} package:
\[\diffp A{Q_L}[k]>0\]

enter image description here

2) The derivative package of Simon Jensen, v. 0.98 of 2020/07/20.

Using \textit{derivative} package:

enter image description here

In both cases you can get the same result of esdiff.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.