0

This is the code where I am getting error:

\longrightarrow\hspace{2mm}  $\phi$ + 90 + $\beta$ + s = 180\\\\ 

Error:

You need to enclose all mathematical expressions and symbols with special markers. These special markers create a ‘math mode’. Use $...$ for inline math mode, and [...] or one of the mathematical environments (e.g. equation) for display math mode. This applies to symbols such as subscripts ( _ ), integrals ( \int ), Greek letters ( \alpha, \beta, \delta ) and modifiers (\vec{x}, \tilde{x} ).

Platform used is: Overleaf

3
  • 1
    Why didn't you write it like it should? $\longrightarrow\hspace{2mm} \phi + 90 + \beta + s = 180$
    – SebGlav
    Feb 15, 2022 at 17:59
  • 1
    Considering the \\\\ at the end, is this equation meant to be placed in a line of its own? If so, you should consider using \[ \longrightarrow\hspace{2mm} \phi + 90 + \beta + s = 180 \]. The \[ .. \] indicates what is called displayed math, see learnlatex.org/en/lesson-10 Feb 15, 2022 at 18:07
  • 1
    don't use $ around each symbol, the entire expression should be in a singl math expression, otherwise apart from getting errors you will not get correct math spacing for + and =, and don't use \\ out of its use to end table rows. Feb 15, 2022 at 18:31

1 Answer 1

1

\longrightarrow must be in a math environment. Have a try:

\begin{math}
  \longrightarrow\hspace{2mm} \phi + 90 + \beta + s = 180
\end{math}

You can use any other math environment delimiter : $..$ \(..\).

You must log in to answer this question.

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