\[Q_O^D = 75 – 5 P_O + P_C + 2I\]
Overleaf gives command \textendash invalid in math mode on input line 34.
(34 is the line of this code in my file)
But it can still give my pdf. Why is this warning? What's the meaning? Should I just ignore it?
\[Q_O^D = 75 – 5 P_O + P_C + 2I\]
–
, instead of a minus: -
, in your equation. You should not ignore the message, but change your equation like here:
\documentclass{article} \begin{document} \[Q_O^D = 75 - 5 P_O + P_C + 2I\] \end{document}
\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} Q_O^D &= 75 – 5 P_O + P_C + 2I \\ Q_O^D &= 75 – 5 P_O + 5 + (2\times 10) \end{align*} \end{document}
–
instead of -
. With -
it works:
\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} Q_O^D &= 75 - 5 P_O + P_C + 2I \\ Q_O^D &= 75 - 5 P_O + 5 + (2\times 10) \end{align*} \end{document}
Users browsing this forum: No registered users and 7 guests