diff options
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ConTeXt.template | 70 | ||||
-rw-r--r-- | data/templates/Docbook.template | 3 | ||||
-rw-r--r-- | data/templates/LaTeX.template | 56 | ||||
-rw-r--r-- | data/templates/OpenDocument.template | 1 | ||||
-rw-r--r-- | data/templates/RTF.template | 4 | ||||
-rw-r--r-- | data/templates/S5.template | 3 |
6 files changed, 137 insertions, 0 deletions
diff --git a/data/templates/ConTeXt.template b/data/templates/ConTeXt.template new file mode 100644 index 000000000..d19b41c45 --- /dev/null +++ b/data/templates/ConTeXt.template @@ -0,0 +1,70 @@ +\enableregime[utf] % use UTF-8 + +\setupcolors[state=start] +\setupinteraction[state=start, color=middleblue] % needed for hyperlinks + +\setuppapersize[letter][letter] % use letter paper +\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in, + height=middle, header=0.75in, footer=0.75in] % page layout +\setuppagenumbering[location={footer,center}] % number pages +\setupbodyfont[11pt] % 11pt font +\setupwhitespace[medium] % inter-paragraph spacing + +\setuphead[section][style=\tfc] +\setuphead[subsection][style=\tfb] +\setuphead[subsubsection][style=\bf] + +% define title block commands +\unprotect +\def\doctitle#1{\gdef\@title{#1}} +\def\author#1{\gdef\@author{#1}} +\def\date#1{\gdef\@date{#1}} +\date{\currentdate} % Default to today unless specified otherwise. +\def\maketitle{% + \startalignment[center] + \blank[2*big] + {\tfd \@title} + \blank[3*medium] + {\tfa \@author} + \blank[2*medium] + {\tfa \@date} + \blank[3*medium] + \stopalignment} +\protect + +% define descr (for definition lists) +\definedescription[descr][ + headstyle=bold,style=normal,align=left,location=hanging, + width=broad,margin=1cm] + +% prevent orphaned list intros +\setupitemize[autointro] + +% define defaults for bulleted lists +\setupitemize[1][symbol=1][indentnext=no] +\setupitemize[2][symbol=2][indentnext=no] +\setupitemize[3][symbol=3][indentnext=no] +\setupitemize[4][symbol=4][indentnext=no] + +\setupthinrules[width=15em] % width of horizontal rules + +% for block quotations +\unprotect + +\startvariables all +blockquote: blockquote +\stopvariables + +\definedelimitedtext +[\v!blockquote][\v!quotation] + +\setupdelimitedtext +[\v!blockquote] +[\c!left=, +\c!right=, +before={\blank[medium]}, +after={\blank[medium]}, +] + +\protect + diff --git a/data/templates/Docbook.template b/data/templates/Docbook.template new file mode 100644 index 000000000..7b26b2c73 --- /dev/null +++ b/data/templates/Docbook.template @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> diff --git a/data/templates/LaTeX.template b/data/templates/LaTeX.template new file mode 100644 index 000000000..4a4c8436c --- /dev/null +++ b/data/templates/LaTeX.template @@ -0,0 +1,56 @@ +\documentclass{article} +\usepackage{ifpdf,ifxetex} +\ifxetex + \usepackage{fontspec,xltxtra,xunicode} +\else + \usepackage[utf8x]{inputenc} + \usepackage[mathletters]{ucs} +\fi +\usepackage{amsmath} +\usepackage{listings} +\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} +\usepackage{fancyvrb} +\usepackage{enumerate} +\usepackage{array} +% This is needed because raggedright in table elements redefines \\: +\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp} +\let\PBS=\PreserveBackslash +\usepackage[normalem]{ulem} +\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}} +\usepackage[breaklinks=true]{hyperref} +\usepackage{url} +\usepackage{graphicx} + +\setlength{\parindent}{0pt} +\setlength{\parskip}{6pt plus 2pt minus 1pt} +\VerbatimFootnotes % allows verbatim text in footnotes +$if(numbersections)$ +$else$ +\setcounter{secnumdepth}{0} +$endif$ +$header-includes$ + +$if(title)$ +\title{$title$} +$endif$ +$if(authors)$ +\author{$authors$} +$endif$ +$if(date)$ +\date{$date$} +$endif$ + +\begin{document} +\maketitle + +$if(toc)$ +\tableofcontents +$endif$ +$if(before)$ +$before$ +$endif$ +$body$ +$if(after)$ +$after$ +$endif$ +\end{document} diff --git a/data/templates/OpenDocument.template b/data/templates/OpenDocument.template new file mode 100644 index 000000000..17ed4fd9f --- /dev/null +++ b/data/templates/OpenDocument.template @@ -0,0 +1 @@ +<?xml version="1.0" encoding="utf-8" ?> diff --git a/data/templates/RTF.template b/data/templates/RTF.template new file mode 100644 index 000000000..b4368694b --- /dev/null +++ b/data/templates/RTF.template @@ -0,0 +1,4 @@ +{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}} +{\colortbl;\red255\green0\blue0;\red0\green0\blue255;} +\widowctrl\hyphauto + diff --git a/data/templates/S5.template b/data/templates/S5.template new file mode 100644 index 000000000..ebb24ebe2 --- /dev/null +++ b/data/templates/S5.template @@ -0,0 +1,3 @@ +<!-- configuration parameters --> +<meta name="defaultView" content="slideshow" /> +<meta name="controlVis" content="hidden" /> |