16 Novembre 2011 alle 16:42
#66050
::
Tutto funziona adesso con questo codice (eliminando \texorpdfstring):
`\newcommand{\changesections}{%
\setsubsecheadstyle{\large\ttfamily\bfseries}
\setsubsubsecheadstyle{\ttfamily\bfseries}
{\normalsize\ttfamily}
}
\newcommand{\cardsection}[1]{%
\phantomsection
\addcontentsline{toc}{subsubsection}{\ttfamily\small #1} %
\subsubsection*{#1}}
\newcounter{card}
\newenvironment{card}[1]
{\changesections\begin{shaded}\stepcounter{card}%
\phantomsection
\addcontentsline{toc}{subsection}
{\ttfamily\small Scheda n.~{ }%
\arabic{card} – #1}
\subsection*{\ttfamily Scheda n.~\arabic{card}\\#1}}
{\end{shaded}}`
tranne che delle schede non c’è traccia nell’indice…
M