Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread MASON Peter J
>You introduce "spurious spaces" (line break sometimes adds a space) in
> you loops. See ...

Yes, you're right. A programmer, I tend to think that white space is
always good for readability. Thanks for that tip.

But I DO like the \dorecurse(...) version better. I didn't know of this
macro.

I couldn't survive context with this list! Thanks very much.

IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
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
___


Re: [NTG-context] need help with creating a grid with context

2007-10-09 Thread MASON Peter J
Perhaps I ought to tell what I'm expecting :-) ...
 
Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately 
over the whole page.
 
The context code supplied produces successive rows with an offset to the right.
 
Have I missed something obvious?

IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
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
___


[NTG-context] need help with creating a grid with context

2007-10-09 Thread MASON Peter J
I'm trying to layout a grid of bullets. The results isn't the expected one. 
Perhaps someone could offer help here? Thanks.

Here's the sort of thing I'm doing 

\setuplayout[leftmargin=0pt, leftmargindistance=0pt, backspace=0pt, 
rightmargin=0pt, rightmargindistance=0pt, cutspace=0pt, width=middle, 
topspace=0pt, header=0pt, headerdistance=0pt, footer=0pt, footerdistance=0pt, 
bottomspace=0pt, height=middle]
%\showlayout

\starttext
\setuppositioning[unit=cm]
\startpositioning
\newcount\Row

\Row= 0
\loop
{
\newcount\Col

\Col = 0
\loop
\position(\Col, \Row) {$\bullet$}
\ifnum\Col < 14
\advance\Col by 1
\repeat
}
\ifnum\Row < 36
\advance\Row by 1
\repeat
\stoppositioning
\stoptext


IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
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
___


Re: [NTG-context] spreading natural tables across the page

2007-04-09 Thread MASON Peter J
Thankyou, but I'm seeking a little more. This example gives columns of equal 
width. I need to be able to control width for each col, viz some I want tight 
fitting, others not. Seems that I can do this if I'm explicit about setting 
width= per column, but with Latex using "tabular*" I didn't need to set width 
explicitly for each col. Does this make sense? If so then howto?
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Wolfgang Schuster
Sent: Thursday, 5 April 2007 4:16 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spreading natural tables across the page




2007/4/5, MASON Peter J < [EMAIL PROTECTED]>: 

I'm trying to have my tables extend across the full (\textwidth) of the page. 
In LaTeX I was using tabular*, specifying a \textwidth for width, and with 
approp use of  @{\extracolsep\fill}} bu am not having any success. Basically, 
in ConteXT I want odd columns to act as labels and be tight fitting but even 
cols to be the values an NOT be tight-fitting, within a page-wide table, ie 
some tight, some not. As well, I' d like not to be explicitly specifying column 
width. 

I saw examples using option=stretch somewhere but am not able to get my use of 
same happening. As well, I' d like not to be explicitly specifying column 
width. Could a kind person please point me to an example of this usage. 

Thanks.


Hi Peter,

\starttext

\bTABLE[option=stretch]
  \bTR
\bTD Left \eTD
\bTD Right \eTD
  \eTR
\eTABLE

\stoptext 

Wolfgang
 




IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] natural tables - first row not gray

2007-04-09 Thread MASON Peter J
Thanks. Yes, that works better. Is there some general I can draw from this?
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Wolfgang Schuster
Sent: Thursday, 5 April 2007 4:26 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] natural tables - first row not gray




2007/4/5, MASON Peter J < [EMAIL PROTECTED]>: 

G'day, firstly thanks for your contextgarden.net website and the "live-context" 
facility. I checked my results against it. Could I seek help on this please. 

I'm expecting rows 2-4 of the table resulting from the segment below to have 
odd columns in rows 2-4 with white-on-black but all columns are coming out as 
black-on-white. I also tried completely specifying it by supplying 
\setupTABLE[even][2-4] ... as well. 

Something obvious I expect, but I'm missing it. Thanks. 


