RomanHauksson / academic-project-astro-template

Simple project page template for your research paper, built with Astro and Tailwind CSS
https://research-template.roman.technology
252 stars 13 forks source link

Inline LaTex Support? #1

Closed navvye closed 1 month ago

navvye commented 1 month ago

I was just wondering if there's support for inline LaTex? I tried rendering equations using KaTex, but it always wraps the equation onto the next line rather than rendering it with the rest of the text. This can get quite annoying sometimes, and I've had to come up with a hacky solution for this.

RomanHauksson commented 1 month ago

Thanks for the issue! Just added inline LaTeX support. Example use:

<div>This is text in a paragraph, followed by an equation, <LaTeX inline formula="a^2 + b^2 = c^2" />, and then more text.</div>
navvye commented 1 month ago

Thanks!