Some days ago I posted a question on how to get all numbers in italics (How to Get All Numbers in Italics), getting a very fast and excellent answer by David Carlisle. However, such an answer does no apply any italic correction; thus getting odd spacing when numbers are inside brackets, parentheses and so on. This is a MWE that generates such an output:

\usepackage[sloped]{fourier} % To customise font.
\usepackage[T1]{fontenc} % To customise font.
\usepackage{amsmath, mathtools, amsthm, mathrsfs, amssymb} % MATH Packages


And this is the rather weird spaced output:

enter image description here

How can I get decent spacing in such cases?


I am thinking of redefining all math parentheses with microtype package. So far, I've tried something like:


But does not seem to do the trick. Any clues on how to further develop this approach with microtype?

  • 1
    Hi, I have this error LaTeX Error: Symbol font mathit is not defined. You could see at the link tex.stackexchange.com/questions/55512/…. – Sebastiano Mar 30 '17 at 10:31
  • 1
    If you want it to look good, you can use an italic ). Otherwise the “data” is not there, you can also create \def\p(#1){(#1\mspace{1mu})} and use \p(0,1) rather than (0,1) and tweak the spacing at will. – Manuel Mar 30 '17 at 10:46
  • 1
    Note that microtype does not touch maths by default. – cfr Apr 2 '17 at 2:22
  • 1
    Frankly, if David Carlisle says there is no way to do this without breaking stuff, it is unlikely that there is a way to do this without breaking stuff. That is, without making it extremely fragile etc. – cfr Apr 2 '17 at 2:29
  • 2
    microtype's extra kerning feature doesn't work in math mode, unfortunately (which is a limitation of pdftex). So changing the font set, as suggested by @cfr, won't make any difference here. – Robert Apr 2 '17 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.