Live data from Hacker News

Pandoc Templates

pandoc-templates.org

21–30 of 65 posts

Re: Pandoc Templates

#23
post #3

Pandoc is such an amazing piece of software. I used it to format my novel and made it part of a GitHub action to produce all the formats I required. I wasn't aware of templates, but some look really sleek. I keep thinking that modern text editors are just flawed and markdown, with all its downsides and limitations, is what 99% is the people need.

Haskell thriving in the wild!

Re: Pandoc Templates

#24

Earlier quoted context omitted.

For most of the short simple documents I create, I don't want to redo the formating for every document. Simply writing it in something simple like Markdown ( possibly a markdown wysiwig editor) and having my software automatically apply appropriate standard formats to it is ideal.

Right, most people don't want to do that, they want the burden of applying styles to the couple headings or whatever. Unfortunately, most people don't use paragraph styles, but if you do, it's a couple clicks.

Agreed. There is actually a lot better control in openoffice / libreoffice than most people know. You just have to set up your styles and be systematic about (virtually) never using direct formatting, instead always applying a pre-configured style. There is a distinct value in seeing your final product as you work, when the final product is visual.

Re: Pandoc Templates

#25
post #3

Pandoc is such an amazing piece of software. I used it to format my novel and made it part of a GitHub action to produce all the formats I required. I wasn't aware of templates, but some look really sleek. I keep thinking that modern text editors are just flawed and markdown, with all its downsides and limitations, is what 99% is the people need.

For the short, simple documents that most people make, a versioned, wysiwyg word processor is going to beat everything else. I mean, they don't want to think about building the output, never mind controlling the process.

I'm a programmer and even I like writing in a non-programmable environment. Programming in the document system just stimulates the more primitive parts of my brain that love the processing and programming more than the writing itself. So it's distracting in that way.

Re: Pandoc Templates

#26
post #3

Pandoc is such an amazing piece of software. I used it to format my novel and made it part of a GitHub action to produce all the formats I required. I wasn't aware of templates, but some look really sleek. I keep thinking that modern text editors are just flawed and markdown, with all its downsides and limitations, is what 99% is the people need.

You should be aware that pandoc markdown has extensive non-standard additions to the language to make it usable.

If you want a pure markup language that is simple, plain text readable and able to produce text more complex than what a type writer could manage in 1920 then restructured text is the way to go.

Re: Pandoc Templates

#27

Pandoc is an impressive piece of software but I could never quite get PDF generation working nicely with it. Table layouts were often broken, with text overlapping into adjacent fields. Unicode font fallback didn't work properly, with characters like "→" being silently dropped because they didn't exist in the main font. Having predictable control of page breaks, to avoid situations where header text didn't stick to t…

I broke out a little HTML/CSS for this with page-break: after, now deprecated but the improved directives look better:

https://stackoverflow.com/questions/1664049/can-i-force-a-pa...

Re: Pandoc Templates

#28
post #24

Earlier quoted context omitted.

Right, most people don't want to do that, they want the burden of applying styles to the couple headings or whatever. Unfortunately, most people don't use paragraph styles, but if you do, it's a couple clicks.

Agreed. There is actually a lot better control in openoffice / libreoffice than most people know. You just have to set up your styles and be systematic about (virtually) never using direct formatting, instead always applying a pre-configured style. There is a distinct value in seeing your final product as you work, when the final product is visual.

This is more of a utopia than expecting the average office drone to learn emacs.

Re: Pandoc Templates

#30
I used to use pandoc for my bachelors papers, which needed to be submitted as word documents. I never used templates but had a rather large "one-liner" pandoc command to convert my markdown files.

At the time I'd not got round to understanding the yaml front matter etc. I even user Zettlr for a while [0].

I then discovered quarto [1] and this changed everything. Much nicer experience. I used this for my masters papers.

I think the tooling around pandoc is what makes it such a good tool. I remember attempting restructured text and latex and having a right hard time.

[0] https://zettlr.com/ [1] https://quarto.org/

Post reply on HN