Live data from Hacker News

Pandoc

pandoc.org

81–90 of 213 posts

Re: Pandoc

#83
post #66

Earlier quoted context omitted.

I'm sorry if it came across that way. The list is what I use pandoc for. I use it for a lot, so much that I think I use it for every project.

I found it confusing too. You were supposed to use interrobangs (‽) instead of "?" :)

Would that not only be applicative if I were making an exclamation? Whilst instead, I was making a statement.

Re: Pandoc

#84
Pandoc is great! I use pandoc for all kinds of formal writing (conversion to PDF via LaTeX). We also run pandoc in production to produce customer-facing PDFs.

Re: Pandoc

#85
post #74

I do all of my academic writing in pandoc. As compared to LaTeX this means no boilerplate (yet you can still use full LaTeX syntax for equations and the like) and, if the publisher 'needs' a Word file, you are one click away from providing it. All with plain text files that you can put under version control, get meaningful diffs, etc. It's just great.

I’ve never understood the impetus for not using full LaTeX in an academic contex, given that the boiler plate is so minimal and presumably one has a built up a personal template over time. For blog posts and notes I see the appeal, since the boilerplate can be a hindrance to spontaneous writing.

I agree - while pandoc is great it's usually not 'one click' to any format, especially when have html or latex-specific markups.

It's not for everyone, but emacs+auctex really reduces the latex boilerplate (at least writing it) that I don't really feel it's a hindrance.

Re: Pandoc

#86
post #83

Earlier quoted context omitted.

I found it confusing too. You were supposed to use interrobangs (‽) instead of "?" :)

Would that not only be applicative if I were making an exclamation? Whilst instead, I was making a statement.

It sounded like a rhetorical question, and based on the context that you use it for a lot of things, I sensed a bit on excitement there too, and thus the exclamation.. like "Isn't that awesome‽".

Re: Pandoc

#87

If you don't want to install Haskell and other dependencies, several folks have developed Docker images for using pandoc: https://users.soe.ucsc.edu/~ivo/_posts/2015-03-12-repeatable... http://gbraad.nl/blog/document-generation-using-markdown-and... https://github.com/jagregory/pandoc-docker

You'd only need to install Haskell if you wanted to build Pandoc. Pandoc the executable is a binary. I install it on Debian via: `apt install pandoc`.

Re: Pandoc

#88
post #31

Pandoc (or latex) + make + iNotifyWait work really well together for WYSIWYG like editing too: watch: $(ALL) while true; do \ clear; \ make $(WATCH); \ inotifywait -qr -e close_write .; \ done "make watch WATCH=build" will now compile documents on every save. Works well for single documents, collections of documents or entire websites.

[deleted]

Re: Pandoc

#89

Earlier quoted context omitted.

Pages will export to Word format, then use pandoc to generate markdown files. (Just one idea)

But then I have to keep a Mac around, just to convert documents. Not ideal.

You can do this via iCloud too (through the browser).

Re: Pandoc

#90
post #74

I do all of my academic writing in pandoc. As compared to LaTeX this means no boilerplate (yet you can still use full LaTeX syntax for equations and the like) and, if the publisher 'needs' a Word file, you are one click away from providing it. All with plain text files that you can put under version control, get meaningful diffs, etc. It's just great.

I’ve never understood the impetus for not using full LaTeX in an academic contex, given that the boiler plate is so minimal and presumably one has a built up a personal template over time. For blog posts and notes I see the appeal, since the boilerplate can be a hindrance to spontaneous writing.

I agree. If one is going to use LaTeX directly or indirectly via Pandoc, eventually one would have to build up a personal template to fine-tune the look and feel of the documents.

If one is going to write LaTeX code anyway, it seems easier and cleaner to use LaTeX all the way, move all the boilerplate along with the personal template to say, a file named preamble.tex, and \input{preamble.tex} in the documents.

However, there are situations where Pandoc can be convenient. For example, I wanted a document[1] to be written primarily as README.md (CommonMark format), so that GitHub could render it as the project README. At the same time I wanted to render a PDF output from a customized form of the content. Pandoc is convenient for cases like this although it takes a bit of work to fine-tune the formatting and customize the content for each output format.

[1]: https://github.com/susam/gitpr

[2]: https://github.com/susam/gitpr/blob/master/Makefile

Post reply on HN