Skip to content

Feature Request: Convert plain text math formulas to LaTeX renderingΒ #158

Description

πŸ“‹ Overview

Currently, some mathematical formulas in the project documentation/pages are written in plain text or standard Markdown, which significantly impacts readability. I suggest converting these formulas into LaTeX format so they can be properly rendered using standard tools like MathJax or KaTeX.

πŸ”„ Formula Mapping

Here are some examples:

Context Current Plain Text Formula LaTeX Formula The rendering result of LaTeX
Quadratic formula x = (-b +/- sqrt(b^2 - 4ac)) / 2a $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
The formal definition f'(x) = limit (h -> 0) [f(x + h) - f(x)] / h $f'(x) = \lim\limits_{h \to 0} \frac{f(x + h) - f(x) }{h}$ $f'(x) = \lim\limits_{h \to 0} \frac{f(x + h) - f(x) }{h}$
The definition of gradient grad f = [ df/dx, df/dy, df/dz ] $\text{grad } f = \left[ \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z}\right]$ $\text{grad } f = \left[ \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z}\right]$

πŸ› οΈ Suggested Implementation

  • For inline formulas, use single dollar signs: $ formula $
  • For standalone block formulas, use double dollar signs: $$ formula $$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions