1

Trying to get equal spacing between repeating characters in mathmode. I tried using the microtype package and use the DisableLigatures function, it should disable kerning and would expect equal spaces between the symbols, however this is not the case. For example, the last two stars in a four star row are closer together.

This is my MVP:

\documentclass{article}
\usepackage{microtype}
\DisableLigatures{family=*}

\begin{document} \section{expert levels} expert ($\star\star\star\star\star$)\ proficient ($\star\star\star\star$)\ competent ($\star\star\star$)\ advanced beginner ($\star\star$)\ beginner ($\star$)\ \end{document}

And this is my output: latex math spacing fail

Timtico
  • 2,250
  • 1
    use {\star}{\star}{\star} this is a duplicate, I'll find.. – David Carlisle Feb 08 '23 at 12:27
  • Indeed, this was a duplicate question, It didn't occur to me that I should be searching for \star while trying to identify duplicates :D – Timtico Feb 08 '23 at 14:02
  • You don't want to disable ligatures, of course. I'd define \ExplSyntaxOn \NewDocumentCommand{\stars}{m}{\textborn\prg_replicate:nn { #1 - 1 } { \,\textborn } } \ExplSyntaxOff so you can type \stars{5} or whatever (so long as the argument is a positive integer). Instead of \textborn you may use $\star$, if you prefer. – egreg Feb 09 '23 at 09:32

0 Answers0