How to disable automatically insert linebreak in need?

Assuming, you’re using a latex shortcode, the following should do what you’ve asked for: function leave_latex_alone($content) { $new_content=””; $pattern_full=”{(\[latex\].*?\[/latex\])}is”; $pattern_contents=”{\[latex\](.*?)\[/latex\]}is”; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) if (preg_match($pattern_contents, $piece, $matches)) $new_content .= $matches[1]; else $new_content .= wptexturize(wpautop($piece)); return $new_content; } remove_filter(‘the_content’, ‘wpautop’); remove_filter(‘the_content’, ‘wptexturize’); add_filter(‘the_content’, ‘leave_latex_alone’, 99); This is an adapted … Read more

How to deal with the confliction between PHP-Markdown and MathJax?

I’m not sure this is a real answer, but have you tried PHP-markdown-extra (by the very same Michel Fortin)? At least for me (using Mark Jaquith’s markdown-on-save plugin) your example is not a problem. But Markdown-extra is not perfect either and I’ve seen some other quirks with respect to emphasis, e.g. Let $(y_n)_{n\in \omega}$ enumerate … Read more

LaTeX for WordPress strips codes in loop

I don’t know much about that plugin but it applies filters to both the_content and the_excerpt, which seems reasonable to me. I have to assume that your theme is bypassing those filters somehow in the index listing. I can only guess at what it is doing, but you could add a filter to get_the_content and … Read more

Writing LaTeX formulas with MathJax on WordPress site: the simplest way (possibly without affecting header.php)?

If you’re using any (non site-specific, custom made) theme without a child theme, then you shouldn’t modify the original theme files in any way. As any modifications will get wiped out the next time you update your theme. If you’re using a child theme, you could copy the header.php file from your parent theme to … Read more

Changing $latex $ equation background color globally

I thought I would provide a work-around that I have used. Using any editor that allows find-and-replace you can just do the following (assuming $ appears only as latex start/end parameter and not as a symbol by itself): find-and-replace $ by &bg=ffffff$ (replace ffffff by your favourite colour) then find-and-replace &bg=ffffff$latex by $latex It is … Read more

Keeping LaTeX contents in line with non-latex text

I haven’t used that plugin, so I can’t speak to whether there are any configurations that would help. However, I think your issue could be solved with a simple css rule: img.latex { vertical-align: middle; } would center all your LaTeX-generated images on the line they fall on.

How do I convert a mathematical Microsoft Word document to a WordPress blog post?

You’ve got 2 separate issues here Word -> WordPress: As @One Trick Pony said, the easiest way to sort this will be using the Paste from Word button on the post editing toolbar. Images will probably need to be inserted manually MathType -> WordPress: You’ll need to install the Latex for WordPress plugin and use … Read more