Archive for the ‘Uncategorized’ Category

Removing the border

Wednesday, May 6th, 2009

As it has been asked in this post, here is the solution. You may notice the border around equation in your the Blogger blog. The border is from Blogger template CSS its-self, not from jsTeXrender. To get rid of the border, you will need to edit Blogger Template and set the border width, for the example

.post img {
border:0px solid #fff;
}

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

Hello equation!

Monday, April 21st, 2008

Welcome to my blog. This is my first post. Equations are rendered by http://yourequations.com! Here is an example:

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

To enable it in your WordPress blog, please visit this tutorials.