summaryrefslogtreecommitdiff
path: root/support/texplate/scripts/templates/texplate-standalone.toml
diff options
context:
space:
mode:
Diffstat (limited to 'support/texplate/scripts/templates/texplate-standalone.toml')
-rw-r--r--support/texplate/scripts/templates/texplate-standalone.toml45
1 files changed, 45 insertions, 0 deletions
diff --git a/support/texplate/scripts/templates/texplate-standalone.toml b/support/texplate/scripts/templates/texplate-standalone.toml
new file mode 100644
index 0000000000..dd8daea65f
--- /dev/null
+++ b/support/texplate/scripts/templates/texplate-standalone.toml
@@ -0,0 +1,45 @@
+name = "standalone"
+description = """
+A simple template for the standalone class, with support for
+class options, new engines (with fontspec fallback), list of
+packages, and TikZ and corresponding libraries.
+"""
+authors = [ "Island of TeX" ]
+requirements = []
+document = '''
+\documentclass#if($options)[$options]#{end}{standalone}
+
+#if ($xetex || $luatex)
+\usepackage{fontspec}
+#else
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+#end
+#if ($packages)
+
+#foreach ($package in $packages)
+\usepackage{$package}
+#end
+#end
+#if ($tikz)
+
+\usepackage{tikz}
+#if ($libraries)
+#foreach ($library in $libraries)
+\usetikzlibrary{$library}
+#end
+#end
+#end
+
+\begin{document}
+
+\end{document}
+'''
+
+[handlers]
+xetex = "to-boolean"
+luatex = "to-boolean"
+tikz = "to-boolean"
+libraries = "to-csv-list"
+packages = "to-csv-list"
+