Re: django templates and tex/latex

2013-03-16 Thread thanos
On Thu, Mar 14, 2013 at 9:58 AM, Bill Freeman wrote: > Note that you don't have to use the Django template engine to render > things. > > For one thing, if you found a less problematic templating engine, using it > as > well doesn't prevent you from using Django's template engine for other > page

Re: django templates and tex/latex

2013-03-14 Thread Bill Freeman
Note that you don't have to use the Django template engine to render things. For one thing, if you found a less problematic templating engine, using it as well doesn't prevent you from using Django's template engine for other pages. You could also roll your own by coming up with, for example, a T

Re: django templates and tex/latex

2013-03-13 Thread Ken
Actually, that's exactly what I'm trying to do. I have database tables whose columns contain TeX fragments. I am trying to generate various file outputs from database searches - TeX, pdf, etc. I could construct the tex file on the fly with python strings as you suggest but that's rather cumber

Re: django templates and tex/latex

2013-03-13 Thread Drew Ferguson
On Wed, 13 Mar 2013 07:01:45 -0700 (PDT) Ken wrote: > I would like to write a tex/latex file with django tags in it. Load it > with the template loader and render it with a context. The problem is > that my tex/latex file has quite a few '{%' in them. They are > conventional in TeX for writi

Re: django templates and tex/latex

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 2:43 PM, Tom Evans wrote: > On Wed, Mar 13, 2013 at 2:01 PM, Ken wrote: >> I would like to write a tex/latex file with django tags in it. Load it with >> the template loader and render it with a context. The problem is that my >> tex/latex file has quite a few '{%' in th

Re: django templates and tex/latex

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 2:01 PM, Ken wrote: > I would like to write a tex/latex file with django tags in it. Load it with > the template loader and render it with a context. The problem is that my > tex/latex file has quite a few '{%' in them. They are conventional in TeX > for writing readabl

django templates and tex/latex

2013-03-13 Thread Ken
I would like to write a tex/latex file with django tags in it. Load it with the template loader and render it with a context. The problem is that my tex/latex file has quite a few '{%' in them. They are conventional in TeX for writing readable macros and are used to escape the newline. I c