Ho provato più o meno quello che ho potuto, ma non ho concluso gran che.
Qui sotto un esempio di codice, e XeTaTeX invariabilmente risponde “undefined control sequenze” e il log dice “Missing begi document”
allego il codice e il file log.
`\documentclass[11pt]{article}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Baskerville}
% Added: \aliasfontfeatureoption
% error message: Package xkeyval Error: `Historical' undefined in families `Ligatures'.
%
% See:
% – “Hoefler Text Extended Ligatures and XeTeX”,
% http://tex.stackexchange.com/questions/10495/hoefler-text-extended-ligatures-and-xetex
% – “[XeTeX] Fontspec: Historic not Historical Ligatures?”,
% http://tug.org/pipermail/xetex/2010-September/018106.html
% – “The fontspec package”,
% http://mirrors.ctan.org/macros/xetex/latex/fontspec/fontspec.pdf
%
% Remaining fontspec warning:
% fontspec Warning: OpenType feature 'Ligatures=Historical' (+hlig) not available
%(fontspec) for font 'Linux Libertine O Italic/B',
%(fontspec) with script 'Latin', and language 'Default'.
\aliasfontfeatureoption{Ligatures}{Historic}{Historical}
\XeTeXtracingfonts=1
\begin{document}
\section{Unicode support}
\subsection{English}
All human beings are born free and equal in dignity and rights.
\subsection{Íslenska}
Hver maður er borinn frjáls og jafn öðrum að virðingu og réttindum.
\subsection{Русский}
Все люди рождаются свободными и равными в своем достоинстве и
правах.
\subsection{Tiếng Việt}
Tất cả mọi người sinh ra đều được tự do và bình đẳng về nhân phẩm và
quyền lợi.
\subsection{Ελληνικά}
Ὅλοι οἱ ἄνθρωποι γεννιοῦνται ἐλεύθεροι καὶ ἴσοι στὴν ἀξιοπρέπεια
καὶ τὰ δικαιώματα.
\section{Legacy syntax}
When he goes—“Hello World!''\\
She replies—“Hello dear!”
\end{document}`
`This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) (format=xelatex 2010.11.21) 13 NOV 2011 17:34
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**Senza-titolo.tex
(./Senza-titolo.tex
LaTeX2e <2009/09/24>
Babel
rman-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian
, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, u
kenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, galician,
german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic, assamese,
bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panjabi, tamil,
telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian,
lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portuguese, roma
nian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish,
turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
Package: xltxtra 2010/06/03 v0.5d Improvements for the “XeLaTeX” format
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional
)
(./fontspec.sty
Package: fontspec 2010/07/14 v2.0b Advanced font selection for XeLaTeX/LuaLaTeX
(/Users/larsvolkv/Library/texmf/tex/latex/expl3.sty
(/Users/larsvolkv/Library/texmf/tex/latex/l3names.sty
Package: l3names 2010/07/11 v1981 L3 Experimental Naming Scheme for TeX Primiti
ves
)
Package: expl3 2010/07/13 v1982 L3 Experimental code bundle wrapper
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et@xins=\count88
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3basics.sty
Package: l3basics 2010/10/03 v2063 L3 Experimental basic definitions
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3expan.sty
Package: l3expan 2010/06/10 v1948 L3 Experimental Argument Expansion module
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3tl.sty
Package: l3tl 2010/10/29 v2081 L3 Experimental Token Lists
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3intexpr.sty
Package: l3intexpr 2010/06/15 v1957 L3 Integer Expressions
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3quark.sty
Package: l3quark 2010/09/20 v2036 L3 Experimental Quark Commands
)
(/Users/larsvolkv/Library/texmf/tex/latex/l3seq.sty
Package: l3seq 2010/03/29 v1879 L3 Experimental sequences and stacks
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3toks.sty
Package: l3toks 2010/05/25 v1933 L3 Experimental Token Registers
\l_tmpb_toks=\toks14
\l_tmpc_toks=\toks15
\g_tmpa_toks=\toks16
\g_tmpb_toks=\toks17
\g_tmpc_toks=\toks18
\c_empty_toks=\toks19
\l_tl_replace_toks=\toks20
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3int.sty
Package: l3int 2010/05/25 v1933 L3 Experimental Integer module
\l_tmpa_int=\count89
\l_tmpb_int=\count90
\l_tmpc_int=\count91
\g_tmpa_int=\count92
\g_tmpb_int=\count93
\c_max_int=\count94
\g_tl_inline_level_int=\count95
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prg.sty
Package: l3prg 2010/03/21 v1853 L3 Experimental control structures
\g_prg_inline_level_int=\count96
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3clist.sty
Package: l3clist 2010/03/29 v1878 L3 Experimental comma separated lists
\g_clist_inline_level_int=\count97
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3token.sty
Package: l3token 2010/04/11 v1890 L3 Experimental token investigation and manip
ulation
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prop.sty
Package: l3prop 2010/03/21 v1857 L3 Experimental Property Lists
\g_prop_inline_level_int=\count98
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3msg.sty
Package: l3msg 2010/03/23 v1866 L3 Experimental LaTeX Messages module
\l_msg_redirect_classes_prop=\toks21
\l_msg_redirect_names_prop=\toks22
\l_msg_redirect_fatal_prop=\toks23
\l_msg_redirect_error_prop=\toks24
\l_msg_redirect_warning_prop=\toks25
\l_msg_redirect_info_prop=\toks26
\l_msg_redirect_log_prop=\toks27
\l_msg_redirect_trace_prop=\toks28
\l_msg_redirect_none_prop=\toks29
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3io.sty
Package: l3io 2010/05/22 v1923 L3 Experimental i/o module
\g_iow_streams_prop=\toks30
\g_ior_streams_prop=\toks31
\l_iow_stream_int=\count99
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3skip.sty
Package: l3skip 2010/05/25 v1933 L3 Experimental skip registers
\l_tmpa_skip=\skip43
\l_tmpb_skip=\skip44
\l_tmpc_skip=\skip45
\g_tmpa_skip=\skip46
\g_tmpb_skip=\skip47
\l_tmpa_dim=\dimen103
\l_tmpb_dim=\dimen104
\l_tmpc_dim=\dimen105
\l_tmpd_dim=\dimen106
\g_tmpa_dim=\dimen107
\g_tmpb_dim=\dimen108
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3box.sty
Package: l3box 2010/05/22 v1919 L3 Experimental Box module
\l_tmpb_box=\box26
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keyval.sty
Package: l3keyval 2010/04/11 v1890 L3 Experimental keyval processing
\l_KV_level_int=\count100
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keys.sty
Package: l3keys 2010/05/24 v1931 L3 Experimental key-value support
\l_keys_choice_int=\count101
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3precom.sty
Package: l3precom 2010/02/09 v1793 L3 Experimental precompilation module
\g_gen_sym_int=\count102
\g_ggen_sym_int=\count103
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3xref.sty
Package: l3xref 2010/02/09 v1786 L3 Experimental cross referencing
\g_xref_all_curr_immediate_fields_prop=\toks32
\g_xref_all_curr_deferred_fields_prop=\toks33
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3file.sty
Package: l3file 2010/03/21 v1853 L3 Experimental file loading
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3fp.sty
Package: l3fp 2010/07/08 v1979 L3 Experimental floating-point operations
\l_fp_input_a_integer_int=\count104
\l_fp_input_a_decimal_int=\count105
\l_fp_input_b_integer_int=\count106
\l_fp_input_b_decimal_int=\count107
\l_fp_input_a_sign_int=\count108
\l_fp_input_b_sign_int=\count109
\l_fp_split_sign_int=\count110
\l_fp_mul_a_i_int=\count111
\l_fp_mul_a_ii_int=\count112
\l_fp_mul_a_iii_int=\count113
\l_fp_mul_a_iv_int=\count114
\l_fp_mul_a_v_int=\count115
\l_fp_mul_a_vi_int=\count116
\l_fp_mul_b_i_int=\count117
\l_fp_mul_b_ii_int=\count118
\l_fp_mul_b_iii_int=\count119
\l_fp_mul_b_iv_int=\count120
\l_fp_mul_b_v_int=\count121
\l_fp_mul_b_vi_int=\count122
\l_fp_mul_output_int=\count123
\l_fp_div_count_int=\count124
\l_fp_div_offset_int=\count125
\l_fp_output_sign_int=\count126
\l_fp_output_integer_int=\count127
\l_fp_output_decimal_int=\count128
\l_fp_round_discard_int=\count129
\l_fp_round_position_int=\count130
\l_fp_tmp_int=\count131
\c_one_hundred_million=\count132
\c_one_thousand_million=\count133
\l_fp_tmp_dim=\dimen109
\l_fp_round_precision_int=\count134
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count135
\calc@Bcount=\count136
\calc@Adimen=\dimen110
\calc@Bdimen=\dimen111
\calc@Askip=\skip48
\calc@Bskip=\skip49
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\calc@Ccount=\count137
\calc@Cskip=\skip50
))
(/usr/local/texlive/2010/texmf-dist/tex/latex/xpackages/xbase/xparse.sty
Package: xparse 2010/05/23 v1927 Generic document command parser
\c_xparse_shorthands_prop=\toks34
\l_xparse_m_args_int=\count138
\l_xparse_mandatory_args_int=\count139
\l_xparse_processor_int=\count140
\l_xparse_total_args_int=\count141
)
(/usr/local/texlive/2010/texmf-dist/tex/generic/kastrup/binhex.tex)
\c@zf@newff=\count142
\c@zf@index=\count143
\c@zf@script=\count144
\c@zf@language=\count145
\l_fontspec_strnum_int=\count146
(/Users/larsvolkv/Library/texmf/tex/latex/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
(/Users/larsvolkv/Library/texmf/tex/latex/xkeyval.tex
\XKV@toks=\toks35
\XKV@tempa@toks=\toks36
\XKV@depth=\count147
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
(/Users/larsvolkv/Library/texmf/tex/latex/keyval.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
Package: fontspec-patches 2010/07/14 v2.0b Advanced font selection for XeLaTeX/
LuaLaTeX
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fixltx2e.sty
Package: fixltx2e 2006/09/13 v1.1m fixes to LaTeX
LaTeX Info: Redefining \em on input line 420.
)
LaTeX Info: Redefining \em on input line 23.
LaTeX Info: Redefining \emph on input line 27.
LaTeX Info: Redefining \- on input line 30.
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1enc.def
File: eu1enc.def 2010/05/27 v0.1g Experimental Unicode font encodings
)
LaTeX Font Info: Try loading font information for EU1+lmr on input line 100.
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1lmr.fd
File: eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
))
LaTeX Info: Defining document command \fontspec
(LaTeX) with arg. spec. 'O{}m' on line 264.
LaTeX Info: Defining document command \setmainfont
(LaTeX) with arg. spec. 'O{}m' on line 268.
LaTeX Info: Defining document command \setsansfont
(LaTeX) with arg. spec. 'O{}m' on line 272.
LaTeX Info: Defining document command \setmonofont
(LaTeX) with arg. spec. 'O{}m' on line 276.
LaTeX Info: Defining document command \setmathrm
(LaTeX) with arg. spec. 'O{}m' on line 280.
LaTeX Info: Defining document command \setboldmathrm
(LaTeX) with arg. spec. 'O{}m' on line 283.
LaTeX Info: Defining document command \setmathsf
(LaTeX) with arg. spec. 'O{}m' on line 286.
LaTeX Info: Defining document command \setmathtt
(LaTeX) with arg. spec. 'O{}m' on line 289.
LaTeX Info: Defining document command \newfontfamily
(LaTeX) with arg. spec. 'mO{}m' on line 304.
LaTeX Info: Defining document command \newfontface
(LaTeX) with arg. spec. 'mO{}m' on line 307.
LaTeX Info: Defining document command \defaultfontfeatures
(LaTeX) with arg. spec. 'm' on line 308.
LaTeX Info: Defining document command \addfontfeatures
(LaTeX) with arg. spec. 'm' on line 325.
LaTeX Info: Defining document command \newfontfeature
(LaTeX) with arg. spec. 'mm' on line 334.
LaTeX Info: Defining document command \newAATfeature
(LaTeX) with arg. spec. 'mmmm' on line 343.
LaTeX Info: Defining document command \newICUfeature
(LaTeX) with arg. spec. 'mmm' on line 352.
LaTeX Info: Defining document command \aliasfontfeature
(LaTeX) with arg. spec. 'mm' on line 354.
LaTeX Info: Defining document command \aliasfontfeatureoption
(LaTeX) with arg. spec. 'mmm' on line 357.
LaTeX Info: Defining document command \newfontscript
(LaTeX) with arg. spec. 'mm' on line 362.
LaTeX Info: Defining document command \newfontlanguage
(LaTeX) with arg. spec. 'mm' on line 379.
LaTeX Info: Defining document command \DeclareFontsExtensions
(LaTeX) with arg. spec. 'm' on line 395.
\c@fontspec_tmp_int=\count148
LaTeX Info: Redefining \itshape on input line 1903.
LaTeX Info: Redefining \slshape on input line 1907.
LaTeX Info: Redefining \scshape on input line 1911.
LaTeX Info: Redefining \upshape on input line 1915.
fontspec.cfg loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg))
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xunicode/xunicode.sty
File: xunicode.sty 2008/02/08 v0.91 provides access to latin accents and many o
ther characters in Unicode lower plane
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/metalogo/metalogo.sty
Package: metalogo 2010/05/29 v0.12 Extended TeX logo macros
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
)
Package graphics Info: Driver file: xetex.def on input line 91.
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xetex-def/xetex.def
File: xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)
))
\Gin@req@height=\dimen112
\Gin@req@width=\dimen113
)
\xl@everylogo=\toks37
\xl@@everylogo=\toks38
LaTeX Info: Redefining \TeX on input line 193.
LaTeX Info: Redefining \LaTeX on input line 202.
LaTeX Info: Redefining \LaTeXe on input line 219.
)
LaTeX Info: Redefining \textsubscript on input line 62.
LaTeX Info: Redefining \textsuperscript on input line 64.
\xxt@tempbox=\box27
)
\c@zf@famc@Baskerville=\count149
fontspec Info: Defining font family for 'Baskerville' with options [Mapping=te
x-text].
Package fontspec Info: Defining shape m/n with raw font features:
(fontspec) mapping=tex-text;.
! Undefined control sequence.
\fontspec_declare_shape:nnnn …t }}\tl_if_eq:xxT
{#3}{\itdefault }{\use:x {…
l.3 \setmainfont[Mapping=tex-text]{Baskerville}
?
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H
…
l.3 \setmainfont[Mapping=tex-text]{Baskerville}
? x
Here is how much of TeX's memory you used:
9795 strings out of 494542
172516 string characters out of 3157454
213460 words of memory out of 3000000
12973 multiletter control sequences out of 15000+200000
3964 words of font info for 18 fonts, out of 3000000 for 9000
669 hyphenation exceptions out of 8191
44i,0n,50p,567b,184s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.`
Che fare?
Grazie
Gianni