Tag LaTeX (Mimetex) Public - by
[email protected]Custom MOD for LaTeX support. Based on Mimetex.
Tag [tex][/tex]
http://www.forkosh.com/mimetex.html
For example:
[tex]\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}= \frac{\pi^2}{6}[/tex]
Result:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3Fc%3D%255Clim_%257Bn%2520%255Cto%2520%255Cinfty%257D%255Csum_%257Bk%3D1%257D%255En%2520%255Cfrac%257B1%257D%257Bk%255E2%257D%3D%2520%255Cfrac%257B%255Cpi%255E2%257D%257B6%257D&hash=d168ba315b671fe93da4cc5636063e9965809b19)
Can somebody please give me instructions, how to compile it and upload on my server. I have windows xp pro + sp2. Thank you.
vitoalvaro, could your mod be little bit more simple;
I hate the thing I have to write \frac each time I want to get fraction.
Maybe you could leave out of it???
[tex]rac{1}{2x} - rac{1}{1-2x}= rac{4x}{4x^2-1}[/tex]
Could it be possible to get fraction just by writing 4/5 *??*
Oh, and images can't be seen on dark backgrounds. Can this be somehow changed?
Sorry for the bump, but this mod links to the developers of mimetex's server! Is that allowed by them?
When will latex for 1.1.6 or 1.17 become available? Does anyone know?
Quote from: stmartin on March 20, 2008, 12:12:23 PM
Can somebody please give me instructions, how to compile it and upload on my server. I have windows xp pro + sp2. Thank you.
I do not know very well in windows. :(
Quote from: ameo on May 09, 2008, 12:09:51 PM
vitoalvaro, could your mod be little bit more simple;
I hate the thing I have to write rac each time I want to get fraction.
Maybe you could leave out of it???
[tex]rac{1}{2x} - rac{1}{1-2x}= rac{4x}{4x^2-1}[/tex]
Could it be possible to get fraction just by writing 4/5 *??*
Oh, and images can't be seen on dark backgrounds. Can this be somehow changed?
Is possible e adding \reverse:
Source\Subs.php
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => '<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?$1\reverse" alt="$1" border="0" align="absmiddle" />',
Quote from: Kerrick on September 22, 2008, 07:23:37 AM
Sorry for the bump, but this mod links to the developers of mimetex's server! Is that allowed by them?
Yes.
Quote from: studentforums on November 25, 2008, 06:00:56 PM
When will latex for 1.1.6 or 1.17 become available? Does anyone know?
Yes too... :)
We have modified an old version of latex which now works with 1.1.6 I will try and get the programmer to add it to the mod site but he is such a lazy xxxxxx I can never contact him.
Hello,
i must say, it's a great modification. :)
But I think, there is a problem for users, which are not that experienced with the TeX-program. In another forum I found a similar application, which is more userfriendly, especially for beginners.
At the bottom of the text-area there are choseable options of symbols.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg126.imageshack.us%2Fimg126%2F6184%2Fskreen.th.png&hash=53ed14e3124d67de48a25500cb54b830374c92a3) (http://img126.imageshack.us/img126/6184/skreen.png)
Is it possible to insert this application into our forum?
That program is called DragMath
You can search on google about it. :D good luck
That program looks nice. Not exactly what i looked for, but interesting.
HI :)
Now I wrote my own modification of this modification.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg195.imageshack.us%2Fimg195%2F5240%2Fforum2q.th.png&hash=d57bf05d7eaf99e1f41d7dad5f101049945da5df) (http://img195.imageshack.us/img195/5240/forum2q.png)
You can test here:
http://cnccnc.cn.funpic.de/__math-test/___test/index.php?action=post;topic=1.0;num_replies=2
or
http://cnccnc.cn.funpic.de/__math-test/modules.php?name=Forum&action=post;board=1.0
I don't know how to post a modification in the "Customize" correctly, so I add it in these post :)
At first the complete "LaTeX (Mimetex)" modification should be done, without the modification in the Post.template.php
Post.template.php
'tex' => array('code' => 'tex', 'before' => '[tex]', 'after' => '[/tex]', 'description' => $txt['latex']),
This is not longer needed.
Now my modifications:
.../Themes/default/Post.template.php
// If this is a poll - use some javascript to ensure the user doesn't create a poll with illegal option combinations.
this must be searched
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
echo '
var currentMathSwap = false;
function swapMathOptions()
{
document.getElementById("postMoreMathOptions").style.display = currentMathSwap ? "" : "none";
currentMathSwap = !currentMathSwap;
}';
/////////////////////////////////////////////////////////////////////////////////////////////
(I duplicated the Swap-Option , which should be over there, to hide and show the symbols)
at the next we search:
// A hidden form to post data to the spell checking window.
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
swapMathOptions();
// ]]></script>';
/////////////////////////////////////////////////////////////////////////////////////////////
(part 2 of the duplicated Swap-Option)
Now we search this:
echo '
</td>
</tr>';
}
// Now start printing all of the smileys.
and replace:
echo '<!--
/////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////### Thanks to siggi for help ###///////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
-->
<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="#" onclick="swapMathOptions(); surroundText(\'[tex]\', \'[/tex]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="cursor:pointer;text-decoration: none;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/tex.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
</td>
</tr>';
}
// Now start printing all of the smileys.
(the img-tag must be filled in the shown echo-tag...)
at last we search following:
// Finally the most important bit - the actual text box to write in!
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// Display the check boxes for all the special options!
echo '
<tr>
<td align="right"></td>
<td valign="middle">
<div id="postMoreMathOptions">
<!--
/////////////////////////////////////////////////////////////////////////////////////////////
//////////////////#### Thanks for the really nice tab-script ####/////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
///////////## http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm ##/////////////
/////////////////////////////////////////////////////////////////////////////////////////////
-->
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}{\delta}" align="bottom" alt="{\alpha}{\delta}" title="{\alpha}{\delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}{\delta}
[tex]{\alpha}{\delta}[/tex]--></a></li>
<li><a href="#" rel="country2">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}" align="bottom" alt="{a}\times{b}" title="{a}\times{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}
[tex]{a}\times{b}[/tex]--></a></li>
<li><a href="#" rel="country3">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{f(x)}" align="bottom" alt="{f(x)}" title="{f(x)}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{f(x)}
[tex]{f(x)}[/tex]--></a></li>
</ul>
<div style="border:1px solid gray; width:500px; margin-bottom: 1em; padding: 10px">
<div id="country1" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'{\\\alpha}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}" align="bottom" alt="{\alpha} " title="{\alpha} " />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}
[tex]{\alpha}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\beta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\beta}" align="bottom" alt="{\beta}" title="{\beta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\beta}
[tex]\beta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\gamma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\gamma}" align="bottom" alt="{\gamma}" title="{\gamma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\gamma}
[tex]\gamma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\delta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\delta}" align="bottom" alt="{\delta}" title="{\delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\delta}
[tex]\delta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\epsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\epsilon}" align="bottom" alt="{\epsilon}" title="{\epsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\epsilon}
[tex]\epsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\zeta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\zeta}" align="bottom" alt="{\zeta}" title="{\zeta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\zeta}
[tex]\zeta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\eta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\eta}" align="bottom" alt="{\eta}" title="{\eta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\eta}
[tex]\eta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\theta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\theta}" align="bottom" alt="{\theta}" title="{\theta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\theta}
[tex]\theta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\iota}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\iota}" align="bottom" alt="{\iota}" title="{\iota}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\iota}
[tex]\iota[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\kappa}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\kappa}" align="bottom" alt="{\kappa}" title="{\kappa}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\kappa}
[tex]\kappa[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\lambda}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\lambda}" align="bottom" alt="{\lambda}" title="{\lambda}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\lambda}
[tex]\lambda[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\mu}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\mu}" align="bottom" alt="{\mu}" title="{\mu}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\mu}
[tex]\mu[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\nu}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\nu}" align="bottom" alt="{\nu}" title="{\nu}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\nu}
[tex]\nu[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\xi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\xi}" align="bottom" alt="{\xi}" title="{\xi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\xi}
[tex]\xi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\pi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\pi}" align="bottom" alt="{\pi}" title="{\pi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\pi}
[tex]\pi [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\rho}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\rho}" align="bottom" alt="{\rho}" title="{\rho}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\rho}
[tex]\rho [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\sigma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\sigma}" align="bottom" alt="{\sigma}" title="{\sigma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\sigma}
[tex]\sigma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\tau}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\tau}" align="bottom" alt="{\tau}" title="{\tau}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\tau}
[tex]\tau[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\upsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\upsilon}" align="bottom" alt="{\upsilon}" title="{\upsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\upsilon}
[tex]\upsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\phi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\phi}" align="bottom" alt="{\phi}" title="{\phi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\phi}
[tex]\phi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\chi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\chi}" align="bottom" alt="{\chi}" title="{\chi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\chi}
[tex]\chi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\psi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\psi}" align="bottom" alt="{\psi}" title="{\psi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\psi}
[tex]\psi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\omega}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\omega}" align="bottom" alt="{\omega}" title="{\omega}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\omega}
[tex]\omega [/tex]--></a>
<br>
<br>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Gamma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Gamma}" align="bottom" alt="{\Gamma}" title="{\Gamma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Gamma}
[tex]\Gamma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Delta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Delta}" align="bottom" alt="{\Delta}" title="{\Delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Delta}
[tex]\Delta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Theta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Theta}" align="bottom" alt="{\Theta}" title="{\Theta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Theta}
[tex]\Theta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Lambda}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Lambda}" align="bottom" alt="{\Lambda}" title="{\Lambda}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Lambda}
[tex]\Lambda[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Xi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Xi}" align="bottom" alt="{\Xi}" title="{\Xi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Xi}
[tex]\Xi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Pi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Pi}" align="bottom" alt="{\Pi}" title="{\Pi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Pi}
[tex]\Pi [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Sigma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Sigma}" align="bottom" alt="{\Sigma}" title="{\Sigma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Sigma}
[tex]\Sigma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Upsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Upsilon}" align="bottom" alt="{\Upsilon}" title="{\Upsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Upsilon}
[tex]\Upsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Phi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Phi}" align="bottom" alt="{\Phi}" title="{\Phi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Phi}
[tex]\Phi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Psi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Psi}" align="bottom" alt="{\Psi}" title="{\Psi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Psi}
[tex]\Psi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Omega}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Omega}" align="bottom" alt="{\Omega}" title="{\Omega}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Omega}
[tex]\Omega [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\dot V}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\dot V}" align="bottom" alt="{\dot V}" title="{\dot V}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\dot V}
[tex]{\dot V}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\ddot m}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\ddot m}" align="bottom" alt="{\ddot m}" title="{\ddot m}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\ddot m}
[tex]{\ddot m}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\vec a}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\vec a}" align="bottom" alt="{\vec a}" title="{\vec a}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\vec a}
[tex]{\vec a}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\emptyset}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\emptyset}" align="bottom" alt="{\emptyset}" title="{\emptyset}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\emptyset}
[tex]{\emptyset}[/tex]--></a>
</div>
<div id="country2" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'\\\frac{a}{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?\frac{a}{b}" align="middle" alt="\frac{a}{b}" title="\frac{a}{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?\frac{a}{b}
[tex]\frac{a}{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}+{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}+{b}" align="middle" alt="{a}+{b}" title="{a}+{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?a+b
[tex] {a}+{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}-{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}-{b}" align="middle" alt="{a}-{b}" title="{a}-{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?a-b
[tex] {a}-{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}\\\times{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}" align="middle" alt="{a}\times{b}" title="{a}\times{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}
[tex]{a}\times{b}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\neq}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\neq}" align="middle" alt="{\neq}" title="{\neq}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\neq}
[tex]{\neq}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\ge}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\ge}" align="middle" alt="{\ge}" title="{\ge}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\ge}
[tex]{\ge}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\le}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\le}" align="middle" alt="{\le}" title="{\le}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\le}
[tex]{\le}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{sqrt{\\\beta}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{sqrt{\beta}}" align="middle" alt="{sqrt{\beta}}" title="{sqrt{\beta}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{sqrt{\beta}}
[tex]{sqrt{\beta}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{sin(x)}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{sin(x)}" align="middle" alt="{sin(x)}" title="{sin(x)}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{sin(x)}
[tex]{sin(x)}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{360^\\\circ}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{360^\circ}" align="middle" alt="{360^\circ}" title="{360^\circ}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{360^\circ}
[tex]{360^\circ}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{X^{n}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{X^{n}}" align="middle" alt="{X^{n}}" title="{X^{n}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{X^{n}}
[tex]{X^{n}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{{X}_{n}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{{X}_{n}}" align="middle" alt="{{X}_{n}}" title="{{X}_{n}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi? {{X}_{n}}
[tex]{{X}_{n}}[/tex]--></a>
</div>
<div id="country3" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'{\\\sum_{k=1}^N k}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\sum_{k=1}^N k}" align="middle" alt="{\sum_{k=1}^N k}" title="{\sum_{k=1}^N k}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\sum_{k=1}^N k}
[tex]{\sum_{k=1}^N k^2}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\int_{-N}^N e^x\\\,dx}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\int_{-N}^N e^x\,dx}" align="middle" alt="{\int_{-N}^N e^x\,dx}" title="{\int_{-N}^N e^x\,dx}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\int_{-N}^N e^x\,dx}
[tex]{\int_{-N}^N e^x\,dx}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{n \\\choose k}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{n \choose k}" align="middle" alt="{n \choose k}" title="{n \choose k}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{n \choose k}
[tex]{n \choose k}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\begin{pmatrix}{a_1}&{a_2}&{a_3}\\\\\\\\{b_1}&{b_2}&{b_3}\\\\\\\\{c_1}&{c_2}&{c_3}\\\end{pmatrix}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\\{b_1}&{b_2}&{b_3}\\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" align="middle" alt="{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" title="{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}
[tex]{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\begin{vmatrix}{a_1}&{a_2}&{a_3}\\\\\\\\{b_1}&{b_2}&{b_3}\\\\\\\\{c_1}&{c_2}&{c_3}\\\end{vmatrix}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\\{b_1}&{b_2}&{b_3}\\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" align="middle" alt="{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" title="{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}
[tex]{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{}^4_2\\\mathrm{He}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{}^4_2\mathrm{He}" align="middle" alt="{}^4_2\mathrm{He}" title="{}^4_2\mathrm{He}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{}^4_2\mathrm{He}
[tex]{}^4_2\mathrm{He}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\lim_{n\\\to{\\\infty}}x_n}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\lim_{n\to{\infty}}x_n}" align="middle" alt="{\lim_{n\to{\infty}}x_n}" title="{\lim_{n\to{\infty}}x_n}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\lim_{n\to{\infty}}x_n}
[tex]{\lim_{n\to{\infty}}x_n}[/tex]--></a>
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div>
</td>
</tr>';
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
That's been in the Post.template.php
(I know, that code is unnecessarily long, but I don't find an Idea to shorten it. I have some problems with the many backslashes. Look Here (http://www.simplemachines.org/community/index.php?topic=323844.msg2157110#msg2157110) )
at the next we did changes in the../Themes/default/index.template.php
we search:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
and insert above:
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
<script type="text/javascript" src="', $settings['default_theme_url'], '/tex/tabcontent.js"></script>
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
at next we search:
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
and insert above:<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/tex/tabcontent.css" />
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
That's it! ;)
At last we must upload:
.../Themes/default/tex/tabcontent.js
.../Themes/default/tex/tabcontent.css
They might be downloaded by:
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
or from my post :)
Maybe we upload the new Symbol, I made the background transparent, and it looks better ;)
.../Themes/default/images/bbc/tex.gif
Does anyone know which files i need to modify the permissions for? FTP doesnt seem to work for me.
Hello, I am using this mod on smf 1.1.10 and it shows only confused images. I tried also to post directly the image from mimtex server (with [ img]http://www.forkosh.dreamhost.com/mimetex.cgi?x^2[/img] for example) but i obtained confused images also in that case. What could be the problem?
Thanks in advance and excuse me for my bad English.
The description of this mod is causing issues for the proper functioning of my SMF. Not happy.
Please revise your mod description. The backslashes in the example text are not displaying, and are causing some extended characters to be inserted. This is breaking the SMF Integrated Mod Browsing functionality, even though I do not have this mod installed.
I have submitted a report as 'unsafe' regarding this mod.
For an example of what I mean, please look at the error relating to your mod on this package feed: http://custom.simplemachines.org/mods/packages.xml
Thank you for your report; this particular error has been resolved. There are other issues in the packages.xml file that we will attend to.
Thanks for the response. :D Sorry if I came across a little snarky.
It's perfectly understandable, actually - but this one is done now. :)
Would there be a version for 2.0 RC2?
I doubt the author plans to update it for 2.0 RC2, to be honest, but it should work if you do the following manual install:
Sources/Subs.php
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => '<img src="http://bmi.ath.cx/cgi-bin/mimetex.cgi?$1" alt="$1" border="0" align="absmiddle" />',
),
Sources/Subs-Editor.php
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
array(
'image' => 'tex',
'code' => 'tex',
'before' => '[tex]',
'after' => '[/tex]',
'description' => $txt['tex']
),
Then, unpack the .zip file from http://custom.simplemachines.org/mods/index.php?mod=1111 and upload the tex.gif file you find into Themes/default/images/bbc and lastly, you'll need to edit your language files.
Find Themes/default/languages, and for each file that begins with the word Modifications (e.g. Modifications.english.php, Modifications.english-utf8.php), add the following line before the last ?> in the file.
$txt['tex'] = 'LaTeX';
This cannot be turned into a package unless its author is happy for that to happen.
One more suggestion though
MimeTex looks worse than LaTeX
So if you want to use high quality math symbols, substitute the following link
http://latex.codecogs.com/gif.latex?
Comparision
MimeTex
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3Fc%3D%255Clim_%257Bn%2520%255Cto%2520%255Cinfty%257D%255Csum_%257Bk%3D1%257D%255En%2520%255Cfrac%257B1%257D%257Bk%255E2%257D%3D%2520%255Cfrac%257B%255Cpi%255E2%257D%257B6%257D&hash=d168ba315b671fe93da4cc5636063e9965809b19)
Latex
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flatex.codecogs.com%2Fgif.latex%3Fc%3D%255Clim_%257Bn%2520%255Cto%2520%255Cinfty%257D%255Csum_%257Bk%3D1%257D%255En%2520%255Cfrac%257B1%257D%257Bk%255E2%257D%3D%2520%255Cfrac%257B%255Cpi%255E2%257D%257B6%257D&hash=627f934687e2dfd51e6594e53441bfaca138f180)
Well, I doubt the mod author will update it; it was over a year and a half ago this was submitted...
Quote from: Arantor on November 14, 2009, 09:21:44 AM
I doubt the author plans to update it for 2.0 RC2, to be honest, but it should work if you do the following manual install:
Sources/Subs.php
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => '<img src="http://bmi.ath.cx/cgi-bin/mimetex.cgi?$1" alt="$1" border="0" align="absmiddle" />',
),
Sources/Subs-Editor.php
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
array(
'image' => 'tex',
'code' => 'tex',
'before' => '[tex]',
'after' => '[/tex]',
'description' => $txt['tex']
),
Then, unpack the .zip file from http://custom.simplemachines.org/mods/index.php?mod=1111 and upload the tex.gif file you find into Themes/default/images/bbc and lastly, you'll need to edit your language files.
Find Themes/default/languages, and for each file that begins with the word Modifications (e.g. Modifications.english.php, Modifications.english-utf8.php), add the following line before the last ?> in the file.
$txt['tex'] = 'LaTeX';
This cannot be turned into a package unless its author is happy for that to happen.
I can confirm that it works fine in RC2 Public with these modifications.
Quote from: Arantor on November 14, 2009, 09:21:44 AMThis cannot be turned into a package unless its author is happy for that to happen.
Just send him an email with the updated Mod.
I did this with the Update to support SMF 2.0 beta 4 ;)
I never said that wasn't the case. Just from experience many mod authors won't even bother to do that if they haven't been around for a while. I should point out that we did try and PM him a few weeks back with no reply.
In order to make this mod work in SMF 2.0 RC2 it's necessary change the installer.
The "find" part for Subs-Editor.php file was
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt['flash']),
It must be changed this way
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
Then, the adding part that was
'tex' => array('code' => 'tex', 'before' => '[tex]', 'after' => '[/tex]', 'description' => $txt['latex']),
has to be changed into
array(
'image' => 'tex',
'code' => 'tex',
'before' => '[tex]',
'after' => '[/tex]',
'description' => $txt['latex']
),
Hope it's useful :)
can someone send me the update mod? i know that is not permitted to publish it without the author's permission!
There's no updated mod, only notes on how to do it. You will have to follow the notes yourself.
Quote from: Unregistriert on July 15, 2009, 04:07:29 PM
HI :)
Now I wrote my own modification of this modification.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg195.imageshack.us%2Fimg195%2F5240%2Fforum2q.th.png&hash=d57bf05d7eaf99e1f41d7dad5f101049945da5df) (http://img195.imageshack.us/img195/5240/forum2q.png)
You can test here:
http://cnccnc.cn.funpic.de/__math-test/___test/index.php?action=post;topic=1.0;num_replies=2
or
http://cnccnc.cn.funpic.de/__math-test/modules.php?name=Forum&action=post;board=1.0
I don't know how to post a modification in the "Customize" correctly, so I add it in these post :)
At first the complete "LaTeX (Mimetex)" modification should be done, without the modification in the Post.template.php
Post.template.php
'tex' => array('code' => 'tex', 'before' => '[tex]', 'after' => '[/tex]', 'description' => $txt['latex']),
This is not longer needed.
Now my modifications:
.../Themes/default/Post.template.php
// If this is a poll - use some javascript to ensure the user doesn't create a poll with illegal option combinations.
this must be searched
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
echo '
var currentMathSwap = false;
function swapMathOptions()
{
document.getElementById("postMoreMathOptions").style.display = currentMathSwap ? "" : "none";
currentMathSwap = !currentMathSwap;
}';
/////////////////////////////////////////////////////////////////////////////////////////////
(I duplicated the Swap-Option , which should be over there, to hide and show the symbols)
at the next we search:
// A hidden form to post data to the spell checking window.
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
swapMathOptions();
// ]]></script>';
/////////////////////////////////////////////////////////////////////////////////////////////
(part 2 of the duplicated Swap-Option)
Now we search this:
echo '
</td>
</tr>';
}
// Now start printing all of the smileys.
and replace:
echo '<!--
/////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////### Thanks to siggi for help ###///////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
-->
<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="#" onclick="swapMathOptions(); surroundText(\'[tex]\', \'[/tex]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="cursor:pointer;text-decoration: none;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/tex.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
</td>
</tr>';
}
// Now start printing all of the smileys.
(the img-tag must be filled in the shown echo-tag...)
at last we search following:
// Finally the most important bit - the actual text box to write in!
and insert above:
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// Display the check boxes for all the special options!
echo '
<tr>
<td align="right"></td>
<td valign="middle">
<div id="postMoreMathOptions">
<!--
/////////////////////////////////////////////////////////////////////////////////////////////
//////////////////#### Thanks for the really nice tab-script ####/////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
///////////## http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm ##/////////////
/////////////////////////////////////////////////////////////////////////////////////////////
-->
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}{\delta}" align="bottom" alt="{\alpha}{\delta}" title="{\alpha}{\delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}{\delta}
[tex]{\alpha}{\delta}[/tex]--></a></li>
<li><a href="#" rel="country2">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}" align="bottom" alt="{a}\times{b}" title="{a}\times{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}
[tex]{a}\times{b}[/tex]--></a></li>
<li><a href="#" rel="country3">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{f(x)}" align="bottom" alt="{f(x)}" title="{f(x)}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{f(x)}
[tex]{f(x)}[/tex]--></a></li>
</ul>
<div style="border:1px solid gray; width:500px; margin-bottom: 1em; padding: 10px">
<div id="country1" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'{\\\alpha}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}" align="bottom" alt="{\alpha} " title="{\alpha} " />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\alpha}
[tex]{\alpha}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\beta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\beta}" align="bottom" alt="{\beta}" title="{\beta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\beta}
[tex]\beta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\gamma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\gamma}" align="bottom" alt="{\gamma}" title="{\gamma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\gamma}
[tex]\gamma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\delta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\delta}" align="bottom" alt="{\delta}" title="{\delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\delta}
[tex]\delta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\epsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\epsilon}" align="bottom" alt="{\epsilon}" title="{\epsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\epsilon}
[tex]\epsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\zeta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\zeta}" align="bottom" alt="{\zeta}" title="{\zeta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\zeta}
[tex]\zeta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\eta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\eta}" align="bottom" alt="{\eta}" title="{\eta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\eta}
[tex]\eta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\theta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\theta}" align="bottom" alt="{\theta}" title="{\theta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\theta}
[tex]\theta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\iota}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\iota}" align="bottom" alt="{\iota}" title="{\iota}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\iota}
[tex]\iota[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\kappa}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\kappa}" align="bottom" alt="{\kappa}" title="{\kappa}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\kappa}
[tex]\kappa[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\lambda}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\lambda}" align="bottom" alt="{\lambda}" title="{\lambda}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\lambda}
[tex]\lambda[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\mu}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\mu}" align="bottom" alt="{\mu}" title="{\mu}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\mu}
[tex]\mu[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\nu}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\nu}" align="bottom" alt="{\nu}" title="{\nu}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\nu}
[tex]\nu[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\xi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\xi}" align="bottom" alt="{\xi}" title="{\xi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\xi}
[tex]\xi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\pi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\pi}" align="bottom" alt="{\pi}" title="{\pi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\pi}
[tex]\pi [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\rho}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\rho}" align="bottom" alt="{\rho}" title="{\rho}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\rho}
[tex]\rho [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\sigma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\sigma}" align="bottom" alt="{\sigma}" title="{\sigma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\sigma}
[tex]\sigma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\tau}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\tau}" align="bottom" alt="{\tau}" title="{\tau}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\tau}
[tex]\tau[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\upsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\upsilon}" align="bottom" alt="{\upsilon}" title="{\upsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\upsilon}
[tex]\upsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\phi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\phi}" align="bottom" alt="{\phi}" title="{\phi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\phi}
[tex]\phi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\chi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\chi}" align="bottom" alt="{\chi}" title="{\chi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\chi}
[tex]\chi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\psi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\psi}" align="bottom" alt="{\psi}" title="{\psi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\psi}
[tex]\psi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\omega}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\omega}" align="bottom" alt="{\omega}" title="{\omega}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\omega}
[tex]\omega [/tex]--></a>
<br>
<br>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Gamma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Gamma}" align="bottom" alt="{\Gamma}" title="{\Gamma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Gamma}
[tex]\Gamma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Delta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Delta}" align="bottom" alt="{\Delta}" title="{\Delta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Delta}
[tex]\Delta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Theta}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Theta}" align="bottom" alt="{\Theta}" title="{\Theta}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Theta}
[tex]\Theta[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Lambda}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Lambda}" align="bottom" alt="{\Lambda}" title="{\Lambda}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Lambda}
[tex]\Lambda[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Xi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Xi}" align="bottom" alt="{\Xi}" title="{\Xi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Xi}
[tex]\Xi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Pi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Pi}" align="bottom" alt="{\Pi}" title="{\Pi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Pi}
[tex]\Pi [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Sigma}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Sigma}" align="bottom" alt="{\Sigma}" title="{\Sigma}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Sigma}
[tex]\Sigma[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Upsilon}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Upsilon}" align="bottom" alt="{\Upsilon}" title="{\Upsilon}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Upsilon}
[tex]\Upsilon[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Phi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Phi}" align="bottom" alt="{\Phi}" title="{\Phi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Phi}
[tex]\Phi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Psi}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Psi}" align="bottom" alt="{\Psi}" title="{\Psi}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Psi}
[tex]\Psi[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\Omega}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\Omega}" align="bottom" alt="{\Omega}" title="{\Omega}" />
<!--http://www.forkosh.dreamhost.com/mimetex.cgi?{\Omega}
[tex]\Omega [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\dot V}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\dot V}" align="bottom" alt="{\dot V}" title="{\dot V}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\dot V}
[tex]{\dot V}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\ddot m}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\ddot m}" align="bottom" alt="{\ddot m}" title="{\ddot m}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\ddot m}
[tex]{\ddot m}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\vec a}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\vec a}" align="bottom" alt="{\vec a}" title="{\vec a}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\vec a}
[tex]{\vec a}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\emptyset}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\emptyset}" align="bottom" alt="{\emptyset}" title="{\emptyset}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\emptyset}
[tex]{\emptyset}[/tex]--></a>
</div>
<div id="country2" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'\\\frac{a}{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?\frac{a}{b}" align="middle" alt="\frac{a}{b}" title="\frac{a}{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?\frac{a}{b}
[tex]\frac{a}{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}+{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}+{b}" align="middle" alt="{a}+{b}" title="{a}+{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?a+b
[tex] {a}+{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}-{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}-{b}" align="middle" alt="{a}-{b}" title="{a}-{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?a-b
[tex] {a}-{b} [/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{a}\\\times{b}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}" align="middle" alt="{a}\times{b}" title="{a}\times{b}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{a}\times{b}
[tex]{a}\times{b}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\neq}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\neq}" align="middle" alt="{\neq}" title="{\neq}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\neq}
[tex]{\neq}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\ge}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\ge}" align="middle" alt="{\ge}" title="{\ge}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\ge}
[tex]{\ge}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\le}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\le}" align="middle" alt="{\le}" title="{\le}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\le}
[tex]{\le}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{sqrt{\\\beta}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{sqrt{\beta}}" align="middle" alt="{sqrt{\beta}}" title="{sqrt{\beta}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{sqrt{\beta}}
[tex]{sqrt{\beta}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{sin(x)}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{sin(x)}" align="middle" alt="{sin(x)}" title="{sin(x)}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{sin(x)}
[tex]{sin(x)}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{360^\\\circ}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{360^\circ}" align="middle" alt="{360^\circ}" title="{360^\circ}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{360^\circ}
[tex]{360^\circ}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{X^{n}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{X^{n}}" align="middle" alt="{X^{n}}" title="{X^{n}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{X^{n}}
[tex]{X^{n}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{{X}_{n}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{{X}_{n}}" align="middle" alt="{{X}_{n}}" title="{{X}_{n}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi? {{X}_{n}}
[tex]{{X}_{n}}[/tex]--></a>
</div>
<div id="country3" class="tabcontent">
<a href="javascript:void(0);" onclick="replaceText(\'{\\\sum_{k=1}^N k}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\sum_{k=1}^N k}" align="middle" alt="{\sum_{k=1}^N k}" title="{\sum_{k=1}^N k}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\sum_{k=1}^N k}
[tex]{\sum_{k=1}^N k^2}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\int_{-N}^N e^x\\\,dx}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\int_{-N}^N e^x\,dx}" align="middle" alt="{\int_{-N}^N e^x\,dx}" title="{\int_{-N}^N e^x\,dx}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\int_{-N}^N e^x\,dx}
[tex]{\int_{-N}^N e^x\,dx}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{n \\\choose k}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{n \choose k}" align="middle" alt="{n \choose k}" title="{n \choose k}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{n \choose k}
[tex]{n \choose k}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\begin{pmatrix}{a_1}&{a_2}&{a_3}\\\\\\\\{b_1}&{b_2}&{b_3}\\\\\\\\{c_1}&{c_2}&{c_3}\\\end{pmatrix}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\\{b_1}&{b_2}&{b_3}\\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" align="middle" alt="{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" title="{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}
[tex]{\begin{pmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{pmatrix}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\begin{vmatrix}{a_1}&{a_2}&{a_3}\\\\\\\\{b_1}&{b_2}&{b_3}\\\\\\\\{c_1}&{c_2}&{c_3}\\\end{vmatrix}}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\\{b_1}&{b_2}&{b_3}\\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" align="middle" alt="{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" title="{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}
[tex]{\begin{vmatrix}{a_1}&{a_2}&{a_3}\\{b_1}&{b_2}&{b_3}\\{c_1}&{c_2}&{c_3}\end{vmatrix}}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{}^4_2\\\mathrm{He}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{}^4_2\mathrm{He}" align="middle" alt="{}^4_2\mathrm{He}" title="{}^4_2\mathrm{He}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{}^4_2\mathrm{He}
[tex]{}^4_2\mathrm{He}[/tex]--></a>
<a href="javascript:void(0);" onclick="replaceText(\'{\\\lim_{n\\\to{\\\infty}}x_n}\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;" style="text-decoration: none;">
<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?{\lim_{n\to{\infty}}x_n}" align="middle" alt="{\lim_{n\to{\infty}}x_n}" title="{\lim_{n\to{\infty}}x_n}" />
<!-- http://www.forkosh.dreamhost.com/mimetex.cgi?{\lim_{n\to{\infty}}x_n}
[tex]{\lim_{n\to{\infty}}x_n}[/tex]--></a>
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div>
</td>
</tr>';
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
That's been in the Post.template.php
(I know, that code is unnecessarily long, but I don't find an Idea to shorten it. I have some problems with the many backslashes. Look Here (http://www.simplemachines.org/community/index.php?topic=323844.msg2157110#msg2157110) )
at the next we did changes in the../Themes/default/index.template.php
we search:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
and insert above:
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
<script type="text/javascript" src="', $settings['default_theme_url'], '/tex/tabcontent.js"></script>
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
at next we search:
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
and insert above:<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/tex/tabcontent.css" />
<!--/////////////////////////////////////////////////////////////////////////////////////////////-->
That's it! ;)
At last we must upload:
.../Themes/default/tex/tabcontent.js
.../Themes/default/tex/tabcontent.css
They might be downloaded by:
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
or from my post :)
Maybe we upload the new Symbol, I made the background transparent, and it looks better ;)
.../Themes/default/images/bbc/tex.gif
CHANGE IS VALID FOR ALL THIS VERSION RC3?
puedes obtener el siguiente símbolo, usando tus códigos latex? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sitmo.com%2Fgg%2Flatex%2Flatex2png.2.php%3Fz%3D100%26amp%3Beq%3D%255Ccong&hash=86334940429b00bf67a75712c9d6284db10e193b)
HI,
today I updated SMF to 1.1.11. But now there ist an Problem with the Subs.php
If I make a preview, all Images are shown correctly. But in the post all backslashes are removed. In the Database the entry is correctly.
Has anybody an idea?
Has nobody an Idea with the backslash-problem? :'(
Hello,
is your offer still valid?
forkosh changed his site, and blocked now all external requests....
Quote from: dr.wills on November 14, 2009, 02:27:40 PM
One more suggestion though
MimeTex looks worse than LaTeX
So if you want to use high quality math symbols, substitute the following link
http://latex.codecogs.com/gif.latex?
Comparision
MimeTex
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forkosh.dreamhost.com%2Fmimetex.cgi%3Fc%3D%255Clim_%257Bn%2520%255Cto%2520%255Cinfty%257D%255Csum_%257Bk%3D1%257D%255En%2520%255Cfrac%257B1%257D%257Bk%255E2%257D%3D%2520%255Cfrac%257B%255Cpi%255E2%257D%257B6%257D&hash=d168ba315b671fe93da4cc5636063e9965809b19)
Latex
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flatex.codecogs.com%2Fgif.latex%3Fc%3D%255Clim_%257Bn%2520%255Cto%2520%255Cinfty%257D%255Csum_%257Bk%3D1%257D%255En%2520%255Cfrac%257B1%257D%257Bk%255E2%257D%3D%2520%255Cfrac%257B%255Cpi%255E2%257D%257B6%257D&hash=627f934687e2dfd51e6594e53441bfaca138f180)
Hello, is it possible to update it to make it compatible with SMF 2.0.2?
Thank you.
Forget it, i made it by my self:
Now i need someone that make compatible the modify by Unregistriert (http://www.simplemachines.org/community/index.php?topic=227605.msg2160676#msg2160676) for SMF 2.0.2.
Anyone so expert can make it?
Thank you.
Dear All,
I installed the mimtex mod to my forum (with some manual editing to place everything correctly in the Subs-Editor). But mimetex only supports the math environment of latex, and this in a suboptimal fashion.
To make it prettier I use the link given above (which I'm not allowed to post...).
BUT: If it paste some latex code from some text editor, neither mimetex nor the codecogs works anymore. (I tried with various text editors...)
Both encounters unknown characters for different reasons (I believe).
If I delete all spaces that I copied from the editor and use the space bar in the SMF editor, it works.
Since I like the codecogs version better anyways I tried a little around with this first. If you copy the same latex code right after the question mark of the link (as it is done in the Subs.php via
http://latex.codecogs.com/gif.latex?$1
) it works all right.
The problem is the character set of the URL space. So you have to replace e.g. a space with %20.
This can be actually done with the rawurlencode function of php.
What I tried is:
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => '<img src="../cgi-bin/mimetex.cgi?$1" alt="$1" border="0" align="absmiddle" /><br /><img src="http://latex.codecogs.com/gif.latex?', rawurlencode('$1'),'" alt="$1" border="0" align="absmiddle" />',
but it won't work.
I tried to break it down and tried a much simpler version of the code. What works is
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => (rawurlencode('bla blub %123 '),
),
As expected, whatever I write in my post, I get the URL version of the string 'bla blub %123 '.
What not works is:
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => (rawurlencode('$1'),
),
Does any of you have an idea how I can get this working? Do I need to make $1 a global variable first or something like that?
Thanks a lot
Jochen
PS: I have no idea on php, but I know some IDL/fortran/python...
I'm trying to get Latex to work on 2.0.8 without success. I did the manual install, and tried both bmi.ath.cx/cgi-bin/mimetex.cgi?$1 and latex.codecogs.com/gif.latex?
The first just gives an error image (little blue and green rectangle) and the second produces no image at all.
I notice that even on this webpage, that error rectangle is appearing wherever there is supposed to be a latex image. Is the web address just not working anymore?
Nevermind. I got it to work with the last posters suggestion. Thanks!
My Latex just stopped working today. I was using latex.codecogs.com/gif.latex?
Did this get disabled? Is there something else I can use in place of this?
By the way I just upgraded to 2.09 (but after latex stopped working, so that's not the issue).
Any help would be appreciated.
i need help for instal in 2.0.10 thanks
Quote from: DrSteve on March 03, 2015, 04:48:39 PM
My Latex just stopped working today.
.....
Any help would be appreciated.
Any solution? Thanks.