aboutsummaryrefslogtreecommitdiff
path: root/pandoc/defaults
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-01-17 12:21:53 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-01-17 12:23:24 +0100
commit6ae902b02230048f2f3ef964a7edac0bca768b9e (patch)
treee05475efd420fc8b22106a36be4ae809b8227664 /pandoc/defaults
parent21df588bea6429689f6d9a4e3e9cf7c75a434226 (diff)
downloadunterricht-6ae902b02230048f2f3ef964a7edac0bca768b9e.tar.gz
unterricht-6ae902b02230048f2f3ef964a7edac0bca768b9e.zip
add proper mermaid support
Use pdf as default format for pandoc-plot. This improves rendering and makes plot content accessable in the document.
Diffstat (limited to 'pandoc/defaults')
-rw-r--r--pandoc/defaults/pandoc-plot.yml57
1 files changed, 57 insertions, 0 deletions
diff --git a/pandoc/defaults/pandoc-plot.yml b/pandoc/defaults/pandoc-plot.yml
new file mode 100644
index 00000000..f94954e2
--- /dev/null
+++ b/pandoc/defaults/pandoc-plot.yml
@@ -0,0 +1,57 @@
+# Dereived from the example configuration. Everything in this file is optional.
+# Please refer to the documentation to know about the parameters herein.
+#
+# The `executable` parameter for all toolkits can be either the
+# executable name (if it is present on the PATH), or
+# the full path to the executable.
+# E.g.:
+# executable: python3
+# executable: "C:\Python37\Scripts\python.exe"
+
+# The following parameters affect all toolkits
+# Directory where to save the plots. The path can be relative to pandoc-plot's
+# current working directory, or absolute.
+directory: .build/plots/
+
+# Whether or not to include a link to the source script in the caption.
+# Particularly useful for HTML output.
+source: false
+
+# When `strict: false`, pandoc-plot will leave code blocks untouched if a plot
+# could not be generated. This could happen if, for example, a toolkit is not
+# installed. If you want pandoc-plot to fail instead, use `strict: true`.
+strict: false
+
+# Default density of figures in dots per inches (DPI).
+# This can be changed in the document specifically as well.
+dpi: 300
+
+# Default format in which to save the figures. This can be specified
+# individually as well.
+format: PDF
+
+# Logging configuration
+logging:
+ # Possible verbosity values: debug, error, warning, info, silent
+ verbosity: warning
+ # If the filepath below is not present, then pandoc-plot will log to stderr
+ # Otherwise, log messages will be appended to the filepath.
+ # filepath: path/to/file.txt
+
+# The possible parameters for the Matplotlib toolkit
+matplotlib:
+ # preamble: matplotlib.py
+ tight_bbox: false
+ transparent: false
+ executable: python
+ command_line_arguments:
+
+# The possible parameters for the graphviz toolkit
+graphviz:
+ # preamble: graphviz.dot
+ executable: dot
+ command_line_arguments:
+
+mermaid:
+ executable: mmdc
+ command_line_arguments: --pdfFit -s 5 --backgroundColor=transparent