From 9905223ae8538027df9521f180dfd49ff78f24f4 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 2 Jan 2010 18:19:04 +0000 Subject: Improved xetex part of latex.template. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1776 788f1e2b-df1e-0410-8736-df70ead52e1b --- templates/latex.template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'templates/latex.template') diff --git a/templates/latex.template b/templates/latex.template index 8b2dfa8c0..cc9731bcf 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -4,7 +4,14 @@ $else$ \documentclass{article} \usepackage{amsmath} $if(xetex)$ -\usepackage{fontspec,xltxtra,xunicode} +\usepackage{ifxetex} +\ifxetex + \usepackage{fontspec,xltxtra,xunicode} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} +\else + \usepackage[mathletters]{ucs} + \usepackage[utf8x]{inputenc} +\fi $else$ \usepackage[mathletters]{ucs} \usepackage[utf8x]{inputenc} @@ -69,6 +76,7 @@ $endif$ $if(toc)$ \tableofcontents + $endif$ $body$ -- cgit v1.2.3