Archive for April, 2009

No code Pop-up right now

Friday, April 17th, 2009

Since it has been complained much about LaTeX code pop-up embedded in the render equation images, I decide to remove it now. The users will do not be interfered by such pop-up. However, you will be unable to copy the raw LaTeX code from the equations. Please feel free to express your opinions if you still need the code pop-up.

How to install jsTeXrender for phpBB 3.0.x forums

Sunday, April 5th, 2009
It’s easy to install our JavaScript LaTeX equation render engine to phpBB 3.0.x. Please remember that you will install this script only one time and run it forever. Once you have installed the renderer, the user can post the LaTeX equation with TEX BBCode, e.g.,

Code: Select all
[tex]f(x)=\int_{-\infty}^xe^{-t^2}dt[/tex]

and the output should be

f(x)=\int_{-\infty}^xe^{-t^2}dt

How to embed the render to phpBB 3.0.x forums

  1. From Administrator Control Panel, go to Styles->Style components->Templates->prosilver->Edit
  2. Select template file overall->overall_footer.html to edit
  3. Please get jsTeXrender JavaScript from http://yourequations.com
  4. Add the render JavaScript before </body> tag (see below figure)Please see the below figure for the demonstrationImage

How to enable BBCode

  1. From Administrator Control Panel, go to Posting->BBCodes->Add a new BBCode
  2. Add to the BBCode usage with this code
    Code: Select all
    [tex]{TEXT}[/tex]

    and add to the HTML replacement with this code

    Code: Select all
    <pre lang="eq.latex">{TEXT}</pre>

    Please see the below figure for the demonstration

    Image

Optional

  • You can use any custom BBCode instead of
    Code: Select all
    [tex]...[/tex]

    e.g.,

    Code: Select all
    [eq]...[/eq]

    or

    Code: Select all
    [math]...[/math]
  • You can use CODE instead of PRE tag as state the difference in docs.
  • You can select Settings->Display on posting page to add BBCode Command Button to editor.
  • You can edit Help line. This field contains the mouse over text of the BBCode.

If you are using phpBB 2.0.x forums, please see this instruction.

Please read more Tutorials

How to install jsTeXrender for phpBB 2.0.x forums

Sunday, April 5th, 2009
It’s easy to install our JavaScript LaTeX equation render engine to phpBB 2.0.x. Please remember that you will install the script only one time and run it forever. Once you have installed the renderer, the user can post the LaTeX equation with TEX BBCode, e.g.,

Code: Select all
[tex]f(x)=\int_{-\infty}^xe^{-t^2}dt[/tex]

and the output should be

f(x)=\int_{-\infty}^xe^{-t^2}dt

Note: For phpBB 2.0.x forums, you have to edit bbcode.php and overall_footer.tpl files manually. (See instruction for phpBB 3.0.x)

How to embed the render to phpBB 2.0.x forums

Code: Select all
#--------[open]-----------------------------------------------------
/templates/subSilver/overall_footer.tpl
#--------[find]-----------------------------------------------------
</body>
#--------[before, add]----------------------------------------------
<script type="text/javascript" src="http://tex.yourequations.com/"></script>

How to enable BBCode

Code: Select all
#--------[open]-----------------------------------------------------
/includes/bbcode.php
#--------[find]-----------------------------------------------------
// Remove our padding from the string..
#--------[before, add]----------------------------------------------
//[tex]latex_equation_here[/tex]
$text = preg_replace('/\[tex\](.*?)\[\/tex\]/ie',
"'<pre lang=\"eq.latex\">$1</pre>'",
$text);

Optional

  • You can use any custom BBCode instead of
    Code: Select all
    [tex]...[/tex]

    e.g.,

    Code: Select all
    [eq]...[/eq]

    or

    Code: Select all
    [math]...[/math]
  • You can use CODE instead of PRE tag as state the difference in docs.

Please read more Tutorials

How to install jsTeXrender for WordPress blogs

Saturday, April 4th, 2009
If you are using the WordPress blogs, it’s easy to install our LaTeX equation render using wp-jstexrender plugin for WordPress. After you have installed the plugin, you can write the LaTeX equation within the PRE or PRE tag in HTML mode of the WYSIWYG editor in WordPress, e.g,

Image

For the example,

Code: Select all
<pre lang="eq.latex">
\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx
=\frac{22}{7}-\pi
</pre>

that will give the result

\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx
=\frac{22}{7}-\pi

DOWNLOAD: Please visit wp-jstexrender plugin page to download, the installations are posted there.

Please read more Tutorials

How to install jsTeXrender for Blogger blogs

Saturday, April 4th, 2009
If you are using Blogger blogs, you can easily embed our JavaScript LaTeX equation render engine through the HTML/JavaScript widget in Blogger’s drag-and-drop Layout editor. After you have installed the renderer, you can write the LaTeX equation within PRE or CODE tag in edit HTML mode of the WYSIWYG editor in Blogger, e.g,

Image

For the example,

Code: Select all
<pre lang="eq.latex">
\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx
=\frac{22}{7}-\pi
</pre>

that will give the result

\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx
=\frac{22}{7}-\pi

How to insert JavaScript LaTeX equation render engine in Blogger

  1. From Dashboard, click the Layout of your blog
  2. Click Add a Page Element->HTML/JavaScript widget and Add to Blog
  3. Please get the jsTeXrender JavaScript from http://yourequations.com.
  4. Paste the JavaScript to the widget (see the below figure for the demonstration)Image
  5. Save changes and drag the HTML/JavaScript widget to the footer section or after the content (see the below figure for the demonstration)Image

Please read more Tutorials