0 Members and 1 Guest are viewing this topic.

#### VLSroulette

• Guest
##### [TEX] tag, insert proper formula images in your posts.
April 25, 2009, 01:40:05 AM
Hello guys,

Just compiled the required CGI to enable [TEX] tag at our forum's parser, so fellow math-oriented friends can insert formulas into posts the proper way with MimeTeX

For those who aren't familiar with this implementation it is simply a language used to generate formula images, like this:

$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$

Displays:

$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$

You gotta love the flexibility of this tag, from simple Square root:

$$c=\sqrt{a^2+b^2}$$

$$c=\sqrt{a^2+b^2}$$

To more complex:

$$\large f(x)={\Large\frac1{\sigma\sqrt{2\pi}}} \int_{\small-\infty}^xe^{-\small\frac{(t-\mu)^2}{2\sigma^2}}dt$$

$$\large f(x)={\Large\frac1{\sigma\sqrt{2\pi}}} \int_{\small-\infty}^xe^{-\small\frac{(t-\mu)^2}{2\sigma^2}}dt$$

And very complex:

$$\normalsize \left(\large\begin{array}{GC+23} \varepsilon_x\\\varepsilon_y\\\varepsilon_z\\\gamma_{xy}\\ \gamma_{xz}\\\gamma_{yz}\end{array}\right)\ {\Large=} \ \left[\begin{array}{CC} \begin{array}\frac1{E_{\fs{+1}x}} &-\frac{\nu_{xy}}{E_{\fs{+1}x}} &-\frac{\nu_{\fs{+1}xz}}{E_{\fs{+1}x}}\\ -\frac{\nu_{yx}}{E_y}&\frac1{E_{y}}&-\frac{\nu_{yz}}{E_y}\\ -\frac{\nu_{\fs{+1}zx}}{E_{\fs{+1}z}}& -\frac{\nu_{zy}}{E_{\fs{+1}z}} &\frac1{E_{\fs{+1}z}}\end{array} & {\LARGE 0} \\ {\LARGE 0} & \begin{array}\frac1{G_{xy}}&&\\ &\frac1{G_{\fs{+1}xz}}&\\&&\frac1{G_{yz}}\end{array} \end{array}\right] \ \left(\large\begin{array} \sigma_x\\\sigma_y\\\sigma_z\\\tau_{xy}\\\tau_{xz}\\\tau_{yz} \end{array}\right)$$

$$\normalsize \left(\large\begin{array}{GC+23} \varepsilon_x\\\varepsilon_y\\\varepsilon_z\\\gamma_{xy}\\ \gamma_{xz}\\\gamma_{yz}\end{array}\right)\ {\Large=} \ \left[\begin{array}{CC} \begin{array}\frac1{E_{\fs{+1}x}} &-\frac{\nu_{xy}}{E_{\fs{+1}x}} &-\frac{\nu_{\fs{+1}xz}}{E_{\fs{+1}x}}\\ -\frac{\nu_{yx}}{E_y}&\frac1{E_{y}}&-\frac{\nu_{yz}}{E_y}\\ -\frac{\nu_{\fs{+1}zx}}{E_{\fs{+1}z}}& -\frac{\nu_{zy}}{E_{\fs{+1}z}} &\frac1{E_{\fs{+1}z}}\end{array} & {\LARGE 0} \\ {\LARGE 0} & \begin{array}\frac1{G_{xy}}&&\\ &\frac1{G_{\fs{+1}xz}}&\\&&\frac1{G_{yz}}\end{array} \end{array}\right] \ \left(\large\begin{array} \sigma_x\\\sigma_y\\\sigma_z\\\tau_{xy}\\\tau_{xz}\\\tau_{yz} \end{array}\right)$$

Plus everything in between:

$$\Large\overbrace{a,...,a}^{\text{k a^,s}}, \underbrace{b,...,b}_{\text{l b^,s}}\hspace{10} \large\underbrace{\overbrace{a...a}^{\text{k a^,s}}, \overbrace{b...b}^{\text{l b^,s}}}_{\text{k+l elements}}$$

$$\Large A\ =\ \large\left( \begin{array}{c.cccc}&1&2&\cdots&n\\ \hdash1&a_{11}&a_{12}&\cdots&a_{1n}\\ 2&a_{21}&a_{22}&\cdots&a_{2n}\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ n&a_{n1}&a_{n2}&\cdots&a_{nn}\end{array}\right)$$

$$\Large\begin{array}{rccclBCB} &f&\longr[75]^{\alpha:{\normalsize f\rightar~g}}&g\\ \large\gamma&\longd[50]&&\longd[50]&\large\gamma\\ &u&\longr[75]_\beta&v\end{array}$$

$$\Large\hspace{5}\unitlength{1} \picture(175,100){~(50,50){\circle(100)} (1,50){\overbrace{\line(46)}^{4\;\;a}} (52,50){\line(125)}~(50,52;115;2){\mid}~(52,55){\longleftar[60]} (130,56){\longrightar[35]}~(116,58){r}~(c85,50;80;2){\bullet} (c85,36){3-q}~(c165,36){3q} (42,29){\underbrace{\line(32)}_{1a^2/r\;\;\;}}~}$$

$$\small\hspace{10}\unitlength{.75} \picture(120,220){~(60,200){\circle(120,40)}~(0,20){\line(0,180)} (5,189;0,-30){\pict(110,20){(c20,10;70;2){ \pict(40,20){(20,10){\circle(40,20)}(c10,10)+(c30,10)-}}~}~} (119,20){\line(0,180)}~(60,20){\circle(120,40;34)}}$$

$$\red\large\displaystyle e^x=\sum_{n=0}^\infty\frac{x^n}{n!}$$ $$\blue\Large e^x=\sum_{n=0}^\infty\frac{x^n}{n!}$$ $$\reverse\opaque \LARGE e^x=\sum_{n=0}^\infty\frac{x^n}{n!}$$ $$\Large e^x=\lim_{n\to\infty} \left(1+\frac~xn\right)^n$$

$$\large f^\prime(x)\ = \lim_{\Delta x\to0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$$

MimeTex tutorial is found here:

http://www.forkosh.com/mimetextutorial.html

Remember, where it says:

../cgi-bin/mimetex.cgi?

Can be replaced by our compiled CGI url:

http://vlsroulette.com/cgi-bin/mimetex.cgi?

For instance, it says:

Quote
../cgi-bin/mimetex.cgi?f(x)=\int_{-\infty}^xe^{-t^2}dt
You should use:

http://vlsroulette.com/cgi-bin/mimetex.cgi?f(x)=\int_{-\infty}^xe^{-t^2}dt

It displays resulting image for your personal tests before including into posts enclosing query within [TEX][/TEX] tags.

Hoping this moves our board forward as this is a very sweet improvement and a keeper.
Victor

(P.S. Later this post is to be moved to Reference Area)

#### Tangram

• Guest
##### Re: [TEX] tag, insert proper formula images in your posts.
August 14, 2009, 08:43:24 AM
Nice work Victor.

#### Tangram

• Guest
##### Re: [TEX] tag, insert proper formula images in your posts.
November 22, 2009, 04:59:25 AM
Can anyone see a problem here?

Under each formula the subject (title) of the thread is repeated.
You can also see it in Victor's first post in this thread.

$$\frac{a+b}{c+d}$$

$$\sqrt{abcd}$$

#### VLSroulette

• Guest
##### Re: [TEX] tag, insert proper formula images in your posts.
November 24, 2009, 08:50:07 PM
I'll nail it, more likely on the 28th as there will be adjustments made to the server.

Regards.