Live data from Hacker News

Pandoc

pandoc.org

61–70 of 213 posts

Re: Pandoc

#61
post #60
post #11

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)

Redline as in how strikethrough appears in Word. It's a colloquial term.

Re: Pandoc

#62

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.

Yes! It's great to be able to put LaTeX-formatted equations directly into your pandoc-flavored markdown source file.

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

#63
post #5

I 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…

Nice.

I wrote up a tool as well, with navigation and prev/next links: http://www.unexpected-vortices.com/sw/rippledoc/index.html

Re: Pandoc

#64
post #48

I 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!

Custom CSS. Nothing fancy, I haven't really explored what's possible with epub.

Re: Pandoc

#65
post #23

I 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.

I tried Caret and loved it but had to uninstall because of the huge font size on equation renders in a math-heavy document. Is there a way to fix that? I tried to look but they don't have much documentation yet.

Re: Pandoc

#66
post #37

Earlier 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.

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.

Re: Pandoc

#67
post #36
post #10

What 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?

A mix. Depends on the book.

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

#68
post #60
post #11

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)

Attorneys and business folks use it to mean “marked up” - a redlined contract has additions in red, and removals in red with red lines through them.

Re: Pandoc

#69
post #60
post #11

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)

OP was referring to diffing changes between the original and modified version of a legal document (typically a contract).

Re: Pandoc

#70
post #10

What 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.

Aye. I've got several long lists of options, depending on the project. Manpages might have been the most fiddly to get right.
Post reply on HN