R
R
raiboon2015-01-29 18:14:48
Blogs
raiboon, 2015-01-29 18:14:48

How easy is it to integrate the input of formulas, code into the site?

I'm making myself a bug. On Django. There will definitely be tex formulas. And code examples.
How to teach Django to convert Latex formulas into images, and color code chunks with pigment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xSkyFoXx, 2015-01-29
@xSkyFoXx

It's best to render this kind of thing not on the server side, but on the client side. I use mathjax for this .
Then you enter formulas in the familiar LaTeX format in an editor convenient for you, whether it's markdown or raw text (a form in the Django admin panel), and everything is rendered on the client (in the browser). (Here's what it looks like: cherrypiethoughts.com/from-2-to-infinity.html )
Django Battery: https://github.com/kaleidos/django-mathjax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question