[quote][quote]Ho definito questo ambiente che però da problemi nella \vspace
`\newenvironment{myenumerate}[3]{\setlength{\parskip}{#2}\begin{enumerate}[#1]}
{\end{enumerate}\vspace{#3}}`
sapete dirmi il perché?
ecco l’errore:
`! Illegal parameter number in definition of \endmyenumerate.
3
l.20 …[#1]}{\end{enumerate}\endgroup\vspace{#3}}`Non puoi usare parametri nel terzo argomento di \newenvironment. Prima di tutto prova a guardare il pacchetto paralist o le FAQ per evitare di inventare l’acqua calda. Il problema in oggetto si risolve cosi:
`\newcommand{\tempmyenum}{}
\newenvironment{myenumerate}[3]
{\renewcommand{\tempmyenum}{#3}%
\setlength{\parskip}{#2}\begin{enumerate}[#1]}
{\end{enumerate}\vspace{\tempmyenum}}`Ciao
Enrico
Scusa, ma non riesco a capire come riolvere il problema! eheh! Copio il codice che mi hai scritto nel preambolo e poi?[/quote]
Usi l’ambiente myenumerate.
Ciao
Enrico[/quote]
Ecco quello che ho fatto
`\documentclass[12pt,a4paper]{report}
\usepackage{amsfonts, amsmath,amsfonts,amssymb,amsthm}
\usepackage{enumerate}
\title{Zusammenfassung Analysis 1: Kapiteln IV, V und VI}
\author{Landoni Fabio}
\newcommand{\satz}[1]{\textbf{Satz #1:}\\}
\newcommand{\defi}[1]{\textbf{#1:}\\}
\newcommand{\boldd}[1]{\textbf{#1}}
\newcommand{\bem}[1]{\boldd{Bem:}\\}
\newcommand{\numberset}[1]{\mathbb{#1}}
\newcommand{\R}{\numberset{R}}
\newcommand{\N}{\numberset{N}}
\newcommand{\Q}{\numberset{Q}}
\newcommand{\Z}{\numberset{Z}}
\newcommand{\C}{\numberset{C}}
\newcommand{\tempmyenum}{}
\newenvironment{myenumerate}[3]
{\renewcommand{\tempmyenum}{1}%
\setlength{\parskip}{2}\begin{enumerate}[i)]}
{\end{enumerate}\vspace{\tempmyenum}}
\newcommand{\bgen}{\begin{enumerate}[i)]}
\newcommand{\enen}{\end{enumerate}}
\newcommand{\bgdm}{\begin{displaymath}}
\newcommand{\edm}{\end{displaymath}}
\newcommand{\inr}{\in \R}
\newcommand{\inn}{\in \N}
\newcommand{\inc}{\in \C}
\setlength{\parindent}{0pt}
\setlength{\parskip}{2explus0.5exminus0.2ex}
\begin{document}
\maketitle
\newpage
\noindent
Prova iii
\begin{myenumerate}
\item dddddd
\item hjfhjd
\end{myenumerate}
dddd
\end{document}
`
ma non sembra funzionare eh