aimhubio / aim

Aim 💫 — An easy-to-use & supercharged open-source experiment tracker.
https://aimstack.io
Apache License 2.0
5.23k stars 321 forks source link

Support LaTeX equations in reports #3236

Open Aonnghus opened 1 month ago

Aonnghus commented 1 month ago

🚀 Feature

Parse and render LaTeX in the reports.

Motivation

It can be useful to write LaTeX stuff in the reports like equations, etc.

Pitch

The user could write LaTeX code directly into the markdown code surrounding the equations with $ signs or creating a "math" codeblock. How GitHub handles LaTeX

$e=mc^2$ => $e=mc^2$

```math
\mathcal{V} = \frac{4}{3} \pi r^3
```
\mathcal{V} = \frac{4}{3} \pi r^3

MathJax could do the job just fine.