| September 22, 2011 | 3.7.9. Fixed semi-critical bug in parsing. |
| July 25, 2011 | 3.7.8. Handling of HTTP requests errors. |
| May 9, 2011 | 3.7.7. Server update, bug fixes in plugin & chemistry packages support. |
| February 22, 2011 | 3.7.6. Fixed markup to avoid HTML validation warnings. |
| February 18, 2011 | 3.7.5. Preview formulas in comments before publishing. |
| February 14, 2011 | 3.7.4. Escaping facility for [latexpage] tag. |
| February 10, 2011 | 3.7.3. Equation referencing by \label{} and \ref{},etc. |
| February 4, 2011 | 3.7.2. Resolved CSS collisions with some themes. |
| February 3, 2011 | 3.7.1. Native LaTeX syntax support, TikZ graphics, etc. |
| October 25, 2010 | 3.0.0. Custom LaTeX preamble, font properties tuning, etc. |
Introduction
This is homepage of QuickLaTeX service which allows easy inclusion of math formulas and graphics in WordPress using LaTeX & TikZ. One of the main advantages over similar services is capability of using native LaTeX syntax directly in the posts, pages and comments without special enclosing tags for every equation.
Features
(Sincere gratitude to Kim Kirkpatrick for his contributions to this plugin)
-
Support of native LaTeX shorthands embedded in the text:
$ ... $,\[ ... \],\( ... \),$$ ... $$and environments:equation,align,displaymath,eqnarray,multline,flalign,gather, andalignat. -
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. -
Custom LaTeX preamble for 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.
-
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.
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.

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

Several other tikZ examples can be found here.
Installation
The simplest way is to install WP-QuickLaTeX using “Plugin->Add new” command in your administrative interface. If it is not the case please follow these steps to install WP-QuickLaTeX on your blog manually:
- Download WP-QuickLaTeX plug-in.
- Unzip the plugin file and upload its content to
wp-content/pluginsfolder of your blog. - Activate WP-QuickLaTeX through the ‘Plugins’ menu in WordPress.
- Create
ql-cachefolder inwp-content. It will be used by WP-QuickLaTeX for caching necessary data to decrease loading time of your pages. Just make sureql-cacheis writable (bychmod 777or 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.
- Forecasting: principles and practice
- An online textbook by Rob J Hyndman and George Athanasopoulos.
I believe it is going to be valuable and indispensable resource in the field. While it is not completed yet, see Multiple regression/Matrix formulation chapter for examples of QuickLaTeX usage. I am grateful to Rob Hyndman for constructive feedback and important features suggestion. - Mathematical Visualization
- Website of the course taught by Ulrich Pinkall at Technische Universität Berlin. Author fills pages with stunning graphics, beautifully formatted math and styling.
- 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
. He is the author of myChemistry– advanced package for high-quality typesetting of “organic structures, empirical formulæ and chemical reactions” with
. 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.
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.



292 Comments
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?
Thank you for the good question!
Main reason is that support of MathML in the browsers is not mature enough. They still render MathML equations in poor quality.
For example, LaTeX produces nice looking formula
. Whereas Firefox renders the same formula in MathML notation as:
with jumping square root sign.
Another thing is that there are several LaTeX to MathML converters but none of them solves the task perfectly.
I think MathML is future of math publishing in the web and I will include it in WP-QuickLaTeX someday, but for the moment LaTeX-to-image conversion method is the best in the sense of rendering quality.
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!
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?
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.
Thanks for the quick reply!
I’ve made changes to fix this problem. Please download and try the latest version of the plugin.
Hi! At first: great approach, the only plugin that supports real
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
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.
Hey, if anyone else got this issue: I moved over to the hoster square7.ch, now everything works fine. Thank you.
Hi there, I try to use your plugin to write a simple formula from least square method. The equation should have a beta hat = (X transpose X) inverse X transpose Y. I just don’t know how to get it right since I can not make the inverse sign (power -1) works right. I can do it with easy latex by this code
, but your plugin can not do that. Any suggestion how to make it right?
In LaTeX, if you want to write something like
you should use this code: A^{-1} and not A^(-1) which is plain incorrect.
.
For your particular formula we get:
OK thank, it works well.
, but it doesn’t work. Sorry, novice question.
There is one more thing, I want to use a hat on the beta, I try
Wow, it works well with your plugin. Thank you very much.
Hi Pavel, I am getting:
Error: Cannot create dvi file
Is the service down?
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.
Hi.
works, but
doesn’t.
I have simiral problem as Charlie. Using
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
.
Thank you for the debugging!! I’m fixing this bug right now.
Fine. Now it works like a charm
.
Good job.
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! =)
Well, I just discovered that \displaystyle does the trick ^_^
Sorry! you can delete this thread if you want…
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?
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.
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?
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.
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!
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?
Hi!
I don’t see any problem with this formula:
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.
I see correctly compiled formula on your site. No problems appearing. What do you mean by “error”?
Hey,
Now I do to, strange, I think the server needed time to process or something.
Well thanks!
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 !
I appreciate your feedback, thanks!
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?
Is it possible to use the align environment from amsmath? I tried using [math]\begin{align*} etc., but it causes an error.
I’m afraid no. QuickLatex treats all formulas in inline mode, but {align} needs to be used in display mode.
Any chance of you adding display mode as an option then? I know I can fudge a single equation with
but anything involving multiple lines can’t be done, at least not with proper alignment.
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)
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?
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.
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.
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!
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.
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!
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
Try \textrm{\LaTeX}
Hi!
I have been using yout tool for half a year now. At the moment 13786 generated images represent all the formula in a nice way, thanks for your work
One thing that is bugging me though is the printable version of the articles. The images are rendered in a very low resolution, making them fit in 72dpi text on the screen. When you print them, these low-res images are scaled up. Due to this they look quite ugly and are often hard to read.
Magnifying the images by setting font size in the formula code can not solve the problem, because I don’t want to have bigger images in the online-version.
Is there any chance to solve this?
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.
You can use LaTeX commands to control font size: \tiny \scriptsize \footnotesize \small, etc.
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?
So, how can i use any of the LaTex commands
\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge
in this sample expression:
Could you please write the new expression with any of the LaTex commands (\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge) included..
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.
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.
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.
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.
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.
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.
@Benjamin
It does — it saves the images in wp-content/ql-cache (make sure it exists and is writable).
Ah I see.
I’ll just check my permissions on the folder then
Disregard my comment, and thanks for clearing it up
Is the server down again? New formula have not been parsed since Monday…
Am I the only one with this problem?
Yay, it’s working again
I’m not entirely sure why, but WP QuickLaTeX makes my RSS feed timeout if I install it. Is this a known issue?
Ah, I geddit. The ql-cache directory didn’t exist. Cheers!
Nice plugin, but on black background looks awful.
Thanks Pavel. I’m using the LaTeX WordPress plugin on my blog. It looks great.
Thank you for using it!
Dear Pavel, thanks for a great plugin. It seems to work well on a few simple examples I’ve tried.
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.
Thank you for your feedback!
Please try now – everything should work ok.
hi

