MHB Delimiter \$ and Delimiter [MATH]

  • Thread starter Thread starter Math Amateur
  • Start date Start date
AI Thread Summary
The discussion focuses on the differences between using the delimiters $ ... $ and [MATH] in LaTeX code fragments. It clarifies that $ ... $ produces text style (\textstyle), suitable for inline typesetting, while [MATH] generates display style (\displaystyle), which is better for standalone equations. An example is provided to illustrate the visual differences in rendering the limit expression \lim_{x\to0}\frac{f(x)}{g(x)} in both styles, highlighting the distinction in formatting.
Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
Is there any difference at all in starting and finishing a Latex code fragment with the delimiter $ ... ... and starting and finishing a Latex code fragment with the delimiters $$ ?

Peter
 
Physics news on Phys.org
Peter said:
Is there any difference at all in starting and finishing a Latex code fragment with the delimiter $ ... ... and starting and finishing a Latex code fragment with the delimiters $$ ?

Peter

I always thought \$ and [math] was for inline type setting and \$$ for indented, but I'm curious what the actual difference is too..
 
Peter said:
Is there any difference at all in starting and finishing a Latex code fragment with the delimiter $ ... ... and starting and finishing a Latex code fragment with the delimiters $$ ?

Peter
\$...\$ gives \textstyle, but $$...$$ produces \displaystyle. You can see the difference if you set the formula \lim_{x\to0}\frac{f(x)}{g(x)} in the two styles:

$\lim_{x\to0}\frac{f(x)}{g(x)}$

$$\lim_{x\to0}\frac{f(x)}{g(x)}$$
 

Similar threads

Replies
4
Views
3K
Replies
14
Views
2K
Replies
19
Views
6K
Replies
5
Views
2K
Replies
16
Views
3K
Replies
9
Views
2K
Replies
15
Views
25K
Replies
3
Views
2K
Back
Top