In continuation of this question, I tried to make a list of items each consisting of unbreakable text. This can be done manually using minipage:
\documentclass[10pt,a4paper]{article}
\usepackage{lipsum} %for example
\setlength{\textheight}{7cm} %about one item fits per page
\begin{document}
\begin{itemize}
\item\begin{minipage}[t]{\linewidth}
\lipsum[1]
\end{minipage}
\item\begin{minipage}[t]{\linewidth}
\lipsum[2]
\end{minipage}
\end{itemize}
\end{document}
What I would like it to to define a list environment that is just like itemize (or whatever) only that the items are automatically inserted into a minipage as in my manual example. The solution should be robust for nested list environments, so if \item is to be redifined, it has to be done so in a very gentle way...not sure how. After redefining the environment itemize-block (for example) the following code should compile and not break the text in each item across pages:
\begin{itemize-block}
\item
\lipsum[1]
\item \begin{itemize}
\item let us make sure it compiles even with
\item a nested list...
\end{itemize}
\item
\lipsum[2]
\end{itemize-block}
This can surely be done...only I have no idea how.
\def. – Yossi Farjoun Oct 24 '10 at 11:14\itemthe way you do it is that it affects any nested list and causes errors when there are nested lists. I edited my Question to reflect this usecase. – Yossi Farjoun Oct 24 '10 at 14:46\Item(or something) instead of messing with the existing\item? – Juan A. Navarro Oct 24 '10 at 14:52description-like environment TeX Live complained aboutIllegal parameter number in definition of \block-description.Ditching the redefinition of\itemand defining a\myitemoutside thenewenvironmenthacked it for the time being. I don't know enough to suggest a more elegant solution. That said, it does precisely what I needed it to. Thanks. – dmckee --- ex-moderator kitten Aug 05 '14 at 21:04! Illegal parameter number in definition of \block-itemize. <to be read again> 1. Mac TeX 2017 – Carsten Hagemann Jan 31 '19 at 15:43