1

I am trying to insert a greek letter with subscript in latex and I used textgreek package and it appears as h_a. I am making a poster using beamer but I wrote following sample code and it has the same problem.

\documentclass{article}
\usepackage{textgreek}
\begin{document}
 $\texteta \textsubscript{a}$
 \end{document}

Would you please help me? If the package textgreek is not good for mixing with subscript, please recommend other package that I can use.

Thank you!

3
  • 1
    Omit the $ symbols.
    – Mico
    Commented Oct 9, 2015 at 19:41
  • 3
    what's the problem with \texteta \textsubscript{a}? (except that \texteta isn't allowed in math mode end \textsubscript makes no sense in math mode…)
    – cgnieder
    Commented Oct 9, 2015 at 19:42
  • 1
    If you actually want an upright eta in math mode you may want to use the upgreek package
    – cgnieder
    Commented Oct 9, 2015 at 19:44

1 Answer 1

5

\texteta etc. isn't meant for math mode, i.e. omit the $...$ characters -- that's why the symbols are called \text..., i.e. to be used in text mode

\documentclass{article}
\usepackage{textgreek}
\begin{document}

\huge
\begin{tabular}{ccc}
Text mode & & Math mode \tabularnewline
\texteta \textsubscript{a} &  & $\eta_{a}$
\end{tabular}
\end{document}

enter image description here

1
  • Thank you so much! I thought that math mode can be only used in equations. Commented Oct 9, 2015 at 20:29

You must log in to answer this question.

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