ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thangalin <thangalin@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Strange behaviour with columnar itemized text
Date: Thu, 27 Feb 2014 17:15:02 -0800	[thread overview]
Message-ID: <CAANrE7ofnTLYvt5r_FvczLsxD6U6RAe2GbAbcnqvDYQxXTwh-g@mail.gmail.com> (raw)

Hi,

I encountered two issues where itemized text within columns behaves
unexpectedly. There appear to be two issues, possibly related. I will
provide the shorter example first, which produces overlapping text on
the second page (http://i.imgur.com/zMW6yk4.png).

Changing \blank[.2em] to \blank[small] resolves the first issue.
Removing inbetween={\blank[small]}, resolves the second issue. Given
that changing the \blank command affects the results, I think they
might be related somehow.

I'm not concerned about the first issue -- changing ".25em" to "small"
is fine. The second issue, however, leaves me perplexed for a solution
to avoid the issue while maintaining the desired vertical whitespace
(see (http://i.imgur.com/n46zEhf.png) between items. Any suggestions?

Hopefully these are sufficiently minimal examples.

------------] 8< overlapping text 8< [------------
\setuphead[section][before={\testcolumn[3]},]
\defineitemgroup[Instructions][inbetween={\blank[.25em]},]

\starttext
\startmixedcolumns[
  align=right,
  balance=yes,
  grid=strut,
]
\dorecurse{5}{
\startsection[title={Section},]
\startInstructions
  \item{Preheat the oven to 400°F}\item{Put a few cups of salt in a
gratin dish and level it off}\item{Place a little of the prepared
butter mixture snail butter in an empty shell (about a teaspoon) and
then put a snail in after it}\item{Put another blob of the snail
butter on top until the snail is no longer visible in the shell (about
a teaspoon)}\item{Do this for the remaining shells a layer of snail
butter the snail itself and another layer of snail butter}\item{Now,
push all the prepared shells into the salt in the gratin dish such
that the shell openings are securely face up}\item{Make sure the
shells to stay securely face up so that the snail cooks in the snail
butter instead of the butter just leaking out}\item{If you have some
special escargot dishes you can place the shells in them instead of
the salt and gratin dish}\item{Ensure that the shells remain securely
face up so that the snail cooks in the snail butter}
\stopInstructions
}
\stopmixedcolumns
\stoptext
------------] 8< snip snip 8< [------------

The second, slightly longer example, shows text overlapping the footer
region (http://i.imgur.com/vUNyDmk.png) and extending off the second
page.

------------] 8< snip snip 8< [------------
\setuppapersize[letter][letter]
\definestartstop[RecipeIngredientGroup]
\definestartstop[RecipeInstructionGroup]
\defineitemgroup[RecipeIngredients]

\defineitemgroup[RecipeInstructions][
  inbetween={\blank[small]},
]

\setupstartstop[RecipeIngredientGroup][
  before={\startmixedcolumns[balance=yes,]},
]

\setupstartstop[RecipeInstructionGroup][
  before={\startmixedcolumns[grid=strut,]},
]

\setupstartstop[RecipeIngredientGroup,RecipeInstructionGroup,][
  after={\stopmixedcolumns},
]

\starttext
  \startRecipeIngredientGroup
  \startsubsection[title={Title},]
  \startRecipeIngredients
    \dorecurse{32}{\item{item}}
  \stopRecipeIngredients
  \stopsubsection
  \stopRecipeIngredientGroup

  \startRecipeInstructionGroup
  \startsubsection[title={Title},]
  \startRecipeInstructions
    \dorecurse{8}{\item{item}}
  \stopRecipeInstructions
  \stopsubsection

  \startsubsection[title={Title},]
  \startRecipeInstructions
    \dorecurse{32}{\item{item}}
  \stopRecipeInstructions
  \stopsubsection
  \stopRecipeInstructionGroup
\stoptext
------------] 8< snip snip 8< [------------
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2014-02-28  1:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-28  1:15 Thangalin [this message]
2014-03-01  2:24 ` Thangalin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAANrE7ofnTLYvt5r_FvczLsxD6U6RAe2GbAbcnqvDYQxXTwh-g@mail.gmail.com \
    --to=thangalin@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).