Skip to content

Typesetting formulas #348

Closed
Closed
@ISSOtm

Description

@ISSOtm

We have a couple of formulas in Pan Docs, especially when sound is involved: for example, X(t) = X(t-1) +/- X(t-1)/2^n in the "Channel 1 Sweep register" section.

I believe formulas typeset like this are hard to read, so I looked for alternatives, and found MathML (HTML5 spec), which is very nice... but doesn't work in Chrome besides version 24 (current is 92).

Another alternative would be Mathjax, which mdBook natively supports; however, the JS-less experience may be degraded, and the page layout may shift while the formulas are being rendered, likely more jarringly on the "single" page.

I finally found mdbook-katex, which pre-renders equations written in LaTeX format, probably in a similar fashion as MathJax, i.e. generating SVGs.

What should we go with?

Metadata

Metadata

Assignees

No one assigned

    Labels

    consistency - styleContent format, text style, consistency in presenting the informationsfrontendCSS Style, UI components, UX, typography

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions