Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
add comment

1 Answer

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}

share|improve this answer
    
huh, don't you mean \mathit not \textit –  daleif May 16 '11 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 May 16 '11 at 20:08
    
@daleif: no, I meant \textit otherwise I'd used \mathit –  Herbert May 17 '11 at 6:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.