Re: errore di xcolor con memoir

#66040
samiel
Partecipante
    Up
    0
    Down
    ::


    Prima variante, che mi dà sempre errore:
    `\newcommand{\changesections}{%
    \setsubsecheadstyle{\subsection}
    {\relax}
    {\MakeLowercase{\thesubsection}}
    {1em}
    {\large\ttfamily\textbf}%
    \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 è
    `\begin{card}{Condivisioni con BitTorrent}
    Fino a qualche anno fa, in Internet dominava una netta distinzione fra i
    server e i client. I server fornivano contenuti che potevano essere scaricati
    dai client. Ciò era dovuto anche ai limiti oggettivi della banda: chi stava
    scaricando con un modem a 56KB non aveva banda sufficiente per condividere
    file. Con l'avvento delle tecnologie broadband come la DSL si è resa
    disponibile una banda notevolmente più ampia, che ha portato alla nascita dei
    p2p, acronimo di «peer-to-peer», che letteralmente significa «da pari a pari»
    (per sottolineare il fatto che tutti i nodi rivestono, indistintamente, lo
    stesso ruolo). Fra questi, una soluzione particolarmente felice è costituita
    da BitTorrent, creato da Bram Cohen e reperibile all'indirizzo:
    \URL{http://www.bittorrent.com}.
    \end{card}`
    e l’errore
    `! Argument of \textbf has an extra }.

    \par

    }
    \changesections …em} {\large \ttfamily \textbf }
    \setsubsubsecheadstyle {\s…

    \card #1->\changesections
    \begin {shaded}\stepcounter {card}\phantomsection …
    l.29 \begin{card}{Condivisioni con BitTorrent}

    ? `

    M

    Go to top