General Category > Technical Questions

Testing Math

(1/1)

**Victor Ivrii**:

Testing how MathJax was hooked up

\begin{align*}

u(x,t)= &\underbracket{\frac{1}{2}\bigl[ g(x+ct)+g(x-ct)\bigr]+\frac{1}{2c}\int_{x-ct}^{x+ct} h(y)\,dy}_{=u_2}+\\[3pt]

&\underbracket{\frac{1}{2c}

\iint_{\Delta (x,t)} f(x',t' )\,dx\,d t' }_{=u_1}.

\label{eq-4}

\end{align*}

**James McVittie**:

This is just a test to see whether I can copy and paste from LyX:

u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy

**Victor Ivrii**:

--- Quote from: James McVittie on September 20, 2012, 10:04:04 PM ---This is just a test to see whether I can copy and paste from LyX:

u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy

--- End quote ---

Yes, you can but need to switch on math (inline or display respectively)

--- Code: ---$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$

--- End code ---

$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$

--- Code: ---$$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$$

--- End code ---

$$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$$

Actually I never saw \intop (just \int) and double dollars are deprecated (see my code), but your example works

**Jinlong Fu**:

$x>b^2$, is it the same as latex?

$$local\ mean\ level\ \qquad S_t = \alpha(\dfrac{X_t}{D_{t-s_1}W_{t-s_2}})+

(1-\alpha)(S_{t-1} + T_{t-1})$$

$$trend\ \qquad T_t = \gamma (S_t - S_{t-1}) + (1-\gamma)T_{t-1}$$

$$seasonality\ 1 \ \qquad D_t = \delta (\dfrac{X_t}{S_t W_{t-s_2}}) + (1-\delta)D_{t-S_1}$$

$$seasonality\ 2 \ \qquad W_t = \omega (\dfrac{X_t}{S_t D_{t-S_1}}) + (1-\omega)W_{t-s_2}$$

$$\hat{X_t} = (S_t + kT_t)D_{t-s_1+k}W_{t-s_2+k}$$

**Victor Ivrii**:

--- Quote from: Jinlong Fu on September 23, 2012, 02:38:04 AM ---$x>b^2$, is it the same as latex?

--- End quote ---

Yes -- except MathJax neither is nor intended to be a complete LaTeX. See

http://www.math.toronto.edu/courses/apm346h1/20129/about_mathjax.html

Note: If you have text snippet inside of math you should use \text{Your text} rather than format it as math as you did. You can also use \textrm{Your text}, \textit{Your text}.

Also DoubleDollars are deprecated in LaTeX, you use \[ \] or \begin{equation*} \end{equation*} (without * for a numbered version)

PS I disabled \( \) and \[ \] as they in the forum environment have funny side effects.

Navigation

[0] Message Index

Go to full version