I have a mathematical terminology, and I can not do it correctly using LaTex.

The origin form is in picture below: enter image description here

My version is: enter image description here

The main problem is the line between a number and the word simplex. Can you help fix it, and provide the correct LaTex expression?

  • It looks like you're typing $2-complex$. Try 2-\textit{complex} instead. A general recommendation: Don't use math mode if all you need to do is to write something in italics. (The hyphen/dash character should not be rendered as a minus symbol, right?) Use math mode for formulas.
    – Mico
    Aug 30, 2014 at 11:07
  • 1
    You should use $k$-simplex and $2$-complex, because -complex is not math. If you want it in italics, then type \textit{$2$-complex}.
    – egreg
    Aug 30, 2014 at 11:13
  • @egreg \textit{2-complex} works for me. tks Aug 30, 2014 at 11:19
  • 3
    @user2262504 It's wrong: the number should be upright.
    – egreg
    Aug 30, 2014 at 11:25
  • 1
    Or use $2$\nobreakdash-\textit{complex} for preventing a change of line in 2-. \nobreakdash belongs to amsmath package.
    – skpblack
    Aug 30, 2014 at 12:24

1 Answer 1


Just to collect the different approaches:




\begin{tabular}{l @{\qquad\qquad} l}
  Code                        & Output              \\
  \verb|$2-complex$|          & $2-complex$         \\[1ex]
  \verb|$2$-complex|          & $2$-complex         \\[1ex]
  \verb|2-\textit{complex}|   & 2-\textit{complex}  \\[1ex]
  \verb|\textit{$2$-complex}| & \textit{$2$-complex}\\[1ex]
  \verb|\textit{2-complex}|   & \textit{2-complex}



I believe egreg's approach is the correct one.

You must log in to answer this question.

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