I'd like to know how you prefer to typeset integrals. As you see in the following minimal working example I've made the space between the integral symbol \int and the integrand a little bit smaller and added some space between the integrand and the differential dx. What's the commonly prefered way to typeset an integral? It would be nice to hear different opinions because I'm looking for a way to set it in my bachelor thesis.
MWE:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{lmodern}
\newcommand{\IntI}[2]{\int_{#1}^{#2} \!}
\newcommand{\Int}{\int \!}
\newcommand{\D}{\, d}
\begin{document}
\begin{align*}
\Int x^2 \D x \\
\IntI{0}{1} \sin x \D x
\end{align*}
\end{document}
\newcommand*{\D}{\mathop{}\!\mathrm{d}}. – Bernard Sep 20 '17 at 16:13\!, as you do) if the material is typeset in display-math mode, but not if it's in inline-math mode. – Mico Sep 20 '17 at 17:08\mathop{}does. What's the advantage of your definition for\D? – Conny Sep 21 '17 at 09:50\Intand\IntIeverywhere. – Conny Sep 21 '17 at 09:55\,). – Bernard Sep 21 '17 at 09:57\!as you did is fine in general, but this may depend on the actual integral. For instance, if you have a wide subscript, it may be useful to write\int_{\mathrlap{subscript}}:\mathrlapis defined inmathtoolsand makes the subscript to have 0 width, so the integrand is much closer to the integral sign. – Bernard Sep 21 '17 at 10:36