• Resolved logaritym

    (@logaritym)


    Hi. The Katex block creates long formulas that do not break on new lines and thus are not fully visible on mobile. Inline shortcodes work well.

    Also, why isn’t it possible to create a Katex block so that we can write everything inside in Latex? It will be so much simpler than using [latex] constantly in paragraphs ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Churchman

    (@beskhue)

    This is intentional: the KaTeX CSS styles .katex-display .katex to white-space: nowrap. You can override this if you wish, e.g.

    
    .katex-display .katex !important {
      white-space: inherit;
    }
    

    Instead of this, though, I prefer to set it to be horizontally scrollable (overflow-x: auto).

    I’m not sure I understand what you mean by your second question. Are you asking why you cannot write full LaTeX documents in KaTeX blocks?

    Thread Starter logaritym

    (@logaritym)

    Yes. I think it will be much nicer the Katex block to be similar to the [latexpage] in other plugins. Text is rendered as text and $$ enters math mode. Currently, it is very hard to turn my lecture notes into a lesson with Katex:(

    Plugin Author Thomas Churchman

    (@beskhue)

    Unfortunately this will not be possible. KaTeX is not LaTeX: it is a different implementation of TeX, and focuses specifically on math and rendering performance. You can continue using this KaTeX plugin and plugins that support LaTeX side-by-side, however!

    Thread Starter logaritym

    (@logaritym)

    Hey mate, can you double check the scroll CSS (x-overflow), I’m not sure it is working :/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Katex Block doesn’t break formulas into lines’ is closed to new replies.