TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
1  
@daleif: no, I meant \textit otherwise I'd used \mathit – Herbert May 17 '11 at 6:23

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.