13 Novembre 2011 alle 21:34
#66044
::
Il codice è
`\newcommand{\changesections}{%
\setsubsecheadstyle{\subsection}
{\relax}
{\MakeLowercase{\thesubsection}}
{1em}
{\large\ttfamily\bfseries}%
\setsubsubsecheadstyle{\subsubsection}
{\relax}
{\MakeLowercase{\thesubsubsection}}
{1em}
{\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.\texorpdfstring{\ }{ }%
\arabic{card} – #1}
\subsection*{\ttfamily Scheda n.~\arabic{card}\\#1}}
{\end{shaded}}`
Il testo quello riportato nel messaggio sopra
M