would you show a few examples, see what I got:
the result in no 1.
http://www.pdhsource.com/quiz-1115/
see how the (3/2) starts fine then drops, it should be all in the power line.
any advice
same thing in no 12 in the page link above
tx
am using
in the example above.
sorry, the [math\ tag is used above
@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.
tx Kim, works fine
is there any where i can read or see few examples for future issues.
hisham
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.
I have a problem, In my posts formulla show correct but in comments formulla not showed. My English is bad. Sorry.
You use $latex .. $ which is not supported by QuickLaTeX.
Use this syntax instead:
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.
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.phpfile.Replace it with the line:
add_filter('thesis_comment_text','quicklatex_parser');Let me know if it helps.
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.
Well, many people use
example=trueand it works perfectly. One of the examples are: thosedarngeeks.comCould 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?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/
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_filterinwp-quicklatex.php. Add0as 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!
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
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!
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:
This way does not support equations in
align, gather, etc.environments, so they should be rewritten. SorryThanks 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.
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…
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…
We are preparing new version of the plugin. It will have option for that.
We will release it next week.
Thank you, thank you for this great plugin!
As Svish, I am also interested in multiline equations being aligned on the left.
Stefano
New version of QuickLaTeX is 90% ready.
We will release it soon – sorry for the delay.
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.
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?
what about company website? such as, an online equation editor for teachers of A Company.
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
Thank you for the URL. Please use QuickLaTeX on your site along with the link.
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
You are using vBulletin, we have no plugin for it yet. sorry.
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.orgPlease wait for the next version – it will support native LaTeX syntax like
$...$,\[...\], and environmentsequation, align, etcembedded directly in the posts without[latex] ... [/latex]tags.Also it will support automiatic equation numbering and many other features.
Thank you very much!
Roughly when do you plan to release the next version of quicklatex?
Hi, when do you plan to release the next version of quicklatex (the one with equation numbering support?). Thanks
It is ready, so next week. We are waiting for response from people who test it right now.
Fantastic. Thanks.
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
You have to remove WP-LaTeX first.
Send me url of your site if problem won’t disappear.
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
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.
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
We are plannig to support \label and \ref in the next versions.
The \href{}{} command does not seem to be working. Thanks
Now QuickLaTeX is mainly targeted to handle math commands of LaTeX. We will extend its functionality gradually to cover other features.
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?
Thanks for using QuickLaTeX!
There are special commands for Laplace-Transformation Symbols in
Symbol List, Table 81, page 40):
trfsigns(see The Comprehensive\laplaceand\Laplace.To use them with QuickLaTeX, just include
trfsignsin preamble (local or global), e.g:\[ [+preamble] \usepackage{trfsigns} [/preamble] f(t) \laplace F(s) \qquad F(s) \Laplace f(t) \]results in
UPDATE: I’ve updated comment to include
.
\laplaceand\LaplacecommandsIMPORTANT:
Newest WordPress 3.0.5 has bugs on comments treatment.
It just cut out all HTML tags like img, pre, etc.
Do not upgrade to 3.0.5 right now – let developers to fix the bugs.
I’ve just upgraded and lost all the formulas in the comments (since they are included using img HTML tag.)
Answer to previous comment I published on the main page:
http://www.holoborodko.com/pavel/2011/02/08/quicklatex-laplace-transformation-symbols/
UPDATE
I just fixed it – http://wordpress.org/support/topic/wp-305-bug?replies=4
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!)?
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.
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?
Yes,
[latexpage]cannot be escaped with “!” now. I’ll fix this soon.Could you use
[latexpage]for escaping until then? Sorry for inconvenience.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.
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!
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
Environment
tableis not supported directly in the text yet, but you can wrap it with[latex mode=1] ... [/latex]tags, e.g.:<p style="text-align:center"> <!-- HTML & CSS for table centering--> [latex mode=1] \begin{table} \begin{center} \begin{tabular}{|r|l|} \hline 7C0 & hexadecimal \\ 3700 & octal \\ \cline{2-2} 11111000000 & binary \\ \hline \hline 1984 & decimal \\ \hline \end{tabular} \end{center} \caption{An example of table} \end{table} [/latex] </p>results in:
Floating parameters are not supported in this mode.
Image inclusion by
.
figureis 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 workPlease use HTML tags to insert images in your posts and CSS styles to emulate “floating” behavior of the
table/figureat the moment.We have plans to fully support both environments in the future versions. Please support us by backlink to keep development going.
Great! Thanks for the detailed and quick reply!
I’ll put the backlink right now!
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 !
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>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.
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;
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.
You have to use chemistry package for LaTeX –
mhchemYou 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:
Thanks very much! I appreciate the quick reply!
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.
I don’t see any problems with typesetting:

