News:

Wondering if this will always be free?  See why free is better.

Main Menu

Tag LaTeX (Mimetex) Public

Started by Vito Álvaro, March 10, 2008, 11:59:09 PM

Previous topic - Next topic

Arantor

Well, I doubt the mod author will update it; it was over a year and a half ago this was submitted...

hefesto

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
Code (find) Select
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),


Code (after it, add) Select
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
Code (find) Select
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),


Code (after it, add) Select
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.

Josef

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 ;)

Arantor

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.

marcozambi

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 :)

scimmiotto

can someone send me the update mod? i know that is not permitted to publish it without the author's permission!
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

Arantor

There's no updated mod, only notes on how to do it. You will have to follow the notes yourself.

Edson

Quote from: Unregistriert on July 15, 2009, 04:07:29 PM
HI  :)

Now I wrote my own modification of this modification.



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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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>
&nbsp;
<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 )









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?
Uso Theme Default
Versión SMF 2.0 RC5

Unregistriert

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?

Unregistriert

Has nobody an Idea with the backslash-problem?  :'(

Unregistriert

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 [nofollow]?

Comparision
MimeTex


Latex


smartmouse

Hello, is it possible to update it to make it compatible with SMF 2.0.2?
Thank you.

smartmouse

#32
Forget it, i made it by my self:

smartmouse

Now i need someone that make compatible the modify by Unregistriert for SMF 2.0.2.
Anyone so expert can make it?

Thank you.

polit-talker

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...

DrSteve

I'm trying to get Latex to work on 2.0.8 without success. I did the manual install, and tried both hxxp:bmi.ath.cx/cgi-bin/mimetex.cgi?$1 [nonactive] and hxxp:latex.codecogs.com/gif.latex [nonactive]?

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?

DrSteve

Nevermind. I got it to work with the last posters suggestion. Thanks!

DrSteve

My Latex just stopped working today. I was using hxxp:latex.codecogs.com/gif.latex [nonactive]?

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.

mercelo

i need help for instal in 2.0.10  thanks

natasa (NT)

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.

Advertisement: