# Formatting Sandbox

Basically same as Formatting Sandbox in meta.SO, but since this and Statistical Analysis are the only 2 sites (I know) supporting TeX formatting, I believe we also need one here for testing it.

-
Theoretical computer science also supports $\mathrm{\TeX/\LaTeX}$ formatting. –  JeffE Jun 1 '12 at 7:29
@JeffE: You can use $\TeX$ and $\LaTeX$ (\Tex and \LaTeX) for the text. –  Asaf Karagila Jun 2 '12 at 21:09
@JeffE: In 2010 only 'stats' and 'math' support TeX formatting. Of course now there is also 'cstheory', 'cs', 'chemistry', 'quant', etc. –  KennyTM Jun 3 '12 at 6:25
test \begin{align*}\text{middle line}\end{align*} new line –  Ruslan Jan 30 at 13:06
test test $\not\in(1)\notin(2)$ Who's better??? –  user93957 Jan 31 at 22:25
$m^n + m^x + m^n = 555555$ test test –  hichris123 Feb 2 at 19:09
line $\begin{array}\phantom{i}\\\phantom{i} \end{array}$ line2 –  Bill Dubuque Apr 18 at 15:15

A suggestion: if you want to see you TeX previewed, pretend to type your question/answer. Then wait for 4 seconds. We have on the fly previewing for LaTeX here. This way we don't keep popping this question to the top of meta.

-
May be this (and the main sandbox) should be made special unbumpable question? –  Vi0 Aug 24 '12 at 15:06

$\hskip -3em \color{red}{\Rule{5em}{1em}{1em}}$. Testing of negative skips to overlap the buttons on the left.

$\rlap{\smash{\lower 3em{\color{red}{\Rule{5em}{2em}{0em}}}}}$Testing overlapping on the bottom. OK, both seem to be problems.

-
a comment with overlaps $\rlap{\color{red}{\Rule{10em}{1em}{0.5em}}}$ –  Davide Cervone Jun 14 '12 at 21:56
The extension linked to this answer can be used to improve the situation. –  Davide Cervone Jun 14 '12 at 22:00
$\rlap{\color{grey}{\Rule{200em}{1em}{0.75em}}}$ –  user93957 Jan 7 at 13:01

This is a 1e1ea2ce-0342-4835-a7cc-ee70fbdfe27d
bug

-

Testing spoiler:

Without newlines:

$$\lim_{x \rightarrow \infty} \dfrac{\ln(x^2+4)}{\ln(x+\sqrt{1+x^2})} = \lim_{x \rightarrow \infty} \dfrac{\ln(x^2) + \ln(1+4/x^2)}{\ln(x) + \ln(1+\sqrt{1+1/x^2})}$$ $$= \lim_{x \rightarrow \infty} \dfrac{\ln(x^2)}{\ln(x)} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)}$$ $$= \lim_{x \rightarrow \infty} 2 \dfrac{\ln(x)}{\ln(x)} \lim_{x \rightarrow \infty} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)}$$ $$= 2 \lim_{x \rightarrow \infty} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)} =2$$

With newlines:

! $$\lim_{x \rightarrow \infty} \dfrac{\ln(x^2+4)}{\ln(x+\sqrt{1+x^2})} = \lim_{x \rightarrow \infty} \dfrac{\ln(x^2) + \ln(1+4/x^2)}{\ln(x) + \ln(1+\sqrt{1+1/x^2})}\\ = \lim_{x \rightarrow \infty} \dfrac{\ln(x^2)}{\ln(x)} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)}\\ = \lim_{x \rightarrow \infty} 2 \dfrac{\ln(x)}{\ln(x)} \lim_{x \rightarrow \infty} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)}\\ = 2 \lim_{x \rightarrow \infty} \dfrac{\left(1+\dfrac{\ln(1+4/x^2)}{\ln(x^2)} \right)}{\left(1 + \dfrac{\ln(1+\sqrt{1+1/x^2})}{\ln(x)} \right)} =2$$

-
I was trying this here because of the problems the poster had with this answer. –  Martin Sleziak Jun 1 '12 at 9:51

Testing alternate way of implementing spoiler

$$\require{action} \require{enclose} \toggle{ x\cdot 0 = 0\quad\enclose{roundedbox}{\text{ Click this for derivation }} }{ \begin{array}{rll} x\cdot 0 &= \mathtip{x\cdot 0 + 0}{0 \text{ is additive identity}} \\ &= \mathtip{x\cdot 0 + (x\cdot 0 + -(x\cdot 0))}{ -(x\cdot 0) \text{ is additive inverse of } x\cdot 0}\\ &= \mathtip{(x\cdot 0 + x\cdot 0) + -(x\cdot 0)}{ \text{ addition is associative }\;}\\ &= \mathtip{x\cdot(0 + 0) + -(x\cdot 0) }{ \text{ mulitplication is distributive }\;}\\ &= \mathtip{x\cdot 0 + -(x\cdot 0) }{ 0 \text{ is additive identity}} \\ &= \mathtip{0}{ -(x\cdot 0) \text{ is additive inverse of } x\cdot 0} \end{array} \quad\quad \bbox[4pt,border: 1px solid red]{ \begin{array}{l} \text{If you cannot figure out why a line}\\ \text{is true, move your mouse over}\\ \text{RHS of that line for hint.} \end{array}} }\endtoggle$$

-