I have to insert an image a begin of every \section and \subsection using those LaTeX commands.
I have tried this:
\renewcommand{\@seccntformat}[1]{\mbox{\includegraphics{FigureFISSE/IconaT1.eps}\quad\mbox{\csname the#1\endcsname}\hspace{0.5em}}}
but typsetting the following error appears:
32: Argument of \@sect has an extra }. <inserted text> \par <to be read again> } \@sect ...tected@edef \@svsec {\@seccntformat {#1} \relax }\fi \@tempskipa #5... l.32 ...ùòlkz xùl<k xùòlk<zxùlòk <ùòzlxk <ùòlxzk }
\documentclass{book}
\makeatletter
\renewcommand{\@seccntformat}[1]{\mbox{\includegraphics{FigureFISSE/IconaT1.eps}\quad\mbox{\csname the#1\endcsname}\hspace{0.5em}}}
\makeatother
\begin{document}
\chapter{Prova titolo}
Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
\section{Titolo sezione lòk xùl<kùxzlk òs àòsk fòskf àksò fdjks<ùòlxk ù<òlxk <ùòlkz xùl<k xùòlk<zxùlòk <ùòzlxk <ùòlxzk }
Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
\subsection{Titolo 2}
Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
\end{document}


\begin{document}
\chapter{Prova titolo}
Testo testo TTesto testo Testo testo \section{Titolo sezione lòk xùl<kùxzlk òs àòsk fòskf àksò fdjks<ùòlxk ù<òlxk <ùòlkz xùl<k xùòlk<zxùlòk <ùòzlxk <ùòlxzk } Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
\subsection{Titolo 2} Testo testo Testo testo Testo testo Testo testo Testo testo Testo testo
\end{document}
– Bruno Guizzon Mar 06 '17 at 18:02\protect\includegraphics. – Ulrike Fischer Mar 06 '17 at 18:37