\setupcolors[state=start] 
\starttext 
\bTABLE 
\setupTABLE[first][first][align=middle, 
background=color,backgroundcolor=gray,foregroundcolor=black] 
\setupTABLE[odd][2,3,4][align=left,background=color,backgroundcolor=black,foregroundcolor=white]

Hi Peter,

can you try the follwing setups:

\setupTABLE[c][odd][align=left,background=color,backgroundcolor=black,foregroundcolor=white]
\setupTABLE[r][first][align=middle,background=color,backgroundcolor=gray,foregroundcolor=black]

Wolfgang 


\bTR 
\bTD [nc=6] Prime Unit \eTD 
\eTR 
\bTR 
\bTD Plate: \eTD 
\bTD x \eTD 
\bTD State: \eTD 
\bTD s \eTD 
\bTD Type: \eTD 
\bTD t \eTD 
\eTR 
\bTR 
\bTD Make: \eTD 
\bTD  \eTD 
\bTD GCM: \eTD 
\bTD [nc=3]  \eTD 
\eTR 
\bTR 
\bTD Chassis: \eTD 
\bTD  \eTD 
\bTD GVM: \eTD 
\bTD [nc=3] vvv \eTD 
\eTR 
\eTABLE 
\stoptext 



IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] spreading natural tables across the page

2007-04-04 Thread MASON Peter J
I'm trying to have my tables extend across the full (\textwidth) of the page. 
In LaTeX I was using tabular*, specifying a \textwidth for width, and with 
approp use of  @{\extracolsep\fill}} bu am not having any success. Basically, 
in ConteXT I want odd columns to act as labels and be tight fitting but even 
cols to be the values an NOT be tight-fitting, within a page-wide table, ie 
some tight, some not. As well, I' d like not to be explicitly specifying column 
width.

I saw examples using option=stretch somewhere but am not able to get my use of 
same happening. As well, I' d like not to be explicitly specifying column 
width. Could a kind person please point me to an example of this usage.

Thanks.


IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] natural tables - first row not gray

2007-04-04 Thread MASON Peter J
G'day, firstly thanks for your contextgarden.net website and the "live-context" 
facility. I checked my results against it. Could I seek help on this please.

I'm expecting rows 2-4 of the table resulting from the segment below to have 
odd columns in rows 2-4 with white-on-black but all columns are coming out as 
black-on-white. I also tried completely specifying it by supplying 
\setupTABLE[even][2-4] ... as well.

Something obvious I expect, but I'm missing it. Thanks.


\setupcolors[state=start]
\starttext
\bTABLE
\setupTABLE[first][first][align=middle, 
background=color,backgroundcolor=gray,foregroundcolor=black]
\setupTABLE[odd][2,3,4][align=left,background=color,backgroundcolor=black,foregroundcolor=white]
\bTR
\bTD [nc=6] Prime Unit \eTD
\eTR
\bTR
\bTD Plate: \eTD
\bTD x \eTD
\bTD State: \eTD
\bTD s \eTD
\bTD Type: \eTD
\bTD t \eTD
\eTR
\bTR
\bTD Make: \eTD
\bTD  \eTD
\bTD GCM: \eTD
\bTD [nc=3]  \eTD
\eTR
\bTR
\bTD Chassis: \eTD
\bTD  \eTD
\bTD GVM: \eTD
\bTD [nc=3] vvv \eTD
\eTR
\eTABLE
\stoptext

IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be 
read or used by the named addressee. It is confidential and may contain legally 
privileged information. No confidentiality or privilege is waived or lost by 
any mistaken transmission to you. The RTA is not responsible for any 
unauthorised alterations to this e-mail or attachment to it. Views expressed in 
this message are those of the individual sender, and are not necessarily the 
views of the RTA. If you receive this e-mail in error, please immediately 
delete it from your system and notify the sender. You must not disclose, copy 
or use any part of this e-mail if you are not the intended recipient.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context