Re: errore di xcolor con memoir

#66034
samiel
Partecipante
    Up
    0
    Down
    ::


    Ahhhh, beati i ciechi poiché di essi…
    In effetti la segnalazione più ampia ottenuta col comando
    suggeritomi da OldClaudio mi ha fatto individuare l’errore.

    Visto che l’appetito vien mangiando…
    Qui c’è una ridefinizione di alcuni comandi
    per produrre delle schede numerate e ombreggiate:
    `\newcommand{\changesections}{%
    \titleformat{\subsection}
    {\relax}
    {\MakeTextLowercase{\thesubsection}}
    {1em}
    {\large\ttfamily\textbf}%
    \titleformat{\subsubsection}
    {\relax}
    {\MakeTextLowercase{\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}}`
    e l’errore che spunta è:
    `! Undefined control sequence.
    \changesections ->\titleformat
    {\subsection } {\relax } {\MakeTextLowercase …

    \card #1->\changesections
    \begin {shaded}\stepcounter {card}\phantomsection …
    l.29 \begin{card}{Condivisioni con BitTorrent}`
    Ce cosa c’è qui di incompatibile con memoir?

    M.

    Go to top