ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Issues with the legend mechanism
Date: Thu, 4 Oct 2012 14:35:21 +0200	[thread overview]
Message-ID: <F54DBBF4-9643-49DB-8DFA-CDAC3D60804D@gmail.com> (raw)
In-Reply-To: <20121004140016.7dce7474@homerow>


Am 04.10.2012 um 14:00 schrieb Marco Patzer <homerow@lavabit.com>:

> Hi,
> 
> I discovered some issues with the legend mechanism.
> 
> 1) A newline after \startplacelegend fails:
> 
> \starttext
> \startplacelegend
> 
>  \startcontent
>    Foo
>  \stopcontent
>  \startcaption
>    Bar
>  \stopcaption
> \stopplacelegend
> \stoptext
> 
> 
> 2) location != top | bottom throws “Infinite glue shrinkage found in
>   a paragraph”:
> 
> \starttext
>  \startplacelegend [location=left]
>    \startcontent
>      Foo
>    \stopcontent
>    \startcaption
>      Bar
>    \stopcaption
>  \stopplacelegend
> \stoptext

pack-com.mkiv (replace \hss with \vss):

\setvalue{\??pairedboxalign\v!middle}% 4
  {\let\pack_pairedboxes_align_l\hss
   \let\pack_pairedboxes_align_r\hss
-  \let\pack_pairedboxes_align_t\hss
-  \let\pack_pairedboxes_align_b\hss}
+  \let\pack_pairedboxes_align_t\vss
+  \let\pack_pairedboxes_align_b\vss}


> 3) tabulate inside the content fails when not boxed:
> 
> \starttext
>  \startplacelegend [location=left]
>    \startcontent
>      \starttabulate
>        \NC Alpha \NC Beta \NC\NR
>      \stoptabulate
>    \stopcontent
>    \startcaption
>      Bar
>    \stopcaption
>  \stopplacelegend
> \stoptext


You can place the tabulate environment only with the second group of the legend, it doesn’t
matter when you change the position of \startcaption and \startcontent because because
both commands are synonyms for \bgroup.

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
___________________________________________________________________________________


      reply	other threads:[~2012-10-04 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 12:00 Marco Patzer
2012-10-04 12:35 ` Wolfgang Schuster [this message]

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=F54DBBF4-9643-49DB-8DFA-CDAC3D60804D@gmail.com \
    --to=wolfgang.schuster@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).