4

In my document, I use the "median dot" as a punctuation mark between different parts of a word (like in « Les candidat·e·s », the purpose is to gender neutralize French).

Sadly, with the lmodern package, this produces a big spacing around the dots. Is there any way to reduce this spacing, hopefully without any negative \hspace or switching to another font?

Edit: I had not run enough tests. This seems actually to be a bad interaction between lmodern and xfrac (both are required to trigger the alignment problem).

Minimal example :

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{xfrac}
\begin{document}
Les candidat·e·s
\end{document}

Output

  • You can use Les candidat-e-s if you may change the median dot. – Romain Picot Feb 16 '16 at 15:25
  • Welcome to TeX.SX! This is the picture of what I get and I see no excess space. Please, add a minimal working example (MWE) showing the issue. – egreg Feb 16 '16 at 15:27
  • You're right, the problem occurs when using lmodern and xfrac. MWE added above. – Mouton Feb 16 '16 at 16:43
  • 2
    Since I consider xfrac a completely useless package, my recommendation is to get rid of it. – egreg Feb 16 '16 at 16:47
2

The problem is not directly in xfrac, but rather that it loads textcomp which provides \textperiodcentered with wider sidebearings. I'm not sure why the developers of the Latin Modern fonts decided this way, but it's too late for doing something about it.

Remove the command from the list of TS1 commands and reestablish the default valid when textcomp is not loaded.

\documentclass{article}

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

\usepackage{textcomp} % this is the culprit!

\DeclareTextSymbolDefault{\textperiodcentered}{OMS}
\UndeclareTextCommand{\textperiodcentered}{TS1}

\begin{document}

Les candidat·e·s

\end{document}

enter image description here

Your Answer

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

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