• Resolved douxdolci

    (@douxdolci)


    I’m using Latex equations on my website, with Katex as the renderer. For the equations to render properly I use “$$” to both open and close them. However, whenever I edit a page with Elementor all of these pairs are turned into single dollar signs, which means none of my equations are rendered. Gutenberg and the classic WordPress editor don’t have this issue. In the link provided, you can see that the “Trig Identities” tab doesn’t work, while the rest do; Elementor is very finicky with the things it breaks.

    This is driving me insane,
    And any help is appreciated

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Trig Identities shows for me. Is this where the $$ is used?
    Not sure I understand your post completely but I tried to duplicate what you wanted to do and didn’t seem to have a problem. see tiger721.com at the very bottom. I added this to a Text widget in Elementor. Let me know if I did something wrong.

    • This reply was modified 5 years, 12 months ago by LesTexas60.
    • This reply was modified 5 years, 12 months ago by LesTexas60.
    Thread Starter douxdolci

    (@douxdolci)

    Haha, my bad. I’m an idiot and fixed the Trig Identities page immediately after this post. Sorry, I completely forgot I had mentioned it as a problem. I’ve reverted the Trig Identities section again to show you what I mean. I should mention that these next lines need to be added to the header of your site for the equations to render:

    <!– Katex AutoRendering –>
    <link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css&#8221; integrity=”sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv” crossorigin=”anonymous”>
    <script defer src=”https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js&#8221; integrity=”sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O” crossorigin=”anonymous”></script>
    <script defer src=”https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js&#8221; integrity=”sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF” crossorigin=”anonymous”
    onload=”renderMathInElement(document.body);”></script>

    Try writing this: $$\cos(x)+2$$
    Then publish it, reopen the editor, and see it if messes with the dollar signs.

    • This reply was modified 5 years, 12 months ago by douxdolci.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Latex Issues’ is closed to new replies.