Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6985515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:41:25+00:00 2026-05-27T18:41:25+00:00

I am new to python for web apps, and am using django for my

  • 0

I am new to python for web apps, and am using django for my first try. Since the app should create some latex files dynamically, I thought that the most elegant way would be to return the latex file as a web request and create the contents dynamically using the django template engine. However, the template syntax consists of characters ({, % and }) that are special characters in latex, too. So in this special case, I would want to change the syntax of the django template system.

My questions are:

  1. Do you think this is the recommended way to do latex file creation? Or should I open the template files using python and just create regexps for all the variables and so on. (I would really prefer the django template way!)
  2. How can I change the way variables and functions are substituted in django templates? E.g. {{ x }} to << x >> or anything like that.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:41:26+00:00Added an answer on May 27, 2026 at 6:41 pm

    AFAIK, the Django template language doesn’t allow for custom syntaxes. Fortunately, there’s another pluggable templating system called Jinja2 that does.

    See this blog post for someone else’s experience with LaTeX and Jinja2.

    Official Jinja2 docs on the subject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Python, and I'm working on writing some database code using
I'm new to python and django. Apps | Versions : Python 2.6.2 Django (working
I have been trying to create a web service out some python scripts, and
Are there any other good Python web frameworks? I'm looking to try something new,
I've recently started developing my first web app with GAE and Python, and it
1) I try to setup a new web environment to host python + psycopg2
I'm building my new website using app-engine with python and webapp2 I'm having hard
I'm a new Python programmer who is having a little trouble using 'self' in
I have started using Python for web development recently, it's kinda cool; I have
I'm starting a new Python web project. With most frameworks, everyone rushes to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.