WP QuickLaTeX

June 26, 2024

WP QuickLaTeX Plugin

Advanced LaTeX plugin. Native LaTeX syntax. Allows custom preamble, TikZ and other packages. Zoom-independent visual quality (SVG).

Insert formulas & graphics in the posts and comments using native LaTeX shorthands directly in the text. Inline formulas, displayed equations auto-numbering, labeling and referencing, AMS-LaTeX, TikZ, custom LaTeX preamble. No LaTeX installation required. Easily customizable using UI page. Actively developed and maintained. Visit QuickLaTeX homepage for more info.

  • Standard LaTeX expressions can be cut and pasted directly into WordPress posts, pages, and comments; display environments require no enclosures, other expressions require only a surrounding $..$ or \[..\]. No need for enclosing tags [latex] ... [/latex].
  • Correct vertical positioning of inline formulas relative to baseline of surrounding text. Say “NO” to jumpy equations produced by other plugins!
  • SVG vector graphics support, so that formulas are crisp regardless of scaling in browser.
  • (AMS)LaTeX displayed math environments support: equation, align, gather, multiline, flalign, alignat, etc.
  • Automatic numbering of displayed equations. Override autonumbering with \tag{} LaTeX command.
  • Equation hyper-referencing by standard LaTeX rules with \label{}, \ref{}.
  • Custom LaTeX document preamble, allowing added \usepackage{} and \newcommand{}.
  • TikZ and pgfplots graphics package support.
  • Preview formulas in comments before publishing. Additionally AJAX Comment Preview plugin should be installed to enable this feature.
  • Meaningful error messages for mistakes in LaTeX code.
  • Precise font properties tuning: size, text and background color.
  • Easy style customization using UI or CSS file.
  • No LaTeX installation is required.
  • QuickLaTeX.com automatically provides formula images, which are then cached on user’s server.
  • Administrative settings page for setting global parameters; AJAX-ified.

Just place LaTeX math expressions into your text and enable QuickLaTeX on the page by [latexpage] command.
WP QuickLaTeX will convert them to high-quality images and embed into post. Inline formulas will be properly aligned with the text.
Displayed equations will be auto-numbered by LaTeX rules.
To see plugin in action please visit math-pages on my blog, e.g. Central Differences,
Cubature formulas for the unit disk, Smooth noise robust differentiators, etc.

Installation

WP QuickLaTeX is based on the free web service QuickLaTeX.com and doesn’t require
LaTeX to be installed on user’s server or hosting account. Just install the plugin and you are good to go.

  • Download WP QuickLaTeX plug-in.
  • Unzip the plugin file and upload its content to wp-content/plugins folder of your blog.
  • Activate WP-QuickLaTeX through the ‘Plugins’ menu in WordPress, adjust its settings if needed.

Screenshots

  1. LaTeX - enabled post in WordPress editor.

    LaTeX - enabled post in WordPress editor.

  2. Same post - published.

    Same post - published.

  3. TikZ drawing inclusion (up: source code in the post editor, down: published post).

    TikZ drawing inclusion (up: source code in the post editor, down: published post).

  4. Admin page - Basic settings.

    Admin page - Basic settings.

  5. Admin page - LaTeX Syntax Sitewide & Custom preamble

    Admin page - LaTeX Syntax Sitewide & Custom preamble

  6. Admin page - Image format and other system settings.

    Admin page - Image format and other system settings.

  7. Debug Mode - Error message triggered by misspelled <code>\sqrt</code> command.

    Debug Mode - Error message triggered by misspelled \sqrt command.

FAQ

How do I add LaTeX to my posts?

There are three possible ways:

  • Place [latexpage] somewhere on the page, post, or comment. Place LaTeX expression surrounded by $..$, \[..\] or a display environment \begin(equation}..\end{equation} (or align, gather, multiline, flalign, alignat).
  • Enable ‘Use LaTeX Syntax Sitewide’; then it is not necessary to place [latexpage].
  • Wrap formulas with [latex] ... [/latex] (this gives compatibility with previously-written “legacy” pages).

In any case plugin will do automatic/custom equation numbering based on LaTeX rules.
Check plugin home page for more information on features, examples, tips & tricks.

How can I send bug reports or request new feature?

Please use comments on the plugin’s web page WP-QuickLaTeX.
I’ll do my best to help you.

Changelog

3.8.8

  • More fixes to prevent XSS attack on admin settings page (suggested by WPScan team).
  • Minor changes to improve PHP code (suggested by Mike Witt).

3.8.7

  • Added extra checks on input settings on admin page (to prevent the possibility of XSS attack).
  • Minor changes and new version release.

3.8.6

  • Plugin and servers have been switched to work in HTTPS mode.

3.8.5

  • Fixed issue with retrieving settings from database reported by Ned Zimmerman.
  • Minor code polishes to silence the notices from PHP interpreter.

3.8.4

  • Added compatibility with PHP7.

3.8.3

  • Image size reduction using OptiPNG.
  • Minimized memory usage. Useful for restricted PHP configurations.

3.8.2

  • Added support for $latex ... $ syntax for easy switching from WP-LaTeX ;).
  • Server has been upgraded. Now QuickLaTeX server is located in Germany.

3.8.1

  • Switched to non-blocking connection with server to avoid delays/freeze if server is down.

3.8.0

  • Added rendering to SVG.
  • Fixed minor bug on a server side.

3.7.9

  • Fixed critical bug in parsing. Update is strongly recommended.
  • Minor changes in settings page.

3.7.8

  • Diagnostics on HTTP connection errors caused by server/PHP configuration have been added.

3.7.7

  • Server has been updated to include newest packages and changes.
  • Settings page has been improved.
  • Fixed few minor bugs in plugin.
  • Improved rendering of TikZ pictures with overlays.
  • Improved support of chemistry-related packages: ChemFig, myChemistry.

3.7.6

  • Fixed sanitization of LaTeX source code to be placed in alt attribute. Now QuickLaTeX markup passes HTML validation without errors/warnings.

3.7.5

  • Added compatibility with AJAX Comment Preview plugin to allow formulas preview in comments before publishing. Just update QuickLaTeX to 3.7.5 and install AJAX Comment Preview. You can test this feature on any post on my site .

3.7.4

  • Use ! before [latexpage] tag to escape it from processing.
  • Disabled $$ .. $$ processing on non-[latexpage] pages.

3.7.3

  • Equation hyper-referencing with \label{}, \ref{}.
  • Fixed bug with CSS styles for TikZ drawings.

3.7.2

  • Fixed vertical misalignment caused by CSS collisions with some “bossy” themes.

3.7.1

  • Support of native LaTeX syntax embedded directly in the posts. Copy-paste exchange with offline LaTeX papers.
  • TikZ graphics support, including pgfplots and gnuplot commands.
  • Automatic displayed equations numbering facility; \tag{} overrides autonumbering.
  • Styles are in separate CSS file now for easy customization.
  • Redesign of UI admin page. AJAX submission of options
  • Improved rendering quality (PNG image output).
  • Support of Thesis theme.
  • Numerous small fixes and improvements.
  • Server software is updated to support TexLive 2010 package.

3.0.0

  • Server QuickLaTeX.com and plugin WP-QuickLaTeX have been completely rewritten.
  • Support of multiline environments.
  • Font properties tuning.
  • Custom LaTeX document preamble support.
  • UI Settings page.

2.5.4

  • Support of the latest WordPress 3.0.

2.5.3

  • Convert entities from extended HTML symbol table to ASCII for correct compilation by LaTeX.

2.5.2

  • Optimize cURL options to support safe mode.

2.5.1

  • Support of $$!..$$ to center formulas horizontally (displayed formulas).

2.5

  • Show detailed error messages from LaTeX compiler.
  • Increase speed by formula images caching.
  • Support of $$..$$ tags.

2.4.1

  • Increase speed by minor code refactoring.

2.4

  • Increase speed by using cURL if allowed by the server configuration.
  • Support of restricted servers with disabled allow_url_fopen.

2.3

  • Increase speed by formula properties caching.

Details

  • Version: 3.8.8
  • Active installations: 5,000
  • WordPress Version: 2.8
  • Tested up to: 6.5.5

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars