QuickLaTeX

November 15, 20123.8.0. Added rendering to SVG format.
September 22, 20113.7.9. Fixed semi-critical bug in parsing.
July 25, 20113.7.8. Handling of HTTP requests errors.
May 9, 20113.7.7. Server update, bug fixes in plugin & chemistry packages support.
February 22, 20113.7.6. Fixed markup to avoid HTML validation warnings.
February 18, 20113.7.5. Preview formulas in comments before publishing.
February 14, 20113.7.4. Escaping facility for [latexpage] tag.
February 10, 20113.7.3. Equation referencing by \label{} and \ref{},etc.
February 4, 20113.7.2. Resolved CSS collisions with some themes.
February 3, 20113.7.1. Native LaTeX syntax support, TikZ graphics, etc.
October 25, 20103.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)

  • 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 [latex] ... [/latex], [math] ... [/math] 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.

WP-QuickLaTeX.zip

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}
    \pgfplotsset{compat=newest}
[/preamble]
    \begin{axis}
       \addplot3[surf,domain=0:360,samples=40] {cos(x)*cos(y)};
    \end{axis}
\end{tikzpicture}

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

Rendered by QuickLaTeX.com

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

Rendered by QuickLaTeX.com

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. If it is not the case please follow these steps to install WP-QuickLaTeX on your blog manually:

WP-QuickLaTeX.zip

  • Download WP-QuickLaTeX plug-in.
  • Unzip the plugin file and upload its content to wp-content/plugins folder of your blog.
  • Activate WP-QuickLaTeX through the ‘Plugins’ menu in WordPress.
  • Create ql-cache folder in wp-content. It will be used by WP-QuickLaTeX for caching necessary data to decrease loading time of your pages. Just make sure ql-cache is writable (by chmod 777 or through File Manager in cPanel).
  • Setup formula font properties in plugin’s UI settings page to match style of your webpages.

Sites Powered by QuickLaTeX

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
Building Intelligent Probabilistic Systems
Machine learning, statistics, neuroscience, everything…
A blog of the Harvard Intelligent Probabilistic Systems group.
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.
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.
Dynamic processes associated to natural numbers
Fernando Revilla’s online book
Another website of professional mathematician. It is great satisfaction to see such beautifully typeset math pages. For example, it would be impossible to create page like Gram-Schmidt with improper integral using any other LaTeX-rendering service but QuickLaTeX!!
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.
C++ Next
The next generation of C++
Website devoted to new trends in my favorite programming language – C++. Maintained by Dave Abrahams (Boost founder and member of ISO C++ standards committee) and Douglas Gregor (another meta-programming zealot and Boost developer). Actually it is an honor for QuickLaTeX to be used on such site.
Multiprecision Computing Toolbox for MATLAB
Software which enables arbitrary precision computing in MATLAB.

License

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.


1 Star2 Stars3 Stars4 Stars5 Stars (22 votes, average: 4.95)
Loading ... Loading ...
Print This Page Print This Page

