Buongiorno,
riapro questa vecchia discussione perché, scopiazzando dal materiale trovato qui, vorrei creare un nuovo ambiente da inserire nella mia classe missa.
Ecco quanto ho provato a buttare giù:
`
\newenvironment{dedication}
{\null\vspace{\stretch{1}}
\begin{\flushright}
\itshape
}
{\end{flushright}
\vspace{\stretch{2}}\null
}
`
Ma richiamandolo così
`
\begin{dedication}
In questo momento [\dots]
\end{dedication}
`
e compilando ottengo questo errore:
`
! Missing \endcsname inserted.
\parsep
l.548 \begin{dedication}
?
`
Dove sbaglio?
Grazie!!!
P.S.:
Qui un sorgente minimo, se può essere utile:
`
\documentclass{article}
\begin{document}
\newenvironment{dedication}
{\null\vspace{\stretch{1}}
\begin{\flushright}
\itshape
}
{\end{flushright}
\vspace{\stretch{2}}\null
}
\begin{dedication}
In questo momento [\dots]
\end{dedication}
\end{document}
`