summaryrefslogtreecommitdiff
path: root/support/texplate/scripts/templates/standalone.toml
blob: dd8daea65f5d1cbe17d743c5afd715d5f62db1a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"