[texworks] TeXworks templates

Joel C. Salomon joelcsalomon at gmail.com
Mon Jun 15 17:10:20 CEST 2009

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