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.
Pandoc
91–100 of 213 posts
Re: Pandoc
#92Luckily, LibreOffice can produce tagged PDFs. And unoconv is a convenient utility for doing this from the command line. So you can use pandoc to convert to a format that LibreOffice can consume, then issue a command like this:
unoconv -f pdf -e UseTaggedPDF=true mydoc.odt
I've tried it, and it works.Re: Pandoc
#93Is there an equivalent of this for spreadsheets?
The closest thing I'm aware of is the spreadsheet functionality in Emacs org-mode: https://orgmode.org/worg/org-tutorials/org-spreadsheet-intro... https://orgmode.org/manual/The-spreadsheet.html
Re: Pandoc
#94I 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.
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.
I don't find the boilerplate minimal at all. Contrast the following:
\begin{itemize}
\item First
\item Second
\item Third
\end{itemize}
with - First
- Second
- Third
I won't even get into the hell that is tables.I loved LaTeX until I discovered Org Mode. Pandoc also scratches the same itch.
Re: Pandoc
#95Earlier 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.
I agree. If one is going to use LaTeX directly or indirectly via Pandoc, eventually one would have to build up a personal template to fine-tune the look and feel of the documents. If one is going to write LaTeX code anyway, it seems easier and cleaner to use LaTeX all the way, move all the boilerplate along with the personal template to say, a file named preamble.tex, and \input{preamble.tex} in the documents. Howeve…
Not sure why you think it has to be that way. I author LaTeX documents using org mode. Org mode handles most of the boilerplate, and I can still put pretty much any custom LaTeX within the org document, wherever I want it (this includes \newcommand, etc). I lose nothing by going to org mode, and I gain much in terms of reduced boilerplate.
Re: Pandoc
#96Earlier quoted context omitted.
I agree. If one is going to use LaTeX directly or indirectly via Pandoc, eventually one would have to build up a personal template to fine-tune the look and feel of the documents. If one is going to write LaTeX code anyway, it seems easier and cleaner to use LaTeX all the way, move all the boilerplate along with the personal template to say, a file named preamble.tex, and \input{preamble.tex} in the documents. Howeve…
>If one is going to write LaTeX code anyway, it seems easier and cleaner to use LaTeX all the way, move all the boilerplate along with the personal template to say, a file named preamble.tex, and \input{preamble.tex} in the documents. Not sure why you think it has to be that way. I author LaTeX documents using org mode. Org mode handles most of the boilerplate, and I can still put pretty much any custom LaTeX within…
My absolute favourite moment with that flow was a client who wanted one as a docx instead of a PDF. Pandoc obliged and they commented that I must have spent a lot of time reformatting things for them :)
Re: Pandoc
#97Earlier quoted context omitted.
Can you diff two Word docs with Word? Afaik you can only hit the "track changes" button, which doesn't help if you got a new version of a document from someone else.
Tools, Track Changes, Compare Documents ... https://support.office.com/en-us/article/compare-and-merge-t... Had this forever, here's a visual on old version of Word: http://www.techyard.net/how-to-compare-two-word-documents-an... For more advanced, try legal blacklining: https://support.office.com/en-us/article/compare-document-di... Or combine multiple sources of a similar document: https://support.office.com/en-us/…
That you can't concat two word files together in 2018 is ridiculous.
Re: Pandoc
#98I sometimes use pandoc to clean up my markdown-formatted documents, especially given its abilities to "wrap" text and add indentation-style whitespace that makes plain-text documents look nearly suitable for publishing as-is (almost kinda like RFC docs but without header/footer cruft). There are a few things (in latest version, 2.2.3.2) that don't really survive round-trip from markdown back to markdown: - reference-…
You can choose whether reference links go at the end of the paragraph or the document.
Re: Pandoc
#99It appears that Pandoc generates PDF documents via LaTeX. One problem with this is that, as far as I can tell, LaTeX can't generate tagged PDFs. This is an accessibility problem. Granted, for documents that are heavy on math and/or graphics, the point is probably moot. But many technical documents that are distributed as PDFs would benefit from being tagged. Luckily, LibreOffice can produce tagged PDFs. And unoconv i…
Re: Pandoc
#100https://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! :)