Live data from Hacker News

Pandoc

pandoc.org

131–140 of 213 posts

Re: Pandoc

#131

I tried to use pandoc a while ago to convert the latex-sources of arxiv.org documents to epub, since those are often much more comfortable to read on small devices than pdfs. The problem I had was that latex was turned into images, but changing the font-size of the reader did not change the size of the images, making the text readable, but the maths barely readable. This is something I would love to see happen though…

I've seen this problem on Kindle books with equations, is that a related problem?

Re: Pandoc

#132

Another happy Pandoc user here :) I built a pipeline to convert a Markdown file to publishing-ready files for ebooks, Kindle and paperback for my novel; the whole thing is described here: http://www.gabrielgambetta.com/tgl_open_source.html My website itself is static, generated from a bunch of Markdown files, some HTML templates, and a bit of postprocessing. But most of the work is done by Pandoc.

Hey. Can you give us some more context of your novel writing in Markdown? I'd be interested in your process.

Re: Pandoc

#133

I tried to use pandoc a while ago to convert the latex-sources of arxiv.org documents to epub, since those are often much more comfortable to read on small devices than pdfs. The problem I had was that latex was turned into images, but changing the font-size of the reader did not change the size of the images, making the text readable, but the maths barely readable. This is something I would love to see happen though…

Seems like an issue with the epub reader though?

Re: Pandoc

#134
I used pandoc to format my book [0]. Not everything worked perfectly, I'm pretty happy with how everything turned out (especially the print version).

It was a little work to set up the workflow with scripts etc, but being able to write the book in markdown and still having full control over the design was definitely worth it.

[0] sample here: https://patricklouys.com/professional-php-sample.pdf

Re: Pandoc

#136
post #28

Earlier quoted context omitted.

Diff works great in Word.

Another option I recommend comparing two Word docs (and just about anything) is Beyond Compare.[0] It's the software you would have to buy, but if you have to compare files a lot I would highly recommend it. (Runs on multiple platforms, too.) [0]: https://www.scootersoftware.com

WinMerge does the same, and it's open source. It's only for Windows, though.

http://winmerge.org/

Re: Pandoc

#137
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.

Trying pandoc on a word doc gives me:

    # pandoc test.doc -o test.pdf
    pandoc: Unknown reader: doc
    Pandoc can convert from DOCX, but not from DOC.

Re: Pandoc

#138

Earlier quoted context omitted.

If you grab any academic paper (particularly two columns) there is a good chance getting the text out will be hard, and any part of the paper with maths or tables will be unusable. Sorry. I'm away from a computer now, to make a smaller example.

The paper "GADTs Meet Their Match" (first I had in my list) seems to work fine, but I don't know what it was generated with.

cairo 1.13.1 is listed as the generator.

http://checkers.eiii.eu/en/pdfcheck/?url=https%3A%2F%2Fwww.m...

The ACM template fails more! http://checkers.eiii.eu/en/pdfcheck/?url=https://www.acm.org..., and it's generated by pdfTex-1.40.15

Re: Pandoc

#139

Another happy Pandoc user here :) I built a pipeline to convert a Markdown file to publishing-ready files for ebooks, Kindle and paperback for my novel; the whole thing is described here: http://www.gabrielgambetta.com/tgl_open_source.html My website itself is static, generated from a bunch of Markdown files, some HTML templates, and a bit of postprocessing. But most of the work is done by Pandoc.

Hey. Can you give us some more context of your novel writing in Markdown? I'd be interested in your process.

Sure. The technical side of things is explained here: http://www.gabrielgambetta.com/tgl_open_source.html (same link as above). If you're more interested in the creative aspect, I wrote a bit here: http://www.gabrielgambetta.com/tgl_swiss_trains.html. If you're interested in anything not covered there, feel free to ask, I'll be happy to share :)

Re: Pandoc

#140
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.

Trying pandoc on a word doc gives me: # pandoc test.doc -o test.pdf pandoc: Unknown reader: doc Pandoc can convert from DOCX, but not from DOC.

As the error says, pandoc doesn't support .doc files, only .docx.
Post reply on HN