From a321fb7e877631739477e4bd7af295537ca439d0 Mon Sep 17 00:00:00 2001 From: Jeremy Fix Date: Mon, 16 Nov 2020 15:23:29 +0100 Subject: [PATCH] using svg outputs for both graphviz and tikz --- example/myfirstslides.md | 8 ++++---- slidemaker/template/graphviz.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/myfirstslides.md b/example/myfirstslides.md index b8a6d31..2f59f26 100644 --- a/example/myfirstslides.md +++ b/example/myfirstslides.md @@ -246,13 +246,11 @@ And simply more regular full-width text in the following. But hey, there is also ## Drawing graphs with Graphviz - - Galileo Galilei - - Robert G. Ingersoll - - Jill Tarter +Example of a graph generated from graphviz : ```{.graphviz #pandocdiag caption="Graph of pandoc compilation pipeline" width=80%} digraph G { - rankdir="LR"; +rankdir="LR"; node [shape=box] bgcolor="#ffffff00" @@ -276,6 +274,8 @@ html_writer -> output; ## Drawing images with tikz +Example of a graph generated from Tikz. + ```{.tikz width=40%} \begin{tikzpicture}[scale=2.0] diff --git a/slidemaker/template/graphviz.py b/slidemaker/template/graphviz.py index b019994..839d65d 100755 --- a/slidemaker/template/graphviz.py +++ b/slidemaker/template/graphviz.py @@ -22,7 +22,7 @@ def graphviz(key, value, format, _): if "graphviz" in classes: caption, typef, keyvals = get_caption(keyvals) prog, keyvals = get_value(keyvals, u"prog", u"dot") - filetype = get_extension(format, "png", html="svg", latex="pdf") + filetype = get_extension(format, "svg", html="svg", latex="pdf") dest = get_filename4code("graphviz", code, filetype) if not os.path.isfile(dest):