ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* width of cell in TABLE
@ 2008-09-11 20:58 Peter Münster
  2008-09-12  6:13 ` span ROWS in \starttables? Alan BRASLAU
  2008-09-12  6:31 ` width of cell in TABLE Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Münster @ 2008-09-11 20:58 UTC (permalink / raw)
  To: ConTeXt list

Hello,

How could I get a column with 0 width (useful for dummy columns).

Example, that shows, that the width is not 0:

\starttext
\setupTABLE[width=0pt, offset=0pt, height=1cm]
\bTABLE
\bTR\bTD\eTD\eTR
\eTABLE
\framed[width=0pt, offset=0pt, height=1cm]{}
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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] 9+ messages in thread

* span ROWS in \starttables?
  2008-09-11 20:58 width of cell in TABLE Peter Münster
@ 2008-09-12  6:13 ` Alan BRASLAU
  2008-09-12  6:34   ` Wolfgang Schuster
  2008-09-12  6:31 ` width of cell in TABLE Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Alan BRASLAU @ 2008-09-12  6:13 UTC (permalink / raw)
  To: ntg-context

Hello,

Is there any mechanism to span ROWS in (\start)tables
similar to column spanning through \use{3}{}?
The aim is to produce a multi-row column entry
as can be done via \bTD[nr=3] in \bTABLE.

Thanks

Alan

___________________________________________________________________________________
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] 9+ messages in thread

* Re: width of cell in TABLE
  2008-09-11 20:58 width of cell in TABLE Peter Münster
  2008-09-12  6:13 ` span ROWS in \starttables? Alan BRASLAU
@ 2008-09-12  6:31 ` Wolfgang Schuster
  1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2008-09-12  6:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Sep 11, 2008 at 10:58 PM, Peter Münster <pmlists@free.fr> wrote:
> Hello,
>
> How could I get a column with 0 width (useful for dummy columns).
>
> Example, that shows, that the width is not 0:
>
> \starttext
> \setupTABLE[width=0pt, offset=0pt, height=1cm]
> \bTABLE
> \bTR\bTD\eTD\eTR
> \eTABLE
> \framed[width=0pt, offset=0pt, height=1cm]{}
> \stoptext

use offset=overlay

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: span ROWS in \starttables?
  2008-09-12  6:13 ` span ROWS in \starttables? Alan BRASLAU
@ 2008-09-12  6:34   ` Wolfgang Schuster
  2008-09-12  8:27     ` Alan BRASLAU
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2008-09-12  6:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> Hello,
>
> Is there any mechanism to span ROWS in (\start)tables
> similar to column spanning through \use{3}{}?
> The aim is to produce a multi-row column entry
> as can be done via \bTD[nr=3] in \bTABLE.

\NC \use{3} ... \NC ...

or

\NC \THREE ... \NC ...

You can find more information on the wiki page:
http://wiki.contextgarden.net/Table

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: span ROWS in \starttables?
  2008-09-12  6:34   ` Wolfgang Schuster
@ 2008-09-12  8:27     ` Alan BRASLAU
  2008-09-12  8:51       ` Wolfgang Schuster
  2008-09-12 13:37       ` Aditya Mahajan
  0 siblings, 2 replies; 9+ messages in thread
From: Alan BRASLAU @ 2008-09-12  8:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Friday 12 September 2008 08:34:15 Wolfgang Schuster wrote:
> On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> >
> > Is there any mechanism to span ROWS in (\start)tables
> > similar to column spanning through \use{3}{}?
> > The aim is to produce a multi-row column entry
> > as can be done via \bTD[nr=3] in \bTABLE.
>
> \NC \use{3} ... \NC ...
>
> or
>
> \NC \THREE ... \NC ...
>
> You can find more information on the wiki page:
> http://wiki.contextgarden.net/Table
>
> Wolfgang

This mechanism spans COLUMNS not rows.

I would like to produce
---------
|    | b |
|    |---|
| A | c |
|    |---|
|    | d |
---------
using \starttables,
as can be done with:
\setupTABLE[c][1][align=lohi]
\bTABLE
\bTR \bTC[nr=3]  A \eTC\bTC b \eTC \eTR
\bTR \bTC c \eTC \eTR
\bTR \bTC d \eTC \eTR
\eTABLE

Note that:
\starttables[|c|c|]
 \HL
 \VL \VL b \VL\AR
 \DC \DL \DR
 \VL A \VL c \VL\AR
 \DC \DL \DR
 \VL \VL d \VL\LR
 \HL
\stoptables
does not quite do the job,
since the aim is to put a tall object
"A" spanning the three rows.

Alan
___________________________________________________________________________________
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] 9+ messages in thread

* Re: span ROWS in \starttables?
  2008-09-12  8:27     ` Alan BRASLAU
@ 2008-09-12  8:51       ` Wolfgang Schuster
  2008-09-12  9:21         ` Alan BRASLAU
  2008-09-12 13:37       ` Aditya Mahajan
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2008-09-12  8:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Sep 12, 2008 at 10:27 AM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> On Friday 12 September 2008 08:34:15 Wolfgang Schuster wrote:
>> On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
>> >
>> > Is there any mechanism to span ROWS in (\start)tables
>> > similar to column spanning through \use{3}{}?
>> > The aim is to produce a multi-row column entry
>> > as can be done via \bTD[nr=3] in \bTABLE.
>>
>> \NC \use{3} ... \NC ...
>>
>> or
>>
>> \NC \THREE ... \NC ...
>>
>> You can find more information on the wiki page:
>> http://wiki.contextgarden.net/Table
>>
>> Wolfgang
>
> This mechanism spans COLUMNS not rows.

