My favorite pandoc hack is using it to convert word docs into markdown which can then be diffed similar to source code. Works great for legal redlining.
> legal redlining Is this underlining, and not redlining as defined in financial services? (redlining: differential pricing based on demographic makeup of a zip code or neighborhood)
Pandoc
61–70 of 213 posts
Re: Pandoc
#62I 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.
Incidentally, I really like the thoughtful syntax additions Pandoc makes over olde Markdown (eg., tables, definition lists, and span & div syntax as well). Such a great all-around doc tool.
Re: Pandoc
#63I use Pandoc to convert directories of Markdown files into static HTML websites. Here's the build command for responsive.style[1]: pandoc $file -f markdown -t html5 -H templates/header-prod.html -B templates/nav.html -A templates/footer-prod.html -o (echo "../$file" | sed '$s/\.md$/.html/') -s --data-dir=./ --highlight-style breezedark --variable=file:(echo "$file" | sed '$s/\.md$/.html/') Works beautifully! 1: https…
I wrote up a tool as well, with navigation and prev/next links: http://www.unexpected-vortices.com/sw/rippledoc/index.html
Re: Pandoc
#64I write fiction as a hobby, I do it in markdown and use Pandoc to turn it into epub files with a custom CSS. It works great. Thanks Pandoc!
Is the CSS derived from the markdown, or you supplement MD to HTML with custom CSS? Definitely curious to know!
Re: Pandoc
#65I like pandoc. I've been using Typora [1] for all of my writing, and it's decent, but a little slow. What editor do HN folks use? I wonder if there's a leaner editor out there with an equally nice distraction-free editing interface. Thanks in advance! [1] https://typora.io/
I've been really enjoying the Caret beta -- https://caret.io/ Not free, but a real pleasure to use.
Re: Pandoc
#66Earlier quoted context omitted.
> + Generating manpages for new tools Do any of your tools use long options (prefixed with a double dash)? If so, make sure you disable the "smart" extension, otherwise you might end up with en dashes.
OP said he doesn't use pandoc for such things. It's a list of things that have better tooling.
Re: Pandoc
#67What don't I use it for? + Static websites from any input to html + Markdown & TeX & References to pdf for academia + Generating manpages for new tools + Generating ebooks ... Let's just say I get a bit lost when it isn't available.
What do you use for ebooks? Asciidoc?
For novels, I tend to just use Markdown, as kerning will be done in CSS.
For academics, I use LaTeX and Asciidoc together, but some paragraphs might be inserted in various other formats - whatever is easier. The build tool doesn't care what the format is, it'll take any input pandoc accepts.
Re: Pandoc
#68My favorite pandoc hack is using it to convert word docs into markdown which can then be diffed similar to source code. Works great for legal redlining.
> legal redlining Is this underlining, and not redlining as defined in financial services? (redlining: differential pricing based on demographic makeup of a zip code or neighborhood)
Re: Pandoc
#69My favorite pandoc hack is using it to convert word docs into markdown which can then be diffed similar to source code. Works great for legal redlining.
> legal redlining Is this underlining, and not redlining as defined in financial services? (redlining: differential pricing based on demographic makeup of a zip code or neighborhood)
Re: Pandoc
#70What don't I use it for? + Static websites from any input to html + Markdown & TeX & References to pdf for academia + Generating manpages for new tools + Generating ebooks ... Let's just say I get a bit lost when it isn't available.
> + Generating manpages for new tools Do any of your tools use long options (prefixed with a double dash)? If so, make sure you disable the "smart" extension, otherwise you might end up with en dashes.