Giter Site home page Giter Site logo

Comments (2)

aelzenaar avatar aelzenaar commented on June 15, 2024

So we need a New Bucvac Design:

  1. Read TeX input, read metadata out of input
  2. Read stencil, fill with jinjr, execute hooks to write metadata (e.g. Buc_title)
  3. Output stenciled TeX to file and XeLaTeX it twice
  4. Run add_record or update_record
  5. Profit.

from bucephalus.

aelzenaar avatar aelzenaar commented on June 15, 2024

Jinja allows us to add in custom filters, which means we should be able to write in a stencil {{ course ~ " assignment " ~ asstno | hp2_set_meta("Buc_title") }} instead of doing this manually. This is in line with the objective of replacing Pystache with Jinja outlined in the original issue comment.

With respect to allowing \input, the simplest solution seems to be exporting a tag like {{Hp2_stencildir}} so that something like \input{ {{Hp2_stencildir}}/myfunincludefile.tex can be written. Alternatively, we could use a filter like {{"myfunincludefile.tex"|Hp2_include}}, but this would be less desirable as it means that the user is forced to use \input instead of \include.

from bucephalus.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.