aboutsummaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:18:06 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:18:06 +0000
commitffed5c1cc310c4c377a73294514f5ac0cc682301 (patch)
treee3ad53e24b1cae0389bdee6a86101adc00bff823 /templates/latex.template
parentb86710983045ada1fb1baaaeb0041679b555c4de (diff)
downloadpandoc-ffed5c1cc310c4c377a73294514f5ac0cc682301.tar.gz
Added --xetex option to pandoc and markdown2pdf.
If --xetex is specified, pandoc produces latex suitable for processing by xelatex, and markdown2pdf uses xelatex to create the PDF. Resolves Issue #185. This seems better than using latex packages to detect xetex, since not all latex installations will have these. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1737 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template13
1 files changed, 6 insertions, 7 deletions
diff --git a/templates/latex.template b/templates/latex.template
index 80f34857d..121537ef5 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -2,14 +2,13 @@ $if(legacy-header)$
$legacy-header$
$else$
\documentclass{article}
-\usepackage{ifpdf,ifxetex}
-\ifxetex
- \usepackage{fontspec,xltxtra,xunicode}
-\else
- \usepackage[utf8x]{inputenc}
- \usepackage[mathletters]{ucs}
-\fi
\usepackage{amsmath}
+$if(xetex)$
+\usepackage{fontspec,xltxtra,xunicode}
+$else$
+\usepackage[mathletters]{ucs}
+\usepackage[utf8x]{inputenc}
+$endif$
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
\setlength{\parindent}{0pt}