From 34897eebd22c3de968b64f09bb4a371d96cb0b89 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 3 Feb 2020 03:02:01 +0000 Subject: CTAN sync 202002030302 --- .../texplate/templates/texplate-article.toml | 54 ++++++++++++++++++++++ .../texplate/templates/texplate-standalone.toml | 45 ++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-article.toml create mode 100644 support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-standalone.toml (limited to 'support/texplate/source/main/resources/org') diff --git a/support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-article.toml b/support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-article.toml new file mode 100644 index 0000000000..53f7796762 --- /dev/null +++ b/support/texplate/source/main/resources/org/islandoftex/texplate/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" diff --git a/support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-standalone.toml b/support/texplate/source/main/resources/org/islandoftex/texplate/templates/texplate-standalone.toml new file mode 100644 index 0000000000..dd8daea65f --- /dev/null +++ b/support/texplate/source/main/resources/org/islandoftex/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" + -- cgit v1.2.3