TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

\usepackage{lipsum} %for example
\setlength{\textheight}{7cm} %about one item fits per page

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:

\item \begin{itemize}
\item let us make sure it compiles even with 
\item a nested list...

This can surely be done...only I have no idea how.

share|improve this question
up vote 11 down vote accepted

This is how I would do it:


Then you write

\item \lipsum[1]
\item \lipsum[2]

And a short explanation: When it starts, the environment begins a regular \itemize and then saves the usual definition of \item into \olditem. Then \item is redefined so that: (1) it closes the “previous” minipage (2) it starts a regular item (using \olditem) and (3) it opens a new minipage. Of course, for the very first item there is no minipage to close, that's why \closepage is first defined as \relax (do nothing) but it is then redefined to \endminipage right after the first use of \item. The end of the environment simply closes both the last minipage and the itemize environment.

Note: Actually, I would use something like \my@olditem and \my@closepage and throw the whole definition into a style file so that I don't accidentally redefine commands from another package. But I wanted to keep the code above somewhat clean without all those @'s lying around.

share|improve this answer
Thanks! Nice solution. I had to adapt it a little since the minipages inhibit the inter-item spacing. But that wasn't very difficult, using an additional \def. – Yossi Farjoun Oct 24 '10 at 11:14
Sorry, I had to remove the checkmark since I was having trouble with your solution. The problem with redefining \item the 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
As a cheap solution, how about defining a new \Item (or something) instead of messing with the existing \item? – Juan A. Navarro Oct 24 '10 at 14:52
What should one do in order have the same trick but for 'description' item? Simple reusing this code cleans term formatting of description list items (outputs as [term], instead of boldify) – glaz666 Feb 1 '12 at 10:27
@glaz666, I edited the code to take this into account. It's not a particularly elegant solution, and I haven't tested it, but I guess you could give it a try. – Juan A. Navarro Feb 13 '14 at 14:19

This is a response to a comment on Jaun's answer.

It's a modified version of his suggestion that works with description environments.

% ==========================================================
% Adapted from TeX.StackExchange.com user Juan A. Navarro's
% solution for itemize as seen at
% http://tex.stackexchange.com/a/4493/327
% ----------------------------------------------------------
% ----------------------------------------------------------

I don't like having the item definition live outside the environment like that, but the variations that I tried with it inside all failed and I don't know enough to fix it.

Application looks like


\myitem[Week 1] Aug. 18--22 \\

            & Reading & Topic and notes \\
    Mon.    & & Intro; administriva; pretest\\
    Tue.    & \\
    Wed.    & 18.1--18.5 & Electrostatics; Coulombs law \\
    Thu.    & \multicolumn{1}{r}{\textbf{Activity day:}} & 
              sticky electrostatics  \\
    Fri.    &  & Electrostatic force and multiple

\myitem[Week 2]  Another table for the next week 

\myitem[Week 3]  Yet another table for the third week 


Each week appears in its entirety on one page or the other never broken.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.