Search found 5 matches

by Sleort
Tue Sep 14, 2010 10:47 pm
Forum: Math & Science
Topic: Question regarding integrals and differential d's
Replies: 9
Views: 20777

Question regarding integrals and differential d's


You have already argued that in this way you can not put limits to the integral. However, where there are limits you do not want the space changed, as in
\[ \int_V \diff^3 r f(r) \]

Yes, but in this example there should be some space between \diff^3 r and f(r), like
\[ \int_V \diff^3 r \, f(r ...
by Sleort
Wed Sep 08, 2010 8:21 pm
Forum: Math & Science
Topic: Question regarding integrals and differential d's
Replies: 9
Views: 20777

Question regarding integrals and differential d's

Regarding the space between the differentials and the function, it needs probably to be put at hand: how does LaTeX knows that the function is indeed the integral argument?
You mean the space between the differentials and the function like in this case:
\diff x f(x) ? Well, that's easily solved ...
by Sleort
Sat Sep 04, 2010 3:53 pm
Forum: Math & Science
Topic: Question regarding integrals and differential d's
Replies: 9
Views: 20777

Question regarding integrals and differential d's

Now we're talking! :D Thanks!

BUT : Although
\iint f(x,y) \diff x \diff y
looks (very) nice,
\int \diff x \int \diff y f(x,y)
doesn't. There is too much space between the integral signs and the differentials and there should be some space between the differential and the function,
\diff y f(x ...
by Sleort
Thu Sep 02, 2010 1:31 pm
Forum: Math & Science
Topic: Question regarding integrals and differential d's
Replies: 9
Views: 20777

Question regarding integrals and differential d's

Hi Sleort,

This may not be exactly what you want, but can edit it.
\documentclass[a4paper,11pt]{article}

\newcommand{\myint}[2]{$\int \; #1 \, \mathrm{d}#2\,$}

\begin{document}

\myint{f(x)}{x}

\end{document}


There is a good explanation here
http://en.wikibooks.org/wiki/LaTeX/Customizing ...
by Sleort
Thu Sep 02, 2010 10:47 am
Forum: Math & Science
Topic: Question regarding integrals and differential d's
Replies: 9
Views: 20777

Question regarding integrals and differential d's

As a physicist I often use both the $\int f(x) \mathrm{d}x$
and the $\int \mathrm{d}x f(x)$ convention when writing integrals, i.e. I sometimes write the differential after the function I want to integrate, and sometimes in front of it (right after the integral symbol).

The code written above is ...