Live data from Hacker News

Pandoc

pandoc.org

161–170 of 213 posts

Re: Pandoc

#162

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.

> if the publisher 'needs' a Word file, you are one click away from providing it

Once the work has moved into a Word file, isn't that where it stays? Editors and publishers often make heavy use of features like track changes and notes. Doesn't pandoc lose that information?

Re: Pandoc

#163
post #106

One nice trick that I use all the time is to convert html to md and back again in order to clean it. Anyway, pandoc is great.

Would that be a good way to sanitise user input? Like removing script tags etc...

It’s usually not a good idea to “get creative” when it comes to security

Re: Pandoc

#164
post #76

I know it's well intended and somewhat successful, but I can't help but thinking of xkcd.com/927 Sorry, I couldn't resist.

Although it does offer some useful extensions for Markdown, Pandoc doesn't attempt to establish new standards.

It's a conversion tool for existing formats.

Re: Pandoc

#165

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.

Any chance you could post the source code for this? It's using bitmaps for characters instead of proper fonts, which shouldn't happen nowadays. Maybe you should put "\usepackage{lmodern}" at the start? See for example https://tex.stackexchange.com/questions/1291/why-are-bitmap-...

I work with course materials made in Latex, and students sometimes need/want to copy and paste from them, so I try to avoid these kinds of problems.

Re: Pandoc

#166
post #144

Earlier quoted context omitted.

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.

C-c C-f is a prefix key, you get bold with C-b, italic with C-i and so on. At least it was last time I used AucTex :)

Re: Pandoc

#167

I wrote a little utility that uses Pandoc to read Markdown files like `man` pages in the terminal: https://github.com/ashton314/marked-man It's just a one-liner: `pandoc -s -t man "$1" | groff -T utf8 -man | $PAGER` (That was basically stolen from an answer to one of my questions on Stack Overflow—thanks to those who answered! :)

In a similar vein, I use pandoc to convert markdown pages to man pages, and write new/add notes to manpages. I think it's definitely easier than actually writing groff files.

Re: Pandoc

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

Heh, not quite. Go (the programming language) uses Google Groups (golang-nuts and golang-dev), and it's very alive.

Re: Pandoc

#169

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.

> if the publisher 'needs' a Word file, you are one click away from providing it Once the work has moved into a Word file, isn't that where it stays? Editors and publishers often make heavy use of features like track changes and notes . Doesn't pandoc lose that information?

It does. I think the assumption here is that the author is the only contributor to the document. Exporting into a Word doc would serve the same function as exporting to a .pdf, others could read it and even mark it up, but the author would have to make the noted changes in their original plain text document themselves.

Re: Pandoc

#170

Earlier quoted context omitted.

"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. Sto…

Very interesting! Could you maybe provide those links in text form, so that we may run them through Google Translate? ;-)
Post reply on HN