[Tex/LaTex] Elegant fractions in one line for partial derivatives

fractionsmath-mode

  1. I've learned from the TeXbook and from https://tex.stackexchange.com/a/128498/1340 that textmode fractions are often best written in slashed form. Looking at my manuscript I just ran into $\frac{\partial t}{\partial x}$, but partial derivatives in slashed form seem to be much less common (though I've indeed seen them sometimes, but others dislike them too, e.g., see comment How do I write the partial derivatives without partitioning?), especially when parentheses are needed.

    What's typographically appropriate there?

  2. In fact, my actual code is $\frac{\partial t}{\partial x, d_x}$, because this isn't really calculus but some other notation (it's only inspired from partial derivatives) from a PhD thesis—which seems to never use slashed form. Still, if slashed form $(\partial t)/(\partial x, d_x)$ is appropriate I could use it.

EDIT: I know the , d_x seems to make no sense—again, these are not actual partial derivatives. (I can link to the actual source but that's really off-topic).

Best Answer

enter image description here


\documentclass{article}
\usepackage{xfrac}
\usepackage{mathtools}

\begin{document}

$\frac{\partial t}{\partial x, d_x} \qquad \sfrac{\partial t}{\partial x, d_x} \qquad \sfrac{\partial t}{\partial x}\cdot\sfrac{1}{d_x}$

\end{document}

  • The question is probably off topic.
  • Anyway -- I like the slashed version better :).
  • I do not understand the ,d_x part -- are you sure that is correct?