Ecco isolato un documento minimale (o quasi…) che mi dà problemi:
`\documentclass{scrreprt}
\newcommand{\myName}{…}
\newcommand{\myTitle}{…}
\usepackage[T1]{fontenc}
\usepackage{amsfonts,amssymb}
\usepackage{makeidx}
\usepackage[light,condensed,math]{iwona}
\usepackage[italian,squaren,cdot]{SIunits}
\usepackage{classicthesis-ldpkg}
\usepackage[eulermath,pdfspacing]{classicthesis}
\DeclareRobustCommand*{\comando}[1]{\lstinline!\\#1!%
\index{Comando!#1@\texttt{\textbackslash#1}}%
\index{#1@\texttt{\hspace*{-1.2ex}\textbackslash#1}}}
\DeclareRobustCommand*{\pacchetto}[1]{{\normalfont\ttfamily#1}%
\index{Pacchetto!#1@\texttt{#1}}%
\index{#1@\texttt{#1}}}
\newcommand\forlstinline[1]{\scantokens{\lstinline!#1!}\unskip}
\newcommand{\X}[1]{$\csname#1\endcsname$&\comando{#1}\hspace*{1ex}}
\newcommand{\SC}[1]{\csname#1\endcsname&\comando{#1}\hspace*{1ex}}
\newcommand{\W}[2]{$\csname#1\endcsname{#2}$&
\comando{#1}\kern.15em\forlstinline{{#2}}\hspace*{1ex}}
\newcommand{\Y}[1]{$\expandafter\big\csname#1\endcsname$ &\comando{#1}}
\newcommand{\A}[1]{#1&\texttt{\forlstinline#1}\hspace*{1ex}}
\newcommand{\B}[2]{#1#2&\texttt{\forlstinline#1{} #2}\hspace*{1ex}}
\newsavebox{\symbbox}
\newenvironment{symbols}[1]%
{\medskip
\renewcommand{\arraystretch}{1.1}
\begin{lrbox}{\symbbox}
\begin{tabular}{@{}#1@{}}}%
{\end{tabular}\end{lrbox}\makebox[\textwidth][c]{\usebox{\symbbox}}\par\medskip}
\begin{document}
\begin{table}[!h]
\caption{Accenti in modo matematico.}
\label{tab:AccentiMatematici}
\begin{symbols}{*3{cl}}
\toprule
\W{\bar}{a} & \W{\hat}{a} & \W{\tilde}{a} \\
\W{\vec}{a} & \W{\dot}{a} & \W{\ddot}{a} \\
\W{\acute}{a} & \W{\grave}{a} & \W{\breve}{a} \\
\W{\check}{a} & \W{\widehat}{A} &\W{\widetilde}{A} \\
\bottomrule
\end{symbols}
\end{table}
\end{document}
`
L’errore (fatale) è questo:
`! Missing \endcsname inserted.
\protect
l.46 \W{\bar}{a}
& \W{\hat}{a} & \W{\tilde}{a} \\
?
`
Grazie anticipate, mi manca davvero poco al traguardo…
L.