LaTeX Can't fix this missing $ inserted

  • Thread starter Thread starter SeM
  • Start date Start date
AI Thread Summary
The discussion revolves around a math expression that is not being accepted due to a processing error. The user inquires about the use of the commands \begin{math} and \end{math}, which are not compatible with MathJax, leading to the error. It is clarified that the dollar signs ($) were incorrectly used to insert curly brackets ({) into the expression. The correct way to include a curly bracket is by using a backslash before it, as in \{. This adjustment resolves the issue, allowing the expression to be processed correctly.
SeM
Hi, I have this math text:

##\begin{math}x'=$\Re$\,$\left\{x(t)\right\}$, y$'$=$\Re$\,$\left\{y(t)\right\}$, z$'$=$\frac{1}{2}$ \big($\Im$\,$\left\{x(t)\right\}+$\Im$\,$\left\{y(t)\right\}\big)\end{math}.##

however it is not accepted.

can you check the tex code under "Math processing error" and see an error?

what part is wrong here?
 
Physics news on Phys.org
What are \begin{math} and \end{math} for? Also, I don't understand the presence of all those $.
 
Those $ are inserted to get the { in the middle of the expression.

\being{math} and \end{math} is used because sharelatex recommended it for this section.
 
SeM said:
\being{math} and \end{math} is used because sharelatex recommended it for this section.
MathJax can't do anything with those, hence the processing error.

SeM said:
Those $ are inserted to get the { in the middle of the expression.
What you get is
##x'=$\Re$\,$\left\{x(t)\right\}$, y$'$=$\Re$\,$\left\{y(t)\right\}$, z$'$=$\frac{1}{2}$ \big($\Im$\,$\left\{x(t)\right\}+$\Im$\,$\left\{y(t)\right\}\big).##
which doesn't like anything one would write. To get a curly bracket {, simply precede it with a backslash, \{.
 
  • Like
Likes SeM
Worked! Thanks!
 

Similar threads

Replies
1
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
4
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
23
Views
4K
Back
Top