diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-17 22:31:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-17 22:31:04 +0000 |
commit | 212508b1290d1456481d21d128b839d6d22d8f94 (patch) | |
tree | c39df881107e04ecfddf4895e2430758b73428c4 /Master/texmf-dist/scripts/texplate/templates/texplate-standalone.toml | |
parent | d617d6d33cf75f9a3df502b0d4b527ed53ddee5a (diff) |
texplate (17jan20)
git-svn-id: svn://tug.org/texlive/trunk@53444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/texplate/templates/texplate-standalone.toml')
-rw-r--r-- | Master/texmf-dist/scripts/texplate/templates/texplate-standalone.toml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texplate/templates/texplate-standalone.toml b/Master/texmf-dist/scripts/texplate/templates/texplate-standalone.toml new file mode 100644 index 00000000000..dd8daea65f5 --- /dev/null +++ b/Master/texmf-dist/scripts/texplate/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" + |