$[preamble]
\usepackage{mhchem}
[/preamble]
\ce{H2O}
$
It is rendered by QL as:
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.
*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.
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?
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.
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)
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.
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?
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
altattribute ofimgtag – 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.jsis 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
Does QL support the cite package and bibliographies? If so, where should the .bib files be uploaded to within the wordpress directories?
Not yet.
$
[preamble]
\usepackage{mychemistry}
[/preamble]
$
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?
QuickLaTeX is based on TexLive 2010 distribution. I’ll update QL server software in a couple of days.
Thanks Pavel, I look forward to being able to draw on a more comprehensive range of packages.
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:
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?
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.
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[,-+>]{ }{ }Best regards,
Clemens
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
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:
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.
Best regards
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!
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:
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.
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.
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.
@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.
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.
No problem detected (I just copied your code):
BTW we are updating/installing all LaTeX packages from CTAN (including mychemistry), so QuickLaTeX server might be unstable today.
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
No idea why this is happening. Could you provide more info on plugin which creates custom post types? Maybe it just disables all content filters & shortcodes for the new post types?
I am using this plugin: http://wordpress.org/extend/plugins/wordgallery-glossary/
The same is the case with the FAQ You plugin: http://plugins.trendwerk.nl/documentation/faq-you/
Probably you are right, there is some filtering or escaping happening.
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
We’ve fixed this, please try now.
It seems to be working nicely.
Thank you very much!
I’ve released new version of QuickLaTeX which is chemistry-friendly
. Please check this post for description:
http://www.holoborodko.com/pavel/2011/05/09/chemistry-in-wordpress-using-quicklatex/
Wow, that was fast!
Thank you very much!
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!
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.
Павел, благодарю за великолепный продукт! Отличный креатив!
К сожалению я немного слабоват по английскому, не могли бы Вы подсказать ссылку на документацию для создания формул именно на русском языке. Заранее спасибо. Желаю Вам дальнейших успехов!
Попробуйте классический учебник Львовского С.М.: Набор и верстка в системе LATEX.
Также можно воспользоваться сборником примеров за авторством Воронцова
agvares, спасибо огромное! Упростили жизнь мою )
Здравствуй, Павел.
спасибо за отличный продукт, очень удобно пользоваться
однако у меня вопрос: можно ли сделать что нибудь, чтобы при наведении курсора на формулу появлялась не надпись rendered by Quicklatex, а, как в WP-Latex, сам ТеХ код формулы.
у меня просто блог для новичков в математике и, боюсь, что без конкретных примеров и возможности прочитать запись формулы, им будем сложновато.
заранее спасибо за овет.
Спасибо за ваш отзыв.
Измените 1507 и 1547 строки в файле wp-quicklatex.php. Если не получится – пишите, помогу.
Только пожалуйста, не забудьте упомянуть на вашем сайте о QuickLaTeX-е.
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?
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.
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!
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
Is this thing documented anywhere? Like some sort of API description or something like that?
It is documented in the form of source code only
.
Communication with
latex3.fis pretty straightforward.It accepts POST requests with
bodypart consisting ofkey=valuepairs 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.
, written in JavaScript.
Also check source code of QuickLaTeX.com main page, there is another version of documentation
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…
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
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
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:
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 \[...\].
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 ...
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]. Parametermode=1push 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].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.)
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.
Thanks for the response.
I see, please take your time. I don’t mean to rush you but I’m looking forward to it.
Why do you need to switch distros, and to what distro would you switch?
I was thinking about switching to XeLaTeX, but apparently it is not necessary.
We can type Japanese Kanji with TeXLive using
CJKutf8orCJKpackages.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.
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?
Please check JS sources of QuickLaTeX.com – it is fairly easy to adapt that code for any usage.
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?
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.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.
Yes, you are right, this is very important feature – I’ll do it asap when I get a little time. Sorry again..
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.
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?
What WordPress version are you using? QL requires at least 2.8.
well I have wordpress 3.1.4
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/
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.
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.
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.
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.
Thanks! It is working perfectly now.
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
555555inFont colorfield onQuickLaTeX -> Basic Settingsdialog and pressUpdate QuicklaTeX Settingsbutton.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…
Thanks for the advice. I have send you a lil’ description by mail
This is a great plugin for my blog, thank you!
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..
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.
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:
in the web’s page there’s:
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!)
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.
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.
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.
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.
Hello Pavel,
Thanks for your reply.
Actually once I experimented I realized the way your plugin works is already great
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.
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.
Oh I see. Just tried textbf and bf with the equations and they bold properly now. Thank you again for all your help ^^
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.
You can wrap it with
$\texrm{...}$and make sure WP-QuickLaTeX runs after your plugin.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.
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.
Maybe this can help:
http://wordpress.org/extend/plugins/emoba-email-obfuscator-advanced/
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!
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.
Chinese is not supported yet?
can you give me a packages’ list that QuickLaTeX support ?
Hi,
in a page with included but get an error:
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
*** QuickLaTeX cannot compile formula:
\Bart
*** Error message:
File `simpsons.sty’ not found.
Emergency stop.
leading text: \pagestyle
So, what shall i do now?
Ahmet
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?
So, is there any Comprehensive LATEX Symbol List for TexLive distribution?
How can we write any piecewise funtion with quiclatex in wordpress?
I do it with this code:
it is left aligned here but it is not left aligned in wordpress. How can I do this?
I do it..
http://www.ahmath.com/anahtar-bilgiler/mutlak-deger
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?
Put “!” before latex formula, like this: !\[x(t)\]
why there is a test “rendered by quicklatex.com”
How to clear it?
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?
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?
@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.
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):
, cache cropped .png and .txt with baseline position.
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:
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:
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.
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.
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.
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.
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
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.
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…
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 !
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?
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.
That is very strange, QuickLaTeX actually handles
the_excerptthe same way asthe_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….
I’ll investigate and i’ll keep you in touch
Thanks, looking forward to your help…
Hi again,
How can I use Quicklatex with bbpress ?
Thanks
No errors or problems, just want to say that your plugin is awesome and extremely practical, thank you so much !!!
Thank you. I appreciate your support.
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
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.
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
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.
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
I see. Could you give me details on plugin settings, especially what commands/packages do you use in custom preamble?
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,
: off
Use LaTeX Syntax Sitewide: off
Exclude
In System,
Image format: PNG
Cache images locally: on
Debug mode: off
Thanks.
Ichijio
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.
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
\tagcommand like:\begin{equation*}
\tag*{(1)式}
...
\end{equation*}
Thanks for your appropriate instruction. After I removed the \newcommand line, the trouble has been avoided.
Thank you!
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.
WP QuickLaTeX uses backend server – QuickLaTeX to do rendering of Tikz drawings. Plugin just inserts rendered images into HTML code of the page.
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.
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)
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?
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.
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
QuickLaTeX always reserves space for left & right eqno. Width of these margins are controlled by CSS classes
ql-left-eqno & ql-right-eqnoin the file:[plugin's derictory]\css\quicklatex-format.cssAdjust
widthproperty for the classes to setup new margin.Thanks for the quick response. Problem solved.
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.
Command triggers QuickLaTeX processing for entire post. There is no need for closing tag – just delete it.
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
John, please send source text of the “problematic” page to my e-mail: pavel@holoborodko.com
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$
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
Plugins->Add New, search for QuickLaTeX, install.
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?
You mean like this
Source code is:
a\xrightarrow{\text{This is very long text}}bYes, thanks, it works. However, is there another ways to make the following ?
http://img109.imageshack.us/img109/9987/73536707.png
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.
nice plugin, I have donated, thanks,
Equations on their own line are working well.
“critical” value
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
is displayed as
on my site
thanks
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…..
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
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
I’m afraid there is no way, if no plugins are allowed.
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
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.
8 Trackbacks
[...] (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. [...]
[...] mendapatkan plugin WP-QuickLatex ini, silakan kunjungi situs si pembuatnya di http://www.holoborodko.com atau melalui plugin search yang ada di dashboard WordPress [...]
[...] mendapatkan plugin WP-QuickLatex ini, silakan kunjungi situs si pembuatnya di http://www.holoborodko.com atau melalui plugin search yang ada di dashboard WordPress [...]
[...] WP QuickLaTeX lets me write math that doesn’t look like garbage. [...]
[...] some strange topics on this blog, specially now that blog this supports Latex formulas using the WP-QuickLaTeX [...]
[...] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. [...]
[...] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. [...]
[...] Powered by QuickLaTeX.com” and QuickLaTeX as a WordPress plugin. [...]