WP QuickLaTeX

Description

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.

Screenshots

  • LaTeX - enabled post in WordPress editor.
  • Same post - published.
  • TikZ drawing inclusion (up: source code in the post editor, down: published post).
  • Admin page - Basic settings.
  • Admin page - LaTeX Syntax Sitewide & Custom preamble
  • Admin page - Image format and other system settings.
  • Debug Mode - Error message triggered by misspelled \sqrt command.

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.

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.

Reviews

9. Juni 2023. 1 reply
I am extremely sorry for writting this review but people must know this plugin is outdated. I had massively used it since 2016 and have worked really well. However, during the last years / months it has not received enough updates (last update 3 years ago, not even "tested" on WP 6). It has gave problem some times (not rendering equation due to server problems or whatever) and since yesterday it hugely lags my website. This was the last drop to take the decision to change the plugin as it seems it will have less updates time to time... So I had to adapt all my posts (more than 100 full of equations) to another plugin that seems to be more active and has future. Thank you for creating this amazing plugin but if you are a new user don't get used to it / adapt equations to this plugin.
16. Septembar 2020.
Needed a plugin that would allow me add mathematical notation to web pages / blog posts. This one seems to be perfect for my needs, and worked well once I worked out that you need a shortcode block for the "latexpage" but all the rest of the content can go anywhere. (WordPress newbie here!) Initially I couldn't get the LaTeX content to appear inline with the rest of the text but the plugin author was very helpful in resolving that issue, which was caused by the theme's CSS settings. In case anyone else needs the solution, here it is: 1. Find a CSS file belonging to your theme that contains “img{display:block; …}” – 2. Remove the “display:block;” bit and save the file. 3. Clear the browser cache using Ctrl-F5.
25. April 2019.
I was looking for a latex plugin that accept packages, such as physics package, to be imported. This plugin does exactly the job, and it has lots more features.
18. Septembar 2018. 7 replies
Some sloppy code in there that I had to manually fix. Also, this plugin was last updated 2 years ago. For example, 'eqlabel' > null has broken a multitude of websites. Obvious fix is to deal with the typo, which shows me they didn't even test before deployment. For those that need to fix it before moving to something better, here's the "obvious" fix for that "eqlabel" snafoo: 'eqlabel' => null You can fix that in the plugin file at /your-websites-root-directory/wp-content/plugins/wp-quicklatex/wp-quicklatex.php
Read all 29 reviews

Contributors & Developers

“WP QuickLaTeX” is open source software. The following people have contributed to this plugin.

Contributors

Translate “WP QuickLaTeX” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

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.