Laying out documents with Markdown and Pandoc

In Shape

Creating Presentations

Another interesting option for Markdown with Pandoc is creating sophisticated presentations by taking one of several approaches. For example, you can create an HTML-based slide set on the basis of a JavaScript web framework or a PDF set that uses the LaTeX beamer class [8]. In terms of web frameworks, Pandoc supports S5 [9], DZSlides [10], Slidy [11], Slideous [12], and reveal.js [13].

To create a new presentation, call Pandoc in the usual way. For a PDF slide set, the command is:

pandoc -t beamer slides.md -o slides.pdf

If you would rather create an HTML slide set based on one of the previously mentioned JavaScript web frameworks instead, the command is only marginally different:

pandoc -t revealjs slides.md -o slides-reveal.html

In the last example, make sure the JavaScript web framework is in the same directory as the Markdown file. Alternatively, you can specify a different path to the framework with the -V revealjs-url option.

Of course, you can use a variety of other options, such as integrating different themes. The documentation for the respective frameworks contains all the necessary information.

Conclusions

To create appealing text documentation, you don't necessarily have to resort to classics such as Word or LibreOffice. A combination of Markdown and Pandoc lets you convert text into a number of different formats. PDF slide sets can also be created, as long as you have a LaTeX distribution installed on your system along with the beamer class. For HTML presentations, you then can use various JavaScript web frameworks to start a slideshow in any browser.

The Author

Thorsten Scherf is the global Product Lead for Identity Management and Platform Security in Red Hat's Product Experience group. He is a regular speaker at various international conferences and writes a lot about open source software.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Five free wiki platforms reviewed
    If you want to operate a wiki in your data center as a document and knowledge database for workgroups, you will find a large selection of open source applications. We tested five free wiki platforms for different use cases on the local network.
  • Incident response with Velociraptor
    The software incarnation of the feared predator in the Jurassic Park movies has been on the hunt for clues to cyberattacks and indicators of compromise. We show you how to tame the beast and use it for your own purposes.
  • A DIY HTML Engine
    Jekyll is a lightweight, fast, HTML engine that renders websites with ease, with the added benefits of low cost, high speed, security, and free hosting with GitHub Pages.
  • Collaborative online office solutions
    People say many cooks spoil the broth, but collaborative editing of documents does not necessarily have to end up in chaos. The collaborative functions in these free online office solutions can help users with teamwork.
  • Prepare, analyze, and visualize data with R
    The free R programming language and software environment for statistical computing and graphics is well supported, has great flexibility, and is easily automated.
comments powered by Disqus