TeX-Editor

Begonnen von reddragon, 11 Juli 2009, 17:09:05

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

reddragon

HI,

ich bin vor einigen Wochen zufällig in einem "Burning-Board" auf einen LaTeX-Editor gestoßen. Da ich auch eine Seite  für Studenten beteibe, wäre das natürlich super, wenn es das für das SMF geben würde.

Kurze Rede, langer Sinn, das gibt es schon fast  :respekt:

Es funktioniert folgendermaßen
Ähnlich wie wir für Zitate einen Befehl haben, [quote][/quote] gibt es den nun für Formeln: [tex][/tex]

Man gibt also folgendes ein:
[tex]lim_{n o infty}sum_{k=1}^n rac{1}{k^2}= rac{pi^2}{6}[/tex]

und erhält folgende Ansicht:



Hier ist es zu finden:
http://custom.simplemachines.org/mods/index.php?mod=1111


Es lässt sich ganz einfach in unsere Bridge integrieren:

erste änderung findet hier statt:
...modules/Forum/smf/Sources/Subs.php

zu suchen ist folgender Abschnitt:
                  ),
                        array(
                                'tag' => 'white',
                                'before' => '<span style="color: white;">',
                                'after' => '</span>',
                        ),


es wird direkt dahinter folgendes eingefügt:

            array(
            'tag' => 'tex',
            'type' => 'unparsed_content',
            'content' => '<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?$1" alt="$1" border="0" align="absmiddle" />',
         ),



also nächstes ist hier was zu ändern:
...modules/Forum/smf/Themes/default/Post.template.php

hier sucht Ihr z.B. folgenden Abschnitt:

                  'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),

Also wird davor folgender Code eingefügt:

                           'tex' => array('code' => 'tex', 'before' => '[tex]', 'after' => '[/tex]', 'description' => $txt['latex']),



zu letzt müsste noch folgendes in die

...modules/Forum/smf/Themes/default/languages/Modifications.english.php
...modules/Forum/smf/Themes/default/languages/Modifications.german.php


//- LaTeX
$txt['latex'] = 'LaTeX';



Als letzter schritt wird noch die in dem Download befindliche Date in das verwendete Theme-verzeichnis geladen:

...modules/Forum/smf/Themes/mx-port/images/bbc/tex.gif

Fertig

reddragon

[tex]Da diese Modifikation doch recht sparsam ist, und speziell für Anfänger kaum zu bewältigen, habe ich die mal stark erweitert:

Wenn man nun auf das Icon klickt, erscheint zusätzlich ein verdecktes feld, mit 3 Tabs aus dem die benötigten Symbole zusammen geklickt werden können.

Siehe Bild:


live getestet werde kann es hier:
http://cnccnc.cn.funpic.de/__math-test/___test/index.php?action=post;topic=1.0;num_replies=2
oder
http://cnccnc.cn.funpic.de/__math-test/modules.php?name=Forum&action=post;board=1.0


im großen und ganzen kann die original modifikation wieder übernommen werden:
Zitat von: reddragon am 11 Juli 2009, 17:09:05

...modules/Forum/smf/Sources/Subs.php

zu suchen ist folgender Abschnitt:
                  ),
                        array(
                                'tag' => 'white',
                                'before' => '<span style="color: white;">',
                                'after' => '</span>',
                        ),


es wird direkt dahinter folgendes eingefügt:

            array(
            'tag' => 'tex',
            'type' => 'unparsed_content',
            'content' => '<img src="http://www.forkosh.dreamhost.com/mimetex.cgi?$1" alt="$1" border="0" align="absmiddle" />',
         ),





...modules/Forum/smf/Themes/default/Post.template.php

hier sucht Ihr z.B. folgenden Abschnitt:


                  'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),

Also wird davor folgender Code eingefügt:

                           'tex' => array('code' => 'tex', 'before' => '[tex]', 'after' => '[/tex]', 'description' => $txt['latex']),


Diesen Abschnitt benötigen wir nicht mehr!!!!!!!

zu letzt müsste noch folgendes in die

...modules/Forum/smf/Themes/default/languages/Modifications.english.php
...modules/Forum/smf/Themes/default/languages/Modifications.german.php


//- LaTeX
$txt['latex'] = 'LaTeX';



Als letzter schritt wird noch die in dem Download befindliche Date in das verwendete Theme-verzeichnis geladen:

...modules/Forum/smf/Themes/mx-port/images/bbc/tex.gif

Fertig

Also bis auf die oen genannte Post.template.php kann der mod übernommen werden.

Meine Änderungen sehen wie folgt aus:

.../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.
über dieser Zeile
muss folgendes eingefügt werden:
/////////////////////////////////////////////////////////////////////////////////////////////
      echo '
                    var currentMathSwap = false;
         function swapMathOptions()
         {

            document.getElementById("postMoreMathOptions").style.display = currentMathSwap ? "" : "none";

            currentMathSwap = !currentMathSwap;
         }';
/////////////////////////////////////////////////////////////////////////////////////////////

(hier habe ich die "swapOption" gedoppelt, die normalerweise unter "Erweiterte Optionen.." unterhalb des Textfeldes zum Einsatz kommt.)



als nächstes wird folgende Zeile gesucht:
   // A hidden form to post data to the spell checking window.

auch hier drüber fügen wir folgendes ein:
/////////////////////////////////////////////////////////////////////////////////////////////
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         swapMathOptions();
      // ]]></script>';
/////////////////////////////////////////////////////////////////////////////////////////////




jetzt wird der Bereich gesucht:
      echo '
            </td>
         </tr>';
   }

   // Now start printing all of the smileys.


und der sollte mit diesem hier ersetzt werden:
      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.

(Der neueCode wird also in das schon vorhandene "echo" integriert, und zwar vor dem </td>)


An dieser Stelle nochmal ein großes Dankeschön an siggi, der mein Javascriptproblem behoben hat :)


zum Schluss müssen wir nochmal folgende Zeile suchen:
// Finally the most important bit - the actual text box to write in!

und dadrüber fügen wir folgende Zeilen ein:
/////////////////////////////////////////////////////////////////////////////////////////////
<!--     passt hier nicht rein, füge ich im nächten Post dazu!!!   -->
/////////////////////////////////////////////////////////////////////////////////////////////


Das war es mit der
.../Themes/default/Post.template.php



(Ich weiß, der Code an dieser Stelle ist noch unnötigerweise sehr Aufwändig gestaltet, aber ich habe bislang noch keine Lösung dafür gefunden, denn das script was ich dafür vorgesehen habe, stellt sich mit den backslashes etwas an. Und HIER bei SMF hat bislang auch noch niemand eine Antwort gefunden...)





Jetzt müssen zum Schluss noch 2 Datein in den <head> eurer Seite:
Beim alten CMS hat die includes/my_header.php funktioniert, aber bei der 11er Version habe ich heute auch erst Hier erfahren, ist das wo anders:

Das gute Ding heißt includes/classes/Header.php an dessen Ende folgender Code eingefügt werden sollte: (bevor die php-Datei schließt)

if( isset($_GET['name']) && $_GET['name']=='Forum' ) {
// css
pmxHeader::add_style( 'modules/Forum/smf/Themes/mx-port/tex/tabcontent.css' );

// script
pmxHeader::add_script( 'modules/Forum/smf/Themes/mx-port/tex/tabcontent.js' );
}


An dieser Stelle  auch nochmal an siggi und JoergK ein großes Danke :)




Nun werden noch eben die Dateien in die dafür vorgesehenden Ordner kopiert, und fertig.
(in diesem Fall modules/Forum/smf/Themes/mx-port/tex/)


Die Dateien können Hier direkt, von der tollen Seite, wo ich das Tabscript gefunden habe, herungergeladen werden, oder aus dem Dateianhang:

Dann würde ich zum Schuss nochmal mein überarbeitetes Icon nutzen, da einfach besser in die Seite passt ;)

reddragon

so, hier nochmal die "große" Änderung, die oben nciht mehr rein gepasst hat.....



Zitat
zum Schluss müssen wir nochmal folgende Zeile suchen:
// Finally the most important bit - the actual text box to write in!


und dadrüber fügen wir folgende Zeilen ein:

/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// 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]--></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>';

/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////


Das war es mit der
.../Themes/default/Post.template.php


(Ich weiß, der Code an dieser Stelle ist noch unnötigerweise sehr Aufwändig gestaltet, aber ich habe bislang noch keine Lösung dafür gefunden, denn das script was ich dafür vorgesehen habe, stellt sich mit den backslashes etwas an. Und HIER bei SMF hat bislang auch noch niemand eine Antwort gefunden...)