blob: 53f7796762c1c0d59169ebd518aa4b7bad9d97c5 (
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
46
47
48
49
50
51
52
53
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"
|