* noalign in tabulate
@ 2007-08-13 16:56 Aditya Mahajan
2007-08-13 19:22 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-08-13 16:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
How do I insert a noalign in tabulate. It seems that noalign messes up
the width calculations of paragraphs. This is what I tried.
\starttext
\starttabulate
\NC tufte \NC \input tufte \NR
\NC zapf \NC \input zapf \NR
\stoptabulate
\starttabulate
\NC tufte \NC \input tufte \NR
\noalign{Some quotes}
\NC zapf \NC \input zapf \NR
\stoptabulate
\starttabulate
\NC tufte \NC \input tufte \NR
\TABLEnoalign{Some quotes}
\NC zapf \NC \input zapf \NR
\stoptabulate
\stoptext
Suggestions?
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: noalign in tabulate
2007-08-13 16:56 noalign in tabulate Aditya Mahajan
@ 2007-08-13 19:22 ` Hans Hagen
2007-08-13 20:35 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2007-08-13 19:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan wrote:
> Hi,
>
> How do I insert a noalign in tabulate. It seems that noalign messes up
> the width calculations of paragraphs. This is what I tried.
>
> \starttext
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \noalign{Some quotes}
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \TABLEnoalign{Some quotes}
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> \stoptext
>
> Suggestions?
as much trial and error for me as for you
\starttabulate
\NC tufte \NC \input tufte \NR
\NC zapf \NC \input zapf \NR
\stoptabulate
\starttabulate
\NC tufte \NC \input tufte \NR
\noalign{\hbox{Some quotes}}
\NC zapf \NC \input zapf \NR
\stoptabulate
\starttabulate
\NC tufte \NC \input tufte \NR
\TABLEnoalign{\hbox{Some quotes}}
\NC zapf \NC \input zapf \NR
\stoptabulate
otherwise you get a paragraph
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: noalign in tabulate
2007-08-13 19:22 ` Hans Hagen
@ 2007-08-13 20:35 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2007-08-13 20:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 13 Aug 2007, Hans Hagen wrote:
> Aditya Mahajan wrote:
>> Hi,
>>
>> How do I insert a noalign in tabulate. It seems that noalign messes up
>> the width calculations of paragraphs. This is what I tried.
>>
>> \starttext
>>
>> \starttabulate
>> \NC tufte \NC \input tufte \NR
>> \NC zapf \NC \input zapf \NR
>> \stoptabulate
>>
>> \starttabulate
>> \NC tufte \NC \input tufte \NR
>> \noalign{Some quotes}
>> \NC zapf \NC \input zapf \NR
>> \stoptabulate
>>
>> \starttabulate
>> \NC tufte \NC \input tufte \NR
>> \TABLEnoalign{Some quotes}
>> \NC zapf \NC \input zapf \NR
>> \stoptabulate
>>
>> \stoptext
>>
>> Suggestions?
>
> as much trial and error for me as for you
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \noalign{\hbox{Some quotes}}
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> \starttabulate
> \NC tufte \NC \input tufte \NR
> \TABLEnoalign{\hbox{Some quotes}}
> \NC zapf \NC \input zapf \NR
> \stoptabulate
>
> otherwise you get a paragraph
It seems that noalign messes up width calculation. Here is one
possibility:
\startbuffer
\starttabulate
\NC nofautotabulate \NC \the\nofautotabulate \NC \NR
\NC tabulatewidth \NC \the\tabulatewidth \NC \NR
\NC tufte \NC \input tufte \NC \NR
\mynoalign{\vbox{some quotes that are used for generating sample
text in a lot of \CONTEXT\ documents again and again}}
\NC zapf \NC \input zapf \NC \NR
\stoptabulate
\stopbuffer
\starttext
\let\mynoalign\noalign
\getbuffer
\page
\def\mynoalign
{\iftrialtypesetting \expandafter\gobbleoneargument
\else \expandafter\TABLEnoalign \fi}
\getbuffer
\stoptext
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-13 20:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-13 16:56 noalign in tabulate Aditya Mahajan
2007-08-13 19:22 ` Hans Hagen
2007-08-13 20:35 ` Aditya Mahajan
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).