From 4b0e39fd029b6a110a2828e9dcfdcef51bfe22a8 Mon Sep 17 00:00:00 2001
From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
Date: Thu, 31 Dec 2009 01:09:43 +0000
Subject: Add legacy-header to LaTeX template.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1680 788f1e2b-df1e-0410-8736-df70ead52e1b
---
 tests/writer.latex | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'tests/writer.latex')

diff --git a/tests/writer.latex b/tests/writer.latex
index 09fdc4077..898396363 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -1,9 +1,16 @@
 \documentclass{article}
+\usepackage{ifpdf,ifxetex}
+\ifxetex
+  \usepackage{fontspec,xltxtra,xunicode}
+\else
+  \usepackage[utf8x]{inputenc}
+  \usepackage[mathletters]{ucs}
+\fi
 \usepackage{amsmath}
-\usepackage[mathletters]{ucs}
-\usepackage[utf8x]{inputenc}
 \usepackage{listings}
 \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
 \usepackage{fancyvrb}
 \usepackage{enumerate}
 \usepackage{array}
@@ -16,8 +23,6 @@
 \usepackage{url}
 \usepackage{graphicx}
 
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
 \VerbatimFootnotes % allows verbatim text in footnotes
 \setcounter{secnumdepth}{0}
 
-- 
cgit v1.2.3

