Math & ScienceUpright "d" in derivatives and integrals

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Upright "d" in derivatives and integrals

Post by Singularity »

The "d" in integrals and derivatives is supposed to be an upright "d". But when you make it in an equation, it becomes italicized. I can't find a symbol anywhere which represents this "d" upright. Lately, I've been using this:

Code: Select all

\newcommand{\wrt}[1]{\mathrm{d}{#1}}
.
Is there a symbol for this that I'm missing? If not, does anyone have a better solution than mine? I'm kind of tired of this solution (it's a lot of typing for one character).
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Upright "d" in derivatives and integrals

Post by Stefan Kottwitz »

Using \mathrm is ok. If you would like to save typing, perhaps define \dx, \dy etc. with \mathrm.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Upright "d" in derivatives and integrals

Post by cgnieder »

The cool package defines \D to typeset derivatives. Its style can be customized:

Code: Select all

\documentclass{scrartcl}

\usepackage{cool}
\Style{DSymb={\mathrm d},DShorten=true,IntegrateDifferentialDSymb=\mathrm{d}}

\begin{document}

\[\D{f}{x}\]
\[\D{f}{x,y,z}\]
\[\Int{f(x)}{x,a,b}\]

\end{document}
site moderator & package author
pizzocaro
Posts: 13
Joined: Mon Jun 14, 2010 2:26 pm

Upright "d" in derivatives and integrals

Post by pizzocaro »

Hi,

try to have a look at this topic:
http://www.latex-community.org/forum/vi ... 000#p38694

Hope this helps,
Marco
Post Reply