Delimiter \$ and Delimiter [MATH]

  • Context:
  • Thread starter Thread starter Math Amateur
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
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)}$$