Can't fix this missing $ inserted

  • Context: LaTeX 
  • Thread starter Thread starter SeM
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a LaTeX formatting issue encountered while trying to render mathematical expressions in a document. Participants explore the specific syntax and commands used in LaTeX, particularly focusing on the use of math environments and the correct way to include curly brackets.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Homework-related

Main Points Raised

  • One participant presents a LaTeX expression that is not being accepted and asks for help in identifying the error.
  • Another participant questions the purpose of the \begin{math} and \end{math} commands, as well as the use of dollar signs in the expression.
  • It is suggested that the dollar signs are necessary to include curly brackets in the expression.
  • A participant notes that MathJax does not recognize the \begin{math} and \end{math} commands, leading to a processing error.
  • To correctly include a curly bracket, it is proposed to use a backslash before the bracket.

Areas of Agreement / Disagreement

There is no explicit consensus on the best approach to formatting the LaTeX code, but participants generally agree on the issues related to the use of specific commands and symbols.

Contextual Notes

The discussion highlights limitations in understanding the use of certain LaTeX commands and the specific requirements of MathJax for rendering mathematical expressions correctly.

Who May Find This Useful

This discussion may be useful for individuals working with LaTeX in mathematical contexts, particularly those encountering formatting issues in their documents.

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   Reactions: SeM
Worked! Thanks!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K