QuickLaTeX

 August 3, 2015 3.8.3. Image size reduction using OptiPNG, minimized memory usage. July 4, 2015 3.8.2. New server, compatibility with WP-LaTeX. December 24, 2014 3.8.1. Switched to non-blocking connections to server. November 15, 2012 3.8.0. Added rendering to SVG format. September 22, 2011 3.7.9. Fixed semi-critical bug in parsing. July 25, 2011 3.7.8. Handling of HTTP requests errors. May 9, 2011 3.7.7. Server update, bug fixes in plugin & chemistry packages support. February 22, 2011 3.7.6. Fixed markup to avoid HTML validation warnings. February 18, 2011 3.7.5. Preview formulas in comments before publishing. February 14, 2011 3.7.4. Escaping facility for [latexpage] tag. February 10, 2011 3.7.3. Equation referencing by \label{} and \ref{},etc. February 4, 2011 3.7.2. Resolved CSS collisions with some themes. February 3, 2011 3.7.1. Native LaTeX syntax support, TikZ graphics, etc. October 25, 2010 3.0.0. Custom LaTeX preamble, font properties tuning, etc.

Introduction

This is homepage of QuickLaTeX service which allows easy inclusion of math formulas and graphics in WordPress using LaTeX & TikZ. One of the main advantages over similar services is capability of using native LaTeX syntax directly in the posts, pages and comments without special enclosing tags for every equation.

Features

(Sincere gratitude to Kim Kirkpatrick for his contributions to this plugin. Miss you my dear friend, may your soul rest in peace.)

• Support of native LaTeX shorthands embedded in the text:
!$...$, $...$, $$...$$, $$...$$ and environments: equation, align, displaymath, eqnarray, multline, flalign, gather, and alignat.

• Equation auto-numbering/labeling/referencing by LaTeX rules. Manual equation number setup by \tag{} command, label by \label{} and referencing by \ref{} anywhere in the text.

• Allows custom LaTeX preamble to use additional \usepackage{} and \newcommand{}.

• TikZ graphics support. User can write TikZ commands directly in the post using \begin{tikzpicture} ... \end{tikzpicture}. QuickLaTeX will render them into image such that text on the picture and on the page will be of the same size.

• Correct vertical formula positioning relative to baseline of surrounding text. QuickLaTeX calculates correct vertical alignment for the formulas and places them on the text line properly without “jumpy” look.

• Rendering into vector image format SVG, which means formulas are always crisp and preserve high-resolution quality regardless of zooming factor in the browser. Automatic detection of browser capabilities and silent fall back to raster PNG images for older browsers. This is essential for modern high-dpi screens (Retina, Super Amoled, etc.)

• Meaningful error messages for mistakes in LaTeX code.

• No LaTeX installation is required on user’s hosting account. You just need to install WP-QuickLaTeX plugin for WordPress. QuickLaTeX is based on custom made software for LaTeX to WordPress conversion, highly optimized and integrated to server architecture.

• Easy-to-use administrative page for parameters tuning.

• Although using native LaTeX syntax is recommended way in QuickLaTeX, legacy equations enclosed with $...$, $...$ are still supported. No need to change existing pages.
Just use native LaTeX syntax for new pages.

For quick preview of all the features feel free to check math pages on this site – it is fully powered by QuickLaTeX.

Crash course

Place [latexpage] in the post, page or comment to activate LaTeX syntax, e.g.:

QuickLaTeX will compile it to:

Example of tikZ graphics inclusion (you can copy and paste it in WordPress post for tests):

\begin{tikzpicture}
[+preamble]
\usepackage{tikz}
\usepackage{pgfplots}
[/preamble]
\begin{axis}
\end{axis}
\end{tikzpicture}


QuickLaTeX will render it into image and place on the page horizontally centered.

