diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-02 18:19:04 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-02 18:19:04 +0000 |
commit | 9905223ae8538027df9521f180dfd49ff78f24f4 (patch) | |
tree | c6d8c9e5af115a7bb58f9090f569b88c91ddf811 /templates/latex.template | |
parent | ce28d00b87aa027ae140325a33eaaff2f672cde3 (diff) | |
download | pandoc-9905223ae8538027df9521f180dfd49ff78f24f4.tar.gz |
Improved xetex part of latex.template.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1776 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r-- | templates/latex.template | 10 |
1 files changed, 9 insertions, 1 deletions
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$ |