I use this conversion mainly for archiving my writing.įinally, I want to convert the file to ODT (the format for such applications as LibreOffice Writer and AbiWord). It’s not the prettiest document, but it works. If I’m running version 1.9 of Pandoc or newer, I use this command: That’s standard kit for most Linux distros so you shouldn’t have a problem. When I want to go PDF, I need to have a functioning TeX system installed on my computer. I can modify the header to use whatever LaTeX class (which determines the look and feel of the output) that I prefer. The resulting file looks like this in a text editor: Pandoc -s -o chromebook.tex chromebook.md One of my coaching clients at the time was interested in those experiences, so I decided to convert that post into three formats: A few years ago, I wrote about my experiences with a Chromebook. If you plan to combine a bunch of, say, LaTeX or HTML documents you can leave the -s option out. You add that when you’re creating documents that will exist on their own. When converting to another markup language, that option surrounds your text with the proper header and footer. Notice the -s option? on the command line. You run the command pandoc followed by -o fileName followed by the file that you want to convert. So, let’s use that as our starting point.Ĭrack open a terminal window and navigate to the directory that contains the file(s) that you want to convert.Īt it’s most basic, Pandoc’s syntax is fairly simple. I usually use Pandoc with files formatted with Markdown. While Pandoc is not standard kit with most Linux distributions, it is available in the software repositories for many major distros. It’s also a command line tool, but don’t let that scare you. Among other languages, Pandoc can deal with: It’s a set of libraries and a command line tool to convert between various markup languages. When I need flexibility when converting from Markdown to other formats, I turn to Pandoc. HTML is fine, but sometimes I need to take what I’ve written and formatted using Markdown and convert it to other formats like LaTeX or PDF. One limitation of Markdown is that the stock converters can only morph it into HTML. And, as you might know, I do a lot of my writing using Markdown. Taking a Quick Look at Pandoc The Plain Text ProjectĪs you might know, I write for a living.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |