Ciao Enrico,
grazie per la risposta.
è probabile che il problema risieda nel preambolo.
esitavo a mandarlo perchè lungo e disordinato.
(anzi nel fare copia e incolla
mi accorgo che le 2 linee
`\usepackage[scaled=.90]{helvet}`
`\usepackage{courier}`
non sono preceduta da %)
Comunque eccolo::
`\usepackage[autolanguage]{numprint}
\usepackage[normalem]{ulem}
\usepackage{float}
%—— numeri romani maiuscoletto (GUIT)
\makeatletter
\renewcommand{\frontmatter}{%
\cleardoublepage\@mainmatterfalse
\pagenumbering{smallRoman}}
\DeclareRobustCommand{\@smrc}[1]{%
\begingroup$\m@th$\fontsize{\sf@size}{\sf@size}\selectfont#1\endgroup}
\def\smallRoman#1{\expandafter\@smallRoman\csname c@#1\endcsname}
\def\@smallRoman#1{\@smrc{\expandafter\@slowromansmallcap\romannumeral #1@}}
\def\@slowromansmallcap#1{\ifx @#1% then terminate
\else
\if i#1I\else
\if v#1V\else
\if x#1X\else
\if l#1L\else
\if c#1C\else
\if d#1D\else
\if m#1M\else
#1\fi\fi\fi\fi\fi\fi\fi
\expandafter\@slowromansmallcap
\fi
}
\makeatother
%——– E.GREG.
\newcommand{\tabdotfill}{%
% \ \leaders\hbox to.44em{\hss.\hss}\hskip 2em plus 1fill\relax
\ \leaders\hbox to.44em{}\hskip 2em plus 1fill\relax
}
\newcommand{\tabella}[3]{%
\par\addvspace{\medskipamount}\begingroup
\parindent=0pt\parfillskip=-2.5em\rightskip=2.5em
#1\\*
#2\nobreak\tabdotfill#3\par
\endgroup}
%————————————————————–
%blocco seguente usato solo per le tabelle in calce all'introduzione
\newcommand{\tabintro}[2]{%
\par\addvspace{\medskipamount}\begingroup
\parindent=0pt\parfillskip=-5em\rightskip=5em
#1\nobreak\tabdotfill#2\par
\endgroup}
%————————————————————————–
\usepackage{indentfirst}
\usepackage{enumitem}
\usepackage[a4paper,twoside,left=3cm,right=3cm,bottom=4cm,top=4cm,headheight=3cm,headsep=1cm]{geometry}
%\usepackage{lmodern}
%\usepackage[latin1]{inputenc}
%\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}%
\usepackage[italian]{babel}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[BoldFont={* Bold},
ItalicFont={* Italic},
BoldItalicFont={* Bold Italic}]
{Adobe Garamond Pro}
%\setmainfont[Mapping=tex-text, Numbers=OldStyle]{Adobe Garamond Pro}
%\setmainfont[Mapping=tex-text, Numbers=Lowercase]{Adobe Garamond Pro}
%\setmathrm{Adobe Garamond Pro} %use this font for math
%\newfontinstance\bold{Adobe Garamond Pro Bold}
%\newfontinstance\italic{Adobe Garamond Pro Italic}
\XeTeXdefaultencoding latin1
% separation between paragraphs : discuterne con SF
\setlength{\parskip}{0cm}
%dov'è utilizzato ?
\usepackage{alltt}
\usepackage{graphicx}
\usepackage{graphics}
\makeatletter
\def\cleardoublepage{\clearpage
\if@twoside
\ifodd\c@page
\else
\null\thispagestyle{empty}\clearpage
\fi
\fi}
\makeatother
\renewcommand\chaptername{}
\usepackage{titlesec}
\titleformat{\section}
{\normalfont\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\bfseries\itshape}{\thesubsection}{1em}{}
%left, berore, after
\titlespacing{\section}{0em}{4em}{2em}
\titlespacing{\subsection}{0em}{2em}{1em}
%\usepackage{times}
\usepackage{mathptmx}
%carica arial
\usepackage[scaled=.90]{helvet}
%carica courier
\usepackage{courier}
%\usepackage{times}
\usepackage{booktabs}
\usepackage{ccaption}
%—– TESTATINE (NO PIEDINI)
\usepackage{fancyhdr}
\pagestyle{fancy}
%posiziona i numeri di pagina
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{0.1\marginparwidth}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{{\thepage}}
\renewcommand{\headrulewidth}{0.pt} % elimina la linea
%————————definisce “plain”
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers
\fancyhead[LE,RO]{{\thepage}}
\renewcommand{\headrulewidth}{0pt} % and the line
}
\usepackage{setspace}
%——————————————————————————
% le tabelle di serie storiche standard sono tipicamene in 2 facciate contigue
% “ltable” è la facciate di sinistra
% “rtable” è la facciate di destra
%cnum = numero di colonna, nelle tabelle di serie storiche
%\newcommand{\cnum}[1]{\multicolumn{1}{c}{{#1}}}
%cnam = nome della colonna, nelle tabelle di serie storiche
%\newcommand{\cnam}[1]{\multicolumn{1}{c}{#1}}
%\usepackage[infoshow]{tabularx}
\newcommand{\mc}[1]{\multicolumn{1}{c}{{#1}}}
\usepackage{tabularx}
\newcolumntype{C}[1]{%
>{\centering\arraybackslash}p{#1}}%
\newcolumntype{L}[1]{%
>{\raggedright\arraybackslash}p{#1}}%
\newcolumntype{R}[1]{%
>{\raggedleft\arraybackslash}p{#1}}%
\usepackage{calc}
\newcommand{\col}[1]{%
\scriptsize\makebox[\widthof{VENETOa}]{#1}}
\newcommand{\ltable}[3]{%
\begin{table}[!ht]
\clearpage
\makebox{#1}\\[.1cm]
\scriptsize
\begin{tabularx}{\textwidth}{@{}L{1.3cm}*8{c}}
\midrule
&(1)&(2)&(3)&(4)&(5)&(6)&(7)&(8) \\
&\col{PIEM.}&\col{LIG.}&\col{LOMB.}&\col{VENETO}&\col{EMILIA}&\col{TOSC.}&\col{MARCHE}&\col{UMBRIA}\\
\midrule
\end{tabularx}
\scriptsize
\setstretch{.88}
\begin{tabularx}{\textwidth}{@{}L{1cm}*8{r}}
&\col{\phantom{PIEM.}}&\col{\phantom{LIG.}}&\col{\phantom{LOMB.}}&\col{\phantom{VENETO}}&\col{\phantom{EMILIA}}&\col{\phantom{TOSC.}}&\col{\phantom{MARCHE}}&\col{\phantom{UMBRIA}}\\
\input{#2}
\\[-0.2cm]
\midrule
\end{tabularx}
\vspace{.1cm}
\footnotesize{{#3}}
\end{table}
}
%————— RIGHT TABLE
\newcommand{\rtable}[3]{%
\clearpage
\begin{table}[!ht]
\makebox{#1}\\[.1cm]
\scriptsize
\begin{tabularx}{\textwidth}{@{}L{1.3cm}*8{c}}
\midrule
&(9)&(10)&(11)&(12)&(13)&(14)&(15)&(16)\\
&\col{LAZIO}&\col{ABR.}&\col{CAMP.}&\col{PUGLIE}&\col{BASIL.}&\col{CALAB.}&\col{SIC.}&\col{SAR.}\\
\midrule
\end{tabularx}
\scriptsize
\setstretch{.88}
\begin{tabularx}{\textwidth}{@{}L{1cm}*8{r}}
&\col{\phantom{LAZIO}}&\col{\phantom{ABR.}}&\col{\phantom{CAMP.}}&\col{\phantom{PUGLIE}}&\col{\phantom{BASIL.}}&\col{\phantom{CALAB.}}&\col{\phantom{SIC.}}&\col{\phantom{SAR.}}\\
\input{#2}
\\[-0.2cm]
\midrule
\end{tabularx}
\vspace{.1cm}
\footnotesize{{#3}}
\end{table}
}`
Ti consiglio, se vuoi usare XeTeX, di convertire tutti i tuoi file in UTF-8. Il programma di riferimento è “iconv” (da linea di comando) o “Charco” (con interfaccia grafica).
Non so ancora se userò XeTex, il vincolo (non so ancora quanto stringente)
è costituito dall’uso del font Adobe Garamond Pro.
Ora provo a seguire il tuo suggerimento (iconv oppure charco).
Grazie,
Carlo