Re: Corrispondenza tocloft/memoir

#66817
Up
0
Down
::


Grazie.

egreg9″ post=65756In ogni caso, la strategia migliore è quella di scegliere una delle due sintassi e lavorare con quella; supponiamo tu voglia quella di tocloft:
`\ifcth@memoir
\let\cftbeforechapskip\cftbeforechapterskip

\fi`
In altre parole definisci una tabella di equivalenze e lavori con i comandi di tocloft. Occupazione di memoria minima e sintassi invariata. Puoi anche ideare facilmente una “metatabella”.

Ciao
Enrico

Credo di non aver capito. Se faccio
`
\ifcth@memoir
\let\cftbeforechapskip\cftbeforechapterskip
\let\cftsecnumwidth\cftsectionnumwidth
\let\cftsubsecpresnum\cftsubsectionpresnum

\fi
\setlength{\cftbeforechapskip}{.1em}
\addtolength{\cftsecnumwidth}{\newchnumberwidth}
\renewcommand{\cftsubsecpresnum}{\scshape\MakeTextLowercase}

`
le istruzioni con \setlength e \addtolength funzionano, ma i \renewcommand no (e ce ne sono tanti, sono anzi i più numerosi). Dovrei fare:
`
\ifcth@memoir
\let\cftbeforechapskip\cftbeforechapterskip
\let\cftsecnumwidth\cftsectionnumwidth
\let\cftsubsecpresnum\cftsubsectionpresnum
… % quelli per \setlength, \addtolength e \renewcommand
\fi
\setlength{\cftbeforechapskip}{.1em}
\addtolength{\cftsecnumwidth}{\newchnumberwidth}
\renewcommand{\cftsubsecpresnum}{\scshape\MakeTextLowercase}

\ifcth@memoir
\let\cftsubsectionpresnum\cftsubsecpresnum
… % solo quelli per \renewcommand (invertiti)
\fi
`
ma mi pare prolisso. 😕

Che metatabella intendi?

Go to top