Hi Nicola,
sorry for bothering you but even correcting the code as suggested it does work for me
I post a simplified version of my code, even so it does work!
I have three files. The main one is the following:
Code: Select all
\documentclass[11pt,twoside,a4paper]{book}
\usepackage[latin1]{inputenc}
\usepackage[esperanto, italian]{babel}
\usepackage{datatool}
\usepackage{fancyhdr}
\pagestyle{fancy}
\input{preambolo/talbndx}
\includeonly{%
capitoli/talbot01
}
\begin{document}
\pagestyle{fancy}
\include{capitoli/talbot01}
\end{document}
It calls some parts for the preamble, i.e. the redifinition of index commands:
Code: Select all
%
% index
%
\newcommand\term[1]{
\def\Term{#1}%
\DTLsplitstring{#1}{-}{\prima}{\dopo}%
\ifx\prima\Term % senza trattino
#1\index{#1}
\else % con trattino
#1\index{\dopo @#1}
\fi
}
and the text chapters:
Code: Select all
%********** Capitolo 1 **********
\setcounter{chapter}{1}
\setcounter{section}{0}
\chapter{Somo la kwanza}
\section{Maelezo (\textit{Spiegazioni})}
\subsection{\term{Forme di saluto} (I)}
Il saluto più usato (soprattutto con europei)
If I compile the main file I get the said error!
Would you like to try?
Thank you very much for your help.
Nino