Latex functionality not working?
-
Hi, I’m on the free plan. I’m a tutor and I wanted to start a blog for my students that compiles some of the most common math issues students have along with solutions and insight. I cannot get Latex code to show at all, though I’m following the directions shown here at https://wordpress.com/support/latex/
typing $ latex int_0^1 f(x) , mathrm{d} x $ into a custom HTML block just returns exactly that with no rendering. Please let me know what I’m doing wrong. I have tried multiple browsers.
Site: https://stephanacademics.wordpress.com.
WP.com: Yes
Correct account: Yes -
Hi there!
That’s because of the formatting. To render LaTeX, you’ll need to remove the spacing between the $ sign and the word latex; try this:
$latex int_0^1 f(x),mathrm{d}x$I hope that helps :)
-
-
-
-
Hi, it doesn’t matter what code I use. It doesn’t render anything even if I copy the code from someone else.
-
Hi there!
Thanks for sharing the code. I tested it on one of my test sites and it seems to work in the Custom HTML block. See this:
Can you share the link to the post you’re working on so that we can look into that?
Regards
-
Sure, it’s here. The draft doesn’t display anything when I hit preview and the published post has the parsing error.
-
Thanks! I’ve noticed that you shared the following in your reply above:
$latex int_0^1 f(x),mathrm{d}x$That’s the one I tried using on my test site and it worked. But on your post, I see a different one:
$latex 7x – 2y = 8 \ -6x + 3y = 21 $I get the same parsing error with that on my test site. Can you confirm that this is correct? And just to check again, can you use your earlier one and see if that works on your site?
Here’s the earlier one you shared:
$latex int_0^1 f(x),mathrm{d}x$ -
Ah, I have figured it out. I wasn’t aware that you cannot get code to render unless you publish and view the post. I was expecting it to render in when I click ‘preview’ while still drafting. Thank you!
- The topic ‘Latex functionality not working?’ is closed to new replies.