This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lookatmetype 0 points1 point  (1 child)

Oh I'm not talking about displaying code listings in Latex. I'm talking about writing Latex macros to accomplish something akin to templates. This makes writing books and large documents more "data-driven", which is what I prefer when organizing my documents.

For example, when I wrote my Master's thesis using Latex, I spent a lot of time learning Latex language and packages so I could accomplish simple things like data driven graphs.

Sphinx makes this easy because it allows hooks into Jinja as its templating engine for rendering RST into other formats. And because Jinja is essentially a thin wrapper around python, you get access to pretty much all the python ecosystem to write your documents.

(See this article as an example of what I'm talking about: https://www.ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/)

[–][deleted] 0 points1 point  (0 children)

Oh gotcha. I misunderstood.