Another example of tikZ picture rendered by QuickLaTeX (shown without source code and taken from exellent http://www.texample.net/ collection):

Several other tikZ examples can be found here.

Installation

The simplest way is to install WP-QuickLaTeX using “Plugin->Add new” command in your administrative interface.

Based on statistics, QuickLaTeX server handles about 2 requests per second for formulas generation. QuickLaTeX has been downloaded for about 4000 times. If you want your site to be included in the list below, please send me a link.

Stochastic Analysis Seminar
Princeton University. Please note that all figures on the website are generated by QuickLaTeX too (using the TikZ package).
I’m a bandit
Random topics on optimization, probability, and statistics.
A blog By Sébastien Bubeck devoted to mathematics of sequential decision making.
Alex Chinco’s research notebook
Personal website of finance PhD student at NYU. Great example of professional QuickLaTeX usage – inline/display equations with auto-numbering, custom packages and more.
eBay Tech Blog
Have excellent series of posts devoted to fast computation of logarithms.
Building Intelligent Probabilistic Systems
Machine learning, statistics, neuroscience, everything…
A blog of the Harvard Intelligent Probabilistic Systems group. Example of LaTeX-enabled post: The Central Limit Theorem.
Walking Randomly
Blog by Mike Croucher
The prominent blog in the field of mathematical software.
Hyndsight
A blog by Rob J. Hyndman on doing research in sta­tis­tics
Please take a look at Forecasting: principles and practice online book by the same author.
Some TeX Developments
Joseph Wright’s blog on TeX-world news and developments. He is one of the most respected guru on {TeX} Q&A, member of the LaTeX Project and he is on the Committee of the UK TeX User Group (UK-TUG).
Chemistry and LaTeX
Clemens Niederberger’s blog on how to marry chemical diagrams of any kind with $\LaTeX$. He is the author of myChemistry – advanced package for high-quality typesetting of “organic structures, empirical formulæ and chemical reactions” with $\LaTeX$. If you are looking for professional examples of QuickLaTeX usage in chemistry context – this is the site you don’t want to miss.
Multiprecision Computing Toolbox for MATLAB
Software which enables arbitrary precision computing in MATLAB.
The Spectrum Of Riemannium
Physmatics and the Polyverse in a nutshell.
Teaching Math Strategies – For Solid Math Learning
MathFour.com is a free website with regularly updated and dynamic content for creatively teaching math – in both classrooms and homeschools! It’s based out of Houston, Texas, but applicable to a global math audience.

Usage of QuickLaTeX.com, WP-QuickLaTeX is free under a linkware license. Which means that service can be used (a) on non-commercial websites (b) with visible and direct backlink to QuickLaTeX.com or plugin’s homepage.

Most people keep 'Powered by WordPress' link, why not let others know about QuickLaTeX service too? How about this:

Powered by WordPress with QuickLaTeX

A commercial license is available which removes the requirement for attribution. Contact me for details.

***
I appreciate suggestions for further development of the service, so feel free to email me any advice. Your feedback is a driving force of my motivation.

(40 votes, average: 4.80)

1. MrBrown
Posted May 25, 2009 at 6:27 am | #

nice plugin, just one question: why you don’t provide also MathML output for the formulas? At least for browsers that support it, and generate the image for other browsers?

• Posted May 25, 2009 at 11:30 am | #

Thank you for the good question!

Main reason is that support of MathML in the browsers is not mature enough. They still render MathML equations in poor quality.

For example, LaTeX produces nice looking formula . Whereas Firefox renders the same formula in MathML notation as: with jumping square root sign.

Another thing is that there are several LaTeX to MathML converters but none of them solves the task perfectly.

I think MathML is future of math publishing in the web and I will include it in WP-QuickLaTeX someday, but for the moment LaTeX-to-image conversion method is the best in the sense of rendering quality.

• MrBrown
Posted May 25, 2009 at 4:11 pm | #

Thanks for the very clear reply.
Since I need to display math formulas in an academic website, I am using a mixed solution based on Javascript (JS does the conversion from LaTeX) that displays MathML in Firefox and creates an image for other browsers.

Now, my solution works quite well, but there are some alignment problems with text and formulas’ images. So I am very interested in your solution but for some reasons, I can’t use QuickLaTeX.com service but I can ask to my co-workers to set up a “dedicated” conversion service (the main reason is that the website has a lot of traffic and we can install LaTeX software).

Can I have more info about how your conversion service works? And, would be possible to have a copy of the conversion script? If you want, you can send to me also a private message.

• Nathanaël Fijalkow
Posted May 12, 2014 at 8:42 pm | #

Your answer from 2009 says MathML isn’t mature enough. Is it still the case today?

• Posted May 12, 2014 at 8:58 pm | #

Well, you can easily judge for yourself.

Just one example as for functionality. Typical LaTeX distribution includes hundreds of additional packages for all sorts of things and has size of a DVD. I am having a hard time imagining how MathML can replace all of the functionality and extensions.

Check tikZ graphics support as one of the examples above.

LaTeX is a clever markup & programming language itself – probably it would be much better to use it directly than re-inventing the wheel. QuickLaTeX is trying to follow this idea. It allows using native LaTeX markup and extensions relying on complete LaTeX distribution on a server side.

• Jana
Posted April 10, 2020 at 2:20 pm | #

Hi,

May I know how to use this QuickLaTex plugin to write Physics formulae for radioactivity?

For example to write the formulae for:
Uranium ((_92^235)U) decays into Thorium ((_90^231)Th)

This: ((_92^235)U) can be rendered in Word document to show the radioactivity symbol for uranium-235.

I tried using the open and close tag, but it doesn’t work. Is it possible you could provide some sample tag to use for Physics? Thank you very much. • Posted April 10, 2020 at 3:01 pm | # Apparently you need to use some special package for this. Quick google search suggests mhchem package, e.g.: ! [preamble] \usepackage{mhchem} [/preamble] \ce{^{231}_{90}Th+}  Renders to  [preamble] \usepackage{mhchem} [/preamble] \ce{^{231}_{90}Th+} . Of course, you just need to put the package into global preamble of your website (to avoid its inclusion in every formula). See QuickLaTeX->Advanced settings. 2. Posted June 16, 2009 at 5:55 pm | # When I have installed your plugin I get an error: Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /plugins/wp-quicklatex/wp-quicklatex.php on line 76 Any idea? • Posted June 16, 2009 at 6:15 pm | # This means that PHP function file_get_contents() is disabled on the server where you host your site. Some hosting companies do that as extra security measure. Now my plugin uses this function to get formula from the QuickLaTeX.com. I’m planning to add support of such restricted servers in the future versions. • Posted June 17, 2009 at 2:02 pm | # Thanks for the quick reply! • Posted June 22, 2009 at 4:52 pm | # I’ve made changes to fix this problem. Please download and try the latest version of the plugin. • Posted July 8, 2011 at 5:39 pm | # Hi! At first: great approach, the only plugin that supports real \textrm{\LaTeX} and not just typesetting of formulas. Very cool. Unfortunately it doesn’t seem to work with my free hosting service bplaced.net which is blocking sockets as far as I know. Is there any method to get it working? If it helps: The plugins Easy WP LaTeX and WP LaTeX work properly. Thx • Posted July 8, 2011 at 7:52 pm | # In order to offer advanced features you’ve mentioned – QuickLaTeX needs more complicated communication with server than other plugins do. Also we use several methods of communication – depending on hosting capabilities (we use WordPress kernel function for that) . I guess your hosting provider disables any possible approaches to get content from remote servers. Sorry, I cannot help with this. • Posted July 27, 2011 at 7:15 pm | # Hey, if anyone else got this issue: I moved over to the hoster square7.ch, now everything works fine. Thank you. 3. Posted August 4, 2009 at 2:22 am | # Hi there, I try to use your plugin to write a simple formula from least square method. The equation should have a beta hat = (X transpose X) inverse X transpose Y. I just don’t know how to get it right since I can not make the inverse sign (power -1) works right. I can do it with easy latex by this code , but your plugin can not do that. Any suggestion how to make it right? • Pavel Holoborodko Posted August 4, 2009 at 8:52 pm | # In LaTeX, if you want to write something like you should use this code: A^{-1} and not A^(-1) which is plain incorrect. For your particular formula we get: . • Posted August 6, 2009 at 4:14 pm | # OK thank, it works well. There is one more thing, I want to use a hat on the beta, I try , but it doesn’t work. Sorry, novice question. 4. Posted August 6, 2009 at 4:15 pm | # Wow, it works well with your plugin. Thank you very much. 5. Charlie Posted August 16, 2009 at 3:54 am | # Hi Pavel, I am getting: Error: Cannot create dvi file Is the service down? • Posted August 16, 2009 at 7:02 pm | # No, that means there is an error in you formula. When this happens QuickLaTeX shows error icon instead of the formula. If you drag mouse pointer to the area of that icon – tooltip with the detailed expanation of the error will be shown. See screenshot: here. 6. Posted August 18, 2009 at 8:00 pm | # Hi. I have simiral problem as Charlie. Using works, but doesn’t. I think, it’s because previously created formulas (matrices, more complex things than just “\cos”,…) works, new doesn’t. Error: Cannot create dvi file Thanks for answer ;). • Posted August 18, 2009 at 8:23 pm | # Thank you for the debugging!! I’m fixing this bug right now. • Posted August 19, 2009 at 4:17 am | # Fine. Now it works like a charm ;). Good job. 7. JorgeGT Posted August 24, 2009 at 11:39 pm | # Hello! Yours is a great service! but, just a pair of questions: Is there a way to get displaymath LaTeX output? If there isn’t, do you plan on implementing this on future releases of your rendering engine? Anyway, congratulations and thank you for your work! =) • JorgeGT Posted August 24, 2009 at 11:43 pm | # Well, I just discovered that \displaystyle does the trick ^_^ Sorry! you can delete this thread if you want… 8. Posted September 16, 2009 at 7:43 pm | # Hello from turkey. I tried other 3 wp latex plugin too. But yours best. (May be transparency or something else but yours best). I need to say that if you add more services to your plugin, this may perfect. And this is last one: If all servers down we may not add latex equations so can you add an option to convert pics with our server like wp-latex plugin? • Posted September 16, 2009 at 8:58 pm | # Hi Thanks! There are several unique features which make my service distinct from the others: correct formula positioning and meaningful error messages. Other services (like wordpress, mimitex,etc) don’t include these features which make them incompatible/interchangeable with my plugin. That is why I have no plans to support them in the future. As for the second question about self-hosted service – I’m not ready to share all the source code and scripts. Maybe I’ll do this in the future. 9. Posted September 19, 2009 at 2:35 am | # Hi! Thanks for the great work! I’ve got some problem with the “-” sign though. When I use something like “\sqrt{1 – 2}” in a formula, the renderer will drop the “-” and just show the squareroot of 12. When I write “\sqrt{1-2}” it works as it should. This is kind of annoying, because my formula editor always exports the tex-code with the whitespaces. And it works fine with ” + “, … Would it be much work to fix this? 10. Posted September 20, 2009 at 5:50 am | # And another bug: The first derivative of a function is displayed correctly as f ‘. The second derivative however drops both dashes, so if I write f ” it is just displayed as f. It does the same when I add a whitespace between the dashes. • Posted September 21, 2009 at 11:25 am | # Both bugs are fixed. Sometimes WordPress uses non ASCII encoding for simple symbols like minus or prime. Such extended encoding is not supported by LaTeX. That was the cause. Please download and check out the latest version of the plugin. Thank you very much for your help! 11. Posted September 29, 2009 at 8:11 pm | # Hi there, My website just crashed with the following formula: ” (0 – 2,27)^2 + (0 – 2,27)^2 + (0 – 2,27)^2 + (0 – 2,27)^2 + (0 – 2,27)^2 + (1 – 2,27)^2 + (1 – 2,27)^2 + (2 – 2,27)^2 + (2 – 2,27)^2 + (2 – 2,27)^2 + (3 – 2,27)^2 + (3 – 2,27)^2 + (3 – 2,27)^2 + (3 – 2,27)^2 + (3 – 2,27)^2 + (4 – 2,27)^2 + (4 – 2,27)^2 + (4 – 2,27)^2 + (4 – 2,27)^2 + (5 – 2,27)^2 + (5 – 2,27)^2 ” Replacing ” by the latex tags. Any ideas? 12. Posted September 29, 2009 at 8:20 pm | # Hi! I don’t see any problem with this formula: 13. Posted September 29, 2009 at 9:08 pm | # I do: http://www.janbroos.nl/ Got this error when activating this formula. Please respond when seen. I solved it by putting the formula out of latex, it is possible but not the best solution. • Posted September 29, 2009 at 9:16 pm | # I see correctly compiled formula on your site. No problems appearing. What do you mean by “error”? 14. Posted September 29, 2009 at 10:12 pm | # Hey, Now I do to, strange, I think the server needed time to process or something. Well thanks! 15. Posted November 3, 2009 at 11:36 pm | # Hi Pavel, I found your plugin to be the best latex plugin for wordpress amond al out there.. I am using it in a preliminary technical blog I am keeping for my own bookkeeping purposes. Just wanted to say thanks ! • Posted November 4, 2009 at 8:55 pm | # I appreciate your feedback, thanks! 16. Vadim Posted November 6, 2009 at 2:04 pm | # Hi, thank for the plugin, I have a free hosting which does not allow for cURL, fsock, get_contents… So, I am personally not aware of any other methods to get a contents of an external file. So, what do you think, is it possible to provide another way to put formula images from your website on pages? For example, http://www.quicklatex.com/image/latex.f?formula=… or http://www.quicklatex.com/latex.f?image&formula=… or something like that. If there is an error in the formula, well, you can just place an error sign without explanation, it is not really a problem (not the one I would care about). The only real problem I see is that the image is supposed to be shifted depending on the base line. I don’t think there is any way to provide this information with image only, but one way to solve this would be to make a constant shift for all images (something like a maximum shift for all symbols). Maybe there is another better way? 17. Posted November 20, 2009 at 1:30 pm | # Is it possible to use the align environment from amsmath? I tried using [math]\begin{align*} etc., but it causes an error. • Posted November 20, 2009 at 9:24 pm | # I’m afraid no. QuickLatex treats all formulas in inline mode, but {align} needs to be used in display mode. • Posted November 24, 2009 at 10:28 am | # Any chance of you adding display mode as an option then? I know I can fudge a single equation with \displaystyle… but anything involving multiple lines can’t be done, at least not with proper alignment. 18. Posted November 24, 2009 at 10:20 am | # Hi, excellent tool. Especially cacheing and line aligment! I’m in progress of building Google Wave Gadget for writing mathematical formulas live in documents cooperativelly edited by multiple persons in the same time. I have working prototype of tex part here: http://smp.if.uj.edu.pl/~baryluk/tex-wave/texwave.html I was wondering about any possible UI enhancments, so it will be easier to use. I have many performance improvments in my mind, especially to not generate excessive load on quicklatex server. I already implemented few of them. What is interesting the if I put additionall   in formula= GET parameter, my formulas renders as display-math mode (not just inline mode) • Witold Baryluk Posted November 29, 2009 at 8:36 am | # Hi again. Is there possibility of changing maximal width of produced gif? becuase currently QuickLatex wraps long formulas into multiple lines. It is generally very good, but sometmes, i have text of different width, and it looks pretty ugly. Other solution will also be to emit two gif, one for first n-1 rows, and second for n’th row (which could be smaller than the width of all previous rows), becuase currently last row have big empty space which isn’t filled by text. Any ideas? • Witold Baryluk Posted November 30, 2009 at 12:07 am | # Another idea is to generate PNG file instad of GIF. PNG have better support for transparency (alpha channel), making quicklatex images look better on non-white background, and still having very smooth output. I also think that having different size of output (for example 200% can be usefull), for example when making full-screen presentation in HTML. • Posted December 1, 2009 at 10:03 pm | # Hi Witold! I am very grateful for your supportive feedback and great ideas. Thank you! I’ve played with your application – I think it is outstanding idea and thank you for choosing QuickLaTeX for your project. As for display mode math, extended gif width, image scaling – they all are in my schedule for development. I’ll add these features in the future. I cannot promise to do this very soon but I’ll do my best. Now you can magnify images by setting font size in the formula code (ex. \Large, \HUGE, etc.) I decided to use GIF instead of PNG because IE doesn’t support transparent PNG well. Keep me updated on your project progress and other suggested features. All the best. • Cong Posted December 3, 2010 at 3:31 pm | # Hi Pavel, I’d also like to see PNG support in your excellent software. If you’re going to make it, I suggest making it an optional feature so that website owners can decide whether to use PNG or GIF for the output format. Thank you! • SasQ Posted December 27, 2010 at 10:09 pm | # IE supports PNG alpha transparency since version 7. For older browsers there might be some server-side browser recognition fallbacking to GIF. Transparent PNGs would be a great step forward because the same image generated by the script could be able to use on different background colors. • Posted December 28, 2010 at 10:50 am | # Thank you for suggestion. We have PNG support in our ToDo list (actually we are working on it right now:-)). Besides PNG we are planning to support images in SVG format to allow in-browser-scaling without quality loss. Images will be served depending on browser capability in such priority: SVG, PNG or GIF. But first we need to upgrade our QuickLaTeX server hardware (working on it), since SVG generation/serving significantly increases CPU load and traffic. Happy New Year! • Posted October 9, 2017 at 5:51 am | # Hello. I’m delighted that you have implemented \Large, \HUGE, etc. but can you describe how to use them? I thought that I could use it like this but it doesn’t seem to have any effect:  \HUGE{2^\frac{7}{12} \approx 1.5}  Thank you, Anton • Posted October 9, 2017 at 10:52 am | # Hello. You need to use special symbols to mark the formula code, e.g. !.., $..$, etc. For example, !\HUGE{2^\frac{7}{12} \approx 1.5} translates to \HUGE{2^\frac{7}{12} \approx 1.5}. • Posted October 9, 2017 at 11:27 am | # Thank you for the response, Pavel! But I have indeed been using  (and $, etc.) The only reason why I didn’t include them here was so that the source code rather than the LaTeX output would be displayed. 🙂 I have no trouble using QuickLaTeX to display formulas. It’s just that they are the same size regardless of whether I use \HUGE or not. • Posted October 9, 2017 at 12:00 pm | # Oh, I see, sorry for misunderstanding. Commands \Huge, \Large, etc. are intended to manipulate text size, not the font size in math mode (see similar question: https://tex.stackexchange.com/questions/3703/make-equations-large). Try following workarounds: [latex]{\Huge\[2^\frac{7}{12} \approx 1.5$} or !$\quicklatex{size=50}\Huge{2^\frac{7}{12} \approx 1.5}$

Command \quicklatex allows adjusting font size in pixels.

• Posted October 9, 2017 at 12:15 pm | #

Ah – thank you for the clarification. That’s very helpful.
best regards,
Anton

19. Christopher Battles
Posted November 26, 2009 at 12:26 pm | #

Firstly, Great Plugin!

One thing I’d like to see is support for the \LaTeX tag, which doesn’t seem to work for me. Anyway to include the proper typesetting of LaTeX?

Thanks, Chris

• Witold Baryluk
Posted November 29, 2009 at 8:35 am | #

Try \textrm{\LaTeX}

20. Posted December 12, 2009 at 3:46 am | #

Hi!
I have been using yout tool for half a year now. At the moment 13786 generated images represent all the formula in a nice way, thanks for your work 😀
One thing that is bugging me though is the printable version of the articles. The images are rendered in a very low resolution, making them fit in 72dpi text on the screen. When you print them, these low-res images are scaled up. Due to this they look quite ugly and are often hard to read.
Magnifying the images by setting font size in the formula code can not solve the problem, because I don’t want to have bigger images in the online-version.

Is there any chance to solve this?

21. Posted December 13, 2009 at 3:06 pm | #

Hi!
I use quicklatex but there is something that bored me. In the page
http://www.ahmath.com/?page_id=99
the size of the font of quicklatex is bigger than the normal text. How can i get rid of this problem.

• Posted December 14, 2009 at 8:52 pm | #

You can use LaTeX commands to control font size: \tiny \scriptsize \footnotesize \small, etc.

• Kim Kirkpatrick
Posted December 16, 2009 at 2:19 pm | #

Font size commands don’t work in math environment. And they don’t work (for me) in QuickLatex environment either. Some math packages have special font size commands; do you implement any?

• Posted December 27, 2009 at 5:00 pm | #

So, how can i use any of the LaTex commands

\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge

in this sample expression:

Could you please write the new expression with any of the LaTex commands (\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge) included..

22. Kim Kirkpatrick
Posted December 16, 2009 at 3:02 pm | #

Along the lines of changing font sizes, but more subtle: QuickLaTeX output is about 10% too big for the font on my page. I can make it look OK if I set body{font-size:110%;}, but my font is already too large; I’d like to drop it to about 90%. This would require QuickLaTeX to be scaled to about 80%.

I would like to suggest a percentage scale parameter (_not_ font size) to be made available, as an global parameter in the setup, and as a parameter in the individual block, with 100 being your current size, so the graphic would be created at that scale factor. (I think these two settings should be cumulative, so the overall document could be scaled using the global parameter, and then special uses (footnotes, for example) could be locally scaled with the individual parameter.) Of course, there’s a possibility of placing an ImageMagick filter which would scale all images as they are placed in ql-cache, but that’s much trickier to do at our end than at quicklatex.com. I think this should be fairly straightforward to implement. QuickLaTeX aligns with HTML text better than any other (including TeX4ht). If the size were precisely adjustable it would be absolutely the best. • Kim Kirkpatrick Posted December 17, 2009 at 5:38 am | # It would be better if quicklatex.com were to provide this scaling as I described, but here is an immediate workaround for anyone interested –let the plugin wp-quicklatex.php do it for you: Around line 178, just inside “if (status == 0) {“, and just above “out_str =”, add the lines  image_width = ""; //Set a CSS error, in case no cache -- no width will be set if(is_file(image_full_path)) { image_size = getimagesize(image_full_path); image_width = floor((image_scale*image_size[0]+50)/100); image_align = floor((image_scale*image_align+50)/100); }else{ image_width = ""; //Set a CSS error, in case no cached file -- width will no be affected } In the following line, between px; and border, add  width:".image_width."px;  And, at the beginning of function ql_kernel(), initialize  image_scale = 100;  (or, better, to a constant IMAGE_SCALE which is defined at the top of this file). This can be set to whatever is correct for your font; 100 leaves things unchanged. If a syntax for setting scale in the [latex] quickcode is developed, this value can be changed for that individual case between initialization and use. If the ql-cache is not available, there will be no scaling — just as is now. If this were the code, the graphics could be higher resolution (and higher quality compression), say double-size, with a hidden 50% factor in the code. Some new coding would allow the scale of the graphic to vary with the scale of the text when that is set by the browser, giving an improvement in visual accessibility. 23. Kim Kirkpatrick Posted December 20, 2009 at 6:52 am | # quicklatex.com is sort of down. It seems to respond to cached expressions (a few simple ones that must have occurred earlier) but nothing else. \Sigma works; {\Sigma} does not. Nor does a+z. It has been down about 24 hours. Another reason why the script should be released for local installation for critical uses. 24. Kim Kirkpatrick Posted December 23, 2009 at 12:08 pm | # Glad it’s working again! Pavel, could you document for us what “LaTeX” means in QuickLaTeX? That is, what tex/latex commands, environments, packages are you serving? There is no error reporting, just failure, so without the “rules” it’s hard to guess what to do to make things work (or even what to try to do). I much prefer the appearance of QL to mimetex — but mimetex does a lot of things that I can’t get QL to do. Check out the examples at http://www.forkosh.com/mimetex.html — most don’t work in QL. The reason I’m comparing QL with mimetex (and not with others), is that mimetex is the only other system (that I’m aware of) that allows vertical alignment. I’d really appreciate the requested information — I think it would be very useful to anyone trying to use QL. Thanks. • Posted July 1, 2010 at 4:37 pm | # Hi Kim! Thank you for helping me out with answering all the questions! Currently QL supports such packages: amsmath, amsfonts, amssymb. I would gladly add support for any other packages you might need, just let me know. Any other suggestions, feature requests, etc. are welcome too. I have pretty huge todo list for the QL. But I have very little time to implement them. I would really appreciate if someone would help me in the development of QL. As for “Can’t create dvi file” message – it means that unknown error occurred, which is not related to the correctness of your latex code. QL would give explanatory error message otherwise. So if you see such message – please let me know instantly – something wrong with the server. Thanks. • Marc Posted July 23, 2019 at 2:52 am | # Hi! This just happened to me. I’m trying to implement formulas that worked yesterday. But now they don’t work, although I’m writing the exact same formula. The error says: Error: Cannot create dvi file May it be a error from the system? I hope you answer me ASAP. Thanks • Posted July 23, 2019 at 9:52 am | # I don’t see any problems with the server – it generates formulas as usual. Did you notice any changes on your website recently (e.g. WordPress automatically updated, new theme was installed, or similar)? • Posted July 23, 2019 at 9:54 am | # Please provide formula example and URL of your page. • Tom English Posted July 23, 2019 at 7:05 pm | # First, Pavel, thanks for the work you put into QL. I just started having the same problem at The Skeptical Zone. I’ve exhibited the problem in two comments directed at the admins, starting with this one: http://theskepticalzone.com/wp/moderation-issues-6/comment-page-31/#comment-258409 • Posted July 23, 2019 at 7:25 pm | # OK, geat, thank you very much for the example, now we can reproduce the issue. We will do detailed server diagnostics within next several hours (and hopefully will fix the issue). • Marc Posted July 23, 2019 at 7:52 pm | # No I haven’t notice any changes on my website. In case this helps solving the problem… this happened to me: Yesterday I couldn’t implement new formulas, as I told you. But after shutting my computer down during all night, today in the morning Quicklatex worked perfectly, as it used to. The formulas I wrote yesterday, in which Quicklatex said there was an error, now were perfectly displayed, and this without changing a single character. And also new formulas could be well implemented. But now, after using wordpress for an hour and a half (and having correctly implemented during this time several formulas with Quicklatex), I have the same problem again. Quicklatex says: “Error: cannot create dvi file”. So it doesn’t work again. In addition, it seems like previously rendered equations work well. I copied and pasted an old equation and it is also well displayed now. But if I simply add an space to this equation, it’s not displayed anymore and it says: Error: Cannot create dvi file. The same if I change a 7 for an 8, it doesn’t work either. • Posted July 24, 2019 at 9:59 am | # The issue has been fixed few hours ago (QL cache space was exhausted on sever). Please try your formulas now. Thanks everyone for help and report! • Eugene Posted July 24, 2019 at 5:15 pm | # Pavel, thank you for fixing this so quickly. • Marc Posted July 25, 2019 at 2:13 am | # Yes, thank you Pavel. Formulas work well again. • Marc Posted July 26, 2019 at 1:58 am | # It is happening again… • Posted July 26, 2019 at 10:40 am | # We are working on this. Looks like hard drive is dying on the server. I hope we will resolve this within ~24 hours max. • Posted July 26, 2019 at 2:23 pm | # Try now, we have fixed all the issues we found. 25. Posted January 25, 2010 at 5:03 am | # Hello. Thanks for your great service, I intend to use it a lot. I have a question however; wouldn’t it be better for us and for you, if the wordpress plugin saves the image on our webserver rather than link to your webserver? That way I am sure that my equations won’t disappear in case your service breaks down, and you will have lower cost with hosting it. Feel free to email me about this. I am willing to help with this if needed. • Kim Kirkpatrick Posted January 25, 2010 at 3:08 pm | # @Benjamin It does — it saves the images in wp-content/ql-cache (make sure it exists and is writable). • Benjamin Jensen Posted January 25, 2010 at 6:38 pm | # Ah I see. I’ll just check my permissions on the folder then 🙂 Disregard my comment, and thanks for clearing it up 😉 26. Posted February 3, 2010 at 5:51 pm | # Is the server down again? New formula have not been parsed since Monday… Am I the only one with this problem? • Posted February 5, 2010 at 3:49 am | # Yay, it’s working again 😀 27. Posted April 24, 2010 at 7:54 pm | # I’m not entirely sure why, but WP QuickLaTeX makes my RSS feed timeout if I install it. Is this a known issue? • Posted April 24, 2010 at 8:08 pm | # Ah, I geddit. The ql-cache directory didn’t exist. Cheers! 28. Posted June 1, 2010 at 4:44 pm | # Nice plugin, but on black background looks awful. 29. Posted June 6, 2010 at 2:03 pm | # Thanks Pavel. I’m using the LaTeX WordPress plugin on my blog. It looks great. • Posted June 6, 2010 at 8:47 pm | # Thank you for using it! 30. Posted June 10, 2010 at 8:46 pm | # Dear Pavel, thanks for a great plugin. It seems to work well on a few simple examples I’ve tried. 31. Posted June 26, 2010 at 9:31 am | # Thank you very much for your nice plugin. I have changed my WP to version 3.0. Since then the plugin has not worked. When I defiine a new command, the tex image seems not to be created. Please help me. • Posted June 26, 2010 at 4:16 pm | # Thank you for your feedback! Please try now – everything should work ok. 32. hisham Posted July 1, 2010 at 3:30 am | # hi would you show a few examples, see what I got: the result in no 1. http://www.pdhsource.com/quiz-1115/ see how the (3/2) starts fine then drops, it should be all in the power line. any advice same thing in no 12 in the page link above tx 33. hisham Posted July 1, 2010 at 3:37 am | # am using in the example above. 34. hisham Posted July 1, 2010 at 3:38 am | # sorry, the [math\ tag is used above 35. Kim Kirkpatrick Posted July 1, 2010 at 4:14 am | # @hisham The result is correct. For what I suspect you want, you need curly brackets around the exponent: ^{(3/2)} That is just basic TeX/LaTeX — has nothing to do with QuickLaTeX. • hisham Posted July 1, 2010 at 4:44 am | # tx Kim, works fine is there any where i can read or see few examples for future issues. hisham 36. Kim Kirkpatrick Posted July 1, 2010 at 5:14 am | # If you are primarily using insertions into HTML (like QuickLaTeX), most of LaTeX is irrelevant. Do a web search on “latex math expression help”. Google gave me about a dozen useful links right at the top. 37. Posted October 24, 2010 at 1:29 am | # I have a problem, In my posts formulla show correct but in comments formulla not showed. My English is bad. Sorry. • Posted October 24, 2010 at 11:14 am | # You use latex ..  which is not supported by QuickLaTeX. Use this syntax instead: [latex]your LaTeX code here
38. Posted October 29, 2010 at 2:36 am | #

I’ve followed your instructions but still does not display in the formula comment. Is this thesis I use the theme. Hope your help. Thank you.

• Posted October 29, 2010 at 9:54 am | #

It seems that Thesis disables standard WordPress filters for comment_text.

Try to do the following. Find this line:

add_filter( 'comment_text', 'quicklatex_parser');

in wp-quicklatex.php file.

Replace it with the line:

add_filter('thesis_comment_text','quicklatex_parser');

Let me know if it helps.

39. Posted October 30, 2010 at 1:30 pm | #

I would ask how to display the code of the formula in the article. Thanks.

“Example equations. If you want to show source code of some equation instead of rendering it please use example=true parameter. Plugin will show source code only. All previous examples are generated using this parameter.
This feature is very useful if you write post about QuickLaTeX and want to teach others how to use it.”
in comment then ok, but in posts then not. help me. thanks.

• Posted November 1, 2010 at 10:15 am | #

Well, many people use example=true and it works perfectly. One of the examples are: thosedarngeeks.com

Could you give me more info (URL of the post) on how exactly it doesn’t work?
Is it showing something or not? Have you tried other shortcode parameters, like size, color, background?

• Posted November 1, 2010 at 10:31 am | #

I had used [ latex example=true] a^2[/latex] in my posts. Example:
http://4maths.co.cc/soan-cong-thuc-toan-trong-cac-phan-hoi/

• Posted November 1, 2010 at 11:13 am | #

I’ve checked your link – thank you. I see several problems there.
Theme you are using – Thesis, has specific content-filters for posts and comments, which are being executed before WP-QuickLaTeX .

They change formula’s code and WP-QuickLaTeX get access only to these already altered shortcodes & LaTeX code. That is why it cannot produce results you want.

Unfortunately, Thesis theme is closed, commercial product. I have no access to its source code. And even their support forum is opened only for the paid customers (which I am not).

There are two ways to solve this problem:

1.
Setup high priority for the WP-QuickLaTeX processing. Please find all functions started from add_filter in wp-quicklatex.php. Add 0 as last parameter in every function. For example,

add_filter('thesis_comment_text','quicklatex_parser');

will become

add_filter('thesis_comment_text','quicklatex_parser',0);

2.
If previous suggestion doesn’t solve the problem, please ask Thesis support.
As a customer of Thesis you have access to their support.

Thesis theme significantly changes behavior of WordPress without describing the details publicly, so there is only one way – to ask their developers for the help.

And let me know about the solution!

40. Posted November 1, 2010 at 12:51 pm | #

Sorry, I figured out why the posts did not show the source code. because I’ve installed both the wp-latex plugin and your quicklatex. when I remove the wp-latex, the result was very good. Thank you for providing a great plugin

41. Posted November 3, 2010 at 6:12 am | #

Hi Pavel,

Thank you for WP QuickLaTeX.

So, it automatically loads amsmath, but now I don’t know where to put the leqno option. Since my text is ragged-right, I’d like to have display equations equations numbered (and aligned) on the left. Normally done with leqno and fleqn, these can’t be loaded without setting off an option conflict with the automatically loaded amsmath.

Do you know a solution off hand?

Thanks!

• Posted November 3, 2010 at 10:11 pm | #

Hi,

Good question.

I am afraid you are right. Right now it is impossible to set options for amsmath, since usage of this package is hard coded on a server side even in custom preamble mode.

I suppose I have to change this in future versions – so user will have opportunity (and burden) to include ams-packages manually using “Custom preamble” option with any params he desire.

And no packages will be included by default. This change will raise several issues, e.g. incompatibility with current users – I need to think about it more.

As a quick solution, you can do left-aligned numbering manually, using something like this:
<p style="text-align:left;"> $\texrm{(1)}\hspace{ 2 in}\displaystyle{x=\frac{\sqrt{\alpha^2+\beta^2}}{2}}$ </p>

Output is:

This way does not support equations in align, gather, etc. environments, so they should be rewritten. Sorry 🙁

• Posted November 3, 2010 at 10:30 pm | #

Thanks for the replay (and suggestion) Pavel.

I’m not sure how you’ve coded it, so this suggestion may not be a good one. Would it be difficult to add a text-box to the configuration menu for options to be passed to amsmath? I don’t mean to make it sound effortless, I’m sure it’s a lot of work, but at least it shouldn’t break anything.

Thanks again,

Tim.

• Posted November 3, 2010 at 11:21 pm | #

This requires changes in the server side code too.

I think it is better to go with no default packages at all. It will take more time to implement and resolve all issues, but this approach will be more flexible and clean.

Please wait, if you can…

42. Posted November 5, 2010 at 1:40 pm | #

When I do multiline equations using \begin{align*} seems to get a text-align:center. How can I prevent this? I’d like them to stay left aligned like my single line equations…

• Posted November 5, 2010 at 11:09 pm | #

We are preparing new version of the plugin. It will have option for that.
We will release it next week.

43. Posted December 2, 2010 at 1:45 am | #

Thank you, thank you for this great plugin!
As Svish, I am also interested in multiline equations being aligned on the left.

Stefano

• Posted December 2, 2010 at 9:19 am | #

New version of QuickLaTeX is 90% ready.
We will release it soon – sorry for the delay.

44. Posted December 16, 2010 at 6:14 am | #

hey.. very nice service.. i always welcome free latex-renderer service..

problem:
i tried to make a GET request to quicklatex.com (localhost, jquery) but it didn’t work out.

my questions:
1. can i make a get ruquest to http://www.quicklatex.com from my website?
2. are there any limitation to use http://www.quicklatex.com service?
3. where did i do wrong? (in my code)

thx 4 ur attention.

• Posted December 16, 2010 at 9:09 am | #

1. You cannot make direct AJAX requests from your domain to QuickLaTeX.com. That’s limitations of AJAX. Google for “Same origin Policy”.

2. You can use QuickLaTeX.com service for personal website + placing clear and visible link to this page or QuickLaTeX.com. Something like: Powered by QuickLaTeX.com would work fine.

3. I believe your code is ok. The problem is in AJAX policy. You should write proxy script, which lives on your server and make AJAX requests to it.

Could you give me URL of website where you want to use QL?

• Posted December 16, 2010 at 3:16 pm | #

2. You can use QuickLaTeX.com service for personal website + placing clear and visible link to this page or QuickLaTeX.com. Something like: Powered by QuickLaTeX.com would work fine.

what about company website? such as, an online equation editor for teachers of A Company.

• Posted December 16, 2010 at 3:23 pm | #

Could you give me URL of that company website & online equation editor?
You can send it by e-mail if you want: pavel@holoborodko.com

• Posted December 17, 2010 at 9:14 am | #

Thank you for the URL. Please use QuickLaTeX on your site along with the link.

• Posted December 21, 2010 at 3:54 pm | #

Please help me! for installing QuickLatex our maths forum .. We hope you will support us. Our forum is http://math.vn, a maths forum for Vietnammese

• Posted December 21, 2010 at 5:33 pm | #

You are using vBulletin, we have no plugin for it yet. sorry.

45. Posted December 23, 2010 at 2:46 am | #

Help me! My documents created with the Latex syntax formulla $...$. When I put on the website must be correct syntax $...$ should take more time. I ask, how can we can use the syntax $...$ QuickLatex not? Thank you. My website: http://mathblog.org

• Posted December 23, 2010 at 11:18 am | #

Please wait for the next version – it will support native LaTeX syntax like !$...$, $...$, and environments equation, align, etc embedded directly in the posts without  $...$  tags.

Also it will support automiatic equation numbering and many other features.

• Posted December 27, 2010 at 4:23 am | #

Thank you very much!

• Anonymous
Posted January 27, 2011 at 6:15 pm | #

Roughly when do you plan to release the next version of quicklatex?

• Wordpress user
Posted January 27, 2011 at 6:35 pm | #

Hi, when do you plan to release the next version of quicklatex (the one with equation numbering support?). Thanks

• Posted January 27, 2011 at 8:01 pm | #

It is ready, so next week. We are waiting for response from people who test it right now.

• Wordpress user
Posted January 27, 2011 at 9:50 pm | #

Fantastic. Thanks.

46. John
Posted January 25, 2011 at 1:25 pm | #

Hi,
I’ve just tried QuickLatex but none of my formulas seem to be vertically aligned. I used to run WP-LATEX before hand and was never happy with the alignment there; however, QuickLatex doesn’t seem to be doing any better. The math on your blog looks great. I am not sure what I am doing wrong. Do I need to remove the WP-LATEX plugin for the vertical alignment to work?
John

• Posted January 25, 2011 at 3:54 pm | #

You have to remove WP-LaTeX first.
Send me url of your site if problem won’t disappear.

47. Posted February 3, 2011 at 10:58 pm | #

Thank you, WP-Quicklatex is a great plugin. Version 3.7.1 has added many features, but all my documents are prepared according to previously $$...$$, syntax to use two dollar signs, so now when updated to version 3.7.1 shall fail, the formula shown on one line. I ask no way around this problem without the source file is not correct?
Thanks!
My site: http://mathblog.org

• Posted February 4, 2011 at 9:14 am | #

QuickLaTeX 3.7.1 is fully compatible with previous version(s).

You can install it without editing existing formulas inserted with $...$, $$...$$, etc. They will be compiled as usually, by previous version’s rules.

In the same time, you can (and should) use native LaTeX syntax for new formulas.

48. Wordpress User
Posted February 6, 2011 at 12:50 am | #

Thanks for the new release.

BTW Is it possible to use the \label command in equations, and then refer to the equation number via the \ref command. I tried it and it did not seem to work.

Thanks

• Posted February 6, 2011 at 10:00 am | #

We are plannig to support \label and \ref in the next versions.

49. Wordpress User
Posted February 6, 2011 at 9:02 am | #

The \href{}{} command does not seem to be working. Thanks

• Posted February 6, 2011 at 9:45 am | #

Now QuickLaTeX is mainly targeted to handle math commands of LaTeX. We will extend its functionality gradually to cover other features.

50. Posted February 7, 2011 at 4:20 am | #

Thanks for the hard work!

I’d like to use LaTeX to produce Laplace-Transformation Symbols like this:

http://www.ti.informatik.uni-frankfurt.de/grimm/skript/skript88x.gif

Some websites use

$$\circ - \bullet$$

for that, but with Quick LaTeX there is too much free space in between. Would it be possible to create a custom symbol that appears if somebody uses \circ – \bullet in a formula?

• Posted February 7, 2011 at 10:07 am | #

Thanks for using QuickLaTeX!

There are special commands for Laplace-Transformation Symbols in trfsigns (see The Comprehensive $\textrm{\LaTeX}$ Symbol List, Table 81, page 40): \laplace  and \Laplace .

To use them with QuickLaTeX, just include trfsigns in preamble (local or global), e.g:

$[+preamble] \usepackage{trfsigns} [/preamble] f(t) \laplace F(s) \qquad F(s) \Laplace f(t)$

results in

UPDATE: I’ve updated comment to include \laplace and \Laplace commands :-).

