* \framed and \starttabulate
@ 2003-03-19 1:37 Matthew Huggett
2003-03-19 7:34 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Huggett @ 2003-03-19 1:37 UTC (permalink / raw)
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.
Thanks
Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \framed and \starttabulate
2003-03-19 1:37 \framed and \starttabulate Matthew Huggett
@ 2003-03-19 7:34 ` Hans Hagen
2003-03-19 14:11 ` Matthew Huggett
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2003-03-19 7:34 UTC (permalink / raw)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \framed and \starttabulate
2003-03-19 7:34 ` Hans Hagen
@ 2003-03-19 14:11 ` Matthew Huggett
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Huggett @ 2003-03-19 14:11 UTC (permalink / raw)
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
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-19 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19 1:37 \framed and \starttabulate Matthew Huggett
2003-03-19 7:34 ` Hans Hagen
2003-03-19 14:11 ` Matthew Huggett
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).