Using Pandoc

Hi,
I use Zettlr and in the past (before using Blufin) I could easily export to reveal.js to make a presentation. Exporting to pdf or docx works without a problem. But I think those use LaTex without Pandoc?
I don’t seem to have Pandoc, so I installed it with toolbox. But that was all to complex, I didn’t get it working.
Is there an easy way to export to reveal.js with Zettlr? I guess that boils down to: how can I link Zettlr with Pandoc?

EDIT: Zettlr is installed with Flatpak (that’s what’s making it difficult, for me at least: how to point to the correct paths).

You can install pandoc using homebrew.

brew install pandoc

How to make it work with Zettlr is a different matter. But at least when installed with brew, you can run it from the command line.

I think Zettlr ships with a minimal pandoc, so you don’t need to install pandoc if you only need it in Zettlr.

From what I have gleaned, zettlr uses reveal.js for slides, and pandoc for other formats.
So there seems to be a missing piece to create reveal.js (I.e. pandoc is not missing).

There is a brew package for converting Markdown to reveal.js, which might help.

Thanks @JohnAtl , I didn’t know brew worked as well. I installed pandoc with toolbox and got it working more or less from the command-line. I still had to replace ~/ with /var/home/my-user/ with a texteditor. With your reveal-md I can skip pandoc, maybe that’s interesting.
EDIT: reveal-md is not under active development any-more. It works, but it seems to have not the same formatting as reveal.js (*** is a line instead of a new slide, there is no automatic new slide when a header is met)

And thanks @zwintabris and @JohnAtl again, for helping me narrow down the problem. So it’s not pandoc, it’s something else. The problem seems also that the file-paths are wrong. In the created html-file, I see these lines being faulty:

  <style type="text/css">Not found: reveal.js@4.6.1//dist/reset.css</style>
  <style type="text/css">Not found: reveal.js@4.6.1//dist/reveal.css</style>

<!-- reveal.js plugins -->
<script src="[data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fnotes%2Fnotes%2Ejs](view-source:data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fnotes%2Fnotes%2Ejs)"></script>
<script src="[data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fsearch%2Fsearch%2Ejs](view-source:data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fsearch%2Fsearch%2Ejs)"></script> 
<script src="[data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fzoom%2Fzoom%2Ejs](view-source:data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fzoom%2Fzoom%2Ejs)"></script> <script src="[data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fmath%2Fmath%2Ejs](view-source:data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fmath%2Fmath%2Ejs)"></script>
<script>

EDIT:
The above code is in the source in my browser, directly in the html file is:

  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reset.css">
  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reveal.css">

  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/theme/black.css" id="theme">

  <script src="https://unpkg.com/reveal.js@^4//dist/reveal.js"></script>

  <!-- reveal.js plugins -->
  <script src="https://unpkg.com/reveal.js@^4//plugin/notes/notes.js"></script>
  <script src="https://unpkg.com/reveal.js@^4//plugin/search/search.js"></script>
  <script src="https://unpkg.com/reveal.js@^4//plugin/zoom/zoom.js"></script>
  <script src="data:text/plain;charset=UTF-8;charset=utf-8,Not%20found%3A%20reveal%2Ejs%404%2E6%2E1%2F%2Fplugin%2Fmath%2Fmath%2Ejs"></script>

So I guess those files are not online or there is an error in the url.

SO. The problem is with the online files that are not found or reached. I replaced those path with the ones to my reveal.js-directory and then the exported html file works!

1 Like