Git Product home page Git Product logo

Comments (4)

ickc avatar ickc commented on August 29, 2024

While embedding the template snippet in the filter itself makes the whole experience cleaner, it means people cannot tailor the templates, which can be important for the CSS (where the counter should be reset?).

It might also means the filter needed to be rewritten in Haskell. (Need more investigation here.) If Haskell is needed, it increases the complication of using the filter. Right now I'm working a project depending on this filter. It can potentially has a lot of contributors, meaning I need to make it easy to setup. Right now I setup this repository as a submodule of that one. No compiling or downloading is needed. Easy to setup for both human and travis.

from pandoc-amsthm.

ickc avatar ickc commented on August 29, 2024

Using header-include for the templates?

Another idea is to use header-include in YAML metadata:

  • This way, "embedding" the templates using pandocfilters/panflute is possible (since pandocfilters/panflute doesn't seem to interact with Text.Pandoc.Templates).
  • In principle, this does not need to check for output format, because the template in header-include would be raw LaTeX.
    • but this will cause problems when pandoc -f markdown -t markdown is used to output markdown. Now the new markdown has a YAML frontmatter that already has the necessary amsthm environment. But the LaTeX output still requires the filter since the filter need to convert the div into LaTeX environment. i.e. It should still check if the output is LaTeX.
  • need to make sure the raw LaTeX in header-include will be parsed as raw LaTeX. (use RawInline)
  • This also means the templates requires a complete rewrite.

from pandoc-amsthm.

ickc avatar ickc commented on August 29, 2024

The idea to use header-include as template-snippet won't work, see jgm/pandoc#3138.

from pandoc-amsthm.

ickc avatar ickc commented on August 29, 2024

See #15. Template will not be needed in v2

from pandoc-amsthm.

Related Issues (6)

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.