ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthew Huggett <mhuggett@zam.att.ne.jp>
Subject: Re: \framed and \starttabulate
Date: Wed, 19 Mar 2003 23:11:07 +0900	[thread overview]
Message-ID: <3E787A7B.7040304@zam.att.ne.jp> (raw)
In-Reply-To: <5.1.0.14.1.20030319082643.028ad5d0@server-1>

Hans:

Thanks for such a detailed answer.  I think all novice users really 
appreciate this kind of response.

Best wishes,
Matthew

Hans Hagen wrote:

> At 10:37 AM 3/19/2003 +0900, you wrote:
>
>> Hi:
>>
>> I wanted to use
>>        \framed
>>            {\starttabulate ... \stoptabulate }
>>
>> but when I tried it, TeX complained about groupings and missing 
>> parentheses.  Is there a way to make this work?  I switched to 
>> \bTABLE, and that worked,  but \starttabulate is more convenient 
>> sometimes.
>
>
> a \framed by default makes a so called hbox, and this conflicts with 
> tabulate's halign; the resulting message comes deep down in tex and is 
> one of the most confusing ones; it should be interpreted as: you are 
> doing something complicated vertical in horizontal mode
>
> Solution: force \framed to be a vbox, by setting the width/height or 
> setting the align key to some value
>
> \starttext
>
> % unreadable (watch how we nil the strut, try it with \showstruts)
>
> \framed[align=normal,strut=no]
>   {\starttabulate
>    \NC test \NC test \NC \NR
>    \stoptabulate}
>
> % more convenient (kind of startframedtext, but more tuned to this 
> kind of usage)
>
> \defineframedcontent[mine][offset=3pt]
>
> test
>
> \startframedcontent[mine]
> \starttabulate[|l|l|]
> \NC test \NC test \NC \NR
> \stoptabulate
> \stopframedcontent
>
> test
>
> \stoptext
>
> Also, compare this (spacing) with:
>
> \defineframedcontent[mine][offset=3pt,linecorrection=yes]
>
> test
>
> \startframedcontent[mine]
> \starttabulate[|l|l|]
> \NC test \NC test \NC \NR
> \stoptabulate
> \stopframedcontent
>
> test
>
>
> Hans
> -------------------------------------------------------------------------
>                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
>                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -------------------------------------------------------------------------
>                        information: http://www.pragma-ade.com/roadmap.pdf
>                     documentation: http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

      reply	other threads:[~2003-03-19 14:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-19  1:37 Matthew Huggett
2003-03-19  7:34 ` Hans Hagen
2003-03-19 14:11   ` Matthew Huggett [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=3E787A7B.7040304@zam.att.ne.jp \
    --to=mhuggett@zam.att.ne.jp \
    --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).