latexstudio/LaTeXFAQ-cn

faq159 如何输入直立的求导和偏导符号?

Opened this issue · 1 comments

http://www.latexstudio.net/archives/10115.html
\newcommand*{\dif}{\mathop{}!\mathrm{d}}

physics 宏包中定义了\differential 命令(简写为\dd),它涵盖了之前我们做
的事情,又通过可选参数引入了上标.对于圆括号,它还给出了自动处理的解决方案:
%\usepackage{physics}
\begin{equation*}
\dd x \quad
\dd{\theta} \quad
\dd[2]{x} \quad
\dd(\sin \theta) \quad
\dd[2](\frac{\ln x}{x})
\end{equation*}
另外,这个宏包提供的\verb||derivative 命令(简写为\verb||dv)可以类似的手法处理导数:
%\usepackage{physics}
\begin{equation*}
\dv{x} \quad
\dv{R}{\theta} \quad
\dv[n]{f}{x} \quad
\dv{r}(\frac{\ln r}{r})
\end{equation*}