Anyhoo... some interesting facts. Most LaTeX packages can be used with XeLaTeX. In fact I converted to it by changing my template to:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper,11pt,final,openright,twoside]{memoir}
\RequireXeTeX %Force XeTeX check
%XeLaTeX packages
\usepackage{xltxtra}
\usepackage{fontspec} %Font package
\usepackage{xunicode}
\defaultfontfeatures{Scale=MatchLowercase}
%Select fonts
\setmainfont[Mapping=tex-text]{Minion Pro}
\setsansfont[Mapping=tex-text]{Myriad Pro}
\setmonofont{Courier Std}
\title{Your Title}
\author{Your Name}
\date{}
\begin{document}
\maketitle
\chapter{Title}
\section{Section Title}
Your text
\subsection{Subsection Title}
Your Text
\end{document}
You can then replace Minion Pro, Myriad Pro and Courier Std fonts (which come with Acrobat Reader 9) to any font installed on your system. You will need to compile the document using XeLaTeX rather than LaTeX. Simply reconfigure the latex button of your favourite editor. For those interested in getting MnSymbol package (i.e. the Minion Pro Maths package) to work with XeLaTeX, replace the Select Font part with:Also replacing the XeLaTeX packages section to:\setprimaryfont{Minion Pro} \setmainfont[Mapping=tex-text]{Minion Pro} \setsansfont[Mapping=tex-text]{Myriad Pro} \setmonofont{Courier Std} \setmathsfont[Set=Greek,Uppercase=Italic,Lowercase=Italic]{
Minion Pro
}
\usepackage[MnSymbol]{mathspec}
\usepackage{xltxtra}
%\usepackage{fontspec}
\usepackage{xunicode}
\defaultfontfeatures{Scale=MatchLowercase}
You can control which font goes to which math font (rm, it etc.). See the mathspec package documentation for details. My experience of XeLaTeX has been quite enjoyable so far, hopefully it stays that way.Some very useful packages that I've found for my thesis so far has been:
- Memoir package.... a must really.
- Natbib... another must
- The rest in code form:
%Call other packages \usepackage{varioref} %extends \pageref via \vref to automate things like "on the next page" \usepackage[xetex,breaklinks,plainpages=false,pdfpagelabels]{hyperref} \usepackage{memhfixc} %Allows Hyperref in Memoir \usepackage{graphicx} \usepackage[draft]{pdfpages} \usepackage{mdwmath} %Math alignment \usepackage{mdwtab} \usepackage[printonlyused,withpage]{acronym} %acronyms package % Notation package \usepackage[intoc]{nomencl}% Notation equation ref [refeq] \makenomenclature %Temporary Packages \usepackage[draft]{fixme} %Fix me margin notes and list
- Others include ntheorem and svn-multi (if you intend on using Subversion for versioning)
Anyway, hope that helps anyone thinking of using XeLaTeX.
Cheers
Shakes - L3mming
EDIT: I have corrected the Minion Pro Math code.
EDIT: I have made the source for a basic but full thesis template is available on GitHub. Enjoy!
Thank you! Very helpful.
ReplyDeleteAmazing! This is the first time I read about XeLaTeX, I tried it out, and I'm fascinated!
ReplyDelete