Comments (4)
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.
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.
- but this will cause problems when
- need to make sure the raw LaTeX in
header-include
will be parsed as raw LaTeX. (useRawInline
) - This also means the templates requires a complete rewrite.
from pandoc-amsthm.
The idea to use header-include
as template-snippet won't work, see jgm/pandoc#3138.
from pandoc-amsthm.
See #15. Template will not be needed in v2
from pandoc-amsthm.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-amsthm.