51. Posted February 10, 2011 at 5:52 pm | #

I’ve just stumbled across this plugin, and have put it into my blog (http://www.texdev.net/2011/02/10/quicklatex-a-latex-plugin-for-wordpress/) to spread the word. One quick question. How do you get $, etc., rendered with the plugin active (for example, for the plugin homepage itself!)? • Posted February 10, 2011 at 6:08 pm | # You can escape compilation of LaTeX shorthands by placing “!” just before them. E.g.: !!..., !$...$, ![latex]...$ or even !\begin{tikzpicture} ... \end{tikzpicture}

Thank you for writing about QuickLaTeX on your blog!

As for your question:
“You can also do entire pages of LaTeX, but I’m not quite clear just yet how that works out (after all, web pages need to be flexible, whereas rendering with QuickLaTeX ultimately results in images).”

Plugin do gentle parsing of the page, handling only LaTeX commands. The rest of the page is not touched. So no flexibility is lost – only extended.

Besides not all of the LaTeX processing results in image generation – e.g. next version 3.7.3 will support equation referencing by standard LaTeX rules. User can setup label for formula by \label{}. Then \ref{} anywhere in the text will be replaced by hyper-link to referenced equation for easy navigation.

All of this are targeted for smooth publishing of math pages on the web. Ideally without (or with very small) changes in offline LaTeX papers to be published.

• Posted February 11, 2011 at 7:50 am | #

Thanks for the quick reply. Escaping things seems to work in the main, but not for the tag (at least in my blog). Any idea why?

• Posted February 11, 2011 at 8:26 am | #

Yes, [latexpage] cannot be escaped with “!” now. I’ll fix this soon.

Could you use &#91;latexpage&#93; for escaping until then? Sorry for inconvenience.

• Kishor Doshi
Posted July 6, 2012 at 1:11 am | #

Hi,
You’ve got a great plugin! I do have an issue though.
I do not want a complete latex page, but only sections of the page should be compiled with QuickLatex.

Thanks!

• Posted July 6, 2012 at 10:06 am | #

We’ve got you covered, use [latexregion] ... [/latexregion] to mark sections containing LaTeX markup.

• Posted July 13, 2019 at 5:53 pm | #

The enumeration of equations starts with 1 within each latexregion.
Is it possible to continue the numbering from the previous region instead?

52. Joe
Posted February 22, 2011 at 1:03 am | #

First of all thank you so much for this plugin – I’ve only just started playing around with it but noticed what I think is a bug. When validating HTML I noticed that none of the character references put into the images alt tag are closed with semi-colons…. thus creating hundreds of errors in the HTML.

Thank you again for your hard work.

• Posted February 22, 2011 at 11:21 am | #

Yes, you are right – it is a bug.

I’ve just fixed it – check out new version 3.7.6

Thank you for your report!

53. Posted February 27, 2011 at 6:40 am | #

Your plugin is great!

I tried to use the “figure” and “table” environment, which do not work (I guess it’s normal since these are float). Do you intend to provide such environments eventually? What would be the best way to emulate it with your plugin?

Thank you!

Alexandre

• Posted February 27, 2011 at 11:37 am | #

Environment table is not supported directly in the text yet, but you can wrap it with [latex mode=1] ... [/latex] tags, e.g.:

<p style="text-align:center"> <!-- HTML & CSS for table centering-->
[latex mode=1]
\begin{table}
\begin{center}
\begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal \\
\hline
\end{tabular}
\end{center}
\caption{An example of table}
\end{table}
[/latex]
</p>


results in:

Floating parameters are not supported in this mode.

Image inclusion by figure is not supported yet. It requires additional facility of image files management on the server (e.g. syncronizing/uploading image files to the QuickLaTeX server for compilation) – which is quite a bit of boring work :-).

Please use HTML tags to insert images in your posts and CSS styles to emulate “floating” behavior of the table/figure at the moment.

We have plans to fully support both environments in the future versions. Please support us by backlink to keep development going.

• Posted February 28, 2011 at 11:27 am | #

Great! Thanks for the detailed and quick reply!

I’ll put the backlink right now!

• Posted July 10, 2013 at 1:02 am | #

I would like to see a figure and table option as well, especially something I can label and reference.

I am in the process of converting some latex documents to web pages and would find something like a figure box with and HTML escape to insert the picture, with the figure managing just the caption and label.

Just my two cents, and thanks for the great plugin.

54. Posted March 6, 2011 at 11:46 am | #


The “\\” is a rather fascinating issue actually, because when I type “\\\” instead in a post and hit the “publish/update” button, WordPress strips away the initial “\” from the post, and the post does get displayed correctly. However, any future change to the post will strip a “\” away from each instance of “\\”, making any future modification a risky thing to do.

