How to write inline latex in wordpress.com post?

  • Unknown's avatar

    I have read this post:
    https://wordpress.com/support/latex/
    and am able to write latex in a shortcode block. However, is it possible to write Latex when I am in Markdown mode. How?
    Can I write it when I am in paragraph mode?
    I want to be able to write latex inline together with normal text. E.g.:

    This is a test paragraph. Let $x$, $y$ be two variables.

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to moderators and staff)

  • Hi there, it is possible to use Latex inline with a standard paragraph block, but it will take a small modification to your code. f you use this instead:

    This is a test paragraph. Let $latex x$, $latex y$ be two variables.

    You should see this.

    This is a test paragraph. Let $latex x$, $latex y$ be two variables. EDIT: this is not working on the forums but does work on my standard WordPress.com site using the same Twenty Ten theme as you are using on your site.

    As long as you use this format when adding your code it should work when you add it to standard Paragraph blocks: $latex your-latex-code-here$

    In my testing this formatting also works with the HTML block, Markdown Block, and Classic Editor block. Hope that helps. Please let us know if you have any more questions.

  • The topic ‘How to write inline latex in wordpress.com post?’ is closed to new replies.