ti segnalo il pacchetto siunitx per scrivere le unità di misura
adesso vedo come usarlo nel caso specifico
E perché con XeLaTeX usi il pacchetto fontenc con la codifica T1; XeLaTeX lavora con i ofnt OpenType che non hanno la codifica T1. non hai bisogno nemmeno del fotn textcomp; perché tutti i suoi simboli sono contenuti in qualunque fotn OpenType decente. Come fai a usare i Minion Pro con le ospzioni che gli specifichi, se non carichi il pacchetto fontspec?
sì, si tratta di un grossolano errore dovuto a frettolosi copia/incolla
questa è la solita pessima abitudine di alcuni prof di matematica di ingorare compeltamente le norme ISO
lo so, già l’anno scorso si era posto il problema. Proverò ad insistere, le resistenze sono del tipo
«il libro li chiama così», «gli studenti sono abituati così» e simili, mi rendo conto tuttavia che il perseverare
in un errore non è mai una buona giustificazione
Adesso la compilazione produce un altro errore, localizzato a una riga che non mi par possibile lo generi,
per cui temo derivi da qualche altro fattore:
`\documentclass[a4paper,twoside,titlepage,fleqn]{article}
\usepackage{xltxtra,eukdate}
\usepackage{fontspec}
\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 & Mario Rossi \\
Latino & Mario Rossi \\
Greco & Mario Rossi \\
Lingua Straniera (Inglese) & Mario Rossi \\
Storia & Mauro Sacchetto \\
Filosofia & Mauro Sacchetto \\
Matematica & Mario Rossi \\
Fisica & Mario Rossi \\
Scienze Naturali & v \\
Storia dell'Arte & Giuseppe verdi \\
Educazione Fisica & Mario Rossi \\
Religione cattolica & Mario Rossi\\[1ex]
Docente coordinatore & Mauro Sacchetto \\
\bottomrule
\end{tabular}
\bigskip
\noindent Il presente documento è stato approvato all'unanimità \\
dal Consiglio di classe nella seduta dell'11 maggio 2011.
\newpage`
e l’errore è il seguente:
`ABD: EverySelectfont initializing macros
(/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
Package hyperref Warning: Rerun to get /PageLabels entry.
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/se-ascii-print.def)
[1] [2]
! Missing $ inserted.
$
l.174 Storia dell'A
rte & Giuseppe verdi \\`
A cosa può essere docuto?