Support » Plugin: WP-KaTeX » I can not enter some mathematical symbols

  • Hi there, thanks for providing us with support.

    My problem with KaTeX is this.

    When I try to write the following line (in HTML) for a new post on my web site with WordPress

    [Latex] n \ leq x <n + 2 [/ latex]

    I only get this on the way out

    N \ leq x <n + 2 [/ latex]

    That is, no mathematical symbol appears in the output article.

    However if I write equations, such as:

    [Latex] ax ^ 2 + bx + c = 0 [/ latex]

    (\ Sum_ {k = 1} ^ n a_k ^ 2 \ right) \ left (\ sum_ {k = 1} ^ n a_k b_k \ \ Sum_ {k = 1} ^ n b_k ^ 2 \ right) [/ latex]

    Yes they can visualize perfectly.

    How is this resolved? I’ve tried everything and I can not fix it.

    Thanks in advance for your prompt response.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ascom

    (@ascom)

    There may be a space after the slash in the closing shortcode tag. In my testing, including the space produces the same output as you describe.

    @ascom You mean I should put [/ latex] instead of [/latex]?
    I already did and the problem is not solved.
    However when I write n \ leq x <n + 1 in the ‘insert code’ field of https://khan.github.io/KaTeX/ it perfectly displays the output expression.

    • This reply was modified 1 year, 3 months ago by  salowporg.
    • This reply was modified 1 year, 3 months ago by  salowporg.
    Plugin Author ascom

    (@ascom)

    I meant you should put [latex]...[/latex]. In my testing, using this exact shortcode produces the desired equation output.

    @ascom Thank you, I have tried with space and without space, and it is not resolved. Try to try it on another website. And then I tell you how it was

    @ascom. I have done a clean install in WordPress (with Spanish language) in a new subdomain of my own domain. I installed the KaTeX plugin to avoid possible conflicts with other plugins. I installed a minimal theme, the simplest. And the problem persists.
    Look, when I write in the input editor HTML
    [latex] x \leq y > z [/latex]

    I get the following message KaTeX parse error:
    Expected ‘EOF’, got ” at position 12: x \ geq y> z,
    what’s going on? please help. Attached screenshots

    Code entered in html view
    Code entered in html view

    Code entered in normal view
    Code entered in normal view

    Error message in the resulting post
    Error message in the resulting post

    Note: In all other cases, this plugin works very well. Thank you for creating it.

    • This reply was modified 1 year, 3 months ago by  salowporg.
    • This reply was modified 1 year, 3 months ago by  salowporg. Reason: problem with google traductor
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I can not enter some mathematical symbols’ is closed to new replies.