On the sidenote, I’ve also noticed that $x^*$ couldn’t be parsed on our site, but $x^*$ works fine – If that has any bearing to the issue.

Everything else I’ve tried are fine though. Thanks for your tremendous contribution to making WordPress LaTeXable.

Tom

• Posted January 12, 2016 at 12:23 pm | #

Hi Tom,

The issue of stripping slashes has nothing to do with QuickLaTeX nor with CSS. Actually I have never received complains about this before.

There are several possible reasons for this:
(1) PHP configuration on your server (related with magic quotes);
(2) Theme is doing this for some reason;
(3) Other plugin is responsible.

I would start from checking the plugins (turn them off one by one), then asking the theme developers.
There is a solid chance that the theme needs special PHP configuration. Overall this probably relates to text sanitization before storing it in database.

Hope this helps.

• Posted January 12, 2016 at 5:08 pm | #

Oh my god. I can’t believe I nailed it with your hints. 🙂

I started by disabling all plugins (felt reluctant of doing that for fear of having to redo some work again), doesn’t work. Change the theme back to “Twenty Sixteen”, latex post still not displayed correctly. Hit the “update” button after correcting the latex codes, and voila, perfect displaying back to normal.

I then tried to switch the theme back, hit the “preview” button to see if it messes up the parsing again. Nope, no problem at all, not a single “\” stripping occurred.

This left me dumbfounded, as I thought the issue was with the theme. I then noticed that social media widgets (e.g., Facebook, Twitter, Google+) are all gone, which is a bit unsettling. Since I remembered that these widgets are powered by WordPress Jetpack, I went to the dashboard and found that Jetpack is now disconnected due to me playing around with the themes.

After proceeding to reconnect Jetpack, I hit the “preview” button of a latex post. And boom! The incorrect display is back again.

That was a good catch really. As I now am aware that some Jetpack features could be responsible for the “\” stripping. So I did what I was supposed to do: disabling the features one by one to see if I can narrow the issue down its root. Finally, after 20 trials or so, I found the feature that was responsible for the unintended “\” stripping: It’s called Markdown.

(In a way, it makes sense why it would be the case. And I’m glad that I actually don’t need that feature in general)

After doing some patch-up on the site back to the previous state (now with Markdown disabled), I proceed to test a ton of commands and environments offered in QL, and it was perfection – up to the tikz.

So lesson learned. Being a PHP newbie, I really thought this would have been much more difficult had theme switching not deactivate Markdown indirectly (in which case I might as well surrender and stick to the status quo). Kudos to you Pavel. That helps a lot.

• Posted January 12, 2016 at 5:23 pm | #

Please be sure to disable the “Photon” feature in Jetpack as well. It adds garbage to every URL pointing to image.
Nice detective story and congratulations on resolving the issue!

• Posted January 13, 2016 at 2:25 am | #

Thanks for informing. Yeah Photon’s off now. Apparently it sounds all fancy when you only read its description, until you realize that your images could now be found in WordPress.com servers – and presumably with some SEO consequences on that front. 🙂

Cheers,

Tom

194. David Templin
Posted January 12, 2016 at 1:17 pm | #

I’ve been evaluating QuickLaTeX, and I’ve had a great experience with it so far. The only issue I’ve encountered is that mathematical content is rendered with img tags with references to external SVG files, resulting in one HTTP request per image. On one of my posts, this resulted in >900 HTTP requests over a period of 19 seconds. Have you considered using inline SVG and PNG sprites to reduce the number of HTTP requests?

• Posted January 12, 2016 at 1:38 pm | #

Good question. Up to this moment I was hoping that special plugins for optimization should take care of this. There are plenty of plugins for optimization and caching which work on site as a whole, embedding scripts, CSS, using cache, CDN, etc. (I use Autoptimize & SuperCache).

Merging images into sprites seems to be a natural feature of such plugins. Probably we will see this in future versions.
If not – I will try to add this into QL.

Btw, as for SVG I don’t see the easy solution at the moment. Inline & uncompressed SVG code would take hundreds of kilobytes (or even MB in case of graphics). Now separate SVG files served compressed (svgz) by webservers.

195. David Templin
Posted January 13, 2016 at 12:01 pm | #

Ah, yes, I didn’t realize how large the generated SVGs are; I calculated a total of 11 MB for one post. I certainly wouldn’t want to inline the SVGs in this case. The current method has the advantage of enabling the images to download independently of the page, so the page appears to load quickly. Thanks.

• Posted January 13, 2016 at 3:30 pm | #

Make sure SVG files served compressed by web-server (svgz). Compression reduces their size a lot since SVG is text format with a lot of redundancy.

196. Posted February 3, 2016 at 10:58 pm | #

Hello,

I am a completely beginner with blog-posting, and I have just installed this nice plugin to display equations in my blog. However, the equations start to show wrongly once I connect to Jetpack to make use of its functionalities. I have tried to deactivate “Beautiful maths”, but no success. I do not find any information on this, so I guess I am doing something terribly stupid…

• Posted February 3, 2016 at 11:16 pm | #

Try deactivating the Photon in Jetpack. Deactivate the whole Jetpack if this doesn’t help or its features one-by-one to see which one is hurting.

• Posted February 13, 2016 at 7:36 pm | #

Thank you, that solved my problem!

197. Ahmet
Posted February 9, 2016 at 12:24 am | #

Hi Pavel,
Amazing plugin. Can’t appreciate it enough. I was wondering if you have any method for referring to equation numbers in another blog post. For referring to figures, I use a plugin that pops up the figure by clicking on it. If I do the same for equations, I will have to create too many popups. So I’m searching for a better method.
Also in case you know an easier method for referring to figures as well, please let me know.
Thanks for your help Pavel!

• Posted February 9, 2016 at 12:57 pm | #

Hi. There is no automatic way of doing that.
You can do that manually though. Every equation (with number) has HTML link, and you can use it in another post.

For example, here is reference to equation (1) on another page.

198. Peter Smith
Posted March 2, 2016 at 6:08 pm | #

I’m using quick latex plugin for wordpress. How can I cross out text? I’ve tried different tags such as

\sout{wrong}
\xout{removed}

Can you help me?

• Posted March 2, 2016 at 7:28 pm | #

You need to include special package for the commands:

[latex mode=0]
[+preamble]
\usepackage{ulem}
[/preamble]

\sout{wrong}, \xout{removed}
[/latex]


Renders to:

Of course, you can include the package only once (see admin page of QuickLaTeX->Advanced).

199. Sirius
Posted March 4, 2016 at 3:50 pm | #

I’m using quick latex plugin for WordPress. After exporting posts by Aspose Doc Exporter, the formula are saved as pictures. However, they are not as clear as that on wordpress. It seems that pixels have been compressed. Can you help me with that?

• Posted March 4, 2016 at 3:53 pm | #

You should probably ask the developers of Aspose Doc Exporter. QuickLaTeX has nothing do to with their exporting process.

200. Posted March 6, 2016 at 1:49 pm | #

As of yesterday, my equations are no longer displaying on my posts. It is a WP site and I am using Quicklatex to display equations. When the page loads, the equation is displayed briefly followed by a place holder. I haven’t installed any new plug-ins. If I deliberately include a syntax error an error message is displayed.

• Posted March 6, 2016 at 2:09 pm | #

This has nothing to do with QuickLaTeX. Please turn off the Photon feature in JetPack plugin.
In next version we will add workaround for this issue, to suppress the Photon on QuickLaTeX images.

201. Posted March 11, 2016 at 11:00 am | #

Hi there, I am a “typical” web guy, not a scientist or math guru so please excuse my ignorance here. I have found your plugin and it works great! But… (there’s always a but, right?) … I have hit a block of LaTeX that seems to be dependent upon the package “sidecap”

https://www.ctan.org/tex-archive/macros/latex/contrib/sidecap?lang=en

I see in the plugin’s advanced settings that additional packages can be included “as usual”. For a newbie like me are there documents that go into more detail regarding sidecap and your plugin?

Thanks!

• Posted March 11, 2016 at 5:58 pm | #

[latex mode=0]
[+preamble]
\usepackage{sidecap}
[/preamble]

\begin{SCtable} ... \end{SCtable}
[/latex]


The \usepackage{sidecap} command can be placed to global preamble if you use it frequently.

• Posted March 15, 2016 at 8:05 am | #

Hi Pavel,

Thank you very much for the reply but unfortunately neither option (adding the in-page preamble or global preamble) allowed the latex code to be rendered in wordpress. Fortunately, I think I only have one of these SCfigure objects to deal with and I may use a traditional screenshot to handle it.

Thanks!

• Posted March 15, 2016 at 10:12 am | #

Any chance you can share the simple example and error message(s)?

• Posted March 15, 2016 at 9:41 pm | #

I would be glad to do so! Can you shoot me a direct email and I will give you the information you’re looking for?

Many thanks!

• Posted March 17, 2016 at 10:38 am | #

My e-mail is: pavel@holoborodko.com
(Yes, I am not afraid of spam)

202. Sergey
Posted May 27, 2016 at 7:24 pm | #

Hello,

In using QuickLaTeX I get the following error:

*** QuickLaTeX cannot compile formula:
a^2+b^2

*** Error message:
Cannot connect to QuickLaTeX server: Failed to connect to http://www.quicklatex.com port 80: Connection timed out
Please make sure your server/PHP settings allow HTTP requests to external resources (“allow_url_fopen”, etc.)
These links might help in finding solution:
http://wordpress.org/extend/plugins/core-control/
http://wordpress.org/support/topic/an-unexpected-http-error-occurred-during-the-api-request-on-wordpress-3?replies=37

I’ve never seen this before – and I have indeed checked that my /etc/php5/apache2/php.ini file contains allow_url_fopen = On. Are there any other settings needed? I’m a bit flumoxxed by this and would be very grateful of some advice!

Thanks,
Sergey

203. Posted May 31, 2016 at 3:47 pm | #

Hi Pavel. Have been testing on QuickLaTeX lately. I found that I wasn’t able to get eqref (from amsmath package) working even after wrapping them around $or $. even though ref works well already of course. Also, is there a way of enabling some sort of page-wide custom preamble? (much that what the latexpage tag does to enable pagewide LaTeX rendering) Sometimes global preamble seems like an overkill and a bit wasteful, but at the same time having to wrap preamble inside an environment or mathmode gets tedious when you do that a dozen of times. This could be useful in the case of special user-defined commands and packages that are only use in one page — but throughout the entire text. Anyway. Just some thought. And here’s a fancy LaTeX test page, in case you want to take a look. Cheers, Tom • Posted June 4, 2016 at 1:05 pm | # Hi Tom, Thank you for the suggestions. I remember I tried to add page-wide preamble, but something didn’t work out as I expected. Will re-view this (along with \eqref) for the next release. Thanks, Pavel. 204. Posted August 6, 2016 at 1:29 am | # Hi Pavel, my site theme has two versions for desktop and mobile. In QuickLatex when I select font size 13 px it is fine for mobile but not for desktop version and when I select 16 px it is fine for desktop but not for mobile. How can I set up equations font size 16 px for desktop and 13 px for mobile? Regards. • Posted August 8, 2016 at 10:55 am | # Could you try using the SVG format instead of PNG? What happens then? • Posted August 8, 2016 at 3:09 pm | # Hi, I tried SVG and I see that font size is the same in mobile version as I see in desktop version of my site. I see when equation is long it goes smaller in mobile version but in short equations and expressions font size is as big as desktop version. I used doller syntax and also bracket syntax and both of them are the same. Also inline and display fonts are the same as desktop version. • Posted August 8, 2016 at 4:00 pm | # I see. At the moment QL doesn’t differentiate desktop from mobile browsers :(. Please add this feature if you know how to do this easily. In case in SVG this should work fine (as it scales perfectly). • Posted August 8, 2016 at 7:41 pm | # Is it possible to add an empty option or no selection option in font size of quicklatex and force quicklatex to obey theme font size? Is it possible Pavel? Regards. • Posted August 8, 2016 at 8:36 pm | # QL has no idea of theme font size, it relies solely on the option in settings panel. The issue here is that this option should be different for desktop & mobile browsers. I don’t know how to do that at the moment. Do you know how to detect font size of a theme flexibly for any possible theme? • Posted August 12, 2016 at 3:53 am | # I Do not know too but this is how mathjax detect font size for svg equations and adjusts them according to theme flexibly. MathJax.Hub.Config({ SVG: { scale: 100 } }); • Posted August 12, 2016 at 9:47 pm | # This is just its configuration to show equations at 100% scale. Will check it more for next versions. 205. Ben Craven Posted August 12, 2016 at 7:12 am | # Hi Pavel, I’ve been using QuickLatex for a few weeks and it’s been great. But now I have a very strange problem. I have a test post that looks like this [laatexpage] NOTE: the misspelling is deliberate here, if I spell it correctly it gets stripped out of this message! F If I preview (or publish) this on WordPress I get an error message to do with server access (see end of this message). But if my Latex content is O it works perfectly! Some letters consistently cause the error (eg V), and others consistently don’t (eg R). The same thing happens with whole equations y = \sin \theta does work but v = \sin \theta produces the error all I’ve done is swap a y for a v. Have you any ideas what’s going on here? I can’t see how it can be my WordPress settings, because the error depends upon my actual Latex content and works fine for some letters. Thanks Ben *** QuickLaTeX cannot compile formula: F *** Error message: Cannot connect to QuickLaTeX server: Failed to connect to http://www.quicklatex.com port 80: Connection timed out Please make sure your server/PHP settings allow HTTP requests to external resources (“allow_url_fopen”, etc.) These links might help in finding solution: http://wordpress.org/extend/plugins/core-control/ http://wordpress.org/support/topic/an-unexpected-http-error-occurred-during-the-api-request-on-wordpress-3?replies=37 206. Posted August 12, 2016 at 9:46 pm | # Hi Ben, I cannot reproduce this magical situation. Does it happen when you use displayed math mode – $...$ instead of !..? Usually such error is shown when no connection to QL server. • Ben Craven Posted August 12, 2016 at 10:44 pm | # Thanks for the swift response, Pavel. Magical is the word 🙁 If I use the displayed math mode, the letter O (which works with dollar…dollar) doesn’t work! I pasted an equation from an existing post that uses displayed math mode and it worked fine to produce But if I added a letter O to it, it failed (in either mode). Incidentally, how can I quote Latex notation in these messages without it being interpreted? I’ve tried \verb and all sorts and can’t find anything that works. Yet clearly it can be done because you do it! Cheers Ben • Posted August 12, 2016 at 10:51 pm | # Put ! before $..$, !.., etc to prevent interpretation. Both O or F are working fine here. I conclude something is going on with configuration of your server – as indicated in error message. (or with your theme – eats up some characters?) • Ben Craven Posted August 13, 2016 at 2:34 am | # Hi Pavel, Progress! I can now predict what will work and what won’t. Only LaTeX expressions/equations that I’ve used in previous posts work! I have two previous posts that use QuickLaTeX. In my test post, only LaTeX expressions/equations that appeared in those earlier posts work. No other Latex seems to work. Even trivial alterations (removal of spaces, reorderings eg a+b to b+a) always cause failure. I have checked many cases and found no counterexamples. It makes no difference whether I cut-and-paste or type them in manually. This seems bizarre, but at least it’s a clear rule and not as arbitrary as it seemed at first sight. The previously-published pages behave in just the same way. I can’t add LaTeX to them unless it’s a precise copy of some LaTeX that was there before yesterday (or some earlier unknown date). Does this give you any clues? Does QuickLaTeX operate a cache of previously-rendered LaTeX to speed things up? One other observation is that the response seems slower than it used to be even for the LaTeX that works – 6-7 seconds for a post with a single expression. This makes me wonder if new LaTeX expressions are (for some reason) taking so long that something times out, whereas old ones are dealt with more quickly. But that’s total speculation on my part. Also… I’ve checked with my hosting company and they verified that allow_url_fopen is enabled. My theme is a standard unmodified WordPress one (Twenty Fifteen). I tried a different theme (Twenty Ten) and the problem was still there. Cheers Ben • Ben Craven Posted August 13, 2016 at 3:41 pm | # Hi Pavel, I’ve now found out about the local cacheing that QuickLaTeX does. So the pattern of my problem is explained if my website server and the QuickLaTeX server aren’t talking to each other. I haven’t a clue how to approach this. Cheers Ben • Ben Craven Posted August 13, 2016 at 3:49 pm | # My IP address is 64.29.145.9 (URL bencraven.org.uk). Has this been blocked by the QuickLaTeX server for some reason? Ben PS Apologies for dripfeed of information. • Posted August 15, 2016 at 5:12 pm | # Hi Ben, the IP address is not blocked on QL side. I am pretty sure this issue relates to PHP & other software settings of your hosting provider. They probably did some changes recently (updated to new PHP?) and tightened up security settings or similar. • Ben Craven Posted August 19, 2016 at 5:56 am | # Thanks for looking into that, Pavel. Ben 207. Posted August 19, 2016 at 9:18 pm | # Hi Pavel, I need help. I write some equation in QuickLaTeX and the font of wordpress quick latex looks so light and not so good. Is it possible to change the font a bit dark and a bit cool? I tried to change some font packages but the view is not so good. e.g. I tried this: \usepackage{lmodern} \usepackage[T1]{fontenc} Thank you for your reaction. • Posted August 19, 2016 at 10:23 pm | # Could you please send me the link to your page where I can see the issue? I suspect your theme might interfere with equations styling. • Pavla Posted August 20, 2016 at 4:28 am | # • Posted August 20, 2016 at 10:15 pm | # I am afraid this is how browsers scale the SVG images. QL renders formulas using vector graphic – SVG , which is independent of scale. But browsers do the actual scaling into prescribed size, and I suspect they might not be using the high-quality anti-aliasing. Try zooming your webpage (Ctrl+”+”) – you will see that formulas are actually crisp and nice bold. You might try to change size of the font (QL->Basic settings->Font Size) to see if it scales better…. 208. Posted August 21, 2016 at 6:16 pm | # Hi Pavel, I want to try reinstalling QuickLatex, but I don’t want to lose the cached material. If I make a copy of the ql-cache folder before I reinstall and then restore it, would that work? Thanks Ben 209. Francois Rigaut Posted September 2, 2016 at 1:53 pm | # Pavel, you are a genius. This plugin rocks. It is infinitely better than the alternative. Thanks for the hard work. 210. Posted October 12, 2016 at 2:05 am | # Hi Pavel, thank you very much for this great plugin! Now I try to fix some code on my page but it doesn’t want to compile anymore. Any server problems? As long as I change a single equation, it gives me an unknown error message. I can only show already cached equations. See this page=> http://www.cankosar.com/2016/01/10/zustandsbestimmung-durch-reine-odometrie/ Thanks for all • Posted October 12, 2016 at 12:28 pm | # There is a chance that QL plugin installed in your WordPress is too old – and doesn’t match the server anymore. Could you please upgrade you plugin to the newest version available? Would appreciate if you would inform me if this solves the issue. • Posted October 14, 2016 at 4:18 am | # I already updated the QuickLatex Version (3.8.4). But it doesn’t help.. It still seems not to connect to the server.. => http://www.cankosar.com/2015/10/11/859/ (Lasts a few secons trying to connect to the server, appearently) • Posted October 14, 2016 at 11:10 am | # I have tested the fpormulas on my website – everything works fine. Also I see your request in server log – something happens during the LaTeX compilation. I going to need few days to look into this issue (build debug version, run tests, reproduce, fix, etc.) Meanwhile, could you please let me know QL plugin settings and what other plugins are installed on your site? My private email is: pavel@holoborodko.com • Posted October 16, 2016 at 8:15 pm | # The settings are: Image Format: Auto Cache images locally: on debug mode: on latex syntax sitewide: off Exclude ..: off The plugins which can be relevant are: SEO plugins etc. Papercite SVG Support But the latex sites did work with actual settings. Then after a few months it started not to update. The I updated the Quicklatex plugin: Still doesn’t work. • Posted October 16, 2016 at 8:37 pm | # Try with debug mode: OFF. Debug mode is very pedantic and doesn’t forgive anything. • Posted October 17, 2016 at 2:42 am | # No success… Still get the error message: *** QuickLaTeX cannot compile formula: *** Error message: Unknown error It would be a shame to give Quicklatex up after begin really happy with the plugin..Considering the content I created with, it would also be a big effort.. Do you have any other idea which I can consider? • Posted October 17, 2016 at 2:45 am | # Well, in your webseite it does compile it… I only see the plain latex code in the error message.. • Posted October 17, 2016 at 11:29 am | # Indeed, the issue is very strange. QL is being used on thousands websites and only 2 of them has this issue (two weeks ago I received similar report from other guy). My website uses exactly the same QL plugin & server as yours does. We have been searching for what might cause the issue over the weekends – no luck so far. Taking into account the fact that other websites are working fine – I tend to believe this is related to specifics of server/PHP/WordPress configuration on your side. By any chance, did you notice after what changes this started (e.g. new PHP, WordPress update, new plugin installation, etc.)? I am planning of building special version of QL for tests on your website – this will allow to gain more information. I will contact you over email later today, if it is OK. • Posted October 18, 2016 at 11:44 pm | # We have updated our TexLive to 2016 version and fixed issue with new formulas. Please check. • Ben Craven Posted October 19, 2016 at 5:38 am | # I’m afraid the update hasn’t worked for me 🙁 Thanks for all the effort that you’ve put in to trying to fix the problem though. As Solocan says, QL is a great plugin and I hope I can start using it again one day. Ben • Posted October 19, 2016 at 11:48 am | # In fact, our latest update has fixed the issues Solocan encountered. Please check his links above – now everything works as expected. Do you still see the same problems on your website (as before) – new equations do not compile? I will send you instructions to use our debug server over email – this will gives us more information on the issue. We should resolve it this time. 211. Posted October 31, 2016 at 8:28 pm | # Hi, I’m getting an undefined variable notice since updating WordPress to 4.6.1, using WP QuickLaTeX 3.8.4 and with WP_DEBUG set to true. Notice: Undefined variable: eqlabel in /home/ima/www/www/wp/wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 1615 Thanks Andrew • Posted December 5, 2016 at 11:54 pm | # Have you fix issue? my blog got this bug. http://goingmyway.cn/?p=376 • Posted February 7, 2017 at 8:51 pm | # I’m still having this issue whenever I turn debug on; Notice: Undefined variable: eqlabel in …./wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 1612 • Posted February 7, 2017 at 9:53 pm | # I haven’t fixed the issue (partially because it appears only in debug mode and not as crucial). 212. Posted November 7, 2016 at 2:26 am | # WP QuickLatex doesn’t work on my website. As example I write the expression : f(x) at the page http://palary18.free.fr/?p=30 OK, it displays “f(x)” and at the page http://palary18.free.fr/?p=28 problem, it does not display anything … I specify that my Internet service provider is a french provider named “free”. Is it compatible with WP QuickLatex ? I notify that WP Latex or Katex work fine on my website. But I want to draw some tikz pictures. Thanks Pierre • Posted November 7, 2016 at 9:32 pm | # Have you disabled the WP LaTeX or other latex-related plugins before turning ON the WP-QuickLaTeX? • Posted November 9, 2016 at 2:25 am | # yes I do Could you say me if I am wrong. When an article contains a latex command as : – my website send a request to Quicklatex.com – quicklatex makes the latex / svg conversion – and it sends the response value to my website Perhaps, the “firewall” provider of my website blocks this response ? • Posted November 9, 2016 at 1:44 pm | # Yes, this is the procedure and yes – probably your provider disabled connections to external services. You might try to ask them to enable this feature. • Posted November 9, 2016 at 6:45 pm | # thanks for yours replies. I have read all the previous comments and I see that the variable “allow_url_fopen” affects the process. I have made a phpinfo on the website. It uses PHP 5.6.8 and the directive “allow_url_fopen” is ON and the other one “allow_url_include” is OFF. So is there another directive to change allowing quicklatex to work ? • Posted November 9, 2016 at 7:42 pm | # I am not sure, but looks like this is not the issue. QuickLaTeX would inform you about connection issues. I think there is some fundamental incompatibility with hosting service or the theme or other plugin(s). Some restrictions on PHP memory, execution time per script, etc. Btw, when I open your page – your hoster shows “Overload” page instead: http://perso99-g5.free.fr/overload.html And this is for empty website!!! How do they expect to handle the real visitors? If this is free hosting service – I wouldn’t expect much from it. How does you page look like with all plugins disabled? • Posted November 9, 2016 at 9:03 pm | # Surprising ! I don’t have “overlead” page now. I think you have made your try when I did some experimentation on the website. the page http://palary18.free.fr/?p=30 with f(x) between two displays : http://hpics.li/3f7cf11 and the page http://palary18.free.fr/?p=28 with f(x) between latex and /latex commands displays : http://hpics.li/f346d54 213. Posted November 13, 2016 at 9:09 pm | # Chess diagram show error \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{skak} \begin{document} \mainline{1.e4} \showboard \lastmove{} Is the most common opening move \mainline{1…e5 2.Nf3 Nc6 3.d4} \showboard \mainline{3…e5xd4 4.Bb5 a6 5.O-O} \showboard \end{document} Where is problem. https://www.sharelatex.com/learn/Chess_notation • Posted November 13, 2016 at 10:51 pm | # All commands starting from \show… were blacklisted in QuickLaTeX (since there were several attempts to hack the server using these kind of commands). Use following format to include LaTeX code (see more examples on this page and plugin page in admin UI of your website): [latex] [+preamble] \usepackage{skak} [/preamble] \medskip \newgame \showboard$ Strangely, but other figure positions do not display well. I guess the move coordinates are stripped off by PHP or something…. 214. Thomas Groutars Posted November 18, 2016 at 6:52 pm | # Hi Pavel, First Thanks for your work. I was wondering if the code for quicklatex (not the wordpress plugin) was open source and available somewhere? I checked the code for the plugin but it seems to use the quicklatex.com api to convert the images. What I’d like to do is set up my own web service to convert LaTeX to images, without having to rely on a third party service. Thanks, Thomas • Posted November 19, 2016 at 2:05 pm | # Hi Thomas, Server side of QL wasn’t released as open source and probably won’t in future. (there are a lot of my own libraries, which wasn’t intended to be open source). 215. Posted November 24, 2016 at 8:32 pm | # Hi, Quick-Latex has failed on my site: http://www.goingmyway.cn, my equation format is correct and what wrong with it? *** QuickLaTeX cannot compile formula: *** Error message: Unknown error 216. Posted November 30, 2016 at 1:06 pm | # Hi Pavel – I’ve just installed your plugin. Thanks very much for your work and for what I see is outstanding support. I have a problem. For some reason, any LaTeX code is rendered on a new line, e.g., Assume that DOLLAR_SIGN x=2 DOLLAR_SIGN. renders as Assume that x=2 . I’m not sure what is going on here, but I have the same problem if I activate the beautiful math setting in Jetpack and type Assume that DOLLAR_SIGN latex x=2 DOLLAR_SIGN. My website uses the newsmag theme with Jetpack and WPBakery Visual Composer plugins activated, in addition to QuickLaTeX. Thanks in advance for any help! • Posted December 1, 2016 at 11:08 am | # Most probably your theme adds line breaks before and after each image. Let me know the test page URL where can see the issue. (Have you disabled WP-LaTeX before testing WP-QuickLaTeX?) • Posted December 6, 2016 at 3:48 am | # Pavel, thanks. That was the problem, fixed with the following css code: img { display: inline-block; } 217. Posted December 6, 2016 at 5:16 am | # Hello Pavel, I’m also using QuickLaTeX because it seems to be the most elaborate plugin. Thanks for that service. My installed Version is 3.8.4. Currently I’m facing a problem regarding the correct sizing of the LaTeX-svg-images. The basic setting ‘Font Size’ does not have any impact on the svg image size. Instead, the svg-images are always scaled back to a font size of about 11px. For example, the setting of 33px font size leads to a huge surrounding region containing a small block. The only way to scale the svg-image is a fixed setting within the stylesheet ‘quicklatex-format.css’, for example .ql-img-displayed-equation{…; width = 500px; } However, that’s not a good option, because short fomulas are displayed very large. I’d rather set .ql-img-displayed-equation{…; max-width: 90% !important } , but this also does not have any effect. Do you have any idea? By the way, png-images are sized correctly. • Posted December 7, 2016 at 6:17 am | # Ok, I got it solved: For any reason, my system needs additional CSS advices in order to scale the svg-images right. Furthermore, the CSS has to be directly inserted into the <img-commands, which appear in 'wp-quicklatex.php'. Regarding displayed equation I changed the !$out_str-assignment (about line 1630) to

$out_str .= "”; • Posted December 7, 2016 at 11:49 am | # Hello Jacob. Glad you solved the issue! Sorry for late reply, new comments on this page have been pushed to spam folder for several days…. • Posted December 8, 2016 at 6:08 am | # Hmm the line$out_str.=… is not displayed correctly. The <code-Tag does not seem to work. However, whoever has to tackle that problem can contact me 🙂

218. Posted December 6, 2016 at 10:38 am | #

Hi, there is a bug on my blog

Notice: Undefined variable: eqlabel in /var/www/html/wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 1615

