Re: MinionPro, Xelatex e la matematica

#91354
samiel
Partecipante
    Up
    0
    Down
    ::


    Allora, affronto un problema per volta…
    Ho compilato un breve testo di prova usando un esempio dalla introxelatex e compila correttamente.
    Riportando una parte di quel codice nel mio file, ottengo invece un nuovo errore
    `\documentclass[a4paper,twoside,titlepage,fleqn]{article}
    \usepackage{xltxtra,eukdate}
    \usepackage{textcomp}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage{unicode-math}
    \defaultfontfeatures{Contextuals=NoAlternate}
    \setmainfont[Ligatures=TeX,Numbers=OldStyle]{Minion Pro}
    \setmathfont{XITS Math}
    \setmathfont[range=\mathup]{Minion Pro}
    \setmathfont[range=\mathbfup]{Minion Pro Bold}
    \setmathfont[range=\mathit]{Minion Pro Italic}

    \usepackage{units}
    \usepackage{polyglossia}
    \setmainlanguage{italian}
    \setotherlanguage[variant=polytonic]{greek}
    \setotherlanguage{latin}
    \usepackage{microtype}
    \usepackage[margin=2.5cm,heightrounded]{geometry}
    \newrobustcmd\lining[1]{{\addfontfeatures{Numbers=Lining}#1}}
    \setlength{\parindent}{0pt}
    \setlength{\mathindent}{0pt}
    \usepackage{graphicx}
    \usepackage{tabularx}
    \usepackage{multicol} % per righe multicolonna
    \usepackage{multirow} % per colonne multiriga
    \usepackage{booktabs} % per toprule midrule e bottomrule
    \usepackage{ragged2e} % per sillabare nelle tabelle
    \usepackage{enumitem} % per gli elenghi
    \setlist{noitemsep}
    \providerobustcmd\ap{\ifmmode^\expandafter\mathrm\else\expandafter\textsuperscript\fi}
    \providerobustcmd\ped{\ifmmode^\expandafter\mathrm\else\expandafter\textsubscript\fi}

    \usepackage{titletoc} % per l'indice
    \contentsmargin{3em}
    \dottedcontents{section}[2em]{}{2em}{0.6pc}

    \usepackage{fancyhdr} %per le testatine
    \pagestyle{fancy}
    \setlength{\headheight}{14.5pt}
    \fancyhf{}
    \fancyhead[LE]{\thepage \hfill III D — Documento del 15 maggio }
    \fancyhead[RO]{III D — Documento del 15 maggio \hfill \thepage}

    %\newcommand{\LN}[1]{\foreignlanguage{latin}{\em #1}}
    \newcommand{\LN}[2][]{%
    \foreignlanguage{latin}{\em #1\hspace{0pt}#2}}
    \newenvironment{latino}
    {\begin{otherlanguage*}{latin}\em}
    {\end{otherlanguage*}}
    \newcommand{\GR}[1]{\foreignlanguage{greek}{#1}}
    \newcommand{\omissis}{[\textellipsis\unkern]}
    \newcommand{\verticale}[2][c]{%
    \raisebox{1sp}{\smash{\rotatebox[origin=rc]{90}{%
    \begin{tabular}{@{}#1@{}}#2\end{tabular}}}}}
    \newcommand{\sqnum}[1]{%
    \framebox[1.2em]{\kern-\fboxsep\small\sffamily#1\kern-\fboxsep}%
    \quad\ignorespaces}
    \newcommand{\multilineentry}[2][c]{%
    \renewcommand{\arraystretch}{1}%
    \begin{tabular}{@{}#1@{}}#2\end{tabular}}
    \renewcommand{\sin}{\operatorname{sen}}
    \renewcommand{\tan}{\operatorname{tg}}
    \renewcommand{\cot}{\operatorname{cotg}}
    \renewcommand{\arcsin}{\operatorname{arcsen}}
    \newenvironment{lista}
    {\par\setlength{\parindent}{0pt}%
    \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}}
    {\par}

    % kerning dell'apostrofo per Minion Pro
    \makeatletter
    \catcode`\'=12
    \def\qu@te{'}
    \catcode`'=\active
    \begingroup
    \obeylines\obeyspaces%
    \gdef\@resetactivechars{%
    \def^^M{\@activechar@info{EOL}\space}%
    \def {\@activechar@info{space}\space}%
    }%
    \endgroup
    \providecommand\texorpdfstring[2]{#1}
    \protected\def'{\texorpdfstring{\texqu@te}{\string'}}
    \def\texqu@te{\relax
    \ifmmode
    \expandafter^\expandafter\bgroup\expandafter\prim@s
    \else
    \expandafter\futurelet\expandafter\@let@token\expandafter\qu@t@
    \fi}
    \def\qu@t@{%
    \ifx'\@let@token
    \qu@te\qu@te\expandafter\@gobble
    \else
    {}\qu@te{}\penalty\@M\hskip\expandafter\z@skip
    \fi}
    \scantokens\expandafter{%
    \expandafter\def\expandafter\pr@m@s\expandafter{\pr@m@s}}
    \makeatother

    \usepackage{hyperref}
    \hypersetup{hyperindex}
    \usepackage{bookmark}

    \begin{document}
    \begin{titlepage}
    \begin{center}
    \valign{\vfill\hbox{#}\vfill\cr
    \llap{\includegraphics[width=1.8cm]{logo}\hspace{1.5cm}}\cr
    \begin{tabular}{@{}c@{}}
    \bfseries LICEO GINNASIO STATALE \\
    \bfseries «RAIMONDO FRANCHETTI» — VENEZIA-MESTRE \\
    Corso del Popolo, 82 VE-MESTRE 30172 \\
    {\small Tel. 041/5315531 — Fax 041/5328524} \\
    {\small e-mail: segreteria@liceofranchetti.it} \\
    {\small Cod. fiscale 82007660275 — Cod. Scuola VEPC04000L}
    \end{tabular}\cr}

    \vfill

    ESAME di STATO

    a. s. 2010–2011

    \vspace{2cm}

    {\Large{\textbf{DOCUMENTO DEL CONSIGLIO DI CLASSE}}}

    (Art. 5, D.P.R. 323/98)

    \vspace{2cm}

    {\Large{\textbf{CLASSE III D}}}

    \vspace{3cm}

    Venezia–Mestre, 15 maggio 2011

    \vfill
    Dirigente Scolastico: prof. ******
    \end{center}
    \end{titlepage}

    %\begingroup
    %\advance\hsize-10em
    %\vspace*{\stretch{1}}
    %\centering\tableofcontents
    %\vspace*{\stretch{1}}
    %\endgroup

    \begin{center}
    \vspace*{\stretch{1}}
    \mbox{\parbox{.8\textwidth}{\tableofcontents}}
    \vspace*{\stretch{1}}
    \end{center}

    \newpage
    \section{Composizione del Consiglio di classe}
    \bigskip

    \begin{tabular}{l@{\qquad}l}
    \toprule
    \textbf{Materia} & \textbf{Docente} \\
    \midrule
    Italiano & Carlo Fabbiani \\
    Latino & Silvia Talluri \\
    Greco & Silvia Talluri \\
    Lingua Straniera (Inglese) & *********** \\
    Storia & Mauro Sacchetto \\
    Filosofia & Mauro Sacchetto \\
    Matematica & ********* \\
    Fisica & ********** \\
    Scienze Naturali & ********** \\
    Storia dell'Arte & ************* \\
    Educazione Fisica & ********** \\
    Religione cattolica & ***************** \\[1ex]
    Docente coordinatore & Mauro Sacchetto \\
    \bottomrule
    \end{tabular}`
    e per la riga della tabella ottengo
    `LaTeX Font Warning: Font shape `T1/XITSMath(1)/m/n' undefined
    (Font) using `T1/cmr/m/n' instead on input line 111.

    (/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/mt-cmr.cfg)

    LaTeX Font Warning: Font shape `T1/XITSMath(2)/m/n' undefined
    (Font) using `T1/cmr/m/n' instead on input line 111.

    ! Math formula deleted: Insufficient symbol fonts.
    \resetMathstrut@ ->\setbox \z@ \hbox {$($
    }\ht \Mathstrutbox@ \ht \z@ \dp \Ma…
    l.111 \begin{tabular}
    {@{}c@{}}
    ?
    `
    e qui mi fermo…

    m

    Go to top