Live data from Hacker News

Pandoc

pandoc.org

151–160 of 213 posts

Re: Pandoc

#151
Occasional pandoc contributor here, AMA :-)

Just a few links:

- Where everything is documented: http://pandoc.org/MANUAL.html

- If you have questions or suggestions: https://groups.google.com/forum/#!forum/pandoc-discuss

- Contributing to pandoc is also a great way to get your feet wet with Haskell. In my experience, very supportive community. See http://pandoc.org/CONTRIBUTING.html and for good first issues: https://github.com/jgm/pandoc/issues?q=is%3Aopen+is%3Aissue+...

Finally, a great feature, that hasn't been mentioned here, is pandoc filters. Basically, pandoc provides a way for scripts (in any programming language) to hook into the transformation pipeline and modify the document AST (similar to the HTML DOM) in-between the reading and writing steps. See http://pandoc.org/filters.html

Re: Pandoc

#152
post #148

The only problem I have with pandoc is I have to lug the entire GHC around with it.

That is not the case. https://pandoc.org/installing.html > We provide a binary package for amd64 architecture on the download page. This provides both pandoc and pandoc-citeproc. The executables are statically linked and have no dynamic dependencies or dependencies on external data files.

Thanks! I wonder how it was built.

Re: Pandoc

#153
post #140

Earlier quoted context omitted.

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.

Ok, but then they shouldn't call the tool pandoc.

Re: Pandoc

#155
post #74

Earlier quoted context omitted.

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.

Latex can't produce web output, which is increasingly a target I want. Also, Latex can't produce any output which is accessible to blind people (other than giving them the raw LaTeX). The PDFs latex produces are probably the least accessible format available (much worse than a word proeuced pdf, or some html). This matters to me, and should matter more to other people (in my opinion).

What about htlatex? It is quite powerful. In most of the cases, it produces nice HTML pages out of the box, with automatic rendering of figures and mathematical equations into PNG. It is part of most LaTeX distributions. On Linux, for example, just type

  $ htlatex mydoc.tex
instead of

  $ pdflatex mydoc.tex

Re: Pandoc

#156

i have been using catdoc and pdftotext to convert doc and pdf files, respectively. nice to see that there's an alternative that also includes a library, will be checking this out. a couple questions i have, seems firstly that old school .doc files are not supported, docx yes. unfortunately i still get a lot of docs in .doc format which seems to be microsoft's proprietary format (docx seems to be more open). my second…

You could use Libreoffice's command line interface to convert from .doc to a more manageable format.

  lowriter --convert-to odt some-document.doc
odt is not the only supported target, but doc --libreoffice--> odt --pandoc--> plain seems to give better results than e.g. doc --libreoffice--> txt or doc --libreoffice--> docx --pandoc--> plain.

Re: Pandoc

#157

Earlier quoted context omitted.

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.

I'll pick on one of my own random papers: https://www.cs.york.ac.uk/aig/projects/implied/docs/cp03.pdf Try extracting "Theorem 2" on page 5, or any text really. I just get random noise through either a PDF reader, or something like pdf2ascii / ps2ascii. We just made this with standard latex.

That’s interesting. Did you \usepackage[T1]{fontenc}?

Re: Pandoc

#158

Earlier quoted context omitted.

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 :)

"Soon the structure underlying The Da Vinci Code and Angels and Demons and The Lost Symbol was laying bare before my eyes. I could see why the stories worked. I had reverse-engineered Dan Brown." Could you talk a little more in depth about what Dan Brown's pattern/structure is?

I get that request a lot, so I'll have to write something about it :)

All I can offer right now is my raw notes, which are in Spanish. This is a structural analysis of Angels and Demons, The da Vinci Code, and The Lost Symbol: https://imgur.com/bX6ByJA

This is an one-page treatment of the three books, with the "blanks" filled appropriately for each: https://imgur.com/LlDVUKn

I doubt any of this is groundbreaking. Story structure is a widely studied topic (and one that I find fascinating). But it seems like Dan Brown uses a very well defined, customised version of this, that makes for engaging, fast-paced books.

I sort of proved (for myself, at least) that this works, by writing a novel whose structure was originally based on this pattern (although it later diverged a bit), and which causes the expected effect - a couple of readers have read it in a single sitting :)

Re: Pandoc

#159
post #151

Occasional pandoc contributor here, AMA :-) Just a few links: - Where everything is documented: http://pandoc.org/MANUAL.html - If you have questions or suggestions: https://groups.google.com/forum/#!forum/pandoc-discuss - Contributing to pandoc is also a great way to get your feet wet with Haskell. In my experience, very supportive community. See http://pandoc.org/CONTRIBUTING.html and for good first issues: https:/…

everytime I see a project using google groups, i think it is already dead. Gladly yours seems to be used quite often. At least you can search it even years later, compared to an irc or slack channel.

Re: Pandoc

#160
post #144

Earlier quoted context omitted.

Having to use `\textbf{...}` is impetus enough for writing in Markdown instead.

LaTeX editors have simple keybindings for this, like ctl-b., or C-c C-f C-b in emacs, which makes this kind of thing a non-issue for me...

Just reading C-c C-f C-b is an issue for me and I haven't even tried to remember and type it yet.
Post reply on HN