line 1615: !$eqnl = (!is_null($eqlabel)) ? “!eqlabel” : ” “; WordPress 4.6.1, PHP 5.5.9-1ubuntu4.20 (cli) • Posted December 6, 2016 at 2:37 pm | # QuickLaTeX is working fine on your website. But PHP works in debug mode – spits all the warnings directly on the page. Disable this mode in PHP and everything will be fine. 219. Nikos Posted December 8, 2016 at 3:06 am | # Hi Pavel, I use QuickLaTeX in my school’s site. I have noticed last days that some code of chemfig doesn’t work. I tested the same code in your on line rendering page (http://quicklatex.com) and I get the exactly the same result. A few days ago everything was rendering just fine. For example, the code \schemestart H\arrow O \schemestop should return H ->O where -> is the arrow of a chemical reaction. Instead of this, I get the letters H and O overlapped. Any idea? Thank you! • Posted December 9, 2016 at 10:06 pm | # Hi Nikos, Chemfig drawing is basically a TikZ diagram and it needs special compilation sequence on server. Please either use \chemfig command or wrap your code with TikZ environment: \begin{tikzpicture}...\end{tikzpicture}. Then QL will know that TikZ is used. For example, the following code generates what you want: \begin{tikzpicture} [preamble] \usepackage{chemfig} [/preamble] \schemestart H\arrow O \schemestop \end{tikzpicture}  • Nikos Posted December 10, 2016 at 2:14 am | # Thank you Pavel for your reply. Your code seems to solve my issue. But after some “play” I discovered that it is enough to add in the beginning of my post or page just the [latexpage] \begin{tikzpicture} \end{tikzpicture} After that, if I use the next code, in any place in my post or page $$\schemestart H\arrow O \schemestop$$ it renders perfectly. (it doesn’t happen in this comment) Does this behavior is expected or not? Thank you again Nikos • Posted December 17, 2016 at 1:22 pm | # This is probably because the formula was cached, and now QL just serves generated image from cache. Could you please try using absolutely new formula with the same trick? • Nikos Posted December 17, 2016 at 2:54 pm | # Hi Pavel, I have tested with a ton of new formulae and it renders normally. Finally I completely removed the tikzpicture tags and everything works fine. According to the chemfig manual there is no need to use explicitly this tag. There was probably a temporary (communication???) problem. Any way, thank you for your help. • Posted December 17, 2016 at 3:04 pm | # This tag is needed for QL server to know that code relies on TikZ and requires different compilation scheme. I guess you have some TikZ-related package included in global preamble or similar. In any case now QL detects that code needs TikZ and compiles it as such. Thank you for rating the plugin! • Nikos Posted December 17, 2016 at 3:09 pm | # In page 5 of chmefig manual is clearly stated: “In all cases, the tikz package, if not loaded before, is loaded by ChemFig” • Posted December 17, 2016 at 9:48 pm | # Sorry for not clear explanation. My own code on server must know if TikZ is used in a formula – to invoke proper sequence of tools to covert it to image. If it is TikZ code – it requires different processing (compared to documents with just mathematical formulas). So that QL server has to know if TikZ is used (or not) even before running the LaTeX. Now we just search for “tikz” substring in LaTeX code supplied to server to detect this. Probably you have it in your preamble – and server compiles it as TikZ. LaTeX has zoo of various modes, rendering techniques, etc. – we have developed quite a few pieces of our own software to support all these…. 220. zz Posted December 9, 2016 at 6:09 pm | # Hi Pavel, great work. I can find many reasons why the answer to my question is probably no, by I will still ask: Is there a way to use a package I wrote (mystuff.sty)? I tried to include it in the global preamble, but then I get: *** Error message: Error: Not allowed command sequence The command that breaks things down is (and I have a number of them): \makeatletter \define@key{polyhedron}{dim}{\def\mm@dim{#1}} \define@key{polyhedron}{phi}{\def\mm@phi{#1}} \define@key{polyhedron}{theta}{\def\mm@theta{#1}} \DeclareDocumentEnvironment{polyhedron}{m} { \setkeys{polyhedron}{ dim={2}, phi={0}, theta={0}, ,#1 } % \ifthenelse{\equal{\mm@dim}{3}} { \tdplotsetmaincoords{\mm@phi}{\mm@theta} \begin{tikzpicture}[scale=\PolyhedraDefaultScale,tdplot_main_coords] }{ !\begin{tikzpicture}[scale=\PolyhedraDefaultScale] } } { !\end{tikzpicture} } \makeatother Note: the other macros are defined earlier and nothing breaks down until I include the code above. I suspect the problem is with \makeatletter \makeatother. Since users cannot load custom styles, I suppose allowing \makeatletter \makeatother is crucial. Another command that gives the same error but I do not see why is the following: \def\splicelist#1{ \StrCount{#1}{,}[\numofelem] \ifnum\numofelem>0\relax \StrBefore[1]{#1}{,}[\myhead]% \StrBehind[\numofelem]{#1}{,}[\mylast]% \else \let\myhead#1% \let\mylast#1% \fi } Thank you in advance for your help. • Posted December 9, 2016 at 10:10 pm | # Hi, Some commands are blacklisted, since there were many attempts to hack the server (include password file into formula, etc.). We will review the list to see if this causing the error. Will unblock the needed command if it is safe. • zz Posted December 10, 2016 at 7:02 am | # Hi Pavel, thanks for your answer. Is my guess about makeatletter correct? Is it blacklisted? Is the blacklist public or would that be compromise security in its own? I am asking so that I try change my package not to use blacklisted commands if possible. Since also the second command in my previous post breaks down, I suppose avoiding makeatletter alone is not enough. • Posted December 10, 2016 at 10:55 am | # Indeed, makeatletter was blocked as you anticipated. We have cleaned up the blacklist – now only very few commands are blocked. Please try again. • zz Posted December 10, 2016 at 10:15 pm | # Thank you very much for the prompt reply and reaction. The package still does not work out of the box, but the whole situation helped me realize makeatletter is (probably) not really needed. So, I started rewriting the package (using pgfkeys that avoid makeatletter ). Although it is time consuming, I think it will be better in the end. Keep up the good work and the server running 🙂 PS I will let you know if I manage to run the version with makeatletter anyway. 221. Eugene Posted December 16, 2016 at 12:16 am | # Hi Pavel, Thank you for this fantastic addon. 🙂 I was hoping you could help me.  \begin{align} C_{3}\left(n,n_{3}(1),n_{3}(2)\right) &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + C_{2}\left(n_{3}(1),n_{3}(2)\right)} \label{e3.1} \\ {C_{3}\left(n,n_{3}(1),n^{\#}_{3}(2)\right)} &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + n_{3}(1)^{p_C(2)}K_{2}} \label{e3.2} \end{align} Rendering it on the http://quicklatex.com/ , it displays correctly numbering it as two equations http://quicklatex.com/cache3/42/ql_f376c91ba945be22c7a6f87cb1c64242_l3.png. Rendering it on a WordPress site the numbering always counts it as one equation though. Example here: http://imgur.com/a/8i54H • Posted December 17, 2016 at 2:43 pm | # Dear Eugene, Our WordPress plugin, WP-QuickLaTeX adds extra functionality on top of quicklatex.com (which is used only to compile formulas into images). Auto-numbering of displayed equations is one of the extra-features. So that equations on page are numbered automatically according to LaTeX rules. For example, the following code  \tag{e3.1} \label{e3.1} C_{3}\left(n,n_{3}(1),n_{3}(2)\right) &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + C_{2}\left(n_{3}(1),n_{3}(2)\right)}   \tag{e3.2} \label{e3.2} {C_{3}\left(n,n_{3}(1),n^{\#}_{3}(2)\right)} &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + n_{3}(1)^{p_C(2)}K_{2}}  will be compiled as displayed equation with labels specified: (e3.1) (e3.2) Then equations can be referenced in text the usual way, by using (\ref{e3.1}) and (\ref{e3.2}) commands, which will be displayed as (e3.1) and (e3.2) respectively. QuickLaTeX includes hyper-links to matching equations with tag specified – all automatically. The only limitation right now – multi-line environments (align, etc.) cannot have numbers for each equation. Only one number for the whole environment is supported:  \begin{align} \tag{e3} \label{e3} C_{3}\left(n,n_{3}(1),n_{3}(2)\right) &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + C_{2}\left(n_{3}(1),n_{3}(2)\right)}\\ {C_{3}\left(n,n_{3}(1),n^{\#}_{3}(2)\right)} &= {\frac{1}{2}\frac{n^{2}}{n_{3}(1)} + n_{3}(1)^{p_C(2)}K_{2}} \end{align}  (e3) This is exactly your case, sorry for that :(. The workaround is to use one number for the entire environment or split formulas into different displayed environments as above. P.S. If you like the plugin – please leave your review here: https://wordpress.org/support/plugin/wp-quicklatex/reviews/ Those ratings are very helpful for other people to choose the right LaTeX plugin :). • Eugene Posted December 21, 2016 at 6:28 pm | # Dear Pavel, Thank you for your reply. I’m new to LaTeX so I hadn’t written off the idea that it was a mistake I’d made. I’ll still use your plugin. 🙂 222. Posted January 6, 2017 at 7:58 pm | # Years ago I was usin wp-quicklatex 3.0 Now, after years, I am returning to my blog. Tried to update wp-quicklatex. But it messes everything up. The formulas that in 3.0 looks well: http://arkadiusz-jadczyk.eu/blog/2010/12/notes-ehresmanns-connections-part-1/ after updating to 3.8.4 look as here http://arkadiusz-jadczyk.eu/images/badlatex.jpg What can be the reason. I am using the most recent wordpress and PHP 5.6 Thank you in advance ark 223. Posted January 8, 2017 at 5:48 am | # Dear Pavel, After reading comments and experimenting I have solved my problem. It was the plugin Image Caption Easy. After deactivating all seems to be ok. Thank you for your work! Really great. ark 224. Athena Posted January 10, 2017 at 5:48 pm | # Dear Pavel I’d like to have quicklatex enabled in my question options of a Quiz plugin. i’ve contacted with the theme provider for support. They said if using shortcode like $math equation$ will work. I’ve tried using this shortcode with quicklatex, it got no where, still some code like !$, or something. Then i used WP Latex plugin to active the shortcode and it worked. However i prefer using Quicklatex plugin because of its convenience. Pliz tell me what to do. Bests • Athena Posted January 10, 2017 at 5:51 pm | # Shortcode “latex”Math equation”/latex”. Sorry i didnt use preview button so, it appeared not as i expected • Posted January 10, 2017 at 6:16 pm | # QuickLaTeX doesn’t support the “latex”Math equation”/latex” format. You can use $math equation$ or any other supported by QuickLaTeX. • Athena Posted January 10, 2017 at 6:37 pm | # Hi I used the shortcode in the wanted-field(question options of my quiz), but it doesnt work at all:( • Posted January 10, 2017 at 7:15 pm | # I don’t know why this is so. Questions about quiz-related plugins+QuickLaTeX bubble up in this forum frequently, maybe someone on this forum can help. If not – please consider contributing this feature. 225. Leo Posted January 17, 2017 at 11:46 am | # The formula is shown correctly when page loaded at the first time. However, all the images disappear and only the LaTeX codes shown after refreshing the page. Is there anything I missed? Thank you very much! • Posted January 17, 2017 at 11:55 am | # Please be sure to disable “Photon” feature in JetPack plugin. It adds garbage to every URL pointing to image, even for SVG images. • Leo Posted January 17, 2017 at 1:08 pm | # Thanks Pavel, but I didn’t activate the JetPack plugin. • Posted January 17, 2017 at 2:50 pm | # Probably some other plugin, related to images. Any chance to see the actual page? • Leo Posted January 17, 2017 at 3:53 pm | # • Posted January 17, 2017 at 4:40 pm | # Some plugin adds “.pagespeed.ic.” suffix to every SVG image URL on your page. As a result, URL is corrupted and no image can be shown. You can solve this in two ways: (a) turn off the plugin which adds the suffix, (b) setup image format to “PNG” in QuickLaTeX settings. • Leo Posted January 17, 2017 at 5:13 pm | # I changed the image format and it seems to work properly now. Thanks. 226. Sean Danaher Posted March 16, 2017 at 7:59 pm | # Hi Pavel I use MATLAB a lot for generating graphs. I have some experience of Tikz but have used MATLAB for over 30 years and am much happier with plotting in MATLAB. With standard LaTeX I generate .eps files but these are not recognized in WP. There are some packages which convert MATLAB to Tikz such as matlab2tikz (https://github.com/matlab2tikz/matlab2tikz). I’m not having much success. I have tried a very simple plot(1:10) and can’t seem to get it to work. Have you any recommendations as to a different MATLAB toolbox or suggestions as to what I need to edit to get it to work? I’m sure it would be very useful for many others. Many thanks in advance Sean Danaher 227. Sam Posted March 21, 2017 at 6:37 pm | # Hello. Thanks for developping such a useful plugin ! I have issues trying to use $\og ... \fg{}$ which is included in the package[french]{babel}. I put the \includepackage[french]{babel} in my preamble though. Do you have any idea how I could go over this ? Many thanks to you. Sam • Posted March 22, 2017 at 10:46 am | # What issues do you have? Following code: $[preamble] \usepackage[french]{babel} [/preamble] \og An important quote\fg$  renders (correctly) as: • Sam Posted March 22, 2017 at 8:00 pm | # This works, Thank you. Does it mean that I have to set the preamble in every article and not in the package settings ? • Posted March 22, 2017 at 8:23 pm | # No, this should work fine if babel included into global preamble only (plugin settings->Advanced->preamble). Please provide details, so that we can reproduce the situation. • Sam Posted March 22, 2017 at 10:36 pm | # This is my full preamble :  \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[french]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp}  “Use LaTeX syntax sitewide” is set ON. When I write maths, $...$ formulas work perfectly, but \og...\fg{} do not. I just set the debug mode on so I could copy-paste the message given when using \og...\fg{} in an article, but le plugin does not give me any warning or error message. It just shows \og \fg as text. • Posted March 23, 2017 at 9:44 am | # QuickLaTeX automatically detects and handles the most standard LaTeX commands – math environments, etc. Other commands (especially from third-party packages) should be wrapped with $...$ tags. 228. Posted April 2, 2017 at 4:52 am | # Thanks for this great plugin and service. I’ve installed it to go away from jetpack and all his traps. Only to discover the great potential of WP-QuickLaTEX I’m learning LaTEX and wordpress at the same time, and I expect to use the plugin extensively. As soon as I found where to put the link in the footer you’ll have it. • Posted April 3, 2017 at 12:33 pm | # Hi Delfi, Thank you very much for your words, support and donation! We appreciate it very much. 229. Posted April 3, 2017 at 10:52 pm | # Thanks for this great plugin. Just one question.. How can I resize math expessions? (Larger math fonts and symbols) • Posted April 3, 2017 at 10:59 pm | # There are many ways to do that. See administrative settings of plugin “Basic Settings” which probably the simplest way. • Tassos Posted April 4, 2017 at 12:12 am | # Thanks for your quick answer. 230. Eduardo Morais Posted April 20, 2017 at 1:24 pm | # When the site is loading, the equations appear. When the site finishes loading, the equations disappear and the latex codes appear. Does anyone know why the error? • Posted April 20, 2017 at 3:13 pm | # Just disable “Photon” feature in Jetpack. 231. Posted April 26, 2017 at 12:28 am | # Dear Pavel, I am trying to install WP-Quicklatex to use it for my blog but get the following fatal error. Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_FUNCTION in /home1/duplinsk/public_html/blog/wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 2077 Do you know what could be the problem? Thanks in advance! Kind regards, Artem • Posted April 26, 2017 at 12:38 am | # I suspect the PHP version on your blog is too old, lacking support for lambda functions. Please upgrade, since old PHP suffers terribly from various security flaws. • Posted April 26, 2017 at 12:42 am | # Update: I managed to install and activate the plugin using the zip file downloaded from https://wordpress.org/plugins/wp-quicklatex/ • Posted April 26, 2017 at 12:52 am | # Theoretically there should be no difference…. 232. Matthias Gerbholz Posted May 4, 2017 at 12:05 am | # Dear Pavel, as far as I see, with WP-Quicklatex each math formula is downloaded as a separate file. This causes a lot of server requests. Is there a way to reduce the number of files to be downloaded? Maybe something like an “SVG-sprite” or some other method? Thank you very much! Kind regards Matthias • Posted May 4, 2017 at 12:46 pm | # This is good idea (along with PNG sprites, etc.) and we considered it some time ago. However, looking over WordPress landscape we think that these kind of optimizations should be carried by some separate plugins (e.g. Autoptimize, WP-SuperCache, etc.) which optimize the website as a whole. This have sense as every website might have different set of plugins, CSS, scripts, etc. It is better to optimize all these as a whole, merging all SVGs/PNGs (e.g. coming from different plugins) into one sprite, concatenating all CSS & scripts, etc. Autoptimize does very good job at this already (except for SVG sprites). I hope they will add optimizations for SVG in future. • Posted May 5, 2017 at 8:35 pm | # Perhaps we should campaign for this function to be included in Autoptimize (Perhaps there is room for a litle contribution for the author too) 233. Alejandro Sierra Posted May 18, 2017 at 2:00 am | # The script is very good with math but with simple text styles it does nothing, par example it doesn’t change \textsl{ } . What should I do? • Posted May 18, 2017 at 9:55 am | # QuickLaTeX is designed for including formulas into pages, not for changing text style. CSS & HTML is way better suitable for this. However still you can do that with QuickLaTeX, just mark LaTeX commands with !$..$: Some text, !$\textit{Some text}$, !$\textsl{Some text}$will be rendered as Some text,$\textit{Some text}$,$\textsl{Some text}234. Kan Li Posted May 20, 2017 at 8:16 am | # IEEEeqnarray environment is not working for me. I am not an expert to LaTex, so any suggestion of workarounds is welcome? Thank you. To reproduce, just go to quicklatex.com and have preamble  \usepackage{IEEEtrantools}  and LaTex code  \begin{IEEEeqnarray}{rCl} a & = & b + c \\ & = & d + e + f + g + h + i + j + k \nonumber\\ &+ l + m + n + o \\ & = & p + q + r + s \end{IEEEeqnarray}  This code snippet comes from an example from lshort. • Posted May 20, 2017 at 12:10 pm | # This is non-standard environment, wrap it with $...$ tags, e.g: $[+preamble] \usepackage{IEEEtrantools} [/preamble] \begin{IEEEeqnarray}{rCl} a & = & b + c \\ & = & d + e + f + g + h + i + j + k \nonumber\\ &+ l + m + n + o \\ & = & p + q + r + s \end{IEEEeqnarray}$  It will be rendered as: • Kan Li Posted May 21, 2017 at 8:29 am | # Thanks for your help. It now renders it. The problem right now is the formula is not horizontally centered on the page. How do I do that? Thanks. • Posted May 21, 2017 at 1:51 pm | # Well, this is non-standard environment, QL has no advanced support for. Try centering it using HTML & CSS, or switch to eqnarray. 235. Posted May 30, 2017 at 9:36 am | # Ivo Velitchkov: “I installed the WordPress plugin with the sole intention to use it for LoF formulas, … but it doesn’t work. “ The CROSS command in your example is non-standard LaTeX command and it should be added to LaTeX preamble, e.g.: \begin{align*} [+preamble] \usepackage{amsmath} \newcommand\CROSS[1]{% \hbox{% \vbox{ \hrule \kern1.5pt \hbox{#1\,\strut} }% \vrule }\mskip\thickmuskip } [/preamble] f &= \CROSS{\CROSS{\CROSS{\CROSS{\dots a}b}a}b} \ &= \CROSS{\CROSS{fa}b} \end{align*}  Then formula will be rendered properly: • Posted May 30, 2017 at 5:00 pm | # Now it works. Thanks a lot! • Posted May 30, 2017 at 9:59 pm | # By the way, are you one of the authors, and in any case, do you know how the LaTeX gadget in Rizzoma works? Probably some other syntax for the preamble should be used there. 236. Posted May 31, 2017 at 10:20 pm | # When I write this Let a functionf$, so that Find the$\displaystyle\lim_{x\to 0}f(x)$it is taken as output the following. “Let a function f , so that find the$\displaystyle\lim_{x\to 0}f(x)$” Why I have note inline the latex formula? Thank you Find the • Posted May 31, 2017 at 10:36 pm | # The theme you are using inserts line breaks around images. This is usual issue – by default theme developers assume that you will insert photos into text which needs the line breaks. • Tassos Posted June 1, 2017 at 7:53 pm | # Thank a lot. Elegant (Divi) is compatible with quicklatex? 237. Posted June 1, 2017 at 7:48 pm | # Thank you for your answer. I have already solved this problem changing the template. Quicklatex is compatible with elegant themes (DIVI for example)? 238. Sharif Payenda Posted June 29, 2017 at 2:42 am | # Hi, Is it possible to omit font size option from plugin and let the installed theme to control the font size. As a result every equation will be nice in desktop and mobile view. For example my theme has 17 px font size for desktop and 15px for mobile. I want equations in 17px desktop and 15px mobile view. Mathjax works like what I said and does not control font size. It will be also a good option to integrate disable font size option. If someone wants to use quicklatex font size or someone else theme font size, both will be possible. Regards, • Posted July 3, 2017 at 4:49 pm | # This requires quite a lot of changes to how plugins works. Basically now it is heavily server-side rendering engine. Adaptive font size would require more advanced client-side functionality (dual-mode for desktop and mobile browsers, two-size caches, etc.). It is doable (anyone is very welcome to add this functionality), but needs non-trivial time to implement and test. 239. Posted July 2, 2017 at 10:13 pm | # Hi, I am trying to enter a table (via tabular environment) in my latexpage, for example$\begin{tabular}{|c|c|}\hline
{+}\cdot {+}=+ &{ -}\cdot{ -}=+\\ \hline
{+} \cdot{ -}=- & {-}\cdot{+}=-\\ \hline
\end{tabular} $I have a false message ” Error message: Missing$ inserted.
leading text: +\cdot” . Which is the problem, because in TexStudio it seems to be ok.
Thank you in advance

• Posted July 3, 2017 at 1:49 pm | #

Check your settings (System->Debug Mode: OFF), everything works fine on my site, as you see.

• Posted July 4, 2017 at 12:53 am | #

Now, it is is fine. Thank you.
If that it is not tiring for you , another question. I can put in the settings-preable a package to write Greek in the Latex, as in the TexLive.
Regards

• Posted July 4, 2017 at 9:36 am | #

Basically QuickLaTeX allows usage of any package from TexLive. Please try the package and share your experience.

• Posted July 10, 2017 at 6:31 pm | #

When I want toy type $α,β,γ$ instead $\alpha, \beta, \gamma$, I think it is necessary to use the Asana Math or Gambria Math font. I do not use Type 1 (not Unicode).
regards

240. Posted July 8, 2017 at 3:55 am | #

Hi,

I recently created a non profit physics and maths website http://www.planckti.me, and your plugin has been essential. We are going to put a very visible link to QuickLatex because we 100% believe its amazing. We were just wondering if you were interested in anyway in helping us out. I’m trying to create quality high school and undergraduate notes free for anyone to access. Would you in anyway be able to support us with a one off donation or a mention to people.

Thanks,

Amin (uk physics student, 18)

241. Posted July 8, 2017 at 6:06 am | #

Hi,
I would like to discuss with you about a commercial license for my website.
Also, do you have a plan to support these Latex commands in future?
-\section{}
-\subsection{}
-\begin{figure}
-\caption{The basic}
-\label{FIG_LAT}
-\end{figure}
-\textbf{}
-\textit{}
-Theorem, Lemma, …

Thanks,
Kevin

• Posted July 9, 2017 at 2:32 pm | #

Another important thing to support is %.

• Posted July 18, 2017 at 10:37 am | #

Dear Kevin,

Thank you for your questions.
As for the figures – please switch to TikZ which is supported by QuickLaTeX. Text font decorators \textbf, already work, but need to be wrapped with $...$ tags.

Text organizers – sections, theorems, etc. – I am not sure if these will be supported.
QuickLaTeX is intended to translate just pieces of LaTeX code, not the full LaTeX -> HTML conversion.
Please use HTML for text organization on webpage, at least for now.

• Posted July 18, 2017 at 3:00 pm | #

Thank you for your kind response and this wonderful tool.
I asked questions about supporting more Latex commands because I don’t write my web pages from scratch. I have many documents that I had written them in Latex and want to convert them to web pages. So, after converting a chapter to a page, I look at the result and manually convert any command that is not supported.
For example, all my TikZ drawing is inside a \begin{figure} and \end{figure}. I don’t mean you support figure command. You can detect \begin{figure} command and just delete it instead of treating it as a text.
Another example is section{}, you can just convert it to a bold text. Some simple conversion for each command.
BTW, I am using your tool for making pages for my commercial website. Do I need to buy license? I couldn’t find information about buying license anywhere.

• Posted July 18, 2017 at 4:56 pm | #

Dear Kevin,

I sent you information about commercial license to info@ppacc.ca

242. Posted July 18, 2017 at 6:26 am | #

Thank you for this most valuable WordPress plugin! I would like to use it on my blog. I’m the author of the mandi LaTeX package and your plugin is the only way I know of to use my package in my own blog so again I thank you for your development efforts! My problem is that the latexpage code apparently isn’t working for me. I can only get mandi commands to work when I surround them with latex tags despite having set a systemwide preamble. Am I missing something obvious?

• Posted July 18, 2017 at 10:30 am | #

QuickLaTeX automatically detects only standard LaTeX commands. Commands from packages need to be wrapped with $...$ in order to be processed by QuickLaTeX.

• Posted July 18, 2017 at 12:05 pm | #

Aha thank you very much! Yes, after more experimentation I now understand. Some mandi commands that use custom environments (e.g. miderivation, mistudentnote, and others) don’t seem to render correctly. If you can suggest improvements that I can incorporate into mandi to make it more friendly to QuickLaTeX I would love to have your input. Again, thank you for this excellent plugin!

243. Alex
Posted July 21, 2017 at 9:36 pm | #

Hello, can i implement this example with QuickLaTeX? http://www.texample.net/tikz/examples/mosfet/

Thanks!

• Posted July 21, 2017 at 10:13 pm | #

Have you tried? What was the issue, if any? Just copied and it compiles to:

Don’t forget to add siunitx into your preamble.

• Alex
Posted July 22, 2017 at 12:14 am | #

Thank for quick reply, it works! I forgot about preamble. Wonderful plugin!

244. Posted August 29, 2017 at 6:40 am | #

Hi, Pavel! Is there any WAY to make a single post, and only one, in “format article”, leaving the rest of the posts untouched? Suggestions to do something? I am going to make my post number 200, it is special, and I would like it to be a very “article-like” (just like a scientific letter or similar). Any idea?????? I don’t want to touch the format of previous posts. That is important as well. Thank you in advance! Wow…I should do some of those pics for my blog too! :).

• Posted August 29, 2017 at 9:56 am | #

QuickLaTeX doesn’t “touch” any posts unless you put somewhere in its text.

• Posted August 30, 2017 at 2:09 am | #

Perhaps I have not explained it well. In the preamble, and only for certain posts, I would like to declare document type class “article, 12 pt” …So, if I put documentclass {article} … in the preamble, would it alter other posts ? OK, I see… 🙂 I will test it…Thanks a lot by the response Pavel!

• Posted August 30, 2017 at 11:07 am | #

QuickLaTeX doesn’t support document classes, nor the full LaTeX article translation into HTML.
Its main goal is to translate pieces of LaTeX code into images.

245. LaTech
Posted August 31, 2017 at 4:03 am | #

I was reading a site with inline Greek characters, and was disappointed that the on-hover title was “Rendered by QuickLaTex.com” instead of something helpful, like the name of the character. It’s an image, too, so I can’t google the character. For the easy cases, where only a single character is rendered, could you please add its name to the hover text for those of us who don’t remember our university maths or use a screenreader?

246. Posted September 6, 2017 at 6:12 pm | #

Hi, Havel, I have a question for Quiz (LearnPress) . How can I insert math equations in the answers text? doesn’t work. Thanks

247. Andre
Posted September 14, 2017 at 1:09 am | #

Hi, almost prefect plugin, today when I use your plugin to format my equation in a page the $sign I used inside tag representing some codes get confused with$ control sign of your plugin. I think you should excludes codes written inside html tag or a simple rapid solution would be to provide some closing tag like [/latexpage] of course optional.

• Posted September 14, 2017 at 11:50 am | #

According to LaTeX syntax, you can escape the $from processing by placing “\” in front of it. Or, alternatively, you can disable processing$ altogether by adjusting QuickLaTeX settings (QuickLaTeX->Advanced->”Exclude $..$”).

• Andre
Posted September 14, 2017 at 12:27 pm | #

Thanks Pavel, I ‘ll definitely use your solution. but please consider not processing inside of pre tag in html for your feature versions. Almost every one use pre tag to include source code (most programming languages use especial characters that will be processed by your plugin ) and when some one like me wants to include all the features like your dollar sign with the source code in a page things become tough since I have to find all the dollar sings and escape them. But your plugin worth doing so, I really appreciate it.

248. Posted September 23, 2017 at 7:30 pm | #

Dears,

for some reason on all my browers it happens that the page is at first rendered correctly, then for some reason the formulas revert back to a normal text copy: I do see “$” etc. there might be something wrong in my wordpress website. maybe there is another pluging that conflicts? Thanks Andrea • Posted September 23, 2017 at 10:06 pm | # Try deactivating the Photon in Jetpack. 249. Posted October 4, 2017 at 2:32 am | # Hi, I have latex code which defines a new symbol by having a tikzpicture environment inside a \newcommand statement. Also \overset is used with the symbol in equations. Is there a way to implement this in quicklatex? Thanks. • Posted October 4, 2017 at 12:05 pm | # QuickLaTeX provides all necessary features (e.g. custom preamble, tikz support, etc.) to do that. Please try your particular code and report back if you encounter any issues. 250. Posted October 27, 2017 at 4:01 am | # Hi Pavel. I would like to show the polynomial division using the polynom package. The version of package 0.19 also includes the style=D case, which does not recognize the QuickLatex. Is it possible to upgrade the package to its latest version? (https://mirror.hmc.edu/ctan/macros/latex/contrib/polynom/polydemo.pdf#%5B0,{%22name%22:%22Fit%22}]p.33 Thank you in advance 251. Yunchuan Posted November 4, 2017 at 4:15 pm | # It conflicts with the Jetpack plugin with Markdown turned on (Jetpack -> settings -> writing -> composing -> Write posts or pages in plain-text Markdown syntax). For example, the following latex fragment is not displayed correctly when Markdown is turned on.  x^* \[ f_k = f(x_k),\: x_k = x^*+kh,\: k=-\frac{N-1}{2},\dots,\frac{N-1}{2}$ 

It seems that this is because the Jetpack plugin executes before QuickLaTeX.
The Jetpack output the following code to be the input of QuickLaTeX, which is not expected.

 $x^<em>$ $f_k = f(x_k),\: x_k = x^</em>+kh,\: k=-\frac{N-1}{2},\dots,\frac{N-1}{2}$ 

252. Posted December 4, 2017 at 5:50 pm | #

Hi Pavel

I am trying to figure out how people could leave comments with $\LaTeX$ inside.

Using the same syntax as in the articles / pages, ie with the shortcode , I can see that latex commands are interpreted but the result is tiny and I couldn’t find a way to get inline latex commands processed properly.

I guess that the solution to this problem may come from CSS but I am new to all this and don’t know where to look.

253. Posted January 30, 2018 at 4:47 pm | #

Hi. I am using your plugin to display latex equation on my site, kimiamath.com. I have a problem with a long equation, there seems to be a space on the left side, so some of the equation is not displayed on browser (especially when accessed with mobile phone). I have change the width on ql-left-eqno class, but nothing happened. What should I do then?

254. Posted March 16, 2018 at 6:36 am | #

I am going to contribute to your excellent plugin. It solved my formula problem readily.

Meanwhile I have tried to insert a table, and failed. I used the [latex mode =1] at the start of the LaTeX code and the [latex] at the end.
I will send a screenshot to you of my WordPress draft, and would very much welcome your advice. Thank you.

255. Posted April 18, 2018 at 7:59 pm | #

Hi

Does this also support Graphviz? (separately or at least via latex package?)

256. Posted April 24, 2018 at 7:29 am | #

Hi Pavel,

I am using the wordpress plugin and trying to get the automatic equation numbering to number by chapter like 1.1, 1.2 etc instead of just 1, 2. Is this possible with QuickLaTex?

Thanks

257. Posted July 3, 2018 at 9:20 am | #

On the May page ( https://ira-help.com/2018/05/03/may-2018/ ) I have 2 cool graphs — versions of the Gaussian/Normal-dist. curve.

I have 2 problems:
1) When QuickLatex is running, my page is superimposed on/with the WordPress interface. I see parts of both pages, and I cannot click on a link
2) It/the-server quits and pukes error-messages when I try to display math formulas typeset with “fx” — or only works if part of the formula is entered
3) When I find the QuickLatex plugin on the plugins-page, I see a message that says “this plugin many not be compatible with the current version
of WordPress”

When will a new ver. of QuickLatex be released? I am using WP release 4.9.6 (latest) .

258. Bertalan Pecsi
Posted July 5, 2018 at 9:24 pm | #

Dear Pavel,

I recently applied a custom domain name of my (Amazon EC2) server which was running WordPress+QuickLaTeX pretty nicely.
After I have updated both WordPress Address and Site Address in wordpress’ general settings, the newly written formulas don’t get rendered, instead -after a while- it displays
 *** Error message: Cannot connect to QuickLaTeX server: cURL error 28: Connection timed out after 10001 milliseconds 

Do you have any suggestion, what to plug out and in, what configuration to rewrite and how/where?

• John
Posted July 23, 2020 at 8:01 am | #

I’m having a similar error. Did you find a solution?

259. Posted September 16, 2018 at 9:05 am | #

