From ca712fe7f836d119a4530690c5f5359a3363563b Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 31 Dec 2009 01:09:02 +0000 Subject: LaTeX header: fixes for xetex and header-includes. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1676 788f1e2b-df1e-0410-8736-df70ead52e1b --- data/headers/LaTeX.header | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'data/headers') diff --git a/data/headers/LaTeX.header b/data/headers/LaTeX.header index d41a60276..4a4c8436c 100644 --- a/data/headers/LaTeX.header +++ b/data/headers/LaTeX.header @@ -1,7 +1,12 @@ \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}}{} \usepackage{fancyvrb} @@ -23,6 +28,7 @@ $if(numbersections)$ $else$ \setcounter{secnumdepth}{0} $endif$ +$header-includes$ $if(title)$ \title{$title$} -- cgit v1.2.3