0

I am writing a document in LaTeX and since I use quite often the command ${\rm d}$ for inserting the differential in the integrals , I decided to make a new command and insert in the preamble.

I wrote it as: \newcommand{\d}{d} but it does not compile. It say "your command has been ignored. What am I doing wrong here? How can I insert the command to work properly ?

Tolaso
  • 1,555
  • 1
    Related: http://tex.stackexchange.com/q/14821/14757 or http://tex.stackexchange.com/q/178946/14757 or search for differential here in TEX.SE. – Sigur May 10 '15 at 11:50
  • 1
    Please have a look at packages like physics or skamth or ... – Johannes_B May 10 '15 at 11:50
  • you probably got the error ! LaTeX Error: Command \d already defined. \d is one of the "predefined" accent commands. it's not a good idea to try to redefine it. – barbara beeton May 10 '15 at 12:11
  • @barbarabeeton I did not know that. Anyway, thanks for the links. I'll check them out. It is that I do not use commands that often, expect for defing new theorems of new definitions or lemmas etc. – Tolaso May 10 '15 at 12:17

1 Answers1

2

May I suggest

\newcommand{\dee}{\mathop{\mathrm{d}\!}}

to be used as follows:

\int_0^1 x\dee x = \frac{1}{2}
Mico
  • 506,678