Sorry for this wrong information.

> I would like to produce
> ---------
> |    | b |
> |    |---|
> | A | c |
> |    |---|
> |    | d |
> ---------
> using \starttables,
> as can be done with:
> \setupTABLE[c][1][align=lohi]
> \bTABLE
> \bTR \bTC[nr=3]  A \eTC\bTC b \eTC \eTR
> \bTR \bTC c \eTC \eTR
> \bTR \bTC d \eTC \eTR
> \eTABLE
>
> Note that:
> \starttables[|c|c|]
>  \HL
>  \VL \VL b \VL\AR
>  \DC \DL \DR
>  \VL A \VL c \VL\AR

\VL \smash{\vcenter{\hbox{\definedfont[Serif at 70pt]A}}} \VL c \VL\AR

>  \DC \DL \DR
>  \VL \VL d \VL\LR
>  \HL
> \stoptables
> does not quite do the job,
> since the aim is to put a tall object
> "A" spanning the three rows.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: span ROWS in \starttables?
  2008-09-12  8:51       ` Wolfgang Schuster
@ 2008-09-12  9:21         ` Alan BRASLAU
  0 siblings, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2008-09-12  9:21 UTC (permalink / raw)
  To: ntg-context

On Friday 12 September 2008 10:51:58 Wolfgang Schuster wrote:
>  \VL \smash{\vcenter{\hbox{\definedfont[Serif at 70pt]A}}} \VL c \VL\AR

Ah, TeX magic!
Indeed, I never learned about \smash. Thank you
(added a line to http://wiki.contextgarden.net/Table#Column_Spans)

Alan
___________________________________________________________________________________
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] 9+ messages in thread

* Re: span ROWS in \starttables?
  2008-09-12  8:27     ` Alan BRASLAU
  2008-09-12  8:51       ` Wolfgang Schuster
@ 2008-09-12 13:37       ` Aditya Mahajan
  2008-09-15 12:49         ` Indexing macros Alan BRASLAU
  1 sibling, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2008-09-12 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 12 Sep 2008, Alan BRASLAU wrote:

> On Friday 12 September 2008 08:34:15 Wolfgang Schuster wrote:
>> On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
>>>
>>> Is there any mechanism to span ROWS in (\start)tables
>>> similar to column spanning through \use{3}{}?
>>> The aim is to produce a multi-row column entry
>>> as can be done via \bTD[nr=3] in \bTABLE.
>>
>> \NC \use{3} ... \NC ...
>>
>> or
>>
>> \NC \THREE ... \NC ...
>>
>> You can find more information on the wiki page:
>> http://wiki.contextgarden.net/Table
>>
>> Wolfgang
>
> This mechanism spans COLUMNS not rows.
>
> I would like to produce
> ---------
> |    | b |
> |    |---|
> | A | c |
> |    |---|
> |    | d |
> ---------
> using \starttables,
> as can be done with:
> \setupTABLE[c][1][align=lohi]
> \bTABLE
> \bTR \bTC[nr=3]  A \eTC\bTC b \eTC \eTR
> \bTR \bTC c \eTC \eTR
> \bTR \bTC d \eTC \eTR
> \eTABLE
>
> Note that:
> \starttables[|c|c|]
> \HL
> \VL \VL b \VL\AR
> \DC \DL \DR
> \VL A \VL c \VL\AR
> \DC \DL \DR
> \VL \VL d \VL\LR
> \HL
> \stoptables
> does not quite do the job,
> since the aim is to put a tall object
> "A" spanning the three rows.


You can use \LOW and \LOWER.
See http://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf Section 6.


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] 9+ messages in thread

* Re: Indexing macros
  2008-09-12 13:37       ` Aditya Mahajan
@ 2008-09-15 12:49         ` Alan BRASLAU
  0 siblings, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2008-09-15 12:49 UTC (permalink / raw)
  To: ntg-context

On Tuesday 3 December 2002 17:57:00 Hans Hagen wrote:
> Copied from the manual source: 
...
> \index {form::entry}

The following minimal example works as expected:
\setupregister[index][au][textstyle=\sc]
\def\Index#1{\index{#1}#1}
\def\Author#1{\index{au::#1}#1}
\starttext
The \index[TeX]{\TeX}\TeX \Index{typesetting} system (\Author{Knuth})
\page
\completeindex
\stoptext

Within a large project using the above definitions, author entries in the index 
are typeset normally, not in \sc.
However, if I use
\setupregister[index][au][textstyle=boldslanted]
I do get bold-slanted entries in my large project. Have I misunderstood the 
use of setupregister, or is this a bug?
Thank you, in advance.

Alan

___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2008-09-15 12:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-11 20:58 width of cell in TABLE Peter Münster
2008-09-12  6:13 ` span ROWS in \starttables? Alan BRASLAU
2008-09-12  6:34   ` Wolfgang Schuster
2008-09-12  8:27     ` Alan BRASLAU
2008-09-12  8:51       ` Wolfgang Schuster
2008-09-12  9:21         ` Alan BRASLAU
2008-09-12 13:37       ` Aditya Mahajan
2008-09-15 12:49         ` Indexing macros Alan BRASLAU
2008-09-12  6:31 ` width of cell in TABLE Wolfgang Schuster

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).