Hello Pavel,
First of all, thank you for creating such a nice plugin.
I am using QuickLatex plugin in WordPress and it has been working very well. Recently, however, I noticed that it does not show the Latex content in my weblog (for instance: http://alipourmousavi.com/blog/index.php/2017/09/22/multi-row-and-multi-column-table-with-background-color-in-latex/#comment-3). I have always had “Cache images locally” on, as recommended by the package author. When I carefully observe the loading process, I see that the pictures rendered by QuickLatex show up for a fraction of a second and then disappear. I checked the console debugging and I see the following error:

Failed to load resource: the server responded with a status of 400 () WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403

I googled with different keywords and I couldn’t find any solution to the problem. Have I been blocked? Really appreciate if you can help to fix this issue.

260. Posted October 21, 2018 at 9:54 am | #

Hello, Pavel. Recently I encountered errors by using QL. I have used this for a year, but now after take some actions, the error caused the plugin can’t render the formula. It said that I need to allow my PHP/server settings: HTTPs request to external resources. And then it said can’t connect to quicklatex server 80. I don’t know how to handle this. Pleaze help me.

261. Posted October 23, 2018 at 3:27 pm | #

Hello,

I am a big fan of QuickLatex, and using it in my wordpress homepage pandastein.com, which is just staring to be build.
But suddenly, QuickLatex does not work! So I seriously need your help.
On the post

http://pandastein.com/quicklatex-example/

I posted the source code

$a_b$ \\ $\frac{a}{b}$

and as you can see on the post above, every expression has an “unknown error”. What’s wrong with it?
In fact, I am a total newbie for wordpress, actually for web itself. So my technology level is almost on the base. But I hope I can fix it with my own effort.

Sincerely, Jungyoon

262. Hero Miles
Posted October 24, 2018 at 1:42 am | #

This Quick Latex is just awesome.

263. kKiasti Ligasini
Posted December 26, 2018 at 6:37 am | #

Hi!
There are problems with the loading time (40-60 sec)… is there an explanation?
Best Regards

264. Posted December 27, 2018 at 8:29 am | #

Hi, did you block mfcosmos.com ?

• Posted December 27, 2018 at 9:00 am | #

also i changed “true” with “false” (in php…) to load from cache because the loading time was 20-60 sec … thank you

265. Posted January 9, 2019 at 2:58 am | #

Hi Pavel and Happy New Year.
I am using your plugin in my wordpress sites and I am very satisfied.
I am using the package chemfig as well which recently upgraded to <a href="https://www.complang.tuwien.ac.at/doc/texlive-pictures-doc/generic/chemfig/chemfig_doc_en.pdf"version 1.33.
My question is, what is the version of chemfig that is used by QuickLaTeX and how could I select the latest one?
For sure it is not one of the latest because it does not support the \setchemfig.

• Posted January 9, 2019 at 3:01 am | #
266. Andrey
Posted January 21, 2019 at 8:53 pm | #

Hello. I’ve just started to create a website. I use \Leftrightarrow (with $…$) and here (on this site) i see $\Leftrightarrow$ but on my site i see some strange symbols or another one strange symbol. (i add \usepackage{latexsym} to global preamble.

267. Posted May 9, 2019 at 2:19 am | #

When I preview or publish the WordPress.org page (blog post) with latex equations, I see the equations displayed quickly and correctly once the page is ready, but then they disappear and show only icons that indicate Rendered by QuickLaTex.com. Inspecting the code, the img src path is, for example, https://i2.wp.com/metricofmatter.com/wp-content/ql-cache/quicklatex.com-ed12970f60569db1dfd9f13289854a0d_l3.svg?resize=14%2C12&ssl=1.

This gives an error – Failed to load resource: the quicklatex.com-ed12970f60569db1dfd9f13289854a0d_l3.svg?resize=14%2C12&ssl=1 server responded with a status of 400 ().

• Posted May 9, 2019 at 10:31 am | #

This is because JetPack messes with the images generated by QuickLaTeX. Disable “Photon” and related features.
This is very common issue, please search comments for “Photon”.

268. Posted May 13, 2019 at 7:11 pm | #

Hello,
I have tried QuickLatex via the Demo, and it is impressive. I would be very happy to use it, but unfortunately, my CMS Website is SPIP https://www.spip.net/en_rubrique25.html and not Word Press. I have tried to used it as a plugin for SPIP, it was loaded correctly, but did not work. Reading the code it does not seem at first sight impossible to succeed such an adaptation for SPIP, but I am not good enough on coding. Could you help me please? It would be nice to get a QuickLateX plugin for SPIP users.
Best wishes,
Jo.

269. Posted May 14, 2019 at 12:42 pm | #

First of all, thank you for this awesome tool! I was very happy to see there was a WordPress plugin supporting TikZ.

I am having some weird inline LaTeX alignment issues. It mostly seems to affect equations using the minus sign in a subscript, but some other equations are affected to. I’ve tried different themes, and LaTeX fonts to see if it was an issue having to do with those, but it persisted. Any idea on what I need to do to fix it?

Thanks!

270. Posted May 19, 2019 at 9:33 pm | #

Hello, I am one of Quick Latex Plugin User. Recently, I have encountered some problems about caching the images of Latex by using this plugin.
I don’t know what happen, but the plugin can’t render the image successfully, making it only shows the real code of Latex, with a pic of breaking image on the left side. You can see the errors here: scroll down below and you will see it I bet
https://mathcyber1997.com/pembuktian-identitas-trigonometri/
When I turn off caching images locally in the setting, it solves the error, but cost much of time to reload the page, making it ineffective, so I turn it on again. By seeing this, I bet that it is about caching problem.
Sorry for my bad English

• Posted May 20, 2019 at 12:42 pm | #

Something was changed on your webserver – something which prevents QL from saving images to cache.
Check permissions of the directories (cache directory of QL), and other settings on your webserver

• Posted May 20, 2019 at 4:25 pm | #

I am positively sure that no change of setting in webserver. Maybe there are some ways to restore the image so they can perform normally.
Even if I delete, and later uploading the same formula to the same post, it still shows the error.

• Posted May 20, 2019 at 6:32 pm | #

Things do not stop working without changes :). QuickLaTeX worked fine on your webserver before – and we didn’t change anything in its code.
Which means something has changed on your webserver or WordPress settings, or some other new plugin was installed, etc. Something has been changed for sure.

• Posted May 23, 2019 at 12:42 am | #

I have checked qlcache in folder wpcontent on my cpanel setting. I open the folder, and see that there are several ql files in tex format instead of svg. This what causes the error and the image can’t be rendered. I just wonder how to fix this. I try to delete qlcache, but when it restores, the files are same as the old one, tex files found in the folder.

• Posted May 23, 2019 at 11:15 am | #

Something on your server preventing QL from generating images from tex files.

271. Ryan
Posted May 20, 2019 at 4:00 pm | #

Hi,
Thanks for your plugin,

Would you please let me know which verion of Texlive is installed in your server since some packages are not found, for example, mcexam.sty
Also, I am trying to include this command in preamble , why it warns me :Not allowed commands Sequence?
\newcommand{\comm}[1]{}
\ifdef{\myoutput}{}{\def\myoutput{exam}}
\ifdef{\myversion}{}{\def\myversion{5}}
\newcommand{\mysymbol}{\textasteriskcentered}
\newcount\mycntr
\newcommand{\repeatedsymbols}[1]{%
\begingroup
\mycntr=0
\loop\unless\ifnum\mycntr=#1%
\mysymbol%
\repeat
\endgroup
}

\newcommand{\lettersymbols}[1]{%
\ifcase#1
\or
\textasteriskcentered
\or
\textdollar
\or
\textdagger
\or
\textsection
\or
\textsterling
\fi
}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\footrulewidth}{1pt}
\lfoot{\mctheversion}
\rfoot{Page \thepage\ of \pageref{LastPage}}

\renewenvironment{setmcquestion}{\begin{minipage}[t]{\linewidth-\labelwidth}}{\end{minipage}\par}
\renewenvironment{setmcquestioninstruction}
{\begin{minipage}{\textwidth}}
{\end{minipage}}

\setlength{\parindent}{0cm} % Default is 15pt.
\frenchspacing
\raggedbottom
\setlist[setmcquestions]{label=\mcquestionlabelfmt{*}.
,ref=\mcquestionlabelfmt{*}
,itemsep=0.5\baselineskip
,topsep=1\baselineskip
}

\NewDocumentCommand{\rot}{O{45} O{1em} m}{\makebox[#2][l]{\rotatebox{#1}{#3}}}%
\global\def\numq[#1]{[Questions \the\numexpr\value{setmcquestionsi}+1\relax–\the\numexpr\value{setmcquestionsi}+#1\relax]}
\global\def\numqq[#1]{(\the\numexpr\value{setmcquestionsi}+#1\relax)}
\newcommand{\blank}{……………}

\hyphenation{al-kap-to-nu-ri-a}
\AtBeginDocument{%
\renewcommand{\mctheversion}{\lettersymbols{\value{mcversion}}}
}

Thanks

272. giannit
Posted May 30, 2019 at 2:20 am | #

Hello, new user here!
I take this opportunity to thank you for the amazing work you put in the plugin, it really is amazing and easy to use!
I have a small problem, probably my fault, which I am not able to solve.
When I use the search bar of the site, the text of the articles in the search page don’t show the latex equations and symbols.
For example, on my site there is a small page which contains the following text:

The equation $x+1=0$ has not solutions for $x\in\mathbb{R}$

But when I search for this page using the search bar (I write in it the page title,which is 2p31), this is what it is shown:
https://i.imgur.com/OigQfTG.png

Is there a solution for this problem?
Thank you very much

• Posted May 31, 2019 at 5:14 pm | #

Plugin generates images for equations, it doesn’t preserve text of the formula – and thus it cannot be searched.

• giannit
Posted May 31, 2019 at 11:41 pm | #

Thank you very much for the fast reply.
Sorry, I think that I badly explained myself in the previous message.
I didn’t mean to search the text of the formulas, but I meant that when I search the title of a page (the page contains both words and latex formulas) in the search page (which is the page that is loaded when I write the title of the page in the search bar and press enter) only the words are shown, while the formulas are not shown.
For example, if the content of the page is

The equation $x+1=0$ has no solutions for $x\in\mathbb{R}$.

in the search page what it is shown is

The equation has no solutions for .

Is it possibile to show formulas also in the search page?
Thank you very much for the support.

• giannit
Posted June 12, 2019 at 7:51 pm | #

Using the plugin Advanced Excerpt the problem is solved.

273. Jim
Posted July 3, 2019 at 1:14 pm | #

Can we incorporate REVTeX with your plugin (via \usepackage declarations)?
Thanks.

• Posted July 3, 2019 at 3:54 pm | #

Have you tried it with QuickLaTeX? We use TexLive, the chances are it is already installed on our server. Or just send me some example

• Jim
Posted July 6, 2019 at 1:20 am | #

I think it actually works. I tested it out this morning. I’ll keep you posted should we run into additional concerns. Thanks.

274. Posted July 15, 2019 at 5:16 am | #

Whenever I use my website on mobile I can’t see the equations properly. They get cut. I think it is for my latex plugin. How can I solve this?

275. Posted July 16, 2019 at 3:52 am | #

Hello! i have a little problem with this programme in wordpress(“Quick LaTeX”) because i can’t put the latex text in other color. Could you give me the code to put it or the solution ? please!

276. Andrey
Posted July 16, 2019 at 4:10 am | #

Hi, Pavel! Plugin is great! Is it possible to use Cyrillic fonts in formulas?

• Posted July 16, 2019 at 4:17 pm | #

Most probably “yes”, because QuickLaTeX is just a wrapper for TexLive distribution.
Use preamble to include Cyrillic fonts and you usually do and let me know if it works.

• Andrey
Posted July 16, 2019 at 6:13 pm | #

Usually I use MiKTeX and
\usepackage{mathtext}
for Russian letters in formulas but now nothing happens. There are no errors, but Russian letters are ignored.

• Andrey
Posted July 17, 2019 at 3:25 am | #

Usually I use MiKTeX and
\usepackage{mathtext}
but nothing happens. There are no errors but Russian letters are ignored. Maybe because of Unicode.
And if I add
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
there are errors..

• Posted July 17, 2019 at 11:18 am | #

You are right, I cannot include Russian either. Maybe we need to install something like ‘texlive-lang-cyrillic’ package.
Do you need to include Russian symbols into formulas? If you want to use Russian in text – HTML would be better option.

• Andrey
Posted July 18, 2019 at 5:30 am | #

Yes, the idea was using variables like Z_{нагр.}, E_{двиг.}, U_б in equations.

277. Posted July 17, 2019 at 4:47 am | #

$\left \{ \Phi_{3}-\Phi_{5} \right \}\rightarrow Extensive\hspace{5}property:\hspace{5}left\hspace{5}CV.$
In this equation, I need to put color, how it is done?

• Posted July 17, 2019 at 11:09 am | #

Put \quicklatex{color="#00ff00"} command in your formula text. Color value can be anything (green is just for example).

278. Posted July 22, 2019 at 2:57 pm | #

I notice that QuickLatex makes the server entry processes high in maximum condition recently, so resource limit is reached. Are the server of yours down?

279. giannit
Posted July 27, 2019 at 10:30 am | #

Hello, I have noticed that the are small flaws in the visualization of numbers on my site.
By writing this code
$0123456789$ – $0$ $1$ $2$ $3$ $4$ $5$ $6$ $7$ $8$ $9$
what I see on the site is this.
As you can see:
1. some digits (1 2 4 5) are displayed differently (smaller and in a wrong position) when they are written alone between $symbols 2. almost all digits are cut a little at the top and at the bottom My only activated plugin is QuickLatex and I’m using the default font. How can I solve these small problems? Thank you very much • Posted July 28, 2019 at 11:22 am | # This issues comes from dvisvgm we use for generating SVG files. I don’t know how to fix this for the moment, because this is third-party software. You can try to use PNG image format in the QuickLaTeX settings. • giannit Posted July 29, 2019 at 8:48 am | # Thank you very much it worked! Do you know if there is a way to automatically represent numbers outside math mode as numbers inside math mode? For example, it would be nice to have an option which, in pages where there is the [latexpage] marker, let automatically display the text 3 is a prime number because its only dividers are 3 and 1 as$3$is a prime number because its only dividers are$3$and$1$• Posted July 29, 2019 at 11:39 am | # This is not compatible with LaTeX, and in fact, can create a lot of mess on usual sites. But most importantly you might want to keep the numbers as text, so that search bots can index it and show in search. • giannit Posted July 31, 2019 at 1:03 pm | # “keep the numbers as text, so that search bots can index it and show in search” Oh i didn’t think about that, thank you very much Pavel for the help you provide us! • giannit Posted September 16, 2019 at 12:41 am | # I found an easy solution which kills two birds with one stone: installing the latex font Computer Modern Serif. In this way numbers written in text mode (ie without the$) are displayed as if they were in math mode, with the advantage that they are not cut above and below.

• giannit
Posted October 8, 2019 at 11:16 am | #

Hi Pavel, I was looking at the browser console tool, and I noticed that the problem in the strange visualization of the numbers is due to wrong tag values.
When I write !$0$ !$1$ !$2$ !$3$ !$4$ !$5$ !$6$ !$7$ !$8$ !$9$ on my site and then I look at the console, I see that the tags height, width and vertical-align are not the same for all the images.
For example
!$0$ has height=”12″ width=”9″ style=”vertical-align: 0px
!$1$ has height=”13″ width=”7″ style=”vertical-align: -1px
!$2$ has height=”12″ width=”8″ style=”vertical-align: 0px;”>
etc
I tried to manually adjust the values, I set all height to 13, all width to 9 and all vertical-align to 0, and with these values the numbers are displayed correctly.
You can see from these images before and after the manual adjustment.
Is this a problem of my site or is a problem on how the tag values are computed by the server?
Thank you very much.

• Posted October 8, 2019 at 11:40 am | #

This is because you render each digit in separate formula – and alignment/width computed for each digit separately from each other.
Every digits looks different even in the same font, e.g. take a look on this line of digits in Georgia font: 0 1 2 3 4 5 6 7 8 9
You see – each digit has its own alignment, width and height.
If you want somewhat uniform sizes for each digit – use mono-space fonts (for terminal) and render them as one formula.

Fonts are very extensive topic, we leave it to LaTeX. We just use alignment and other properties provided by LaTeX.

• giannit
Posted November 22, 2019 at 6:26 pm | #

Hi Pavel, excuse me if I disturb you, I’m deepening how quicklatex images are outputted.
For example on my site these two similar formulas
$a^{n+m}$
and
$a^{n-m}$
have different heights, hence one looks smaller than the other.
Also on this site they have different heights (17 the first, 14 the second) hence the visual sizes are not matching: the characters in the first formula looks bigger than the characters in the second one.
I’m trying to solve this problem, but I don’t know how.
Is there are a reason for this?
Thank you very much

• giannit
Posted November 22, 2019 at 6:40 pm | #

It seems that adding this to style.css
img { height: auto; }`
can be a workaround.

280. Benjamin Oberholzer
Posted July 27, 2019 at 6:24 pm | #

Hi, I’m using WP Quicklatex and it works great on my blog! Thanks for an amazing plugin!

Is there a way to prevent the plugin from interpreting a section of text between two dollar signs as a formula? For instance, if I type the line “I’ve spent [dollar-sign]5 on this and [dollar-sign]3 on that” it will interpret the part between the two dollar signs as an equation. Is there a way of escaping the dollar character so it doesn’t do this?

(I’ve actually had to use the [dollar-sign] notation above to keep the plugin from mixing up my sentence… 🙂 )

• Posted July 28, 2019 at 11:18 am | #

Put exclamation sign in front of the dollar sign, e.g.: !!$\sqrt(2)$
This escapes it from processing.

Or you can exclude dollar sign processing on all pages using QuickLaTeX -> Advanced -> Exclude !$..$

281. giannit
Posted August 13, 2019 at 7:44 am | #

Hi, I’m using alignat and align environments, and I noticed a problem with this code (I put a space in front of “begin” to show you the code)

Consider the following
\ begin{alignat*}{2}
x &= 4 \quad && \text{(first)} \\
y &= 4 \quad && \text{(second)}
\end{alignat*}
then we have
\ begin{align*}
x &= y
\end{align*}

this code is rendered as

Consider the following

What is the problem?

Posted August 16, 2019 at 2:25 pm | #

The problem (also why Pavel hasn’t responded) is your lack of understanding of LaTeX. You should have everything inside a single align* environment, and use the intertext or shortintertext command for the lines of text like “then we have”. A quick look at StackExchange questions about difference between align and alignat would have answered this for you. I’m not sure why you expect the spacing to be the same.

• giannit
Posted August 16, 2019 at 9:42 pm | #

Thank you for the reply. Probably I explained badly the problem.
I had already read about the difference between align and alignat, that’s why I put the first block of equations inside the alignat environment (because there are 2 columns to align) while the second block of equations inside the align environment (because there is only 1 column to align).
If I put both the blocks inside the same alignat environment, then the second block will align accordingly to the first column of the first block, which is not what I want.
The problem which I wanted to point out was about the fact that the sentence “then we have”, which is outside math mode, is showed as it is inside the math mode, in fact the font is different from the sentence “Consider the following” and the indentation is also different.
I hope it is clear now, if not tell me and I will try better.
Thank you for the support.

282. giannit
Posted August 15, 2019 at 9:38 am | #

Hi, we know there is a local and a global preamble.
The local preamble affects a single equation, the global preamble affects all the equaitions in all the [latexpage] on the site.
I wonder is there a “locally global” preamble which affects all the equations in a single [latexpage]?