2

I have written math-text with following latex code:

    \begin{align}
    \emph{HPEI} = \{ \mathcal{H}_{1},\mathcal{H}_{2}, ...\mathcal{H}_{i},...  \mathcal{H}_{m}\}.
    \end{align}

but the first element of the set looks different as:

enter image description here

How may I represent it as other elements?

5

You get a good deal of errors with the code. The problem is that \emph is a text command and cannot be used in math. Besides it is not for typesetting text in italics: its meaning is emphasis.

Use \mathit instead. Besides, don't use align for single equations. A couple of commas were missing and \dots is better than ....

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\mathit{HPEI} =
  \{
  \mathcal{H}_{1},\mathcal{H}_{2},\dots,\mathcal{H}_{i},\dots,\mathcal{H}_{m}
  \}.
\end{equation}

\end{document}

enter image description here

| improve this answer | |
  • I agree with everything you say, but I find myself wondering why we shouldn’t use align for single equations. If I replace equation with align do I not get the same output? There’s even a case for using align and &= for a single equation, so that you can cut/paste equations and things keep working. – Adam Chalcraft Aug 23 at 19:59

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.