449 Comments

  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 y=\sqrt{1-x^2}. Whereas Firefox renders the same formula in MathML notation as: Firefox MathML rendering 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.
        Thanks in advance!

      • 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?

        Thanks for your answer

        • 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.

          Again I might be terribly wrong about this.

  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  (X^T X)^(-1) X^T Y , 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 A^{-1} you should use this code: A^{-1} and not A^(-1) which is plain incorrect.
      For your particular formula we get: (X^T X)^{-1} X^T.

      • 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  \hat \beta = (X^T X)^{-1} X^T Y , 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 \alpha works, but \cos\alpha 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:

        \[ (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\]

  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 !

  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!

  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 :D
    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:

            \[\mathop {\lim }\limits_{x \to \infty } \frac{x}{x+1}\]

        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 [latex] 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.

  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 :D

  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.

  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:
     Q = 3.33 * ((BH) ^(3/2))

    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
      equation 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[/latex]
  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.

    I had your way:
    “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.

      I would be glad to hear opinions about this change.

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

      Output is:

      \texrm{(1)}\hspace{ 2 in}\displaystyle{x=\frac{\sqrt{\alpha^2+\beta^2}}{2}}

      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 [latex] ... [/latex] 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 [latex] ... [/latex], $$...$$, 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

          \[   f(t) \laplace F(s) \qquad F(s) \Laplace f(t) \]

      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 [latex], 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]...[/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.

  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:


      Rendered by QuickLaTeX.com

      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 | #

    Thanks for this great plugin, I’v opened the “Use LaTeX Syntax Sitewide” and closed “Exclude $ .. $” , so that getting a very great latex writing experience , while this conflict with “SyntaxHighlighter Evolved” , if open”Exclude $ .. $” ,things get better but the latex breaked, we got the way to escape like $$ ,can we find a way to escape “SyntaxHighlighter Evolved” short code like [[/php]] or [mathematica][/mathematica]
    thanks a lot !

  55. Posted March 6, 2011 at 11:52 am | #

    seems you have installed syntaxhighlighter
    take a test , the preview of this comment php syntax was rendered by quick latex

    <div class="entry-image"><?php
    	$soContent = $post->post_content;
    	$soImages = '~<img [^\>]*\ />~';
    	preg_match_all( $soImages, $soContent, $thePics );
    	$allPics = count($thePics[0]);
    	if( $allPics > 0 ){
    	echo $thePics[0][0];
    	}
    	else {
    	echo ' ';//<img src="/wp-content/themes/twentyten/images/default.gif" border="0" />
    	}
    	?>
    </div>
    
    • Posted March 6, 2011 at 1:33 pm | #

      Having “Use LaTeX Syntax Sitewide” turned on you can escape dollar signs by TeX rules – using slash, e.g. \$
      Or you can turn on ”Exclude $ .. $” to avoid $ – conflicts (within source code, etc.)

      I’ve added escaping of Syntaxhighlighter tags to my todo list for future versions.

      • Posted March 6, 2011 at 6:22 pm | #

        That’s great! and I ‘m testing “Auto Syntaxhighlighter” which is easier to insert syntax in the WP editer ,and find it works with “!” infornt of the latex code – the escaping model of quick latex,but should add latex brush first:

        \begin{equation}
        E= mc^2
        \end{equation}

        hope you can add escaping of “Auto Syntaxhighlighter” kind of tags , it’s really a nice plugin:
        * Don’t write database;
        * Don’t need settings;
        * Deactivate plugin code can also display properly;
        * Code can switch visual editing mode or HTML mode;
        * With the w3c standards;
        * Insert code small tools;
        * Automatic and only loading requisite files;

  56. Brian
    Posted March 17, 2011 at 12:17 am | #

    Hi
    Why when using the \ce{} for chemical equations, such as for
    $\ce{MgSO_{4}\cdot12H_{2}O(s)}$
    Only the MgSO_{4} is displayed correctly, however H_{2}O is in italics or the normal way LaTex expresses letters when not denoted by \text{}. How is it possible to rectify this in QuickLatex. Thanks very much for the plugin though. It works great.

    • Posted March 17, 2011 at 10:14 am | #

      You have to use chemistry package for LaTeX – mhchem
      You can include it in sitewide preamble (in Advanced QuickLaTeX options on admin page) or locally, for particular formula:

      $
      [preamble]
      \usepackage{mhchem}
      [/preamble]
      \ce{MgSO_{4}\cdot12H_{2}O(s)}
      $

      results in:  \ce{MgSO_{4}\cdot12H_{2}O(s)}

      • Brian
        Posted March 17, 2011 at 3:30 pm | #

        Thanks very much! I appreciate the quick reply!

      • Posted April 25, 2011 at 10:33 pm | #

        When mhchem is active, you should be able to do \ce{H2O} and that should be properly typeset but it doesn’t work that way for QuickLatex.
        Also \ce{} should work fine outside of the $ .. $ environment. But in QuickLatex it is ignored if it’s not in the $ ... $ environment. Howcome? Isn’t the usual behaviour of mhchem in effect?

        Thanks.

        • Posted April 25, 2011 at 11:07 pm | #

          I don’t see any problems with typesetting:
          $
          [preamble]
          \usepackage{mhchem}
          [/preamble]
          \ce{H2O}
          $

          It is rendered by QL as:  \ce{H2O}

          QL searches for the standard LaTeX envs. in the text, commands from add-on packages have to be marked with $..$ in order to be recognized as part of LaTeX code.

      • Posted April 25, 2011 at 11:22 pm | #

        *typo correction: “outside of the $ … $ environment”

        Edit: My mistake, the letters are automatically typeset in lower and upper case now. However my next major problem is: for the purposes of editing the global preamble, I could not find Advanced QuickLaTeX options on admin page. You can only edit the php script which I want to avoid doing because it is fragile and I could break the plug-in. I believe if you can help me put mhchem into global effect, I won’t need to confine \ce to inside a delimited math environment with mhchem invoked.

        Thank you.

        • Posted April 25, 2011 at 11:52 pm | #

          I found it on the global preamble settings in the left tool bar. Sorry, I’d overlooked it because I was expecting to see it within the plug-in section.

          I must commend you for the cleaness and efficiency of QL. Excellent work. When will it become available for Drupal and Joomla?

          • Posted April 26, 2011 at 8:31 am | #

            Thanks.
            QuickLaTeX is a freeware, its development depends only on support of the community.
            Many people contributed their time and efforts to QL already.
            If you want to make Web a better place for math you can do it too – any help is appreciated very much.

            Plugins development for various CMS, ideas on improvement, QuickLaTeX server hosting fee coverage, post about QL on your site or just backlink all are excellent steps toward this goal.

  57. Posted April 4, 2011 at 1:53 am | #

    Hello !!

    Thank you very much for this valuable tool. Hopefully I can use it to my site instead of MathJax which is a little slow (but also excellent)

    • Posted April 7, 2011 at 9:35 am | #

      Mohamed,

      Honestly speaking, I think it is unfair to compare MathJax to QuickLaTeX.

      MathJax is just attempt to follow the fashion – everything should be a-la AJAX.
      It has no essential features of LaTeX – customizable preamble, graphics support (TikZ), easy-to-use native LaTeX syntax, etc…

      Besides, MathJax is not environmental friendly – it renders formulas EVERY time page being visited, infinitely consuming electricity. Why do we need that kind of waste on our planet?

      But seriously, AJAX is just temporary technology (originally hack introduced by Microsoft in IE). I find it even abusive to mix word “Math” with short-lived fashionable “AJAX”. It sounds like MathBritneySpears to me.

      • Posted June 9, 2011 at 6:11 am | #

        Pavel,

        I just stumbled over QuickLaTeX and read your comment. While you are certainly right that comparing MathJax to your plugin is not very fair as they have a different focus, I think your perspective is a bit off.

        1) MathJax is not AJAX by most definitions as there are no asynchronous calls to a server at all. MathJax renders completely locally.

        2) Bringing electricity consumption into the discussion without having hard numbers is brave. Using MathJax, each client has to render the math on every page view, true. Using your approach, an image has to be created (modulo server-side caching), transmitted (modulo browser caching) and rendered (always). So, in the worst case, you have to do a lot more. Do you have a handle on the average?

        3) MathJax has lots of advantages for clients: faster page load (modulo Javascript, which runs afterwards) since less data to pull, better scaling, more user options (including source view and rendering mode; 0 options with image approach), …

        4) MathJax has advantages for math providers: less data to store, less traffic, math completely searchable

        5) By using _one_ dedicated server for rendering, you introduce a single point of failure. But then, this is also the case for MathJax if you do not install it locally.

        So, the only advantages that remains on the side of QuickLaTeX from my point of view is rendering of graphics and some typesetting. Depending on your needs, this is nice or just there.

        Anyway, two other questions:
        a) Is there a particular reason that you choose to generate PNG instead of SVG? The latter seems to be more appropriate for integration with HTML.

        b) Do you support proof environments and (sub)sectioning? If not, do you have plans to implement (some of) those?

        • Posted June 9, 2011 at 11:00 am | #

          Hi Raphael,

          Thank you for your comment – it has some good points.

          ***
          2) Bringing electricity consumption into the discussion without having hard numbers is brave. Using MathJax, each client has to render the math on every page view, true. Using your approach, an image has to be created (modulo server-side caching), transmitted (modulo browser caching) and rendered (always). So, in the worst case, you have to do a lot more. Do you have a handle on the average?

          LaTeX-based formula rendering consists of: (1) LaTeX code parsing and compilation to vector primitives, (2) vector objects rendering into a image, (3) displaying image.

          First two are the most heavy tasks, (3) is a fraction of percent of all work. MathJax does (1) and (2) on every page visit for all formulas.

          QuickLaTeX does (1) and (2) only once (on the first visit). Also it caches all images on user’s server (this covers your 5) point as well), so “modulo caching” is equal to zero. QuickLaTeX reduces math rendering cost to bare minimum – just (3).

          ***
          3) MathJax has lots of advantages for clients: faster page load (modulo Javascript, which runs afterwards) since less data to pull, better scaling, more user options (including source view and rendering mode; 0 options with image approach), ….

          QuickLaTeX puts LaTeX sources in alt attribute of img tag – it is searchable and viewable.

          As for page load speed – have you tried MathJax at all? I mean visiting page from average-user PC using IE & FireFox? It takes ages for MathJax to render formulas in JS after page has being loaded. This is the reason some users switched from MathJax to QuickLaTeX. Even in my latest Chrome such delay is annoying. And that is just basic rendering engine, what will happen if we add thousandths of LaTeX extension packages to it (which are already supported in QuickLaTeX BTW)?

          MathJax.js is about 40KB, which is loaded for every page even with 1 formula.
          Average formula (without graphics) generated by QuickLaTeX in PNG format is of few hundred bytes (max I saw was 1-2KB) without any overhead. Don’t see any disadvantages with transmission load either.

          Potentially it is possible to do scaling with QuickLaTeX too – just generate formulas in different font sizes – and show them according to scale (using AJAX I guess :-)).

          So, the only advantages that remains on the side of QuickLaTeX from my point of view is rendering of graphics and some typesetting. Depending on your needs, this is nice or just there.

          Well, QuickLaTeX gives you access to full set of LaTeX packages seamlessly, I wouldn’t say this just “some typesetting”.

          1) MathJax is not AJAX by most definitions as there are no asynchronous calls to a server at all. MathJax renders completely locally.

          I didn’t critique MathJax for asynchronous calls (which it certainly does – check its source code).

          As for the questions, (a) we are working on SVG conversion, (b) QuickLaTeX doesn’t support theorem/proposition/etc environments.
          If you can help with these features – please do, we have no sponsors, as MathJax :-).

  58. Posted May 1, 2011 at 6:16 pm | #

    Does QL support the cite package and bibliographies? If so, where should the .bib files be uploaded to within the wordpress directories?

  59. Posted May 1, 2011 at 9:21 pm | #

    $

    [preamble]
    \usepackage{mychemistry}
    [/preamble]

    Rendered by QuickLaTeX.com

    $

    *** QuickLaTeX cannot compile formula:
    
    

    Rendered by QuickLaTeX.com

    *** Error message: File `mychemistry.sty' not found. Emergency stop. leading text: ^^M

    I know it was a recently released package; but isn’t there a way to allow QL draw on the complete repository of packages at Ctan?

    • Posted May 3, 2011 at 1:32 pm | #

      QuickLaTeX is based on TexLive 2010 distribution. I’ll update QL server software in a couple of days.

      • Posted May 3, 2011 at 6:00 pm | #

        Thanks Pavel, I look forward to being able to draw on a more comprehensive range of packages. :)

        • Posted May 6, 2011 at 1:49 pm | #

          We’ve updated TexLive 2010 distribution with the latest packages and changes from CTAN.
          Although mychemistry was installed properly, I cannot compile your example even directly on the server.
          TexLive says:

          ! Missing number, treated as zero.
           
                             p
          l.5 \arrow[ , -+ >]{ }{ }
          

          Also I cannot compile example.tex distributed along with mychemistry package, latex hangs with error about missing ‘emerald.sty’.

          We use full TexLive 2010 distribution with regular updates. Other functionality is fine, except to mychemistry. Do you have any ideas on how to fix that?

          • Posted May 8, 2011 at 12:43 am | #

            Hallo Pavel and ptrcao,

            interestingly myChemistry works, when put inside a node of a tikzpicture. I unfortunately wasn’t able to reproduce it in this comment, but you might want to take a look here:
            http://www.mychemistry.eu/2011/05/mychemistry-and-quicklatex/

            Thanks very much for QuickLaTeX. This is one of my favorite WordPress features.

          • Posted May 8, 2011 at 1:15 am | #

            Hello again,

            I missunderstood the problem. I just assumed you had the same problem as me: that myChemistry and ChemFig aren’t rendered directly but when put inside the tikzpicture.
            However, the error message you’ve got is caused by another reason: the blank before the comma inside the square brackets is interpreted as the first argument. And since the arrow awaits an angle here, it complains about a missing number.

            It should be set like this:
            \arrow[,-+>]{ }{ }

            Rendered by QuickLaTeX.com

            Best regards,
            Clemens

          • Posted May 8, 2011 at 8:04 pm | #

            Hi Clemens,

            I appreciate your help very much. Thank you.

            Also thanks for the bug report: http://www.mychemistry.eu/2011/05/mychemistry-and-quicklatex/
            This happens because QuickLaTeX tries to compile

            Rendered by QuickLaTeX.com

            as formula in math mode. However rxn section should be compiled as tikz graphics. Since QuickLaTeX uses different tools for formulas and tikz graphics rendering rxn is not compiled correctly.

            If you want, you could provide list of mychemistry environments, I’ll add support for them in QuickLaTeX – so they can be used directly in the text with correct rendering.

            Please use your workaround(wrap mychemistry code with \begin{tikzpicture} ... \end{tikzpicture}) until then:

            Rendered by QuickLaTeX.com

          • Posted May 8, 2011 at 8:22 pm | #

            Hi Pavel,
            thanks for your Quick answer and your explanation. This is very much appreciated!
            myChemistry only provides two environments “rxn” and “rxnscheme”. The latter however is a floating environment.
            BTW: the same issue as for myChemistry also applies to the ChemFig package:
            $\chemfig{[:30]--[::-60]-OH}$ doesn’t render. ChemFig also uses TikZ to draw the formulas. But the wrapping with \begin{tikzpicture}...\end{tikzpicture} works as well.

            Rendered by QuickLaTeX.com

            Best regards

          • Posted May 8, 2011 at 8:42 pm | #

            Oh, very nice, I’ll add support for “rxn” environment (chemfig as well) in the next version (don’t know about floating “rxnscheme” though).
            Thank you for QuickLaTeX promotion on your page!

          • Posted May 8, 2011 at 8:48 pm | #

            It’s probably just me, but I’m not able to reproduce the same results

            [latex]
            [preamble]
            \usepackage{mychemistry}
            [/preamble]
            \begin{tikzpicture}
            \node{
            \begin{rxn}
            \arrow[,-+>]{ }{ }
            \end{rxn}
            };
            \end{tikzpicture}
            [/latex]

            (note I put a space at the beginning and end of the tikzpicture environment only to prevent latex rendering above in this sample of code. )

            This is what I get:

            Rendered by QuickLaTeX.com

            :(

        • Posted May 8, 2011 at 8:59 pm | #

          I’ve changed your comment for proper compilation: just use [latex] ... [/latex] tags instead of $ … $.
          QuickLaTeX does extended auto-detection for tikz, etc. in regions marked with tags, whereas $ … $ prevents this.

          • Posted May 8, 2011 at 9:09 pm | #

            Ah ok, I see; I suspect that is why I have been having issues compiling all sorts of chemical expressions – a big thanks for pointing that out Pavel. :)

            Thanks to both of you. Without these tools, I could not communicate science on my site, so thanks for being pioneers in developing these tools.

          • Posted May 8, 2011 at 9:20 pm | #

            Oh, very nice, I’ll add support for “rxn” environment (chemfig as well) in the next version (don’t know about floating “rxnscheme” though).
            Thank you for QuickLaTeX promotion on your page!

            Thank you very much! That is great. I don’t think I am going to use the “rxnscheme” on my page, anyway.

            QuickLaTeX is a great plugin and I only found it per accident, because ptrcao mentioned it on {TeX} (tex.stackexchange.com). If I can help to spread word about it, I’ll very gladly do so.

          • Posted May 8, 2011 at 9:57 pm | #

            @Clemens: I am grateful for your support. Tex.stackexchange.com is a great place, I wish developers will use QuickLaTeX to render LaTeX on it someday. BTW one of the moderators Joseph Wright uses QuickLaTeX on his blog: http://www.texdev.net/.

            @ptrcao: Thank you for drawing my attention to myChemistry and server update issues.

  60. Anonymous
    Posted May 5, 2011 at 11:44 pm | #

    Hi Pavel. This demonstrates a bug inside your comment box
    $
    [preamble]
    \usepackage[version=3]{mhchem}
    [/preamble]
    \ce{<=>}
    $
    since tags are enabled will generate nothing instead of the desired equilibrium symbol.

    • Posted May 6, 2011 at 9:49 am | #

      No problem detected (I just copied your code):

       \ce{<=>}

      BTW we are updating/installing all LaTeX packages from CTAN (including mychemistry), so QuickLaTeX server might be unstable today.

  61. Posted May 5, 2011 at 11:57 pm | #

    Hi Pavel,

    thank you for this great plugin; I am not used to Latex, but I am working on a website that requires to display formulas in posts.

    It works great, but I noticed that it does not seem to work on custom post types. I installed a plugin that is used to create a site glossary, and the usage of the shortcodes does not seem to work. Do you have any thoughts on a workaround for that?

    Thank you, best regards,
    Steffen

  62. Posted May 9, 2011 at 1:36 am | #

    Hi Pavel,

    I’ve got a question:
    is it possible to tell QuickLaTeX to run twice? Otherwise tikzpictures with the “remember picture,overlay” option won’t be rendered correctly.

    Regards

  63. valentin
    Posted May 10, 2011 at 1:18 am | #

    hi — first of all, thanks for that great plugin.

    I have a few questions, though: Whenever I need a plain text excerpt (like in sidebar excerpts), it shows the plain text with all the LaTeX commands, like [latexpage] or [latex] or $. Is it possible to remove them by a filter if it’s not rendered?

    this would be another great enhancement.

    thanks!

    • Posted May 13, 2011 at 10:04 am | #

      There are dozens (if not hundreds) different types of content in WordPress (like posts, pages, comments, excerpts, sidebars, headings, etc…). Every type of content can be processed by special filter, complete list here: http://codex.wordpress.org/Plugin_API/Filter_Reference

      Do you know by any chance what filter corresponds to sidebar? :-) Honestly I just don’t know.

  64. Aleksey
    Posted May 13, 2011 at 7:24 pm | #

    Павел, благодарю за великолепный продукт! Отличный креатив! :) К сожалению я немного слабоват по английскому, не могли бы Вы подсказать ссылку на документацию для создания формул именно на русском языке. Заранее спасибо. Желаю Вам дальнейших успехов!

  65. Posted May 15, 2011 at 6:39 am | #

    Здравствуй, Павел.

    спасибо за отличный продукт, очень удобно пользоваться

    однако у меня вопрос: можно ли сделать что нибудь, чтобы при наведении курсора на формулу появлялась не надпись rendered by Quicklatex, а, как в WP-Latex, сам ТеХ код формулы.

    у меня просто блог для новичков в математике и, боюсь, что без конкретных примеров и возможности прочитать запись формулы, им будем сложновато.

    заранее спасибо за овет.

    • Posted May 15, 2011 at 7:39 pm | #

      Спасибо за ваш отзыв.

      Измените 1507 и 1547 строки в файле wp-quicklatex.php. Если не получится – пишите, помогу.
      Только пожалуйста, не забудьте упомянуть на вашем сайте о QuickLaTeX-е.

  66. Posted May 21, 2011 at 10:15 pm | #

    Question: why don’t you just mirror the package directory on your QL server with CTAN so that your package database is always complete and up-to-date?

    • Posted May 24, 2011 at 9:28 am | #

      Peter,

      I’m sorry for late response.
      We use TexLive distribution as a backend for QuickLaTeX. It has internal update procedure.
      All new packages (or changes) appearing in CTAN are available as official TexLive updates shortly after release.
      I don’t know the details but I suppose TexLive developers do tests and implement proper integration of new packages into distribution.

      We apply updates at least once a month.
      I think this is the best approach to keep QuickLaTeX server updated and stable (based on official and tested distro).

      Please advise if you have better idea.

  67. emre
    Posted May 24, 2011 at 1:35 pm | #

    A nice additional feature would be to use Latex to generate PDF versions of posts. IF you use a markdown/wiki plugin for both WordPress and Latex, you can feed the same code to both and generate a nice PDF!

  68. Posted May 28, 2011 at 11:39 pm | #

    Hi! Using your plugin on my blog, and it’s great!

    For fun I wanted to try to talk with http://www.quicklatex.com/latex3.f myself (from PHP), but I can’t seem to figure out what exactly that script wants. Have tried to decipher what happens in the wp plugin, but not very good at reverse engineering :P Is this thing documented anywhere? Like some sort of API description or something like that?

    • Posted May 29, 2011 at 10:48 am | #

      It is documented in the form of source code only :-).

      Communication with latex3.f is pretty straightforward.
      It accepts POST requests with body part consisting of key=value pairs separated by &:

      formula = encoded formula
      &preamble = encoded preamble
      &fsize = font size, like 16px
      &fcolor = font color in CSS format, like FFEECC
      ...

      Response includes URL of the image, vertical alignment, error code, etc.

      Take a look on 1411-1484 lines in wp-quicklatex.php for all the details – it is already written in PHP, so won’t be a problem for you.
      Also check source code of QuickLaTeX.com main page, there is another version of documentation :-), written in JavaScript.

      By any chance, are you going to develop something based on QuickLaTeX (like plugin for WikiMedia or Drupal) or just playing around?
      I am the most supportive for any contribution of such kind.

      P.S. Thanks for the tip on how to cure Skype crashes…

  69. Posted June 1, 2011 at 10:39 pm | #

    Thank U very much for your so useful software ” quicklatex” .
    This process can be easily automated by means of QuickLaTeX-enabled plugins for your favorite CMS Drupal.
    How We Can have QuickLaTeX plugin for Drupal?
    Is there any remedy to solve that crucial poroblem.
    You are kind enough if you give me a hand in this
    regard.
    With best regards
    Mehdi Jalali

  70. Posted June 2, 2011 at 8:54 pm | #

    hello

    I do not understand why the characters are small for some equation :

    [latex] p_i = v_i \frac { \Delta q_i } { \Delta \tau_i }[/latex]

    on http://www.gpcservices.com/bouarfa_mahi/marches-financiers-modelisation/indicateurs-techniques-market-momentum
    thank you for your help
    mai

    • Posted June 3, 2011 at 9:18 am | #

      For displayed equations you have to wrap formula with \[..\]:

      [latex] \[ p_i = v_i \frac { \Delta q_i } { \Delta \tau_i } \] [/latex]

      will be compiled as:

           \[  p_i = v_i \frac { \Delta q_i } { \Delta \tau_i } \]

      You don’t have to use [latex] ... [/latex] tags though.
      Just place [latexpage] at the beginning of your page and insert in-text formulas using $...$, displayed by \[...\].

  71. Posted June 3, 2011 at 7:49 am | #

    I cannot seem to get

    \begin{enumerate}
    \item
    \item
    \item
    \end{enumerate}

    to work on my page.

    Usually when I write (using TeXshop) I use my own .sty file below; however, begin{solution}…etc., don’t want to work on my WP page even after I set my preamble under the advanced options.

    Any suggestions?

    \usepackage{tikz}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    \usetikzlibrary{calc,fadings,decorations.pathreplacing}
    \usepackage{amsmath}
    \usepackage{amssymb}
    \usepackage{amsthm}
    ... clipped ...

    • Posted June 3, 2011 at 9:49 am | #

      1. QuickLaTeX compiles LaTeX code into image. This approach is good for formula insertion on the webpage. However textual information (including {enumerate}) should be placed as a text. This is important for your page rank in search engines – they can index text but cannot parse info from images. Just use HTML markup for lists: http://www.w3schools.com/HTML/html_lists.asp. If you want to compile {enumerate} as image anyway, just wrap it with [latex mode=1]...[/latex]. Parameter mode=1 push QuickLaTeX to compile LaTeX code as a text rather than formula.

      2. QuickLaTeX detects only standard LaTeX environments and shortcodes in the text. If you introduce your own commands or aliases for existing ones – you have to mark such custom commands with [latex]...[/latex] tags. E.g. [latex]\beq ... \eeq[/latex].

  72. Michael Uno
    Posted June 7, 2011 at 8:10 am | #

    Hello, this plugin is excellent. Thanks for the development.

    I’m wondering if it is possible to include Japanese Characters like ” 面積の和/(正方形の数-1) .” When I try this, an empty or partial formulas are displayed. I guess it is not supported yet. I hope it is included in the future updates.

    (Excuse me for my English.)

    • Posted June 7, 2011 at 10:02 am | #

      Your English is better than mine.

      Various languages support is in the ToDo list for QuickLaTeX (with low priority though).
      We have to switch from TexLive distro first – which is painful at the moment.

      • Michael Uno
        Posted June 7, 2011 at 11:56 am | #

        Thanks for the response.

        I see, please take your time. I don’t mean to rush you but I’m looking forward to it. :)

      • Anonymous
        Posted June 7, 2011 at 1:02 pm | #

        Why do you need to switch distros, and to what distro would you switch?

        • Posted June 7, 2011 at 1:52 pm | #

          I was thinking about switching to XeLaTeX, but apparently it is not necessary.
          We can type Japanese Kanji with TeXLive using CJKutf8 or CJK packages.

          The only problem is that QuickLaTeX server side software doesn’t support extended characters (UTF8 or else).
          I’ve added this to my plan – change software to support UTF8.

  73. Posted June 28, 2011 at 5:23 pm | #

    I have one website which does not use wordpress platform or any other CMS – in fact it’s handcoded in html/CSS/JS. Is there a way I could invoke QL to render my latex?

    • Posted June 28, 2011 at 5:34 pm | #

      Please check JS sources of QuickLaTeX.com – it is fairly easy to adapt that code for any usage.

      • Posted June 29, 2011 at 12:04 pm | #

        Ah, ok. Can you be more specific perhaps? I’m not much of a programmer. Is there a line of code I could simply insert into my pages to get the serviced by QL? And furthermore, are there lines of code that I could use to specify the desired settings/options for QL?

        • Posted June 30, 2011 at 11:41 am | #

          JS from QuickLaTeX.com includes software for server communication (including options handling, etc.). But unfortunately it cannot be used directly and needs polishing to become ready-to-use solution. Right now I’m short of time, cannot help – sorry.

          You can hire freelancer to do this job though – it won’t be expensive. Basically new code needed to search for LaTeX-marked HTML elements, like <span class="latex"> </span> on the page and apply existing code from QuickLaTeX.com to compile contents of the element. It should not be difficult using jQuery selectors.

          • Posted June 30, 2011 at 1:18 pm | #

            You would definitely be able to amplify your userbase tremendously one day when you find the time to make it serviceable to non-WordPress based sites.

            Migrating to WordPress involves a loss of features and a lot of work. Hence I’ve been unable to fully make use of QL. Some of my existing sites are still running on MathJax because that is my only option; MathJax is ready-to-use for any site – you just have to copy and paste some scripts to call on it, and you can even configure MathJax options simply using a JS configuration template which again can be copied and pasted onto your page. No CMS needed. This would be my biggest current request for QL. Though I appreciate you may have other priorities at the moment, I hope in future QL won’t remained confined to WP. Many thanks.

          • Posted June 30, 2011 at 1:36 pm | #

            Yes, you are right, this is very important feature – I’ll do it asap when I get a little time. Sorry again..

          • Posted June 30, 2011 at 2:07 pm | #

            With all my desire to work on QuickLaTeX improvement and extensions, I cannot afford to do that as much as I want.
            I still have to pay my bills somehow (including QL server hosting:-)) and bring food to my family table.

            So, please understand that I cannot do your requests right a way.

  74. Jacopo
    Posted July 22, 2011 at 12:09 pm | #

    Compliment for the plugin very well done :)

    Unfortunately I have a problem. I installed locally wordpress with your plugin for testing purpose and it is working perfectly.
    When I tried to move it to my university web server the plugin stopped working. What are the requirements for it? Is it supposed to work with PHP4.3.9?

    • Posted July 23, 2011 at 6:20 pm | #

      What WordPress version are you using? QL requires at least 2.8.

  75. Jacopo
    Posted July 23, 2011 at 7:02 pm | #

    well I have wordpress 3.1.4

    • Posted July 23, 2011 at 7:41 pm | #

      Interesting…

      I didn’t test QuickLaTeX on PHP 4.
      Could you give more details on “plugin stop working”? Is it shown in plugin list? Can you activate it, see its admin page, etc?

      It is worth considering upgrade to PHP 5 since WordPress 3.1 is the last version with PHP 4 support.
      All subsequent versions will be based on PHP 5.2. Basically this will happen in a few months: http://wordpress.org/news/2010/07/eol-for-php4-and-mysql4/

      • Jacopo
        Posted July 25, 2011 at 7:24 am | #

        When run on the physics department web server the plugin returns “Cannot generate formula” for every latex formula. On the department web server I have a multisite installation of wordpress 3.1.4 (as I did locally). The plugin shows up in the plugins list and it’s network activated. I can also see its admin page to configure.

        I would upgrade but unfortunately I have no control over the web server software, I’m just managing a small portion of the website. It’s not up to me.

        • Posted July 25, 2011 at 12:04 pm | #

          I think this situation is not related old PHP version.

          I suspect problem is in server/PHP settings – which tuned to disable HTTP requests(transports) to external resources from PHP scripts. QuickLaTeX needs such requests to transfer latex code for compilation on the server and then for downloading formula image for caching on your server. Only very limited servers disable such functionality.

          To solve this problem you need to tune corresponding settings locally for your site using .htaccess file. Look for “allow_url_fopen” keyword.

          I’ve found very useful plugin Core Control, which allows easy setup ans testing of various HTTP transports directly in WordPress admin page. It requires WP 3.2 though…

          P.S.
          Today I’ve released version 3.7.8 with extended diagnostics – now it will show more meaningful error message in the case of connection troubles.

  76. Posted July 25, 2011 at 1:48 pm | #

    I want to report a bug. After updating to WP QuickLaTeX 3.7.8 the whole tex setup on my site died. The reason as stated from WP plugin system is “The plugin has an invalid header”. Since this seems to be a crucial bug I would like to know if any other user is facing similar issues.

    Interestingly enough, I have a wp-quicklatex installation on a different url (to which I plan to eventually move the site) and the update apparently worked fine there. It might be an error on my server side.

    • Posted July 25, 2011 at 1:54 pm | #

      I noticed that too. WordPress plugin directory gives empty zip file for wp-quicklatex. Just checked again – now it gives correct file.

      So it should be fine now – please check. Deactivate plugin, then install new.
      SVN for WP plugins updates slow – around 10-15 minutes – I think that was the cause.

      P.S.
      Beautiful site by the way – I like clean minimalistic design.

      • Posted July 25, 2011 at 2:43 pm | #

        Thanks! It is working perfectly now.

        • Posted July 27, 2011 at 9:43 am | #

          Luis,

          I’ve noticed you use different colors for formulae and text on your site.

          I don’t know is it intentional (e.g. to high-lite math on the page). If not, you might try to setup color for formulae to match the text. Just type 555555 in Font color field on QuickLaTeX -> Basic Settings dialog and press Update QuicklaTeX Settings button.

          Also, could you email me short description of your site – I want to add it to the list of sites which use QuickLaTeX. Usually I do this by myself, but I cannot read Spanish and machine translation is not good…

          • Posted July 27, 2011 at 5:02 pm | #

            Thanks for the advice. I have send you a lil’ description by mail ;)

  77. Posted August 24, 2011 at 6:41 pm | #

    This is a great plugin for my blog, thank you!

  78. Posted September 10, 2011 at 11:06 pm | #

    Hi,
    1) I want to use quicklatex within the google documents forms checkboxes and embed the form into wordpress.. Is it possible? If yes, how?, or
    2) I want to use quicklatex with WP-Polls Plugin. Again, Is it possible? If yes, how?

    Thanks for all..

    • Posted September 11, 2011 at 11:47 am | #

      Yes, it is possible – answer for both questions.
      After all, QuickLaTeX outputs image, which can be embedded into anything.

      Go to QuickLaTeX.com, compile your formula, copy URL of the image, insert it where you want.

      If you want automatic integration – it is another story. I’m afraid this feature requires noticeable efforts to implement.

  79. Simone
    Posted September 21, 2011 at 7:21 pm | #

    Goodmorning,
    I’m using wordpress 3.2.1 (installed on host space named “altervista”). Today I’ve installed the plugin “quicklatex” from the wordpress plugin, but it don’t work…
    for example if i write:

    [latexpage]
    At first, we sample $ f(x) $ in the ...
    

    in the web’s page there’s:

    At first, we sample
    *** QuickLaTeX cannot compile formula:
    f(x)
    
    *** Error message:
    Unknown error
    in the ...
    

    I’ve installed the plugin without problem, and setted chmod 777 in directory “ql-cache”. I’ve forgot something?
    ps: (excuse me for my disgustin english!)

    • Posted September 22, 2011 at 10:06 am | #

      Hi,

      The most common reason for “Unknown error” – PHP/Server configuration is too restrictive on your hosting.
      E. g. file operations are disabled or else.

      This is usual problem with free hosting providers – they cut all possible features to save resources.

  80. Rick
    Posted September 22, 2011 at 12:00 pm | #

    Hello Pavel,

    Thank you for your wonderful plug-in.

    Just one suggestion I did have… would it be possible to also enable Latex via $latex … $ ???

    The reason I ask is that I do most of my LaTeX equation editing in a program called MathType which lets me drag and drop equations from websites into MathType for editing, and then once edited, I can drag and drop them straight into my WordPress post. The only issue with this is that the MathType format is not changeable and always copies equations in the format $latex [equation goes here] $

    As a result with QuickLaTeX I need to keep deleting the latex part everytime I add or change an equation. However if it were possible for QuickLaTeX to also recognise these tags as LaTeX it would make life so much easier especially when we have blog posts with lots and lots of equations that need to be added/edited.

    Thanks for your time.

    • Rick
      Posted September 22, 2011 at 1:14 pm | #

      Hello again Pavel,

      Actually please dis-regard my previous comments. I just found a work-around which is even better. In MathType you can choose the export format from a list (e.g. Microsoft Office, WordPress, etc.) and it generates the correct latex code/format automatically from that. So while the WordPress format doesn’t work with your plugin we can just change the format to MathJax – Latex which outputs Latex in the format \[ … \] or with ( ) for inline equations. Not only does this solve the problem but I think it’s a better solution since it makes entering display or inline equations much easier.

      There was one other question I wanted to ask you tho. I was just wondering if there was anyway to bold the font for the latex images??? I’ve seen some websites that have latex images with bold + italic fonts and they seem to stick out a lot more then just italics. I know you already have italics for yours but is there anyway we can get the images to generate with a bold font as well?

      Thanks.

    • Posted September 22, 2011 at 1:31 pm | #

      Hi Rick,

      I appreciate your supportive words.

      To be honest compatibility with MathType is not in my high priority task-list – there are no plans to implement it.
      Although if you are willing to pay for the feature to be added – I would gladly do so.
      I think it is only fair – MathType is commercial software after all.

      Thank you.

      • Rick
        Posted September 22, 2011 at 2:19 pm | #

        Hello Pavel,

        Thanks for your reply.

        Actually once I experimented I realized the way your plugin works is already great :D Because your plugin accepts \[ \] or \( \) for display/inline equations which is much, much better. Since MathType can export in this format (by changing export format to MathJax – LaTeX), I no longer have to manually do that myself in the WordPress post. I just click a button in MathType for inline or display equation and then drag and drop into my WordPress post. Your plugin then does the rest perfectly.

        The one remaining questions I did have tho… is there anyway to bold the font for the latex images??? I’ve seen some websites that have latex images with bold + italic fonts and they’re more visible then just italics. I know you already have italics for yours but is there anyway we can get the images to generate with a bold font as well?

        Thanks.

        • Posted September 22, 2011 at 2:37 pm | #

          I’m glad you find solution without using any tags – this is main point of QuickLaTeX.

          QuickLaTeX is just interface to complete LaTeX distribution (TexLive 2011).
          You can use any packages/commands/fonts from it as you usually do offline.

          Hope this helps.

          • Rick
            Posted September 22, 2011 at 4:33 pm | #

            Oh I see. Just tried textbf and bf with the equations and they bold properly now. Thank you again for all your help ^^

  81. Alekos
    Posted October 7, 2011 at 2:35 am | #

    Hello, great app!!!!
    I have php function that runs in a page that includes the [latexpage] and a part of the function is as follows:

    function wpapl_showAcademicDetail( $userID ) {
    !$user = wpapl_get_academic_user_info( $userID );
    !$siteurl = get_option('siteurl');

    // Get photo URI
    $photo = wpapl_get_user_photo_uri( !$userID );

    $top_uri = wpapl_get_uri();
    $category_uri = wpapl_get_people_category_uri( $user->categoryID );

    $html = '

    <a href="' . $category_uri . '" rel="nofollow">' . $user->category_name . '</a>
    uri . '" width="' . $photo->width . '" height="' . $photo->height . '" />

    ' . $user->full_name . '';
    !$html .= '';
    if( ! ( empty( $user->current_job ) ) ) {
    $html .= 'Areas of Study:' . $user->current_job . '';
    }
    if( ! ( empty( $user->url ) ) ) {
    $html .= 'Website: ' . makeClickableLinks( !$user->url ) . '';
    }
    if( ! ( empty( $user->academic_email ) ) ) {
    $html .= 'Email: ' . <strong> $user->academic_email . '';
    }

    $html .= '';

    Is there a way to have the $user->academic_email rendered in QL?

    Thank you.

    • Posted October 7, 2011 at 10:56 am | #

      You can wrap it with $\texrm{...}$ and make sure WP-QuickLaTeX runs after your plugin.

      • Alekos
        Posted October 7, 2011 at 4:16 pm | #

        Thanks for the reply, but maybe I was not so clear.
        The php code shows an email that is stored in the variable academic_email, and after parsing it shows something like this:
        Email: name@affiliation.com.
        I want that string ” name@affiliation.com” to be rendered in QL.

        wrapping it with latex’s \texrm{} returns a php error.

        Thank you.

        • Posted October 7, 2011 at 7:38 pm | #

          I think I understood you correctly. You want email address to be rendered as an image.
          If you insert email address in the post, then you can mark it with $..$ to push QL to render text between dollars as image. Just make sure QL plugin runs after your plugin done its work.

          Otherwise, if you print e-mail somewhere else (not in the post) then things get tricky. You have to establish connection to QL server manually, send email text, receive and handle response, etc.
          It seems much easier just to use some other technique to protect emails from harvesting by spambots. There are few plugins for WP which ca do that.

          • Posted October 7, 2011 at 7:41 pm | #
          • Alekos
            Posted October 7, 2011 at 8:33 pm | #

            Thank you for the plugin, unfortunately it does not make the job.
            The problem is that all e-mails are stored in a database and are retrieved each time when wpapl_showAcademicDetail( $userID ) is called.

            I am afraid that the solution is the hard option of manually establish connection to QL server, send email text, receive and handle response, etc.

            Thank you anyway for your time! :)

          • Posted October 8, 2011 at 11:15 am | #

            Well, you can render emails as images directly in PHP using extensions or calling ImageMagick utilities. This will be much more clean approach then using QuickLaTeX, which has different purpose after all. Besides I cannot guarantee QuickLaTeX will always render raster images, we are working on vector output formats, where ‘text’ will remain text. So email address protection will be compromised if rendered in this format.

  82. QingLiu
    Posted October 28, 2011 at 8:37 pm | #

    Chinese is not supported yet?

    • QingLiu
      Posted October 28, 2011 at 9:30 pm | #

      can you give me a packages’ list that QuickLaTeX support ?

  83. Posted November 16, 2011 at 7:13 am | #

    Hi,
    I want to use simpsons Characters in my web site http://www.ahmath.com
    In the document
    http://poincare.matf.bg.ac.rs/~pavlovic/symbols-a4.pdf
    page 96, there are codes for simpsons Characters. The document symbols-a4.pdf refers to the website http://tug.ctan.org/pkg/simpsons for more information. On the way to get the simpsons Characters, I add \usepackage{simpsons} to the area in the Advanced tab in QuickLaTeX and write \Bart in a page with included but get an error:

    *** QuickLaTeX cannot compile formula:
    \Bart

    *** Error message:
    File `simpsons.sty’ not found.
    Emergency stop.
    leading text: \pagestyle

    So, what shall i do now?

    Ahmet

    • Posted November 16, 2011 at 9:21 am | #

      Hi,

      QuickLaTeX uses TexLive distribution – all packages from there can be used.
      However “simpsons” package is not in TexLive, check its webpage: http://tug.ctan.org/pkg/simpsons

      This package is pretty old (1994), is there are any modern replacement for it?

      • Posted November 17, 2011 at 10:34 pm | #

        So, is there any Comprehensive LATEX Symbol List for TexLive distribution?

  84. Posted November 20, 2011 at 2:18 am | #

    How can we write any piecewise funtion with quiclatex in wordpress?

  85. Posted November 23, 2011 at 12:37 am | #

    Hello,

    I have a problem using quicklatex in connection with Matlab-code containing Latex. To syntax highlight code I use a WP-Plugin. My example gets destroyed inside this comment, so here the code:

    http://www.phynet.de/private/snOOfy/code.txt

    Quicklatex tries to generate images of the formula used inside the code. How can I prevent this?

    • Posted November 23, 2011 at 12:45 am | #

      Put “!” before latex formula, like this: !\[x(t)\]

  86. s
    Posted November 28, 2011 at 3:55 pm | #

    why there is a test “rendered by quicklatex.com”
    How to clear it?

  87. Posted November 28, 2011 at 5:41 pm | #

    I am going to use the plugin. Its feature set is better than my home-made plugin (especially, baseline alignment; how did you made it?).

    I have a few questions:
    1) Where should I place text “Powered by QuickLatex”?
    2) Can I modify plugin source code?

    • Posted November 28, 2011 at 8:46 pm | #

      Additional questions:

      1) Is there a way to specify custom preample for a page? (As opposite to the preample for the whole site, and preample for a stand-alone formula)?
      2) How did you made “Preview” button for the comments on this site?

    • Posted November 28, 2011 at 10:03 pm | #

      @Where should I place text “Powered by QuickLatex”?
      Where you usually place credits to open source software. Near “Powered by WordPress” or else.

      @Can I modify plugin source code?
      Yes of cause. If you will add new features interesting for anyone – please commit them to mothership :).
      Any contribution is very welcome. I would gladly share ideas or tasks from todo list if you want to improve it more.

      @ How did you made “Preview” button for the comments on this site?
      QuickLaTeX is compatible with AJAX Comment Preview plugin – please install it.

      @Is there a way to specify custom preample for a page
      Not to my knowing. Might be the first feature to implement for you.

      • Posted November 28, 2011 at 10:48 pm | #

        May be you will laugh at me, but I want to tell you how I tryed to do correct vertical alignment without custom LaTeX server (by regular PHP plugin):
        1) Take formula from the page text, for example “a^2+b^2=c^2″; check if it is already cached
        2) Prepend point to it: “.a^2+b^2=c^2″
        3) Render by any public LaTeX server: .a^2+b^2=c^2
        4) Take image returned by server, scan it column-by-column from left to right until non-empty column will be found (that is prepended point).
        5) Scan columns until empty column will be found. During scanning, remember bottommost non-empty (non-white) pixel position (this will be baseline).
        6) Crop image according to empty column found: a^2+b^2=c^2, cache cropped .png and .txt with baseline position.

        I have almost finished the work, and then comed across your solution, which is definitely better because allow custom preamble, which cannot be implemented atop of public LaTeX server.

        • Posted November 28, 2011 at 11:13 pm | #

          Although I’m not sure it covers all the cases I think your idea is very clever!

          I decided to install my own server since I wanted many additional features unavailable in public servers – error messages, precise font properties tuning (size in pixels), TikZ graphics support, preamble.

          As for vertical alignment – I was amazed by the “jumpy” formulas produced by other servers. LaTeX is high quality typography system after all – it knows perfect baseline and everything. I wanted to use this power – so I made my own backend.

  88. Posted January 12, 2012 at 12:41 am | #

    Oops! I just noticed that you limit QuickLaTeX to non-commercial web sites. Have you worked out a commercial option? I’d be happy to pay for the privilege of continuing to use QuickLaTeX. Feel free to check out my web site, particularly this page and this page, to see how I use it. If you can suggest a payment level, I’ll be happy to oblige if I can, or switch back to the WordPress LaTeX plugin otherwise.

  89. Posted January 12, 2012 at 12:45 am | #

    One possibility, BTW, is to find a way to package up and sell your code to those who would self-host. I run my site off a cloud server and I have LaTeX installed there already. So it’s quite possible I could run this internally. This way, not only are you paid, but my continued use is not a drain on your resources.

    • Posted January 12, 2012 at 10:40 am | #

      Hi Michael.

      Thank you for placing backlink to QuickLaTeX on your site.
      Feel free to continue to use it. If you want you can support QuickLaTeX by donation (see plugin’s settings page).

      One of the ideas behind QuickLaTeX was to avoid installing all of the LaTeX-related software on user’s server. Actually you are the first who has asked about self-hosting option in three years.

      Honestly speaking, I have no idea how to make QuickLaTeX self-sustainable financially. People expect these kind of service to be free – totally we get 2 donations since the beginning. The only idea is to provide Professional version with some extra features, however it is already way ahead the competitors.

      Let me know if you have any ideas.

      P.S.
      I like your CVX toolbox. Very useful and professionally developed.
      I’ve been developing extension for MATLAB too and looks like I can learn a lot from CVX.
      Take a look if you are interested: Multiprecision Computing Toolbox for MATLAB

      • Posted January 22, 2012 at 3:34 am | #

        I would also be interested in a commercial and/or self-hosted option. This is a very great tool, though I am still learning LaTeX.
        For the self-hosted setup, it would be cool to be able to purchase a cPanel add-on or yum installer.

        • Posted January 22, 2012 at 10:21 am | #

          Hi Aurelio.

          I appreciate your feedback and donation! Now we are thinking about making commercial/self-hosted version of QuickLaTeX.

          Honestly I have no idea about packaging – now QuickLaTeX consists of several different parts:
          (1) Server side: customized TexLive distribution + our software on top of it + apache’s FastCGI module ;
          (2) Client side: plugin for WordPress (although it is possible to create plugins for other CMS).

          We have to take into account zoo of Linux flavors, web servers, etc. Not quite sure how to do that…

  90. Posted January 30, 2012 at 12:56 am | #

    Hi,

    I really appreciate your plugin. That’s a great job !
    Unfortunately, something goes wrong with my wordpress installation. When I read an article, I can see all the images produced by QuickLatex. But on category view (http://www.bourdonj.fr/wordpress/category/eco2-lycee-militaire/devoirs-libres/) I can’t see anything…

    Can you tell me what’s wrong ?

    Thanks a lot.

    PS: My English is not very good, I’m sorry !

    • Posted January 30, 2012 at 9:25 am | #

      I see no problems in category view on your site – formulas are displayed, posts are shown exactly as in post-view.
      Could you describe problems you referring to in more detail?

      • Posted January 30, 2012 at 3:39 pm | #

        Hi,

        I think I know the problem. That’s why I found a solution on the category view (you can see the problem if you search the word “devoir”). The problem is that images are not shown in loops using the_excerpt() function. They are only shown in the_content(). So I changed the loop on category page. Is there another solution ?

        Thank you.

        • Posted January 30, 2012 at 4:10 pm | #

          That is very strange, QuickLaTeX actually handles the_excerpt the same way as the_content. Here is code snippet directly from the plugin:

          add_filter( 'the_content', 'quicklatex_parser',7);
          add_filter( 'comment_text', 'quicklatex_parser',7);
          add_filter( 'the_title', 'quicklatex_parser',7);
          add_filter( 'the_excerpt', 'quicklatex_parser',7);
          add_filter( 'thesis_comment_text', 'quicklatex_parser',7);
          add_filter( 'plugin_action_links', 'quicklatex_action_links', 10, 2);

          Have no idea….

          • Posted January 30, 2012 at 4:12 pm | #

            I’ll investigate and i’ll keep you in touch

          • Posted January 30, 2012 at 4:13 pm | #

            Thanks, looking forward to your help…

  91. JB
    Posted January 31, 2012 at 12:47 am | #

    Hi again,

    How can I use Quicklatex with bbpress ?

    Thanks

  92. Anonymous
    Posted February 1, 2012 at 11:42 pm | #

    No errors or problems, just want to say that your plugin is awesome and extremely practical, thank you so much !!!

  93. Posted February 13, 2012 at 7:54 pm | #

    Hi Pavel,

    Thanks for the plug-in, I have a trouble, maybe you answered previously but I didn’t find it, sorry if yes. When I try to embed latex onto normal wordpress text happens a breakline, sure is a very simple trouble but i don’t know how to fix. Thanks in advance.

    http://www.victorfuentes.com/archives/772

    V

    • Posted February 13, 2012 at 10:47 pm | #

      I see nothing wrong with QuicklaTeX on your page. Could you check that there is no line break after formula in the text itself?

      Inline formula should look like $\sqrt{\alpha}$ – no line breaks before/after.

      And one more thing – one of the formula on your page is not rendered by QuickLaTeX – is there any chance you use two LaTeX plugins in the same time? They might fight for the place under the sun causing mess on your page.

    • Posted February 13, 2012 at 11:05 pm | #

      Hi Pavel,

      Thanks for the answer. I mean after the second equation you can see that I tried to call some variables and there is a break line…

      About the Latex render, maybe is working the JetPack. What is the equation rendered by this?

      Thank you for your help!

      V

      • Posted February 14, 2012 at 11:11 am | #

        Yes, I see unneeded line break, but this doesn’t relates to QL as far as I can tell. Could you check that there is no line break after formula in the text itself?

        Inline formula should look like $\sqrt{\alpha}$ – no line breaks before/after.

        Honestly, I don’t know is it JetPack or else – but I see that formula with wrong break line is not generated by QuickLaTeX – but some other plugin. Try to disable other LaTeX – related plugins on your blog.

  94. Posted February 15, 2012 at 9:38 am | #

    Hi Pavel,

    I have started a wordpress website with your excellent plugin. When I wrote equations with numbering, quicklatex generated correct png including ordered numbers. But, after I tried to change the position of equations and their numbers by modifying the settings, quicklatex doesn’t seem to generate correct png’s, like ‘(1) …some equation (4)’. I mean that there are two different numbers in both sides, one is correct. Could you check my website about the situation, or even give some solution? Although the website is written in Japanese, you can see equations.

    regards,
    Ichijo Hodaka

    • Posted February 15, 2012 at 10:08 am | #

      I see. Could you give me details on plugin settings, especially what commands/packages do you use in custom preamble?

      • Posted February 15, 2012 at 10:30 am | #

        Hi Pavel,

        Thank you for your reply. I’m a novice in wordpress. If the following is not enough for you, please tell me.

        wordpress 3.1.4.
        I couldn’t check the version of quicklatex, but I had just installed it two or three days ago.

        In Basic Settings,
        Background Color:Transparent
        Displayed Equations Alignment: center
        Equation Number Position: right
        (I changed the last two settings, and I had a trouble. So, I put them back in the above.)

        In Advanced,
        Use LaTeX Syntax Sitewide: off
        Exclude ..: off

        In System,
        Image format: PNG
        Cache images locally: on
        Debug mode: off

        Thanks.
        Ichijio

        • Posted February 15, 2012 at 10:33 am | #

          in addition,

          My preamble is

          \usepackage{amsmath}
          \usepackage{amsfonts}
          \usepackage{amssymb}
          \newcommand[1]{\EQ}{(#1)式}

          I had just added the last one. This includes Japanese Kanji character. This is for referring to equations.

          • Posted February 15, 2012 at 10:48 am | #

            This command \newcommand[1]{\EQ}{(#1)式} is the source of trouble. If you remove it – it will work fine.
            It is best to leave auto-numbering to QuickLaTeX plugin, without redefining it.

            But you can setup custom number/label for equation manually by using \tag command like:

            \begin{equation*}
            \tag*{(1)式}
            ...
            \end{equation*}

          • Posted February 15, 2012 at 11:07 am | #

            Thanks for your appropriate instruction. After I removed the \newcommand line, the trouble has been avoided.

            Thank you!

  95. Posted February 18, 2012 at 8:29 pm | #

    Thanks for such a elegant plugin for latex and tikz, I really appreciate it .

    I have choose MathJax to render my latex(mainly math) on my site, and for the purely latex code (non-AMS) I have tried to write a plugin, named Latex2Html to translate it in the HTML-CSS, it works well on my site.

    Now I want to use tikz on my site to draw pictures, but I don’t have a well understand to code of QuickLatex especially the part to process tikz code, so I am wondering is there any possibility you separate the code from QuickLatex to get a sub-plugin for wordpress to process the tikz merely? I have tried but failed since my programming with PHP is badly poor.

    • Posted February 18, 2012 at 10:42 pm | #

      WP QuickLaTeX uses backend server – QuickLaTeX to do rendering of Tikz drawings. Plugin just inserts rendered images into HTML code of the page.

  96. Posted March 2, 2012 at 5:29 pm | #

    Hello, How can i write one equations at two line ? Like, I posted a article that contains a Big Equation @Title. This title is out of my website from left to very very right….

    If it will be at two line, This will be very smart. is there any way ?

    Thanks.

  97. Posted March 27, 2012 at 8:40 am | #

    Hi Pavel. I’m trying to use an align environment where only one equation is numbered. But Quicklatex is moving the number to the center of the equations rather than aligning it with the numbered equation. e.g., I try to do this:

    (4)   \begin{align*} \nonumber x &= y+z\\ y &= w + v \end{align*}

    As you can see, the result is the equations are aligned but the number (4) is between the two lines rather than attached to the last one.

    Is this a bug or is there a way to do what I want?

    • Posted March 27, 2012 at 1:51 pm | #

      Now Quicklatex doesn’t support per-equation numbering inside align environment. Sorry, but you have to split your equations or else changes are required.

      Btw now we are testing new version of QuickLaTex which renders formulas into vector format – SVG, so that scaling of webpage will preserve quality. You can already check this feature on my site. We will release it in a few days depending on free time.

  98. Posted April 2, 2012 at 2:43 pm | #

    Hi Pavel. I’m having trouble fitting some long displayed equations. I have it set to center displayed equations, but there seems to be a left margin imposed regardless of the length. See http://otexts.com/fpp/8/8/ for some examples where equations are not fitting, although they are shorter than the width of the text.

    How is that left margin being imposed and can I change it?

    Thanks.
    Rob

    • Posted April 2, 2012 at 2:50 pm | #

      QuickLaTeX always reserves space for left & right eqno. Width of these margins are controlled by CSS classes ql-left-eqno & ql-right-eqno in the file: [plugin's derictory]\css\quicklatex-format.css

      Adjust width property for the classes to setup new margin.

      • Posted April 2, 2012 at 6:54 pm | #

        Thanks for the quick response. Problem solved.

  99. Tom Cloud
    Posted April 11, 2012 at 7:19 am | #

    This is my first time to use your plugin — the closing [/latexpage] tag shows. Is that tag supposed to be omitted?

    http://txsignfab.com/review-questions-2/

    I am using your example code and will have the site owner pay for use of your script once he’s satisfied with it.

    • Posted April 11, 2012 at 9:11 am | #

      Command triggers QuickLaTeX processing for entire post. There is no need for closing tag – just delete it.

  100. Posted April 12, 2012 at 6:39 am | #

    I’m having trouble with the plugin, and have been working normally but lately I get this …
    http://dl.dropbox.com/u/59282527/problema.png

    I clarify that I use the $ ... $ For comfort
    helpme

    • Posted April 12, 2012 at 9:38 am | #

      John, please send source text of the “problematic” page to my e-mail: pavel@holoborodko.com

    • Posted April 12, 2012 at 1:26 pm | #

      You use too many $ signs to type formulas. You just need to wrap your LaTeX code with _only_ one pair of $...$.
      Here is how your formulas should look like:

      $\sqrt[3]{N} = q\Rightarrow q^{3}=N$

      $Exacta:\,\sqrt[3]{N} = q$

      $Inexacta:\,\sqrt[3]{N} = \, q\,+\, r$

  101. anwibuma
    Posted April 16, 2012 at 11:02 pm | #

    Hi Pavel,

    I use theme Twenty Eleven, I desire to activate plugins to use weather-cloudy and QuickLaTeX in my Blog. I don’t know how to do it.
    Please helpme.
    Jes

  102. evarist
    Posted April 17, 2012 at 2:24 pm | #

    Could you please post here an example of LaTex code(in Quick LaTex) for the short exact sequence with the function’s name lie over the arrows?

  103. Posted April 18, 2012 at 11:12 am | #

    I do have a package called tkz-tab-vn is not available in the installed miktex. I can add to Quicklatex in advanced settings are not? Thank you for creating a great plugin.

  104. Edwin
    Posted April 24, 2012 at 6:14 pm | #

    nice plugin, I have donated, thanks,

    Equations on their own line are working well.
    Inline equations are being pushed to the left margin, and are not in the correct place inline in the text. I have tried both dollar delimiters and latex delimeters.
    “critical” value    v_{b}^{*}  
    is displayed as
     v_{b}^{*}   “critical” value
    on my site
    thanks

    • Posted April 24, 2012 at 6:21 pm | #

      Something is wrong with the theme you use on your site. From your explanation, it seems that CSS styles for the images do not work well.
      Could you give me a link to your site? BTW, I haven’t receive donation from you…..

  105. jeshua
    Posted May 13, 2012 at 11:35 am | #

    Hi,

    1.- I install quicklatex in the theme shuffusion, however, not good luck formulas. why.
    2.- It is necessary new theme or typography for good luck formulas

    Best regards

  106. Walter Weinmann
    Posted May 14, 2012 at 11:05 am | #

    Really the best plugin for LaTeX available.

    But how is it possible to use your plugin with wordpress.com – since hosting with wordpress.com does not allow the installation of any plugin.

    Regards

    Walter

  107. Denis
    Posted May 14, 2012 at 8:21 pm | #

    Hi,
    I am making a tutorial website for our study group, and we have to work with Latex a lot, formula discussions and corrections are common. I used a few plugins and decided to use yours because it makes it possible to copy the Latex code from the image(with the alt attribute) unlike other plugins that hide the code completely. But that isn’t enough and we miss 2 features:
    1. copy code to clipboard element (image/div) beside the image (if possible, without flash)
    2. a way to print the code beside the image, compatibility with a plugin like WP Syntax would be nice.

    About MathML, I tried a latex to mathml plugin, the rendering was ok, but when you tried to copy the formula, you got only the formatted text(eg 2———3 instead of 2/3) , which wasn’t wished for.
    Thanks a lot for this nice plugin

    • Posted May 16, 2012 at 11:03 am | #

      Hi Denis,

      You can show source code of the formulas by inserting exclamation sign “!” just before the code. For example, !$\sqrt{\alpha}$. This pushes QuickLaTeX to skip image rendering.

      Also you can combine this with WP Syntax or other plugins – wrap with tags and shortcodes:
      <pre>
      !$\sqrt{\alpha}$
      </pre>

      You can copy code to clipboard from “alt” property of the image (as you said).
      Direct copy (Ctrl-C, Ctrl-V) assumes WYSIWYG functionality – to preserve visual form of the page as it is, with images and everything. It is out of my control.

  108. Thomas
    Posted June 16, 2012 at 12:49 am | #

    It would be absolutely great if WP-QuickLaTeX would allow for using a local LaTeX-installation. I use some homegrown or locally modified packages as well as some that are on CTAN but not on quicklatex.com

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

      Hi Thomas, sorry for delayed reply.

      Actually QuickLaTeX depends not only on LaTeX-distribution, but also on custom developed pieces of software (or modified standard), which should be installed on a server too. However we never planned this software to be portable or easy to install and support by third party. Substantial time is needed to improve this, which we do not have now….

  109. Posted June 19, 2012 at 12:51 am | #

    Hi,
    I am able to get the plug-in work for posts of type “post”. But it seems to not render posts of custom taxonomies. Is this a constraint of the plug-in?

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

      Thank you for your feedback, I will investigate this further.

  110. Alessio
    Posted August 17, 2012 at 1:31 am | #

    Hi, How do I add the package cancel in QL?
    Thanks

  111. Will
    Posted August 21, 2012 at 5:28 pm | #

    Hi there

    I don’t seem to be able to get WP-QuickLaTeX working with buddyPress forums – is this a supported feature?

    -Will

    • Will
      Posted August 21, 2012 at 7:32 pm | #

      BTW – will definitely donate if I can get this working!

  112. Posted August 25, 2012 at 11:36 pm | #

    Hello Pavel,

    I’m putting together a post about ChemFig, and have run into an issue. Simple input such as

    \chemfig{*6(-(-R^2)=-(-)=(-OH)-(-R^1)=)}

    is fine, but

    \chemfig{
    *6(-(-R^2)=-
    (-[::-60]=[::-60]N-*6(=(-R^3)-=(-R^4)-=(-R^3)-))
    =(-OH)-(-R^1)=)
    }

    goes wrong. Both work with a ‘stand-alone’ TeX Live 2012, which has ChemFig v.1.0f, plus of course an up-to-date TikZ. Any idea what might be wrong?

    • Posted August 26, 2012 at 12:52 am | #

      Hello Joseph,

      Thank you for your donation!

      QuickLaTeX uses TexLive 2011. Updates are disabled for 2011, now we are checking for possible issues of moving to TexLive 2012.

    • Posted August 28, 2012 at 11:55 am | #

      Joseph,

      I’ve tested your example using the current QuickLaTeX (TexLive 2011) – it renders fine (correct me if I’m wrong):

        \chemfig{ *6(-(-R^2)=- (-[::-60]=[::-60]N-*6(=(-R^3)-=(-R^4)-=(-R^3)-)) =(-OH)-(-R^1)=) }

      Code is:

      [latex]
      
      [preamble]
      \usepackage{chemfig}
      [/preamble]
      
      \chemfig{
      *6(-(-R^2)=-
      (-[::-60]=[::-60]N-*6(=(-R^3)-=(-R^4)-=(-R^3)-))
      =(-OH)-(-R^1)=)
      }
      [/latex]
      

      Please let me know what went wrong on your experiments.

  113. Posted September 4, 2012 at 5:53 am | #

    Hey Pavel, thanks so much for developing such a great add-on. I’d been using MathJax for a bit, but the fact that it’s useless for RSS feeds is a huge downer for me. I like the image replacement you use, but I can’t seem to get the quality that you’re getting here on your site. Is there anything special you’ve done to get such crisp graphics? I can’t seem to find anything in the settings panel.

    Any help would be greatly appreciated!

    • Kenny
      Posted October 20, 2012 at 8:11 am | #

      I also have the same question. How do you get such sharp graphics? I have looked at all other sites using quicklatex (linked from the main page) and they are not as sharp. Any help would be appreciated? Your equations come out as crisp as Beautiful Math (http://jetpack.me/support/beautiful-math/), which is used in wordpress.com.

      • Posted November 15, 2012 at 9:43 pm | #

        Hello Kenny and David.

        The difference was that I used development version of plugin with new feature – rendering into vector graphic format SVG (instead of raster).
        This is long awaited and very essential feature – I wanted to give it a test before releasing to the public.

        And today it is out, so please update your plugins to 3.8.0 version and setup “Image Format” to “Auto” in “System” settings page.
        QuickLaTeX will automatically show SVG images in the browsers which support vector graphic, and fall back to PNG otherwise.

        Play with zoom in the browsers – to check that image resolution stays the same, crisp and clear.

        Please give me your feedback if it is working or not.

  114. Posted September 26, 2012 at 6:26 am | #

    Hey Pavel, thanks for the awesome package. Is there any chance that you guys can add the mathpartir package from http://cristal.inria.fr/~remy/latex/. It is one of the easiest inference rule packages (compared to bussproofs) out there.

  115. Akura
    Posted October 5, 2012 at 4:22 pm | #

    Hello,

    When i include the extarrows package and try to render xLongrightarrow it looks weird: http://imageshack.us/a/img836/4531/errorse.png
    Can you fix this issue?

    Cheers

    • Posted October 5, 2012 at 4:38 pm | #

      Hi,

      This kind on imperfections are inevitable in vector to bitmap conversions. To alleviate the issue, please try to change font size of the formula by using parameter “size”:

      [latex size=20] ...latex code here... [/latex]

      or if you use native syntax:

      $\quicklatex{size=20} ...latex code here...$

      • Akura
        Posted October 5, 2012 at 9:10 pm | #

        Thank you very much, works like a charm

  116. Posted October 6, 2012 at 3:34 am | #

    I rely on Latex plugin to display symbols and equations. With the current theme, the latex symbols always appear in a new line, as shown on this page: http://testlab.peguru.com/test-post-with-latex/
    I want the symbols to be in-line with the text. How do I make this happen?

    Appreciate any help,
    Aleen

    • Posted October 9, 2012 at 9:31 am | #

      Test page you referring to is rendered by a different plugin, not QuickLaTeX. Turn it off and then enable QuickLaTeX – problem will disappear.

      And sorry, I do not provide support for plugins I didn’t write :)

  117. kate
    Posted October 6, 2012 at 7:45 pm | #

    Hi Pavel,

    There are some probs with the russian words which I wanted to insert in the latex table cells. Could you give any hint how to do that?

    Thanks in advance.

    • Posted October 9, 2012 at 9:34 am | #

      Hi Kate,

      QuickLaTeX doesn’t support Unicode characters, this might be a problem. Why don’t you want to render your table with HTML?
      And use latex only for the mathematical formulas? This way is more search-engine friendly.

  118. Posted October 18, 2012 at 11:15 am | #

    Hi.

    I installed wp-quicklatex into our wordpress site, but found that it didn’t work.
    Here’s the error message:

    *** Error message:
    Cannot connect to QuickLaTeX server: Could not open handle for fopen() to http://www.quicklatex.com/latex3.f
    Please make sure your server/PHP settings allow HTTP requests to external resources (“allow_url_fopen”, etc.)

    I think this occurs because we need to use a proxy server to make requests outside our site. I tried setting the http_proxy environment variable in the .htaccess file, without any effect.

    If you could let me know if it is possible to use wp-quicklatex through a proxy server and if so then how I’d be most appreciative.

    Regards,

    John McQueen.

  119. Ali Ghaderi
    Posted November 9, 2012 at 10:05 am | #

    Hi,
    Thank you for a great package. I have a problem using some of the Latex packages. For example when I try to include the dropping package I get the the following error message:

    File `dropping.sty’ not found.
    Emergency stop.
    leading text: \pagestyle

    Any advice would be appreciated.

  120. Posted November 10, 2012 at 4:58 am | #

    Hello Pavel,

    Thanks for this great plugin.
    I have a question related to your plugin
    How insert matrix through QuickLatex in wordpress.

    Thanks

  121. Davide
    Posted December 10, 2012 at 11:42 pm | #

    Hi! sorry but can I use your plugin also in the text of the quizzes? thanks

  122. Marc
    Posted December 11, 2012 at 12:19 am | #

    Thank you for this great plugin, which I use extensively for my research notebook. Oh, and the vectorized rendering just look beautiful, much nicer than the PNG rendering, especially when zooming in! Thanks again.

    Marc

    • Posted December 11, 2012 at 10:52 am | #

      Marc, thank you for your positive feedback!
      Usually users get in touch only if problem happens, but positive feedback is what keeps development going.
      Thank you for the deep understanding.

  123. Davide
    Posted December 13, 2012 at 12:05 am | #

    Sorry but could it work on the plugin “WP Survey And Quiz Tool”, because I’m trying but there’s nothing out… Anyway thanks

  124. David
    Posted December 25, 2012 at 12:54 am | #

    Now I use a more american name ;) I had an idea: if I switch on the option “Use LaTeX Syntax Sitewide” does QuickLaTeX work also in the plugins? (e.g. WP Survey And Quiz Tool) Thanks and Merry Christmas too!

    • Posted December 25, 2012 at 12:02 pm | #

      Hi David, Merry Christmas to you too!

      Well, QuickLaTeX cannot control behavior of other plugins nor guarantee integration with all of them in general.

      The best way is just try to install both plugins on one site and see how they work together

  125. David
    Posted December 27, 2012 at 8:33 pm | #

    Thanks for answering! :) ok, I’ve yet installed both plugins and they don’t like each other… but anyway I’ll use QuickLaTeX in every article!
    Thanks again, bye ;)

  126. Saiyan
    Posted December 29, 2012 at 6:33 am | #

    Hi Pavel, recently I started making one website abouth math and I am using your WP_QuickLaTeX plugin and it works amazing. I don’t have any commercials on my site at the moment but if at some point I decide to put some google ads should I remove QL? I recently read the license that said it must be used on non-commercial websites + backlink to QL. Does site having ads from Google Ad Sense count for commercial one?

  127. Posted February 4, 2013 at 6:51 pm | #

    Hi Pavel, thank you for the great plugin. Is it possible to pass the results from say Contact Form 7 (or any other database plugin) through Quick Latex?

    • Posted February 4, 2013 at 7:13 pm | #

      Hi Owen, thank you for donation!

      It is possible but modifications are required. QuickLaTeX is designed to filter posts and comments and it is called by WordPress automatically as plugin when required.

      For tight integration with other plugins you need to see source code of QuickLaTeX – there are functions which can be called to process any pieces of text directly.

      • Owen
        Posted February 4, 2013 at 9:42 pm | #

        Will do, thanks Pavel

  128. Posted February 7, 2013 at 5:34 pm | #

    Hi Pavel,

    I tried changing the System setting to Auto and SVG, and I get a broken image icon whenever I add latex to my web pages. PNG works fine. Any ideas?

    I am using the newest WordPress, but I saw this problem before I updated.

  129. kevin
    Posted March 13, 2013 at 6:49 pm | #

    Hello,

    I’ve just installed the pluggin into wordpress (which is on my website hosted by free.fr), I tried to compile the example you gave (At first we sample… etc). And I get this error :


    *** QuickLaTeX cannot compile formula:
    f(x)

    *** Error message:
    Cannot connect to QuickLaTeX server: Failed to connect to 109.200.159.205: Unknown error 101
    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

    • Posted March 13, 2013 at 7:17 pm | #

      Hi,

      Your hoster has disabled any kinds of communication with external servers (free services usually do that to fight with spammers, etc).
      Plugin just cannot connect to QuickLaTeX server because of that.

      Consult links in error message for resolution (change hosting provider).

      • kevin
        Posted March 29, 2013 at 10:26 pm | #

        I have installed core control and tried to solve the problem as it is explained in the last link by disabling cURL but it didn’t works, I posted the results of the test of the external HTTP access right here : my post

        Have you any suggestion ?

        cURL => “An Error has occured: Failed to connect to 203.98.84.95: Unknown error 101″

        PHP Streams => “Whilst an error was not returned, The server returned an unexpected result: , HTTP result: 0″

        PHP fsockopen() => “An Error has occured: 101: Network is unreachable

  130. Florian
    Posted March 15, 2013 at 9:57 pm | #

    Hi, is there a “normal” way to use the service on a normal web site by just linking the img src to your generator?

    Something like

    I’ve been using the WP Plugin for some months now but I’d like to use it in some static pages also.

  131. Posted March 28, 2013 at 4:56 pm | #

    Здравствуйте, Павел.
    Спасибо за плагин, очень удобен и прост в использовании.
    У меня возник такой вопрос: когда я в выключную формулу пытаюсь добавить текст через \text{…}, у меня не отображаются русские буквы. Насколько я поняла, ваш плагин не поддерживает кирилицу? Не подскажете как можно подключить русский шрифт. Или если проблема не в этом, то где копать?

  132. KSnakeW
    Posted April 7, 2013 at 11:29 pm | #

    Hello! Your plugin is awesome but… I have problem with using package marvosym – symbols are generated unvalid. For example \Beam is direct current symbol, but on page is ” generated.

  133. Posted April 9, 2013 at 8:57 am | #

    I’m trying to run this TikZ example and it isn’t the desired result. Maybe it could be a bug.

    Thanks

    Arthur

  134. Posted April 18, 2013 at 10:58 am | #

    Hi Pavel,

    First of all, thanks for providing this awesome plugin. However I have a problem with using the verbatim package in QuickLaTeX and can’t seem to find any documentation about it. I have already included the \usepackage{verbatim} line at the preamble located at Advanced Settings page.

    Writing an in-line verbatim text works, only that I have to force it with the $...$ signs which are normally not necessary in TeX editors.

    [latex]
    Here is the equations of motion for $\theta_1$ and $\theta_2$ in $\verb=MATLAB=$
    [/latex]

    renders “Here is the equations of motion for \theta_1 and \theta_2 in \verb=MATLAB=

    However, it seems like QuickLaTeX does not recognize the \begin{verbatim}…\end{verbatim} command at all.

    Please let me know how to solve this issue. The page I am trying to edit is located here. Thank you very much and keep up the great work!

    P.S: As you can see, seems like I am using the example=true parameter incorrectly to display the LaTeX code. I wonder how can I get rid of the displayed [latex]...[/latex]?

    • Posted April 18, 2013 at 12:26 pm | #

      Hi Alyssa,

      You can use this syntax to render verbatim environments (mode=1 instructs QuickLaTeX that code is not a formula):

      [latex mode=1]
      \begin{verbatim}
      ...
      \end{verbatim}
      [/latex]

      Your example will be shown as :

      Rendered by QuickLaTeX.com

      However I recommend you do not use QuickLaTeX to render program source code.
      Use WP-Syntax plugin (or similar) instead- it will highlight code and show it as a text, which is very important for search engines.
      Here are few examples of MATLAB source code rendered by WP-Syntax: http://www.advanpix.com/documentation/users-manual/

      P.S.
      If you like QuickLaTeX please give back-link to the page. QuickLaTeX is a link-ware service, free to use in exchange to link.

      • Posted April 20, 2013 at 2:35 am | #

        Hi Pavel,

        Thank you very much for the quick resolve! And the link back is now provided.

  135. Posted April 29, 2013 at 12:37 am | #

    Hello, MathJack previously used, but its slow loading and stumbled term bothering with QuickLatex and so far everything seems to work great.

    however I’ve noticed that is not compatible with W3 Total Cache and therefore not stored images in my amazon CloudFlront CDN.

    Is there a solution to that? Thank you.

    —- Sorry for my english

    Hola, , anteriormente utilizaba MathJack, pero su lenta carga termino molestándome y tropecé con QuickLatex y por el momento todo parece funcionar excelente.

    sin embargo me he dado cuenta que no es compatible con W3 Total Cache y por ende, las imágenes tampoco se almacenan en mi CDN amazon CloudFlront.

    ¿hay solución a eso? Gracias.

  136. Posted May 9, 2013 at 3:10 pm | #

    *** QuickLaTeX cannot compile formula:

    \documentclass{article}
    \usepackage{xstring}

    \begin{document}
    \StrPosition{AQ2 K863 1065 J1065}{ }[\myname]
    \StrMid{AQ2 K863 1065 J1065}{1}{\myname}

    \end{document}

    *** Error message:
    Error: Not allowed command sequence

    On NB under TeXworks this work.

  137. Posted May 9, 2013 at 9:37 pm | #

    Thank you for the plugin, it’s much appreciated! Can we somehow get some/all TikZ pictures in the inline mode? Can we use this plugin outside the WordPress environment? If yes, what’s the recommended way of setting configuration parameters? Thank you for the answers in advance!

  138. Alex
    Posted May 13, 2013 at 3:04 am | #

    Hi, does quicklatex support reference citation? I tried

    Here is a citation \cite{example}.

    \begin{thebibliography}

    \bibitem{example}
    Robert C. Merton, On the Pricing of Corporate Debt: The Risk Structure of Interest Rates. \textit{Journal of Finance} 1974; \textbf{2}:449–470.

    \end{thebibliography}

    But it does not seem work. Did I miss anything?

    • Posted July 17, 2013 at 9:36 pm | #

      Hi Alex.
      Sorry, QL doesn’t support citations
      At the moment I have no plans to implement it either. Maybe for small reward ;).

      • Posted January 20, 2014 at 7:03 am | #

        Funny thing is while it doesn’t work on a »latexpage« it does work when wrapped in »latex« tags:

        \cite{example}.  \begin{thebibliography}{fff} \bibitem{example} Robert C.\@ Merton, On the Pricing of Corporate Debt: The Risk Structure of Interest Rates. \textit{Journal of Finance} 1974; \textbf{2}:449--470. \end{thebibliography}

        I guess this is only by chance and not to be relied upon but I thought I’d mention it anyway. :)

        • Posted January 20, 2014 at 7:05 am | #

          Well – it worked in the preview and on my blog, anyway…

          • Posted January 22, 2014 at 9:38 pm | #

            Yes, we can render it as an image, which might not be the best way (google cannot parse images yet ;)).

  139. Posted July 15, 2013 at 3:31 am | #

    Hi Pavel,
    Thank you for the great plugin. I can’t even imagine my blog without QuickLaTeX.
    I am using tikzpicture environment extensively in my blog.
    By default tikz picture created using Quicklatex is assigning, alt =”Rendered by QuickLaTeX.com” and title=”Rendered by QuickLaTeX.com” in my posts. Is there any way to assign ‘alt’ and ‘title’ with appropriate name in the tikzpicture environment?

  140. Posted July 17, 2013 at 9:20 pm | #

    Hello,

    First of all thank you for your work! Really appreciate it.

    I have just have a question. Is it possible to display all the formulas inline? What is happening now, that there is tag around each equation and it makes the equations to display one under another rather than inline.
    http://research-journal.org/featured/technical/avtomatizirovannyj-raschet-parametrov-processa-rezaniya/
    I just need to list several equations separating them by comma. Would you pleae suggest me how to achieve it?

    Thank you

    • Posted July 17, 2013 at 9:39 pm | #

      Hi,

      With QuickLaTeX you can insert inline / displayed equations the same way as in LaTeX itself.
      Use $..$ or \[ ..\] and please take a look on settings page in admin interface of WordPress – there are some examples.

      • Posted July 18, 2013 at 5:39 pm | #

        Figured it out. Thank you!

  141. Posted August 1, 2013 at 8:04 pm | #

    I’ve just started using QuickLatex after trying a couple of other options and I’m very impressed.

    However on my displayed pages the Latex parts (between the $ signs) are surrounded by a faint grey box. It’s not the end of the world but it spoils an otherwise very good layout. What should I do to remove the boxes?

    Thank you.

    • Posted August 1, 2013 at 8:09 pm | #

      This is problem of your WordPress theme – it has special CSS styles for displayed images. QuickLaTeX has workaround for this – but unfortunately some themes are too “bossy” and re-assign all styles.

      Give me URL to the page – I will tell you where and what to fix in your theme :).

  142. Posted August 1, 2013 at 9:06 pm | #

    Hi Pavel,

    Many thanks for your tremendous job !

    I’m a beginner in CSS and WordPress…
    I encounter some difficulties to put a whole formula in bold face.
    I’ve done a lot of research to solve my issue, until now without success.

    Here is the situation (in few words) :
    http://ikadewen.fr/formationTSF/formulas-in-bold/

    \displaystyle  \mathbf{v=A\cos (\omega t)}

    Sorry for boring you with my basic question !
    Many thanks in advance, from near Paris.

    • Posted August 1, 2013 at 9:22 pm | #

      Something like this ?:

          \boldsymbol{\mathbf{v=A\cos (\omega t)}}

      Here you go:

      $
      [preamble]
      \usepackage{amssymb,amsmath}
      [/preamble]

      \quicklatex{color="#008000"}
      \boldsymbol{\mathbf{v=A\cos (\omega t)}}
      $

      But of course, put preamble to global settings – so that you can use this in all formulas without necessity of [preamble] in every equation.

      • Posted August 1, 2013 at 9:45 pm | #

        Many thanks for your so fast answer !
        It looks nice.

        Is there any solution to keep the variables (v, A, omega, t) in italic (and bold…) ?

        Many thanks again.

  143. CHH
    Posted August 29, 2013 at 10:27 am | #

    Thank you very much for the plug in. It is impressive.
    I am using wp-quicklatex for my course.

  144. archipelago
    Posted September 10, 2013 at 10:22 pm | #

    Hi!
    first, congrats for your great plugin!

    I am now setting up a page on basic astronomical calculations and tried out your plugin for the math.
    First, I developed my page locally on XAMPP localhost.

    Now, the problem I have is the following:
    All works fine when I work offline (XAMPP), looks beautiful ;)
    When I put my work on the webserver, I get an error message for every formula like

    *** QuickLaTeX cannot compile formula:
    .....

    *** Error message:
    Unknown error

    As I read alrerady on this site here, the problem may be a restrictive setting on the providers
    webserver (in the PHP setings). I have no free hoster, but a paid webhoster, where I am allowed
    to set a few setting in the PHP administrations. I think maybe it has something to do with external
    url requests?

    So my question is:

    What exact settings are suitable/must be set for the plugin to work correctly?
    My webhoster runs an Linux/Apache with PHP 5.3 and MYSQL 5.0.8

    On my webhoster I have access to the following settings:

    Register Globals
    Safe Mode
    error_reporting
    memory_limit
    max_execution_time
    zlib.output_compression
    Magic Quotes
    Apache mod_rewrite
    Zend Guard Loader

    Again, thank you for making math possible in WordPress!
    Best regards,
    archipelago

    • Posted September 10, 2013 at 10:35 pm | #

      Check if “allow_url_fopen” is set to ON.
      However I tend to think that trouble might be in file access permissions.
      Compare permissions of folders inside WordPress root folder on you local XAMPP.

      Let me know your progress on the trouble.

      • archipelago
        Posted September 10, 2013 at 10:50 pm | #

        Pavel, thank you for your quick answer.

        I looked up PHP settings on online webserver, the setting is
        allow_url_fopen = ON

        Compare permissions of folders inside WordPress root folder on you local XAMPP.

        Sorry, I don’t get this right?

        On my local XAMPP everthing is fine. The problem occurs online.
        Online, the folder “ql-cache” is inside the “wp-contents” folder and it’s permissions are set to chmod 777
        Are there some other chmods to be set?

        So, any other ideas?
        Thanks!

        • Posted September 10, 2013 at 10:58 pm | #

          I meant to compare your online settings with local.

          • archipelago
            Posted September 10, 2013 at 11:51 pm | #

            I compared the onlie PHP setting with the XAMPP settings

            Main differences are

            register_globals = OFF on localhost
            register_globals = ON website
            safe_mode = ON on both

            Didn’t find mod_rewrite setting for online webserver, on localhost this module is loaded.

            I tried to set the XAMPP config just like the online configuration, to find out if it breaks down too, but then locally the plugin still works. It’s confusing.

            Maybe I can generate all formula graphics locally (stored in the ql-cache folder), upload them, and they may work online , too?
            This would be a rather strange workaround, though ;)

            greets

  145. Posted September 15, 2013 at 7:12 pm | #

    Hi,
    Thank you very much for the plug in. It is impressive.

    Do you have plan to add support for table and figure Environment?

    • Posted September 23, 2013 at 12:53 pm | #

      Yes we do. However it is difficult to say the schedule – I work on the service when I have time.
      Maybe I have to introduce commercial “pro” version in order to have a chance to provide more reliable support.

  146. Posted September 23, 2013 at 12:09 pm | #

    I’m having trouble getting the shortcodes to execute with “do_shortcode.”

    I have strings pulled from a database, which contain LaTeX markup, and I’m attempting to display them as follows:
    echo do_shortcode($question);

    No luck with [latexpage] or [latex]...[/latex]. In all cases, the strings display with the LaTeX markup unexecuted (i.e. "[latexpage]$x+1=y!$” instead of “[latex]$x+1=y$[/latex]”). I have also tried using “apply_filters” instead of “do_shortcode.”

    Any advice would be greatly appreciated! Thanks, Jared

    • Posted September 23, 2013 at 12:49 pm | #

      Look into quicklatex_parser – main function for parsing shortcodes, LaTeX syntax, etc.

      • Posted September 23, 2013 at 11:45 pm | #

        Thanks for the quick response. Still having trouble, though. Why would the following code not work?

        echo apply_filters(‘quicklatex_parser’,’[latex]$x+1=y$[/latex]’);

        I also messed around with “add_filter” without success.

  147. Dirk
    Posted November 3, 2013 at 2:36 am | #

    Hallo Guys

    Is it possible to use a different font in the formulas? I would like to use the euler font: http://www.ctan.org/pkg/eulervm

    Best regards and thanks for this plugin
    Dirk

    • Dirk
      Posted November 7, 2013 at 5:25 am | #

      In the meantime, I tried it on http://www.quicklatex.com/. It works like a charm with the eulervm package.

      Thanks!

  148. david
    Posted November 21, 2013 at 1:01 am | #

    Thanks for your plugin !
    It’s far better than others I’ve seen. You can almost copy a texniccenter document into wordpress and compile it !
    I’ve just one question. It’s not very clear for me, how to use “preamble”. I’d like to define some commands, like these one :
    \newcommand{\ds}{\displaystyle} or \def\n{\mathbb{N}}
    and it doesn’t work…
    The goal is to use it many times in the document, and it seems that it only works if we use it immediately after the definition, so this would be no use…
    This is my document :

    [preamble]
    \usepackage{blabla1}
    \usepackage{blabla2}
    \newcommand{\ds}{\displaystyle}
    [/preamble]
    text 1 …
    \ds\int_0^1f(t)dt
    text 2 …
    \ds\int_2^3g(t)dt\in\n
    etc…

    but he two integrals remain small….
    So what could be my error(s) ?

    In advance, thanks, and again, congrats for the plugin. ;)

    • Posted November 21, 2013 at 1:08 am | #

      QuickLaTeX allows user to setup preamble for the whole site .

      Please insert your definitions in administrative interface of the plugin: QuickLaTeX -> Advanced.
      Such preamble will be used globally, for all equations.

      Let me know how it works for you.

      • Posted November 21, 2013 at 1:09 am | #

        And there is “Donation” button if you really like the plugin ;).

  149. hwdong
    Posted December 22, 2013 at 2:18 pm | #

    *** QuickLaTeX cannot compile formula:
    \begin{tikzpicture}

    \begin{axis}
    \addplot3[surf,domain=0:360,samples=40] {cos(x)*cos(y)};
    \end{axis}
    \end{tikzpicture}

    *** Error message:
    Cannot download image from QuickLaTeX server: Operation timed out after 5000 milliseconds with 86639 out of 786792 bytes received
    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

    • Posted December 22, 2013 at 4:48 pm | #

      You didn’t include necessary packages, see example below:

      \begin{tikzpicture}
      [+preamble]
      \usepackage{pgfplots}
      \pgfplotsset{compat=newest}
      [/preamble]
      \begin{axis}
      \addplot3[surf,domain=0:360,samples=40] {cos(x)*cos(y)};
      \end{axis}
      \end{tikzpicture}

      Renders to :

      Rendered by QuickLaTeX.com

  150. Dirk
    Posted December 22, 2013 at 9:46 pm | #

    Hallo Pavel,

    I would like to change the text font in formulas and TikZ graphics. To realise this, I add the packages “lato” to the preamble. However, the following code do not show the lato font, it shows the standard font as if “lato” package was not loaded:

    Rendered by QuickLaTeX.com

    Used code:
    \begin{tikzpicture}
    [+preamble]
    \usepackage{tikz}
    \usepackage{lato}
    [/preamble]
    \node[rectangle, draw=black, line width=2pt] {Example};
    \end{tikzpicture}

    For comparision, the same code without “lato” package:

    Rendered by QuickLaTeX.com

    What did I do wrong to show text fonts from a font package?

    Best regards and Merry Christmas,
    Dirk

    • Posted December 23, 2013 at 7:42 pm | #

      Hello Dirk,
      (sorry for not responding your mail)

      Please use “default” option when including “lato” package: \usepackage[default]{lato}
      It renders correctly:

      Rendered by QuickLaTeX.com

      • Dirk
        Posted December 23, 2013 at 8:35 pm | #

        Hallo Pavel

        No problem. Thank you, that works.

        Best regards,
        Dirk

  151. shin
    Posted January 9, 2014 at 11:45 am | #

    How can I add a line break? Do I have to use \ [ and \ ] for each equation?

    • Posted January 9, 2014 at 11:50 am | #

      This is pure LaTeX question ;) – learn the “multiline” environment.

  152. Jim
    Posted February 6, 2014 at 4:29 am | #

    Hi! and congratulations for your powerful plugin.

    I have this problem:
    I have (as all) a plugin for display the latest comments on front page.
    The problem is that the plugin cannot recognise “LaTex” in the content not even in the excert of the comments.
    In the main post page everything is allright except the edit of the comment…. when i edit a comment (with another plugin) everything becomes a mess.

    Thank you.

  153. Posted February 22, 2014 at 7:25 pm | #

    Hi Pavel ! Thank you for this great library.

    Anyway, I’m facing a problem with version 3.8.0. Whenever I choose Auto or PNG Image Format, it will throw an error. So I look at my ql-cache, and the file created is .svg even though I choose PNG before.

    So the workaround right now is to always choose SVG Image Format.

    In the mean time, I rollbacked to version 3.7.9 because I still need the PNG format and It had no problems.

    Thanks.

  154. Posted March 13, 2014 at 5:53 pm | #

    Dear Pavel,

    I’m thinking about creating a blog with wordpress.org. I just want to know if your plug-in supports LaTeX input in blog comments too or if it only works for blog posts.

    Thanks

  155. Posted April 29, 2014 at 3:25 pm | #

    Hi, and thanks for the software and support, much appreciated!
    I’m pretty new to wordpress, and very new to LaTeX and ql. So, sorry, I guess this is a silly question. But I’ve been trying for hours to fix it.. doesn’t seem it has happened to anyone else.

    I’m getting clipping of top and bottom of expressions – both numbers and fractions. e.g. like this http://www.adamponting.com/clipped-qlatex-demo/
    Decreasing the formula font size on the ql basic settings doesn’t seem to improve or change the problem. (so I didn’t try to increase website font size.) I can’t find anything online related to this clipping, I guess I’m doing something silly. Maybe my wp theme is causing it, seems that that causes most strange problems like this.

    ps also, as per install instructions, I was googling around trying to find how to make a folder in the plugins folder etc. After a long while I just tried going there and found it was already there and full of ql files, working fine I guess. Maybe it’s a new feature that it happens automatically, don’t know. I imagine a lot of other people have spent a lot of time unnecessarily trying to get that working too, I don’t know. Maybe just me :-)
    Thanks again

    • Posted April 29, 2014 at 5:14 pm | #

      Hi Adam,

      Please try using PNG images only (SVG is not displayed correctly sometimes). See “Image format” on “System” settings tab.

      • Posted April 29, 2014 at 8:05 pm | #

        :-D Thank you! Yes indeed. Well, that was easy. Thank you so much.
        ps this happened running Firefox on Mac OS X Mavericks, if that info is of any benefit to you or anyone else.

  156. Posted May 7, 2014 at 10:33 pm | #

    Hi I’m using QuickLaTeX on my blog.
    It works well.
    I have set the font size as 17px in general.
    But I want to decrease the font size of equations if users access through narrow width (for example iPhone).
    I decrease the font size to 50% if the max-width is lower than 523px as below:

    @media (max-width: 523px) {
    body, input, textarea {font-size: 50%;}
    }

    I want to decrease the quickLaTeX images also as 50%.
    So would you help me?
    Thank you.

  157. Posted May 10, 2014 at 5:55 pm | #

    When I use quicklatex in my website, there are some erroes like:
    *** QuickLaTeX cannot compile formula:
    a^2

    *** Error message:
    Cannot connect to QuickLaTeX server: Operation timed out after 60000 milliseconds with 0 bytes received

    I don’t know how to solve this problem.
    But if I use other latex plugins there is no error.

  158. Posted June 22, 2014 at 2:23 am | #

    Hi I am using your plugin for a long time. However, for the last time dułgo not used. The point is that genracja code x is working properly. However, any other harder expression does not want to generate such as x ^ 2 despite the fact that earlier work.

    I question whether this script works on my server fully or maybe trying to connect to a different server. Maybe the server broke down?Hello I used your plugin since

    best regards
    Mateusz

    • Posted June 22, 2014 at 7:47 pm | #

      Mateusz,

      Thank you for using my plugin!

      I am sorry but I cannot fully understand the issue. Could you provide some details or example of the incorrect behavior?

      As you see – your simple examples work on my website.

      • Posted June 27, 2014 at 3:37 am | #

        Ok, sorry my english

        I will try to be more clear.
        I’m using your plug-in from 2 years.
        Everything worked well, but now.
        I can not generate mathematical formulas/equations.
        My question is: What can be caused.
        I changed nothing.
        I did not was updating WordPress to a newer version. or plug Quicklatex.
        Only when the problems started. I thought that you need to do the update, but it did not help.
        The only thing I can generate this x [/ tex], although not always.
        I began to wonder what might be the cause.
        My question is: Is the plug only works within my server. Is the plug while the use of other web pages, which could, for example, break.
        I suspect not, because of your website is working properly.

        I have done the test. I installed a new WordPress and instaled plugin quicklatex. On the new WP also a plugin does not generate mathematical formulas.

        It is not revealed any error or warning, only website trying to longer time to load.

        thanks for your help
        best regards
        Mateusz Kowalski

        • Posted July 1, 2014 at 3:01 am | #

          I try change php version, but this isn’t help. I try 5,2 5,3 5,4 5,5 5,6.

  159. Anton
    Posted June 22, 2014 at 5:49 am | #

    Hi!

    Is there any chance that Forest package of LaTeX will be supported?

    http://www.ctan.org/pkg/forest

    • Posted June 22, 2014 at 7:38 pm | #

      We use TeXLive as a back-end distribution and ALL packages there can be used (in one way or another).

      As for the “forest” – we do not parse the \begin{forest}…\end{forest} keywords directly.

      But, you can wrap “forest” code with \begin{tikzpicture} ... \end{tikzpicture} which is supported well in QuickLaTeX.

      Example from “forest” manual:

      \begin{tikzpicture}
      [+preamble]
      \usepackage{forest}
      [/preamble]
      
      \begin{forest} 
      [VP
         [DP[John]]
         [V’
            [V[sent]]
            [DP[Mary]]
            [DP[D[a]][NP[letter]]]
         ]
      ]
      \end{forest}
      \end{tikzpicture}
      

      Renders to:

      Rendered by QuickLaTeX.com

      Of course, we might not support the latest version of “forest” (as I see it released in May), but we will as soon as TeXLive will support it first.

  160. Posted June 24, 2014 at 1:26 am | #

    Hey!

    Thanks for developing this wonderful plugin. I just got it installed and am happy with the rendering. I only have two issues / questions:

    1. QuickLaTeX that renders perfectly on its own post page doesn’t render on my home page where the posts are listed in a shortened form. Note that I have already activated QuickLaTeX on my whole website (btw – does this slow down page loads significantly for non-LaTeX pages?)

    2. when using the align environment, equations are numbered as a group and not one by one as is normally done by \LaTeX:

    (1)   \begin{align*} y_1 &= f(x_1) \\ y_2 &= f(x_2) \end{align*}

    I tried manually tagging them but this is the result:

    (1)   \begin{align*} y_1 &= f(x_1)  \\ y_2 &= f(x_2) \tag{2} \end{align*}

    I also tried the unnumbered environment (align*) but it didn’t help.

    Cheers,
    Matan

    • Posted June 24, 2014 at 1:32 am | #

      My first issue happened to have been resolved by using the ‘Advanced Excerpts’ plugin, in case this helps anybody.

  161. Posted June 24, 2014 at 2:14 am | #

    is there a way of enabling bbPress Forum to accept latex?

    otherwise a great plugin

    regards
    Anton

  162. Anton
    Posted June 24, 2014 at 8:39 pm | #

    I tried your plugin (for WordPress, version 3.8.0). It works (formulas and tikz graphs).

    But it adds a bunch of error messages to my page. All the same:
    Undefined variable: eqlabel in path/wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 1615

    • Posted June 24, 2014 at 11:12 pm | #

      What PHP version you are using? I didn’t change anything in the code lately – which has been working for years on hundreds of websites :).

      • Anton
        Posted June 25, 2014 at 10:08 pm | #

        Just look at your code closely. You indeed use undefined variable at line 1615, if label was not set.

        • Posted June 25, 2014 at 10:22 pm | #

          Thank you Anton. The code has guard-conditions to check whether “eqlabel” is defined or not.
          It is working in my environment.

          Could you let me know your environment settings, PHP version, etc.

          • Anton
            Posted June 25, 2014 at 11:44 pm | #

            You erroneously use «!is_null» instead of «isset».

            According to this manual http://techtalk.virendrachandak.com/php-isset-vs-empty-vs-is_null/
            «is_null() is opposite of isset(), except for one difference that isset() can be applied to unknown variables, but is_null() only to declared variables».

            So, that is why error is popping up. I just changed «!is_null($eqlabel)» in line 1615 to «isset(!$eqlabel)», and now everything is OK on my site (no errors). I suspect there are other similar issues in the code.

            To be honest, I always have problems with plugins (but not with WordPress itself), because my hosting tuned PHP security settings to maximum. These are usually errors such as “Undefined variable”, “Uninitialized array offset”, “Uninitialized string offset”, etc. They are usually easy to fix. More serious problems is the use of modules/librarues which were considered unsecure by the hosting.

            The most common problem in the plugins code I come into is the handling of update process: after updating to next version plugin often have additional options. But these options are not stored in the database. Plugin does not have code for handling missing options, and crashes with these «undefined» or «unitialized» errors.

          • Posted June 25, 2014 at 11:52 pm | #

            Thank you again! Will fix this in the next version.

  163. Anton
    Posted June 26, 2014 at 12:20 am | #

    Sorry to disturb you again, I just looked at how you fixed wrongly recognized formula in my latest comment and see a parsing problem.

    Imagine that I want to write «I have 5 dollars in my left pocket and 4 dollars in my right pocket», but using dollar signs instead of «dollars» word. I know that I should not use dollar sign directly because of QuickLatex. So I need exclamation mark in front of dollar signs: «I have $5 in my left pocket and !$4 in my right pocket».

    In result my second exclamation mark appears literally! So I should use exclamation marks only on odd-numbered dollar signs (1st, 3rd and so on) which is mentally complex operation.

    • Posted June 26, 2014 at 2:08 pm | #

      Good catch! Thanks again. Any chance you can do the fix(es) yourself?
      Will add you to the contributors list and release new version then.

  164. Anton
    Posted June 28, 2014 at 3:53 am | #

    I have included the following line to the preamble:
    \newcommand{\test}{\input{/etc/passwd}}

    And now all the formulas on my site are displayed as errors:
    *** QuickLaTeX cannot compile formula:
    Error: Not allowed command sequence

    What I am doing wrong?

    • Posted June 28, 2014 at 9:03 am | #

      @”What I am doing wrong?”

      Trying to hack the QuickLaTeX server. I think you perfectly know what you are doing ;).

      Please don’t do this – otherwise I will block your IPs.

  165. Posted August 6, 2014 at 4:49 am | #

    Just a quick note for people using Thesis alongside with the QuickLaTeX plugin… I discovered that the Thesis CSS reset file has the definition img { display: block; } definition that puts all inline QuickLaTeX-generated images on their own line.

    I added a single line to css/quicklatex-format.css under .ql-img-inline-formula that fixes this (and I believe this should make this to the next version): display: inline;

    Cheers!

  166. Posted August 14, 2014 at 11:36 am | #

    Hey Pavel,

    Firstly, congrats on this awesome plugin!
    I’m having an issue with QuickLatex.

    I’m trying to display an algorithm in a post using your plugin as such: http://pastebin.com/buDwqxAB

    If you navigate to my post, you can inspect the HTML and see the paragraph rendered by your plugin, which shows nothing.
    Interestingly, if I click on the anchor of the image contained in the paragraph (using firebug), the image shows correctly. Also, if I modify the HTML directly from the inspector and change width=”1″ to width=”100%”, once again the image displays correctly.
    Conversely, if I enable debug mode in your plugin, your plugin does not render the image but it outputs the error “Missing $ inserted”. What am I missing here?

    Best,
    trashr0x

    P.S. Here are the plugin’s settings:
    – font size: 18px
    – displayed equations alignment: center
    – equation number position: right
    – use latex syntax sitewide: false
    – exclude dollar signs: false
    – image format: auto
    – cache images: true
    – debug mode: false

    • Posted August 14, 2014 at 11:58 am | #

      Hi Thrashrox,

      Add mode=1 parameter to the latex tag: [latex mode=1] ...[/latex]

      Then latex code will be compiled as it is, not as a formula:

      Rendered by QuickLaTeX.com

      Would appreciate link to QuickLaTeX from your website ;)

      • Posted August 14, 2014 at 12:04 pm | #

        Hey Pavel,

        Works like a charm!

        @”Would appreciate link to QuickLaTeX from your website”

        Will do!

        Best,
        trashr0x

  167. Posted August 23, 2014 at 7:08 am | #

    Hi and congratulations.
    The last days there are problems with the loading time of site. (3-12 sec more than the usual)
    If i deactivate the QuickLatex everything is okay… what is going on?
    Thank-you.

    • Posted August 23, 2014 at 10:53 am | #

      We do some tuning on a server side – please wait few days. Sorry for delays.

      • Posted August 24, 2014 at 1:08 am | #

        Hi, Pavel.
        It seems that everything is ok now!
        Thank you for your answer.

  168. samer
    Posted August 28, 2014 at 11:48 am | #

    hi
    when I write like: hello 6X10^{-5} hello

    they will be in tree different lines like:
    hello
    6X10^{-5}
    hello

    please how can i solve it?

    • Posted August 28, 2014 at 12:13 pm | #

      (As you see) there are no issues on my page here. Maybe there are some issues with white-spaces in your settings.

      • samer
        Posted August 29, 2014 at 12:13 am | #

        so what I need to do please?
        I tried to find anything in sitting but nothing changed
        still same problem the (equation) in different line not same as here !!!!

        • Posted September 7, 2014 at 3:51 am | #

          Try to put the LaTex-code between single dollars (don’t use any other method) so you will make an in-line equation and not a display one.
          In options of QuickLatex you must activate the ‘dollar method’ or better de-actvate the ‘no-dollar-method’.

  169. Posted September 7, 2014 at 3:25 am | #

    Hi! again.
    All day we have serious delays (-25sec) and conflicts with other ajax plugins.
    Everything is ok when i de-activate QuickLatex.
    I hope that can be solved quickly.
    Thank you.

  170. Posted September 19, 2014 at 9:36 am | #

    QuickLaTeX is certainly the best of all plugins for mathematical typesetting – and as I slowly move from wordpress.com to a self-hosted wordpress.org I’m realizing its power and ease. So thank you for your hard work in making this available!

    I have a small question though – I’m wondering if there’s any editing environment, or plugin, which helps with QuickLaTeX: syntax highlighting, parentheses matching etc. It doesn’t have to have all the bells and whistles of say, AucTeX/Emacs, but something a little more LaTeX-aware than a plain text editor. Note that I’m not looking for an “equation editor” or some sort of WYSIWYG hack, but just a text editor with some help for LaTeX. Is there any such thing?

  171. Posted November 13, 2014 at 2:21 pm | #

    Hi !!
    Can you please tell me what can i do with some greek letters (same with english) that plugin does not recognise them and leave blanks .
    \Alpha
    \Beta
    \Epsilon
    \Kappa
    etc
    Thank you Pavel!

    • Posted November 14, 2014 at 3:33 am | #

      I made some orders like “\newcommand{\Alpha} {A}” and worked well but the pluhgin became too slow.

      • Adam P
        Posted November 23, 2014 at 3:18 pm | #

        Allow me, Pavel. :-) As I understand it, the plugin doesn’t recognise them because they aren’t LaTeX. See http://en.wikibooks.org/wiki/LaTeX/Mathematics#Greek_letters This is because they’re identical to our A, B, E and K.

        Assume the problem is you, not QL! Then 99.9% of the time you will be right. One thing I’ve learnt, is that when I have a problem getting something displaying right with QL, the problem is with me or my limited understanding of LaTeX, not with QL itself.

        I came here to thank you again for this wonderful plugin :-) With this, you just may join the pantheon of great providers of “service to mathematics” – Gardner, Knuth etc.

        • Posted November 23, 2014 at 4:37 pm | #

          Hi Adam.

          Thank you for your support!
          You are right, QL is just a thin wrapper for LaTeX – most of the questions should be considered in a context of LaTeX, not QL itself.
          As such, all thanks should go to Knuth :).

  172. Andrei
    Posted November 23, 2014 at 9:09 am | #

    First of all, many thanks for this amazing plugin!
    I do however have problem using it with my learndash plugin. It works fine everywhere except in the field where i have to add answers for a quiz question. Do you have any solution or idea why this happens? The input field allows HTML input, but latex is not parsing. Also I have enabled “Use LaTeX Syntax Sitewide” in the settings page.
    Your help will be highly appreciated

    • Posted November 23, 2014 at 4:41 pm | #

      QuickLaTeX uses standard WP-hooks to filter the content. You probably want to see the source code of QuickLaTeX and make it work with your plugin.

  173. Posted November 24, 2014 at 4:48 am | #

    I tried (several times) to support you but (always) when i press the PAYPAL button, i recieve this error message:

    “PayPal cannot process this transaction because of a problem with the seller’s website. Please contact the seller directly to resolve this problem.

    Return to Advanpix LLC
    At this time, we are unable to process your request. Please return to Advanpix LLC and try another option.”

    Any explanation?

    • Posted November 24, 2014 at 8:04 pm | #

      This is really strange. I have just checked – everything works fine. Actually I am getting occasional contributions through the PayPal just fine.

      If you have PayPal, you can send contribution (any amount you want) directly to sales@advanpix.com (that is my PayPal address).

      • Posted November 25, 2014 at 5:02 am | #

        Ok! I sent to your address …. just for the best LaTex plugin!

        • Posted November 25, 2014 at 10:08 am | #

          Thank you, Jim! Goes directly to pay for the QL server hosting.

  174. pete
    Posted December 17, 2014 at 9:09 am | #

    Nice plugin :) first thank you for developing it free.

    It seems to me that in my case the sitewide option doesnt do what it should do.

    I use wordpress with advanced custom fields for a custom post type. First problem i have is that ac fields dont get parsed with latex. But thats no big problem for me, because i only need one field parsed by latex, so i can use the old editor/content field, which gets parsed. Not the way it should be, but works for me.
    The only thing is my editor/content field for a custom post type gets parsed no matter what option is set in “Use LaTeX Syntax Sitewide” option.

    Any recommendations?

    • Posted December 17, 2014 at 7:44 pm | #

      Hi Pete,

      WordPress introduced custom post types/fields, etc. only recently. I have to do some modifications in QuickLaTeX to support this feature.
      Will try to include this in next major update (have no idea the date though).

      Use small yellow button on the right of admin page to make this happen faster ;).

  175. Posted December 20, 2014 at 12:44 am | #

    Since the intro of WP 4.1, page rendering with latex is deadly slow. New pages with [latespage] are not even rendering at all. For example, see http://bxhorn.com/terrestrial-radiation/

    Deactivating QuickLatex solves the problem, but of course introduces other issues. Any feedback is appreciated.

    • Posted December 20, 2014 at 10:40 am | #

      This is because QuickLaTeX server is down, will fix it ASAP.
      Please see below for more details….

  176. Posted December 20, 2014 at 2:36 am | #

    CAN YOU TELL US, PLEASE, WHAT IS GOING ON???????
    The plugin is out of order for many hours and that is happen often.
    Please tell us something about this and about the future of the pugin.
    THANK YOU.

    • Tim
      Posted December 20, 2014 at 5:36 am | #

      Same here, when creating a new post with quicklatex, it cannot be previewed (just loading loading loading..).
      Thanks very much for the great plugin, hope can repair it soon:)

    • Posted December 20, 2014 at 10:38 am | #

      Dear Jim and all others who contacted me in the last hours.

      There is a “major incident” at data-center of hosting provider where QuickLaTeX server was running (this is what they said).
      We lost connection with the server around 12 hours ago and they promised to fix it quickly, but they didn’t.

      Now we are moving everything to a new place. This should take few hours to install, tune and for DNS to propagate.
      New provider is more reliable – no similar situations will happen anymore.

      • Posted December 20, 2014 at 10:55 am | #

        Thank you for the “beutiful” answer Pavel.
        Your plugin is irreplaceable because it is a “clever” LaTex plugin.
        All others are so stupid.
        I hope everything is going to be ok … next hours.

        • Posted December 20, 2014 at 11:29 am | #

          Thank you for your support.
          The old hoster has just recovered the connection. QL should start working now as usual.

          We will move the server to a new place anyway – already paid for the service :). Should be unnoticeable for the users.
          (Will use the newer TexLive distribution and do other maintenance as well.)

8 Trackbacks

  1. By Pineo.net, now with Latex! on July 19, 2009 at 9:05 am

    […] (which happens to be a good approximation of the response function of simple cells in the primary visual cortex of the brain)  Well, the fact that WordPress plugins are a major reason I chose to use WordPress to create this site.  In particular, I chose the QuickLaTeX plugin availible here. […]

  2. […] mendapatkan plugin WP-QuickLatex ini, silakan kunjungi situs si pembuatnya di http://www.holoborodko.com atau melalui plugin search yang ada di dashboard WordPress […]

  3. […] mendapatkan plugin WP-QuickLatex ini, silakan kunjungi situs si pembuatnya di http://www.holoborodko.com atau melalui plugin search yang ada di dashboard WordPress […]

  4. […] WP QuickLaTeX lets me write math that doesn’t look like garbage. […]

  5. By Math formulas with LaTeX | Single Point of Failure on December 2, 2009 at 10:26 pm

    […] some strange topics on this blog, specially now that blog this supports Latex formulas using the WP-QuickLaTeX […]

  6. By LaTeX Plugin : Code Obscurata on June 6, 2010 at 1:58 pm

    […] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. […]

  7. By Nth Root of N : Code Obscurata on June 8, 2010 at 5:10 am

    […] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. […]

  8. By The cubic formula : Code Obscurata on November 9, 2010 at 2:18 am

    […] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. […]

Post a Comment

Your email is never published nor shared.

Use native LaTeX syntax to include formulas: $ ... $, \[ ... \], etc. Do not forget to preview comment before posting.

Also you may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting