8

I am trying to set a sequence of atom packing symbols. I want to use math mode italics for this, as I think that their width fits this purpose.

The problem is that the C has a bad kerning for this. There is a too large space after it. How could I fix this?

I have tried to use the microtype package, but it seems to have no effect. What am I doing wrong? Do I have to specify the font in a more detailed manner?

\documentclass[pdftex,a4paper]{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage[kerning=allmath]{microtype}
\LoadMicrotypeFile{lmr}

\SetExtraKerning
  {encoding = *, shape = *}
  {C = {,-300}}

\begin{document}

$ABCBCBACAC$

\end{document}

1 Answer 1

2

You can use \textit in also math mode to get a kerning.

\documentclass{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}
\Huge
$ABCBCBACAC$

$\textit{ABCBCBACAC}$

\end{document}

3
  • huh, don't you mean \mathit not \textit
    – daleif
    Commented May 16, 2011 at 20:01
  • Thanks, but that produces text italics, which are a bit more narrow than math italics (for example, the angle of the A is more acute). The same holds for \mathit. However, I guess that I will stick to that.
    – Svante
    Commented May 16, 2011 at 20:08
  • 1
    @daleif: no, I meant \textit otherwise I'd used \mathit
    – user2478
    Commented May 17, 2011 at 6:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .