How to install jsTeXrender for phpBB 3.0.x forums

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

Share this:
  • Digg
  • del.icio.us
  • StumbleUpon
  • TwitThis
  • Facebook
  • YahooMyWeb
  • Google Bookmarks

Random Posts

8 Responses to “How to install jsTeXrender for phpBB 3.0.x forums”

  1. [...] Display Equations on World Wide Web « How to install jsTeXrender for WordPress blogs How to install jsTeXrender for phpBB 3.0.x forums [...]

  2. Chunny says:

    I noticed that for \inline option the equations are not align. They are a bit lower than the actual line. How could I fix this?

    Thanks for creating such a useful Renderer System

  3. admin says:

    Hello Chunny,

    Internally, the outputs generated by our jsTeXrender are images enclosed with tag. Although its appearance is \inline style, however, it will not be exactly \inline as in real LaTeX document. Because, it does not know how to manage the surrounding text. It is a one of imperfect features of our software which is needed to be further developed. Sorry for inconvenience.

  4. oneofmany says:

    I’m using phpBB3 and just installed your LaTeX code. Works great, with one problem–equations always appear on a separate line in the final posting. Tried \w \inline to no avail. Either I’m using \inline incorrectly or there’s something else I’m missing. Otherwise it’s great. Thanks.

  5. Hydrolyze says:

    Just wanted to say hello all. This is my first post.

    I came to learn a ton here.

  6. admin says:

    @oneofmany

    Internally, we use <pre> tag to enclose the rendered equations. Therefore, it is expected to be a block not inline as in LaTeX. This should be improved in near future.

  7. celiaonegirl says:

    Just become a member in few minutes. Wanna send you guys a warm hello!
    Glad to be here with you!!

  8. Flockx says:

    hey,

    this is great and very easy to implement, but is it possible to get the equations in white? for a dark background? or do i have to have a white background?
    thanks !

Leave a Reply