Skip to content

Commit

Permalink
using svg outputs for both graphviz and tikz
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfix committed Nov 16, 2020
1 parent 6d60eea commit a321fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions example/myfirstslides.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion slidemaker/template/graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a321fb7

Please sign in to comment.