advanpix
Forum Replies Created
-
We actually check for LaTeX code before to process content with Markdown. To do so, we check for this LaTeX code pattern: $latex some-latex-text $
We also check for shortcodes thanks to core’s get_shortcode_regexfunction
Using shortcodes to include LaTeX is very inconvenient. Just imagine how would you publish excerpt from your scientific paper on your blog. All the hundreds of LaTeX pieces of code would require manual wrapping with $latex …$. Nightmare.
There are a lot of possible LaTeX patterns (\[..\] is one of many).
This is one of the reasons QuickLaTeX supports native LaTeX syntax without any shortcodes (shortcodes can be used too, of course). This allows copy-paste exchange with offline LaTeX papers.
The second way would require to detect the presence of JetPack/Photon.
Just stripping off everything after file extension in URL looks universal enough (?)
– Yes, as for Markdown, it strips off all the “\” in text.
In LaTeX language this is probably the most important symbol – every command should start from “\”.– As for Photon, QuickLaTeX > System > Image format: Auto.
In this mode QuickLaTeX uses PNG by default (on page load), but then replaces image URLs to SVG if browser supports it (by JavaScript).In this way we have graceful fall-back in case of older browsers.
I have just realized that probably I should strip off the “resize” using JavaScript after switching to SVG in browser.
Forum: Plugins
In reply to: [WP QuickLaTeX] Does not work with WP 4.4.2I am using 4.4.2 myself without any issues.
Try disabling two following options in JetPack:
1. Photon
2. MarkdownFirst doesn’t support the SVG images, second breaks the LaTeX code.
Forum: Plugins
In reply to: [WP QuickLaTeX] xy-pic arrow tips do not render in SVGThank you very much for such supportive feedback and for great review!
We appreciate it very much and it will definitely help QuickLaTeX to gain more users.Happy Holidays!
Forum: Plugins
In reply to: [WP QuickLaTeX] xy-pic arrow tips do not render in SVGHi,
We have just updated software on our server – now arrows should be rendered in SVG mode.
Please try your example one more time, but be sure to alter the code in some simple way (add/remove whitespace or similar) – so that QL will think it is new formula and will render it ignoring the cached old one.
Forum: Plugins
In reply to: [WP QuickLaTeX] xy-pic arrow tips do not render in SVGOr switch to TikZ :(, as it is much better supported in LaTeX distributions right now. (XY was updated in 2013 for the last time)
Forum: Plugins
In reply to: [WP QuickLaTeX] xy-pic arrow tips do not render in SVGTry using different font size [latex size=...] ... [/latex].
We are using DVI to SVG converter from TexLive distribution and it is far from perfect. Hopefully it will render it for different size.
Forum: Plugins
In reply to: [WP QuickLaTeX] wordpress caption for a tikzpicture figureForum: Plugins
In reply to: [WP QuickLaTeX] themes with which the plug-in is not compatibleProbably it was some issue with caching?
Indeed, there are some “aggressive” themes which forcefully re-write styles, etc. Hopefully this was not the case…
Forum: Plugins
In reply to: [WP QuickLaTeX] Compatibility issues with PHP7Hi Julien,
Yes, of course, please send me more information about the errors.
My e-mail is [email protected]Thanks!
Forum: Plugins
In reply to: [WP QuickLaTeX] wordpress caption for a tikzpicture figureHello,
Please use the HTML tags to add caption (e.g.
p, div
, etc.). The [caption] is added by WordPress and it is doesn’t work well with plugins.Forum: Plugins
In reply to: [WP QuickLaTeX] Unknown errorI am closing the thread, as nor details were provided….
Forum: Plugins
In reply to: [WP QuickLaTeX] Unknown errorCould you let me know url of the page? And code for the formulas?
Forum: Plugins
In reply to: [WP QuickLaTeX] Can't connect to QuickLaTeX serverOne more thing. Please disable the “Photon” module in WordPress’s Jetpack plugin.
It adds “?resize=…” suffix to every image on your blog. So that it resizes every image coming from QL and it doesn’t work with SVG!
I have no idea why Automattic makes it so aggressive and not friendly for other plugins.
Forum: Plugins
In reply to: [WP QuickLaTeX] Can't connect to QuickLaTeX serverGreat, thank you!