Page 1 of 1

LaTeX Renderer PHPbb3 extension & examples

Posted: Mon Apr 28, 2025 5:43 am
by admin
# LaTeX Renderer Extension for phpBB

This extension adds LaTeX rendering to phpBB using MathJax, supporting both inline and display equations in regular and print views.

## Features
- BBCode for inline LaTeX equations.
- BBCode for display LaTeX equations.
- Supports inline and display LaTeX syntax.
- LaTeX equations render in print view (`viewtopic.php?view=print`) and print preview.

## Installation
1. Download the latest release from GitHub.
2. Extract the `bigbadaboom/latexrenderer` folder to `[ROOT]/ext/`.
3. Go to the Admin Control Panel > **Customize** > **Extension Management** > **Enable** `LaTeX Renderer`.
4. Clear the forum cache (ACP > **General** > **Purge Cache**).

## Requirements
- phpBB 3.2.0 or higher
- PHP 7.0 or higher

## Usage
- Print view: Access via `viewtopic.php?view=print` to see printer-friendly output with rendered equations.

Code: Select all

Inline with tex: [tex]E = mc^2[/tex]
Display with dtex: [dtex]\sum_{i=0}^n i^2[/dtex]
Inline: $E = mc^2$
Display: $$ \sum_{i=0}^n i^2 $$
Inline with tex: \( E = mc^2 \)
Display with dtex: \[ \sum_{i=0}^n i^2 \]
Inline: $E = mc^2$
Display: $$ \sum_{i=0}^n i^2 $$

GitHub repository (download): https://github.com/Trashman0007/phpbb-latexrenderer
On phpBB official forum: https://www.phpbb.com/community/viewtopic.php?t=2662396