[texworks] TeXworks templates

David J. Perry hospes.primus at verizon.net
Tue Jun 16 04:23:35 CEST 2009


Thanks, Alain and Joel.  So probably the best thing to do is just load 
xltxtra in most situations, but if I need to pass an argument to fontspec 
there is no problem loading it separately (before xltxtra).  Simple enough.

David

----- Original Message ----- 
From: "Joel C. Salomon" <joelcsalomon at gmail.com>
To: "TeXworks" <texworks at tug.org>
Sent: Monday, June 15, 2009 11:10 AM
Subject: Re: [texworks] TeXworks templates


> Alain Delmotte wrote:
>> David J. Perry a écrit :
>>> 1. The "article-fontspec.tex" template in the XeLaTeX documents folder
>>> loads the packages fontspec, xunicode, and xltxtra in that order.
>>> According to the documentation for xltxtra, that package loads
>>> xunicode and fontspec automatically.  Perhaps it does no harm to ask
>>> for a package to be loaded multiple times, but I wondered about this.
>>
>> But regularly on the xetex discussion list it is suggested just to
>> include xltxtra!
>
> Look at the code for xltxtra.sty; the command used is
> \RequirePackage{fontspec} and if fontspec &c. have already been loaded
> they will not load again.
>
> As for including just xltxtra, consider that I might want to pass an
> option to some of the packages.
>
> —Joel Salomon 



More information about the texworks mailing list