I am setting up notes and exercises for my students. Each set of exercises is in an itemize environment, and each \item consists of a table of problems. The trouble is, the itemize doesn't break across pages - I have to put manual page breaks in. How can I encourage automatic page-breaks? Thanks, Alasdair
On 10-3-2011 8:10, Alasdair McAndrew wrote:
I am setting up notes and exercises for my students. Each set of exercises is in an itemize environment, and each \item consists of a table of problems. The trouble is, the itemize doesn't break across pages - I have to put manual page breaks in.
small example needed ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
The trouble arises when I put my tables into narrower, framedtext so as to
be able to force proper indentation:
\starttext
\startitemize[n]
\dorecurse{20}{\item This is a test
\startnarrower[left]
\startframedtext[frame=off,offset=overlay]
\starttables[|l|l|l|l|l|l|l|l|]
\NC (a) \NC Problem 1
\NC (b) \NC Problem 2
\NC (c) \NC Problem 3
\NC (d) \NC Problem 4 \NC\NR
\noalign{\blank[3mm]}
\NC (e) \NC Problem 5
\NC (f) \NC Problem 6
\NC (g) \NC Problem 7
\NC (h) \NC Problem 8 \NC\NR
\stoptables
\stopframedtext
\stopnarrower}
\stopitemize
\stoptext
On the other hand, the file:
\starttext
\startitemize[n]
\dorecurse{20}{\item This is a test
\starttables[|l|l|l|l|l|l|l|l|]
\NC (a) \NC Problem 1
\NC (b) \NC Problem 2
\NC (c) \NC Problem 3
\NC (d) \NC Problem 4 \NC\NR
\noalign{\blank[3mm]}
\NC (e) \NC Problem 5
\NC (f) \NC Problem 6
\NC (g) \NC Problem 7
\NC (h) \NC Problem 8 \NC\NR
\stoptables}
\stopitemize
\stoptext
breaks across pages properly, but the tables aren't properly aligned at the
left.
cheers,
Alasdair
On Thu, Mar 10, 2011 at 9:01 PM, Hans Hagen
On 10-3-2011 8:10, Alasdair McAndrew wrote:
I am setting up notes and exercises for my students. Each set of exercises is in an itemize environment, and each \item consists of a table of problems. The trouble is, the itemize doesn't break across pages - I have to put manual page breaks in.
small example needed
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
-- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
Am 11.03.2011 um 04:07 schrieb Alasdair McAndrew:
The trouble arises when I put my tables into narrower, framedtext so as to be able to force proper indentation:
Use tabulate. \starttext \startitemize[n] \dorecurse{20} {\item This is a test \starttabulate[|*{8}{l|}] \NC (a) \NC Problem 1 \NC (b) \NC Problem 2 \NC (c) \NC Problem 3 \NC (d) \NC Problem 4 \NC\NR \TB[3mm] \NC (e) \NC Problem 5 \NC (f) \NC Problem 6 \NC (g) \NC Problem 7 \NC (h) \NC Problem 8 \NC\NR \stoptabulate} \stopitemize \page \startitemize[n] \dorecurse{20} {\startitem Some text \startitemize[a,columns,four,unpacked][left=(,right=),stopper=] \dorecurse{8}{\startitem Problem \recurselevel \stopitem} \stopitemize \stopitem} \stopitemize \stoptext Wolfgang
Thank you - that works fine; especially the first, in which the problems read in order across, rather than down in columns. cheers, Alasdair On Sat, Mar 12, 2011 at 6:05 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 11.03.2011 um 04:07 schrieb Alasdair McAndrew:
The trouble arises when I put my tables into narrower, framedtext so as to be able to force proper indentation:
Use tabulate.
\starttext
\startitemize[n] \dorecurse{20} {\item This is a test \starttabulate[|*{8}{l|}] \NC (a) \NC Problem 1 \NC (b) \NC Problem 2 \NC (c) \NC Problem 3 \NC (d) \NC Problem 4 \NC\NR \TB[3mm] \NC (e) \NC Problem 5 \NC (f) \NC Problem 6 \NC (g) \NC Problem 7 \NC (h) \NC Problem 8 \NC\NR \stoptabulate} \stopitemize
\page
\startitemize[n] \dorecurse{20} {\startitem Some text \startitemize[a,columns,four,unpacked][left=(,right=),stopper=] \dorecurse{8}{\startitem Problem \recurselevel \stopitem} \stopitemize \stopitem} \stopitemize
\stoptext
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
participants (3)
-
Alasdair McAndrew
-
Hans Hagen
-
Wolfgang Schuster