Hacker News new | past | comments | ask | show | jobs | submit login

It's great to have more options, but people might be interested in the org-mode support of pandoc: https://pandoc.org/org.html

This enables .e.g. transformation of org-mode files with latex templates, to html slides or even into .odt files and customization via filters over pandocs AST. These filters can be not only written in haskell but in pretty much any language.




Pandoc is great, but I’ve found that first running org-export to latex and then calling pandoc to the target format yields much better (and still not perfect) results.

My main use case is exporting scientific manuscripts from org to semi-workable MS Word docs for collaborators to edit. Not sure how merging changes back in is going to go...


I use pandoc + org-mode and it’s perfect. I love being able to convert my notes to LaTeX while correctly handling the inline images and math.


What's the reason to use Pandoc to convert .org files to LaTeX instead of the built-in Org Mode LaTeX exporter? Serious question - I do plenty of .org -> LaTeX like this, and never tried the Pandoc route before.


I don't think there is one, other than personal preference. It's really useful for going the other way though: <some format e.g. html> -> org.


Org to PDF via Emacs works great. The main issue is making Emacs a hard dependency of your publishing pipeline.


That's true, though I'm increasingly wondering whether that's a bad thing. Emacs can be run in "batch mode", so it could be used just like every other stage in the pipeline (a bit heavy, though not much compared to modern tools). Then again, I never tried it.

When I started writing a static site generator powering my current personal site, I wanted to parse .org files in the generator. I very quickly gave up and decided to manually export my .org posts to HTML, and parse that instead (see [0]). I didn't realize back then that Pandoc can handle .org files; I probably would have decided to shell out to it instead. Then again, if there's one thing I learned writing a static site generator (twice), it's that the next time around, I'll pick up one that's already written by someone else :).

--

[0] - https://news.ycombinator.com/item?id=19622751


For some reason, emacs to pdf or latex errors out for some .sty file being missing. I could probably fix it, but pandoc works out of the box so I guess I’ll be sticking with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: