Improved xetex part of latex.template.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1776 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2010-01-02 18:19:04 +00:00
parent ce28d00b87
commit 9905223ae8

View file

@ -4,7 +4,14 @@ $else$
\documentclass{article} \documentclass{article}
\usepackage{amsmath} \usepackage{amsmath}
$if(xetex)$ $if(xetex)$
\usepackage{ifxetex}
\ifxetex
\usepackage{fontspec,xltxtra,xunicode} \usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\fi
$else$ $else$
\usepackage[mathletters]{ucs} \usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc} \usepackage[utf8x]{inputenc}
@ -69,6 +76,7 @@ $endif$
$if(toc)$ $if(toc)$
\tableofcontents \tableofcontents
$endif$ $endif$
$body$ $body$