Skip to main content
10 events
when toggle format what by license comment
Sep 25, 2023 at 6:29 comment added qifeng618 Another example is $$ \frac{\operatorname{d}^n h(x)}{\operatorname{d} x^n}=\frac{\textrm{d}^n h(x)}{\textrm{d}x^n} =\frac{\operatorname{d\!}^n h(x)}{\operatorname{d\!} x^n} =\frac{\operatorname{d}h(x)}{\operatorname{d} x}=\frac{\textrm{d}h(x)}{\textrm{d}x} =\frac{\operatorname{d\!}h(x)}{\operatorname{d\!} x} $$ Which one is better? You choose. In my eyes, the first and fourth ones are the best, the second and fifth ones are better, the third and sixth ones are unacceptable.
Sep 25, 2023 at 4:01 comment added qifeng618 Please compare the following formats $$ \frac{\operatorname{d}^n f(x)}{\operatorname{d} x^n}=\frac{\textrm{d}^nf(x)}{\textrm{d}x^n} =\frac{\operatorname{d\!}^n f(x)}{\operatorname{d\!} x^n} =\frac{\operatorname{d}f(x)}{\operatorname{d} x}=\frac{\textrm{d}f(x)}{\textrm{d}x} =\frac{\operatorname{d\!}f(x)}{\operatorname{d\!} x} $$ Which one is better? You choose. In my eyes, the first and fourth ones are the best, the second and fifth ones are better, the third and sixth ones are unacceptable.
Sep 24, 2023 at 13:48 comment added qifeng618 Please read texts at the sites tex.stackexchange.com/questions/60545/… and tex.stackexchange.com/questions/60545/…
Sep 24, 2023 at 1:08 comment added qifeng618 @LSpice Many years ago, I used the command "\newcommand{\td}{\textup{d}}" and "\DeclareMathOperator{\td}{d\!}". Currently I am using the standard "\DeclareMathOperator{\td}{d}".
Sep 24, 2023 at 1:01 comment added LSpice Re, certainly you can do that, even in MathJax, but it will produce the (usually) undesireable result $\operatorname dt$. If you want that, then of course it's your choice, but notice the result is different from \textup{d}t, which doesn't include the extra spacing.
Sep 24, 2023 at 0:59 comment added qifeng618 @LSpice In my opinion, the letter "d" should be regarded as an operator when it is used to express the differential in mathematics. So the simplest way to realize this is to define a command via \DeclareMathOperator{\td}{d} in the whole document or to employ \operatorname{d} locally and occationally. Moreover, the command "\td" comes from "\textup{d}" in AmS-LaTeX.
Sep 23, 2023 at 19:14 comment added LSpice TeX note: $\operatorname{d}t$ \operatorname{d}t probably doesn't space as most people would want. See Should I \mathrm the d in my integrals? and questions linked there for best practices in TeXing integrals. (One common approach is to use $\mathrm dt$ \mathrm dt instead. Personally, I agree that the $\operatorname d$ is an operator, and so am stuck using the unsatisfactory ${\operatorname d}t$ {\operatorname d}t.) I didn't edit, in case this is really what you wanted.
Sep 23, 2023 at 19:11 history edited LSpice CC BY-SA 4.0
Typo in title
Sep 23, 2023 at 18:45 history edited qifeng618 CC BY-SA 4.0
added 477 characters in body; edited title
Sep 23, 2023 at 12:49 history asked qifeng618 CC BY-SA 4.0