diff options
author | Norbert Preining <norbert@preining.info> | 2020-01-18 03:01:23 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-01-18 03:01:23 +0000 |
commit | 22d3a7ddeb2b2637308cf883f9bd3590e649aa20 (patch) | |
tree | e5887f868c532734a8cac1c7833f5492370effb5 /support/texplate/scripts/templates/texplate-article.toml | |
parent | e71ffee2103e3f137bbc9ee526858bc277e95908 (diff) |
CTAN sync 202001180301
Diffstat (limited to 'support/texplate/scripts/templates/texplate-article.toml')
-rw-r--r-- | support/texplate/scripts/templates/texplate-article.toml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/support/texplate/scripts/templates/texplate-article.toml b/support/texplate/scripts/templates/texplate-article.toml new file mode 100644 index 0000000000..53f7796762 --- /dev/null +++ b/support/texplate/scripts/templates/texplate-article.toml @@ -0,0 +1,54 @@ +name = "article" +description = """ +A simple template for the default article class, with support for new +engines (with fontspec fallback), babel languages, geometry options, +generic packages, and TikZ and corresponding libraries. +""" +authors = [ "Island of TeX" ] +requirements = [] +document = ''' +\documentclass#if($options)[$options]#{end}{article} + +#if ($xetex || $luatex) +\usepackage{fontspec} +#else +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +#end +#if ($geometry) + +\usepackage[$geometry]{geometry} +#end +#if ($babel) +#if (!$geometry) + +#end +\usepackage[$babel]{babel} +#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" |