[NTG-context] Natural tables framecolor=white regression

2021-06-20 Thread Christoph Reller
Hi,

Consider the following MWE:

\starttext
\setupTABLE[
  rulethickness=5pt,
  framecolor=white, %red,
  background=color,
  backgroundcolor=gray,
  frame=off]
\setupTABLE[1][2][foregroundcolor=white, topframe=on]
\setupTABLE[r][2][topframe=on]
\bTABLE[setups=table:color]
  \bTR \bTD One   \eTD \bTD A \eTD \eTR
  \bTR \bTD \rotate[rotation=90]{Two} \eTD \bTD B \eTD \eTR
\eTABLE
\stoptext

Attached is the result for ConTeXt LMTX version 2021.04.09 (and earlier)
and for version 2021.06.18. In the latter case, the white frame is missing
in the first column between row 1 and 2. Changing the frame color to red,
makes the frame appear.

Could this be a bug or am I doing something wrong?

Thank you for looking into this. Cheers,
Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
Wolfgang,

Thank you very much for the information. Yes, this was the trick I was
looking for.

I haved added this information in the Wiki -
https://wiki.contextgarden.net/TABLE#Settings_for_multiple_TABLEs_in_a_single_page


Hope it is accurate enough.

Thank you once again!

-Ramkumar

On Wed, Jun 16, 2021 at 11:41 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Ramkumar KB schrieb am 16.06.2021 um 17:33:
>
> Hi,
>
> I have 2 "natural tables" in one page and it appears that I have to
> (manually) reset the columns in the second table, for those columns that I
> had set specific width. See the example below -
>
> Maybe I am missing a trick or two - or this indeed is the desired
> behavior? Thank you very much.
>
> \setupTABLE[r][each][height=0.5cm,frame=on]
> \setupTABLE[c][each][width=0.6cm]
> \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm]
> \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE
> \setupTABLE[r][each][height=1.3cm,topframe=on]
> \setupTABLE[c][each][width=1.7cm]
> \setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table
> \setupTABLE[r][1][height=0cm,topframe=off]
> \setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE
>
>
> When you need a certain setup for multiple tables you can put all
> \setupTABLE commands in a setups-environment and load these settings at the
> start of the table, e.g.
>
>
> \startsetups [tablesettings]
> \setupTABLE [r] [1] [..,..=..,..]
> \setupTABLE [c] [2] [..,..=..,..]
> \stopsetups
>
> \bTABLE[setups=tablesettings]
> ...
> \eTABLE
>
>
> When you need individual settings for each table add \start before the
> setup-commands and \stop after the table, this keeps all setups local to
> the current table, e.g.
>
> \start
>
> \setupTABLE [r] [1] [..,..=..,..]
> \setupTABLE [c] [2] [..,..=..,..]
>
> \bTABLE
> ...
> \eTABLE
>
> \stop
>
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster

Ramkumar KB schrieb am 16.06.2021 um 17:33:

Hi,

I have 2 "natural tables" in one page and it appears that I have to 
(manually) reset the columns in the second table, for those columns 
that I had set specific width. See the example below -


Maybe I am missing a trick or two - or this indeed is the desired 
behavior? Thank you very much.


\setupTABLE[r][each][height=0.5cm,frame=on] 
\setupTABLE[c][each][width=0.6cm] 
\setupTABLE[r][1][height=0cm,topframe=off] 
\setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE 
... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] 
\setupTABLE[c][each][width=1.7cm] 
\setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table\setupTABLE[r][1][height=0cm,topframe=off] 
\setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE


When you need a certain setup for multiple tables you can put all 
\setupTABLE commands in a setups-environment and load these settings at 
the start of the table, e.g.



\startsetups [tablesettings]
    \setupTABLE [r] [1] [..,..=..,..]
    \setupTABLE [c] [2] [..,..=..,..]
\stopsetups

\bTABLE[setups=tablesettings]
    ...
\eTABLE


When you need individual settings for each table add \start before the 
setup-commands and \stop after the table, this keeps all setups local to 
the current table, e.g.


\start

\setupTABLE [r] [1] [..,..=..,..]
\setupTABLE [c] [2] [..,..=..,..]

\bTABLE
    ...
\eTABLE

\stop


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
Hi,

I have 2 "natural tables" in one page and it appears that I have to
(manually) reset the columns in the second table, for those columns that I
had set specific width. See the example below -

Maybe I am missing a trick or two - or this indeed is the desired behavior?
Thank you very much.

\setupTABLE[r][each][height=0.5cm,frame=on]
\setupTABLE[c][each][width=0.6cm]
\setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm]
\setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE
\setupTABLE[r][each][height=1.3cm,topframe=on]
\setupTABLE[c][each][width=1.7cm]
\setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table
\setupTABLE[r][1][height=0cm,topframe=off]
\setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE

- Ramkumar
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-10-01 Thread Denis Maier

Am 30.09.2020 um 22:03 schrieb Wolfgang Schuster:



Denis Maier schrieb am 30.09.2020 um 21:54:

Hi,

spaceinbetween seems to have no effect in this example:

===
\setupTABLE [spaceinbetween=25pt,split=yes]


A few options need [start] when you set them before \bTABLE.

\setupTABLE [split=yes]
\setupTABLE [start] [spaceinbetween=25pt]


Thanks. What exactly does [start] do?


\starttext

\bTABLE

\dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR}

\eTABLE


Try to avoid blank lines in tables, it shouldn't matter in this case 
but in certain cases this can lead to unwanted whitespace.

Thanks for the hint.

Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Wolfgang Schuster



Denis Maier schrieb am 30.09.2020 um 21:54:

Hi,

spaceinbetween seems to have no effect in this example:

===
\setupTABLE [spaceinbetween=25pt,split=yes]


A few options need [start] when you set them before \bTABLE.

\setupTABLE [split=yes]
\setupTABLE [start] [spaceinbetween=25pt]


\starttext

\bTABLE

\dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR}

\eTABLE


Try to avoid blank lines in tables, it shouldn't matter in this case but 
in certain cases this can lead to unwanted whitespace.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Denis Maier

Hi,

spaceinbetween seems to have no effect in this example:

===
\setupTABLE [spaceinbetween=25pt,split=yes]

\starttext

\bTABLE

\dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR}

\eTABLE

\stoptext
==

What am I missing?

Best,
Denis

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz

On 02/28/2018 11:35 PM, Hans Hagen wrote:
page 26 of the xtable manual ... you define tagged settings and can use 
these tag for cells and rows


OK Hans, I see that, thanks a lot! But it still means I have to tag the 
cells/rows? As always, I'm playing with xml and Lua and am trying to 
write some universal code that allows me to try out different table 
mechanisms. Just to explain (don't spend time on this, I'm just playing 
around): I collect my table settings like this:


\startsetups section_table
\setupframedtablecolumn [1] [width=0.7cm,align=left]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\stopsetups

In my Lua file, I start tables like this:

starttable()
startrow()
startcell() etc.

and can switch from one mechanism to another by having these aliases:

starttable = context.startframedtable
starttable = context.bTABLE
starttable  = context.startembeddedxtable

and commenting out the mechanisms that I don't need. But it looks like 
the xtable needs additional arguments to work...


Thanks, and all best

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] natural tables to extreme tables

2018-02-28 Thread Hans Hagen

On 2/28/2018 10:28 PM, Thomas A. Schmitz wrote:

Hi,

for my experimenting with tables: is there a way to set up individual 
columns in xtables? Maybe I'm thick tonight, but I couldn't find 
anything in the manual or the source. If I have this setup


\setupTABLE [frame=on,split=repeat]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\setupTABLE [column] [2] [width=0.5cm,align=left]
\setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}]

how would this translate into \setupxtable?


page 26 of the xtable manual ... you define tagged settings and can use 
these tag for cells and rows


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz

Hi,

for my experimenting with tables: is there a way to set up individual 
columns in xtables? Maybe I'm thick tonight, but I couldn't find 
anything in the manual or the source. If I have this setup


\setupTABLE [frame=on,split=repeat]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\setupTABLE [column] [2] [width=0.5cm,align=left]
\setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}]

how would this translate into \setupxtable?

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-12-02 Thread Alan BRASLAU
On Mon, 30 Nov 2015 13:23:28 +0100
Wolfgang Schuster  wrote:

> You can use the boffset key to set a different offset value for the
> bottom of the cell.
> 
> The correct the position of the frame at the bottom you can use
> metapost to draw the frame as background graphic.

Thanks Wolfgang.

boffset (or toffset) works to offset the text in an individual cell.
But when using background=color,backgroundcolor=lightgray (for example),
this offset of course gets colored.

I now have tried

\bTABLE
  [option=stretch,
   background=color,
   backgroundcolor=middlegray,
   columndistance=.25em,
   frame=off]
  ...
  \bTR
[topframe=on,framecolor=white,rulethickness=.25em]
...
  \eTR
  ...
\eTABLE

with success.

Note, however, if I move the settings to
  \bTABLE [framecolor=white,rulethickness=.25em,...]
this will then interfere and wipe-out the columndistance=.25em setting!

I can get it to work (with a subtly different result) if I use:
  \bTABLE [rulethickness=.25em,columndistance=.5em]
...
\bTR [topframe=on,framecolor=white]
  ...
\eTR
...
  \eTABLE
and this makes sense (since the calculation of cell widths must take
into account all of rulethickness, offset, and columndistance) but it
is somewhat counter-intuitive.

I'll wiki-fy this...

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

Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-12-02 Thread Wolfgang Schuster

Alan BRASLAU 
2. Dezember 2015 um 17:25
On Mon, 30 Nov 2015 13:23:28 +0100

Thanks Wolfgang.

boffset (or toffset) works to offset the text in an individual cell.
But when using background=color,backgroundcolor=lightgray (for example),
this offset of course gets colored.
You can take care of this when you use metapost to draw the frame and 
background.


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

Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-11-30 Thread Wolfgang Schuster

Alan BRASLAU 
26. November 2015 um 02:44
In natural tables
http://wiki.contextgarden.net/TABLE

the parameters
columndistance=dimension,
and
spaceinbetween=dimension,
will set the gaps between columns and rows, respectively.

Is there some way of specifying row gaps for specific rows?
For example, say that I only want a gap after the first row.
I tried:

\bTABLE
\bTR [spaceinbetween=.25em]
\bTD 1 \eTD
\bTD 2 \eTD
\eTR
\bTR
\bTD A \eTD
\bTD B \eTD
\eTR
\bTR
\bTD a \eTD
\bTD b \eTD
\eTR
\eTABLE

Alternately, I tried
\setupTABLE [r][1][spaceinbetween=.25em]

but these do not work.


One might think about trying

\bTR [bottomframe=on,framecolor=white,rulethickness=.25em]
...
\eTR

but this presents several problems:
1) When using background=color, the background color gives a hairline
overflow beyond the rule, at least using the pdf viewers that I have on
my computer.
2) there appears to be some interference between setting rulethickness
and columndistance, so that spaces between columns disappear when
putting a thick bottomframe. Of course, one could kludge a column
separation using a rightframe, but this is not satisfactory.
3) The use of a white rule when one really wants to leave some space is
not very satisfying.

Does anyone have any suggestions?
You can use the boffset key to set a different offset value for the 
bottom of the cell.


The correct the position of the frame at the bottom you can use metapost 
to draw

the frame as background graphic.

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

[NTG-context] natural tables and columndistance/spaceinbetween

2015-11-25 Thread Alan BRASLAU
In natural tables
http://wiki.contextgarden.net/TABLE

the parameters
  columndistance=dimension,
and
  spaceinbetween=dimension,
will set the gaps between columns and rows, respectively.

Is there some way of specifying row gaps for specific rows?
For example, say that I only want a gap after the first row.
I tried:

\bTABLE
  \bTR [spaceinbetween=.25em]
 \bTD 1 \eTD
 \bTD 2 \eTD
  \eTR
  \bTR
 \bTD A \eTD
 \bTD B \eTD
  \eTR
  \bTR
\bTD a \eTD
\bTD b \eTD
  \eTR
\eTABLE

Alternately, I tried
\setupTABLE [r][1][spaceinbetween=.25em]

but these do not work.


One might think about trying

  \bTR [bottomframe=on,framecolor=white,rulethickness=.25em]
  ...
  \eTR

but this presents several problems:
1) When using background=color, the background color gives a hairline
overflow beyond the rule, at least using the pdf viewers that I have on
my computer.
2) there appears to be some interference between setting rulethickness
and columndistance, so that spaces between columns disappear when
putting a thick bottomframe. Of course, one could kludge a column
separation using a rightframe, but this is not satisfactory.
3) The use of a white rule when one really wants to leave some space is
not very satisfying.

Does anyone have any suggestions?
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-19 Thread Christoph Reller
On 11/5/2014 21:50 PM, Christoph Reller wrote:
 On 11/5/2014 10:28 AM, Hans Hagen wrote:
  On 11/5/2014 8:09 AM, Christoph Reller wrote:
   Thank you very much Hans!
  
   Maybe you could tell me why the following still produces a space in
   front of the full stop:
  
   \definetype[ctype][compact=absolute]
   \starttext
   \bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
   \eTABLE
   \stoptext
 
  because the absolute cleaner only deals with \foo { and \foo [
 
   If this issue is resolved I will be glad to wikify.
 
  i'll add the . to the filter criteria

 Thank you for the explanation.  I am not sure if it is a wise idea to add
 only . (the full stop).  I tried the following characters, and they all
 are preceded by a space:

   . - _ # % , ; @ !

 Basically, what I want is to write a file system path name such as
 C:\Path_to-my\file.ext.  The above characters are all valid file system
 characters.  Is there a better solution?  Or are you willing to add all
the
 above (maybe except for # and %) to the absolute cleaner?

For anybody interested in this: I have decided to resort to
\hyphenatedurl{...}. This means that I have to escape \ as \\, # as \# and
% as \letterpercent. Let me know if you have a better solution.

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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-09 Thread Keith Schultz
hello all,

i do not have nfts, but there are assume users that do not live in western 
countries
and use characters that are not in ascii!!

just a thought.

regards
Keith.


 Am 07.11.2014 um 14:44 schrieb Christoph Reller christoph.rel...@gmail.com:
 
 On Fri, 7 Nov 2014 09:11:09 +0100
 Alan Braslau alan.bras...@cea.fr mailto:alan.bras...@cea.fr wrote
  On Thu, 6 Nov 2014 16:15:36 +0100
  Christoph Reller christoph.rel...@gmail.com 
  mailto:christoph.rel...@gmail.com wrote:
  
   Of the above characters the following are disallowed on NTFS
  
  Not everyone uses NTFS.
 
 Another reason for not making a file-name cleaner as such, but rather 
 restricting the characters to ascii.

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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-07 Thread Alan BRASLAU
On Thu, 6 Nov 2014 16:15:36 +0100
Christoph Reller christoph.rel...@gmail.com wrote:

 Of the above characters the following are disallowed on NTFS

Not everyone uses NTFS.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-07 Thread Christoph Reller
On Fri, 7 Nov 2014 09:11:09 +0100
Alan Braslau alan.bras...@cea.fr wrote
 On Thu, 6 Nov 2014 16:15:36 +0100
 Christoph Reller christoph.rel...@gmail.com wrote:

  Of the above characters the following are disallowed on NTFS

 Not everyone uses NTFS.

Another reason for not making a file-name cleaner as such, but rather
restricting the characters to ascii.

Regards,
Christoph
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-06 Thread Hans Hagen

On 11/5/2014 9:50 PM, Christoph Reller wrote:

On 11/5/2014 10:28 AM, Hans Hagen wrote:
  On 11/5/2014 8:09 AM, Christoph Reller wrote:
   Thank you very much Hans!
  
   Maybe you could tell me why the following still produces a space in
   front of the full stop:
  
   \definetype[ctype][compact=absolute]
   \starttext
   \bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
   \eTABLE
   \stoptext
 
  because the absolute cleaner only deals with \foo { and \foo [
 
   If this issue is resolved I will be glad to wikify.
 
  i'll add the . to the filter criteria

Thank you for the explanation.  I am not sure if it is a wise idea to
add only . (the full stop).  I tried the following characters, and
they all are preceded by a space:

   . - _ # % , ; @ !

Basically, what I want is to write a file system path name such as
C:\Path_to-my\file.ext.  The above characters are all valid file system
characters.  Is there a better solution?  Or are you willing to add all
the above (maybe except for # and %) to the absolute cleaner?


we could have a specific filename cleaner but of course there will be 
users who have paths that have spaces after the \ ... okay, we could 
just not support evil paths like that


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-06 Thread Christoph Reller
On 11/6/2014 9:58 AM, Hans Hagen wrote:
 we could have a specific filename cleaner but of course there will be
 users who have paths that have spaces after the \ ... okay, we could
 just not support evil paths like that

 Hans

A rigorous filename cleaner would have to treat a huge number of possible
Unicodes. This is overkill. I believe the best would be to have a cleaner
for all ascii symbols. That would fit most purposes of writing file names
and URIs:

  !#$%'*()+,-./:;=?@[\]^_`{|}~

Of the above characters the following are disallowed on NTFS:

  */:?|

Still I think they should be included in the cleaner. If % or # pose
problems then they may be omitted.

With the current absolute-cleaner, a space after \ is preserved
correctly, so I don't understand your comment:

\definetype[ctype][compact=absolute]\starttext
\bTABLE\bTR\bTD \ctype{\a\ b} \eTD\eTR\eTABLE\stoptext

I would be glad if you could implement such a ascii-symbol-cleaner.

Thanks,

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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-05 Thread Hans Hagen

On 11/5/2014 8:09 AM, Christoph Reller wrote:

  On 11/2/2014 2:27 PM, Christoph Reller wrote:
   Hi,
  
   Why does \type{...} introduce spaces when used inside natural tables?
  
   MWE:
  
   \starttext
   \type{\test\test} %- no space introduced
   \bTABLE
   \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
   \eTABLE
   \stoptext
 
  it's the way tex works (when passing arguments) .. you can use this (and
  wikify it):
 
  \definetype[ctype][compact=absolute]
 
  \bTABLE
   \bTR \bTD \ctype{\test\test} \eTD \eTR
  \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in
front of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
   \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext


because the absolute cleaner only deals with \foo { and \foo [


If this issue is resolved I will be glad to wikify.


i'll add the . to the filter criteria

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-05 Thread Christoph Reller
On 11/5/2014 10:28 AM, Hans Hagen wrote:
 On 11/5/2014 8:09 AM, Christoph Reller wrote:
  Thank you very much Hans!
 
  Maybe you could tell me why the following still produces a space in
  front of the full stop:
 
  \definetype[ctype][compact=absolute]
  \starttext
  \bTABLE
 \bTR \bTD \ctype{\test.txt} \eTD \eTR
  \eTABLE
  \stoptext

 because the absolute cleaner only deals with \foo { and \foo [

  If this issue is resolved I will be glad to wikify.

 i'll add the . to the filter criteria

Thank you for the explanation.  I am not sure if it is a wise idea to add
only . (the full stop).  I tried the following characters, and they all
are preceded by a space:

  . - _ # % , ; @ !

Basically, what I want is to write a file system path name such as
C:\Path_to-my\file.ext.  The above characters are all valid file system
characters.  Is there a better solution?  Or are you willing to add all the
above (maybe except for # and %) to the absolute cleaner?

Thank you in advance for your help.

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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-04 Thread Christoph Reller
 On 11/2/2014 2:27 PM, Christoph Reller wrote:
  Hi,
 
  Why does \type{...} introduce spaces when used inside natural tables?
 
  MWE:
 
  \starttext
  \type{\test\test} %- no space introduced
  \bTABLE
  \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
  \eTABLE
  \stoptext

 it's the way tex works (when passing arguments) .. you can use this (and
 wikify it):

 \definetype[ctype][compact=absolute]

 \bTABLE
  \bTR \bTD \ctype{\test\test} \eTD \eTR
 \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in front
of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext

If this issue is resolved I will be glad to wikify.

Regards,
Christoph
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Natural tables introduces spaces in \type

2014-11-03 Thread Christoph Reller
On 11/2/2014 2:54 PM, Hans Hagen wrote:
 On 11/2/2014 2:27 PM, Christoph Reller wrote:
  Hi,
 
  Why does \type{...} introduce spaces when used inside natural tables?
 
  MWE:
 
  \starttext
  \type{\test\test} %- no space introduced
  \bTABLE
  \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
  \eTABLE
  \stoptext

 it's the way tex works (when passing arguments) .. you can use this (and
 wikify it):

 \definetype[ctype][compact=absolute]

 \bTABLE
  \bTR \bTD \ctype{\test\test} \eTD \eTR
 \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in front
of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext

Any feedback is welcome.

Regards,
Christoph
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Natural tables introduces spaces in \type

2014-11-02 Thread Christoph Reller
Hi,

Why does \type{...} introduce spaces when used inside natural tables?

MWE:

\starttext
\type{\test\test} %- no space introduced
\bTABLE
\bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
\eTABLE
\stoptext

Kind Regards,
Christoph
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-02 Thread Hans Hagen

On 11/2/2014 2:27 PM, Christoph Reller wrote:

Hi,

Why does \type{...} introduce spaces when used inside natural tables?

MWE:

\starttext
\type{\test\test} %- no space introduced
\bTABLE
\bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
\eTABLE
\stoptext


it's the way tex works (when passing arguments) .. you can use this (and 
wikify it):


\definetype[ctype][compact=absolute]

\bTABLE
\bTR \bTD \ctype{\test\test} \eTD \eTR
\eTABLE

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Natural Tables

2014-05-12 Thread hwitloc


What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?



\starttext

\bTABLE
  \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
  \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
\eTABLE

\stoptext

  result looks the same to me..?

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


Re: [NTG-context] Natural Tables

2014-05-12 Thread Mikael P. Sundqvist
The only place in the source where bTC is mentioned is in
tabl-ntb.mkiv (and tabl-ntb.mkii), which says says

\unexpanded\def\bTC#1\eTC{\bTD#1\eTD} \let\eTC\relax
\unexpanded\def\bTX#1\eTX{\bTD#1\eTD} \let\eTX\relax
\unexpanded\def\bTY#1\eTY{\bTR#1\eTR} \let\eTY\relax

I guess that means \bTC and \bTD are the same (as is \bTX).

/Mikael


On Mon, May 12, 2014 at 9:42 AM,  hwit...@gmail.com wrote:


 What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?

 

 \starttext

 \bTABLE
   \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
   \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
 \eTABLE

 \stoptext

   result looks the same to me..?

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


Re: [NTG-context] Natural Tables

2014-05-12 Thread Wolfgang Schuster

Am 12.05.2014 um 09:42 schrieb hwit...@gmail.com:

 
 
 What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?
 
 
 
 \starttext
 
 \bTABLE
  \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
  \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
 \eTABLE
 
 \stoptext
 
   result looks the same to me..?

The two groups

- \bTC … \eTC and
- \bTX … \eTX

are the same as \bTD … \eTD and the group

- \bTY … \eTY

is the same as \bTR … \eTR.

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


Re: [NTG-context] Natural Tables

2014-05-12 Thread hwitloc

Thank you Mikael and also Wolfgang for the response to my query.

Regards,
Whitloc

Mikael P. Sundqvist mic...@gmail.com wrote:

 The only place in the source where bTC is mentioned is in
 tabl-ntb.mkiv (and tabl-ntb.mkii), which says says
 
 \unexpanded\def\bTC#1\eTC{\bTD#1\eTD} \let\eTC\relax
 \unexpanded\def\bTX#1\eTX{\bTD#1\eTD} \let\eTX\relax
 \unexpanded\def\bTY#1\eTY{\bTR#1\eTR} \let\eTY\relax
 
 I guess that means \bTC and \bTD are the same (as is \bTX).
 
 /Mikael
 
 
 On Mon, May 12, 2014 at 9:42 AM,  hwit...@gmail.com wrote:
 
 
  What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?
 
  
 
  \starttext
 
  \bTABLE
\bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
\bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
  \eTABLE
 
  \stoptext
 
    result looks the same to me..?
 
  Thanks
  ___
  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  : http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  ___
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables in multiple columns

2012-12-25 Thread Wolfgang Schuster

Am 25.12.2012 um 05:49 schrieb Jannik Voges forumj...@icloud.com:

 Hello ConTeXt-Users,
 
 
 
 I get a strange behavior (latest beta), when I try to typeset natural tables 
 and normal text in multiple columns. When I type normal text into a column 
 and add a natural table which total length is small enough to fit into the 
 column, the table is placed into the column with the text. When the total 
 length is too large, the table starts in the next column and leaves the rest 
 of the column empty (of course I used split=yes). I would expect that the 
 table starts in the column with the text and is split properly.
 
 Minimal example:
 
 small table
 
 \starttext
 \startcolumns[n=3]
 \dorecurse{10}{Test\crlf}
 \bTABLE[split=yes]
 \dorecurse{10}
 {\bTR \bTD a\eTD \bTD b \eTD \eTR}
 \eTABLE
 \stopcolumns
 \stoptext
 
 large table
 
 \starttext
 \startcolumns[n=3]
 \dorecurse{10}{Test\crlf}
 \bTABLE[split=yes]
 \dorecurse{20}
 {\bTR \bTD a\eTD \bTD b \eTD \eTR}
 \eTABLE
 \stopcolumns
 \stoptext

Use xtables, natural tables are not so easy to split in a columns environment.

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


[NTG-context] Natural Tables in multiple columns

2012-12-24 Thread Jannik Voges
Hello ConTeXt-Users,



I get a strange behavior (latest beta), when I try to typeset natural tables 
and normal text in multiple columns. When I type normal text into a column and 
add a natural table which total length is small enough to fit into the column, 
the table is placed into the column with the text. When the total length is too 
large, the table starts in the next column and leaves the rest of the column 
empty (of course I used split=yes). I would expect that the table starts in the 
column with the text and is split properly.

Minimal example:

small table

\starttext
\startcolumns[n=3]
\dorecurse{10}{Test\crlf}
\bTABLE[split=yes]
\dorecurse{10}
{\bTR \bTD a\eTD \bTD b \eTD \eTR}
\eTABLE
\stopcolumns
\stoptext

large table

\starttext
\startcolumns[n=3]
\dorecurse{10}{Test\crlf}
\bTABLE[split=yes]
\dorecurse{20}
{\bTR \bTD a\eTD \bTD b \eTD \eTR}
\eTABLE
\stopcolumns
\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables---Including a bit of cell style in a \define

2011-11-23 Thread Hans Hagen

On 22-11-2011 13:08, Pavneet Arora wrote:

I am creating documentation labeling the circuits of electrical and
network panels for a project of mine.

Enclosed is a minimal example.

What I would like is to define two macros: \unused and \spare (\unused
referring to a circuit with no breaker installed, while \spare referring
to a circuit with a breaker, but no load). I wish these definitions to
not only include the represented text and font directives, i.e., {\tt
[Unused]}, but also shade the cell in a background color. However, I
cannot seem to figure out how to do that. Including the
`[background=color,backgroundcolor=gray]' in the \define seems to be
expanded back simply as text.

Any suggestions?


\define\unused
  {\inframed
[foregroundstyle=type,
 background=color,
 backgroundcolor=gray,
 frame=off]
   {[Unused]}}



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables---Including a bit of cell

2011-11-23 Thread Pavneet Arora

Hans,

This didn't quite achieve what I was looking for.  I was hoping for the 
formatting of circuit 4 in the output file test.pdf, rather than what was 
produced for circuit 8.  I modified the definition of \spare so that by default 
a 15A breaker is assumed unless otherwise specified.


However, a more pressing problem is this:

If I remove the comments from the row previous, i.e., I have two rows for which 
I want nr=2, I get the strange artifact in test+.pdf where the second row gets 
wrapped up a row.  Even with the comments in place, the last row is single 
height.  What I really want are two double height rows similar to circuits 2 and 
4 but for the entire row.


advTHANKSance


Message: 1
Date: Wed, 23 Nov 2011 09:38:51 +0100
From: Hans Hagenpra...@wxs.nl
To: pavneet_ar...@waroc.com,mailing list for ConTeXt users
ntg-context@ntg.nl
Subject: Re: [NTG-context] Natural Tables---Including a bit of cell
style in a \define
Message-ID:4eccb11b.2010...@wxs.nl
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 22-11-2011 13:08, Pavneet Arora wrote:

I am creating documentation labeling the circuits of electrical and
network panels for a project of mine.

Enclosed is a minimal example.

What I would like is to define two macros: \unused and \spare (\unused
referring to a circuit with no breaker installed, while \spare referring
to a circuit with a breaker, but no load). I wish these definitions to
not only include the represented text and font directives, i.e., {\tt
[Unused]}, but also shade the cell in a background color. However, I
cannot seem to figure out how to do that. Including the
`[background=color,backgroundcolor=gray]' in the \define seems to be
expanded back simply as text.

Any suggestions?


\define\unused
{\inframed
  [foregroundstyle=type,
   background=color,
   backgroundcolor=gray,
   frame=off]
 {[Unused]}}



-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
-


--
-
- Pavneet Arora

\setuppapersize[legal]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{
{\inframed
 [foregroundstyle=type,
  background=color,
  backgroundcolor=gray,
  frame=off]
{\tt [Unused]}}
}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb Electrical Room Electrical Panel}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Siemens}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][4,6][topframe=on]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]

\midaligned{
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD 1A \eTD \bTD Roof Heating Control Panel \eTD
		\bTD [nr=2] 2 \eTD \bTD [nr=2] F1 Master Ensuite Steam Unit \eTD
	\eTR
	\bTR
		\bTD 1B \eTD \bTD Recreation Room Plugs \eTD
	\eTR
	\bTR
		\bTD 3A \eTD \bTD Attic Roof Drain Heating Cables  \eTD
		\bTD [nr=2] 4 \eTD \bTD [background=color,backgroundcolor=gray,nr=2]  \spare \eTD
	\eTR
	\bTR
		\bTD 3B \eTD \bTD \spare \eTD
	\eTR
%	\bTR
%		\bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD
%		\bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD
%	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD
		\bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext


test.pdf
Description: Adobe PDF document


test+.pdf
Description: Adobe PDF document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Natural Tables---Including a bit of cell

2011-11-23 Thread Aditya Mahajan

On Wed, 23 Nov 2011, Pavneet Arora wrote:


Hans,

This didn't quite achieve what I was looking for.  I was hoping for the 
formatting of circuit 4 in the output file test.pdf, rather than what was 
produced for circuit 8.  I modified the definition of \spare so that by 
default a 15A breaker is assumed unless otherwise specified.


A slightly ugly solution.

\def\unusedbTD
{\dosingleempty\dounusedbTD}

\def\dounusedbTD[#1]%
{\bTD[foregroundstyle=type,background=color, 
backgroundcolor=gray,frame=off] [Unused] }

and then use


   \bTD [nr=2] 8 \eTD \unusedbTD[nr=2] \eTD

You can also look at xtables for an easier way to change settings of cell.

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


[NTG-context] Natural Tables---Including a bit of cell style in a \define

2011-11-22 Thread Pavneet Arora
I am creating documentation labeling the circuits of electrical and network 
panels for a project of mine.


Enclosed is a minimal example.

What I would like is to define two macros:  \unused and \spare (\unused 
referring to a circuit with no breaker installed, while \spare referring to a 
circuit with a breaker, but no load).  I wish these definitions to not only 
include the represented text and font directives, i.e., {\tt [Unused]}, but also 
shade the cell in a background color.  However, I cannot seem to figure out how 
to do that.  Including the `[background=color,backgroundcolor=gray]' in the 
\define seems to be expanded back simply as text.


Any suggestions?

advTHANKSance.

--
-
- Pavneet Arora



test.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\starttext
% \showlayout
% \showbodyfont
\define\unused{{\tt [Unused]}}
\define\spare{{\tt [Spare]}}
\startalignment[center]
{\tfb\sc Storage Room Electrical Panel}
\blank
{\tfa Panel Model: Cutler-Hammer}
\blank
{\tfb \tt [DRAFT---To Be Verfied]}
\blank[2*big]

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,offset=2mm]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][3][leftframe=on]
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[1,2][6][bottomframe=on]
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD [nr=2] 1 \eTD \bTD [nr=4] Electrical Baseboard Heater \eTD
		\bTD 2A \eTD \bTD[background=color,backgroundcolor=gray] \unused \eTD
	\eTR
	\bTR
		\bTD 2B \eTD \bTD \unused \eTD
	\eTR
	\bTR
		\bTD [nr=2] 3 \eTD
		\bTD 4A \eTD \bTD Island Plugs \eTD
	\eTR
	\bTR
		\bTD 4B \eTD \bTD Dishwasher \eTD
	\eTR
	\bTR
		\bTD [nr=2] 5 \eTD \bTD [nr=2] \spare  \eTD
		\bTD 6A \eTD \bTD Freezer \eTD
	\eTR
	\bTR
		\bTD 6B \eTD \bTD Counter Plugs \eTD
	\eTR
\eTABLEbody
\eTABLE
\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Natural tables (split) + setupinteraction = fail? (latest mkiv)

2011-01-09 Thread Marco Pessotto

Hello there.

See the following minimal example:

 begin 
\setupinteraction[state=start,color=black,contrastcolor=black]
\starttext
\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}

\stoptext
 end %

If I try to compile it, I get the following error:

pagesflushing realpage 1, userpage 1, subpage 1
! Missing number, treated as zero.
to be read again 
   {
\docompletefloat ...\vbox \floatcaptionattribute {
  \doifelsemainfloatbody \cu...
argument ...loat {table}{}{split}{Test}\nextbox 
  \else \docompletefloat {ta...
\thirdofthreearguments #1#2#3-#3
 
\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
  \else \docompletefloat {#1...
\dodowithnextbox ...tefloat {table}{}{split}{Test}
  \doifnotinset \v!text {spl...
...
l.11 \eTABLE
}
?

The same source compiles as expected with version 2010.12.15 (ok, there
was the bug for the numbering, but it compiled).

Bests

-- 
Marco

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


Re: [NTG-context] Natural tables (split) + setupinteraction = fail? (latest mkiv)

2011-01-09 Thread luigi scarso
On Sun, Jan 9, 2011 at 4:14 PM, Marco Pessotto melmo...@gmail.com wrote:

 Hello there.

 See the following minimal example:

  begin 
 \setupinteraction[state=start,color=black,contrastcolor=black]
 \starttext
 \placetable[split]{Test}
 {\bTABLE[split=yes]
 \dorecurse{60}{
 \bTR \bTD hello \eTD \eTR
 }
 \eTABLE}

 \stoptext
  end %

 If I try to compile it, I get the following error:

 pages            flushing realpage 1, userpage 1, subpage 1
 ! Missing number, treated as zero.
 to be read again
                   {
 \docompletefloat ...\vbox \floatcaptionattribute {
                                                  \doifelsemainfloatbody \cu...
 argument ...loat {table}{}{split}{Test}\nextbox
                                                  \else \docompletefloat {ta...
 \thirdofthreearguments #1#2#3-#3

 \xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
                                                  \else \docompletefloat {#1...
 \dodowithnextbox ...tefloat {table}{}{split}{Test}
                                                  \doifnotinset \v!text {spl...
 ...
 l.11 \eTABLE
            }
 ?

 The same source compiles as expected with version 2010.12.15 (ok, there
 was the bug for the numbering, but it compiled).

 Bests

 --
 Marco
I think splifloat is to be complete in mkiv. This works on mkii but not in mkiv:
%%from tabl-tsp.mkiv
\starttext
 \splitfloat[lines=auto,inbetween={}]
   {\placetable{\dorecurse{5}{test\recurselevel\endgraf}}}
   {\bTABLE[split=yes]
\bTR \bTD 11 \eTD \bTD \input tufte \eTD \eTR
\bTR \bTD 12 \eTD \bTD \input zapf \eTD \eTR
\bTR \bTD 13 \eTD \bTD \input bryson \eTD \eTR
\bTR \bTD 14 \eTD \bTD test  \eTD \eTR
\bTR \bTD 21 \eTD \bTD \input tufte \eTD \eTR
\bTR \bTD 22 \eTD \bTD \input zapf \eTD \eTR
\bTR \bTD 23 \eTD \bTD \input bryson \eTD \eTR
\bTR \bTD 24 \eTD \bTD test  \eTD \eTR
\bTR \bTD 31 \eTD \bTD \input tufte \eTD \eTR
\bTR \bTD 32 \eTD \bTD \input zapf \eTD \eTR
\bTR \bTD 33 \eTD \bTD \input bryson \eTD \eTR
\bTR \bTD 34 \eTD \bTD test  \eTD \eTR
\eTABLE}
\stoptext


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


Re: [NTG-context] natural tables -- split 'n grid

2010-09-12 Thread Hans Hagen

On 11-9-2010 6:03, Philipp Gesang wrote:

Hi,

line correction leads to unwanted vertical spacing in split
natural tables. Example (in both MkII and MkIV):

··8·
%\setuplayout[grid=yes] % not required to reproduce it
\starttext
\dorecurse{4}{\input knuth\par}
\startlinecorrection% fine without line correction
\bTABLE[split=yes]  % fine with split=no
\bTABLEhead
\bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR
\bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC\eTR
\bTR\bTC False\eTC\bTC True\eTC\bTC True\eTC\eTR
\bTR\bTC True\eTC\bTC True\eTC\bTC True\eTC\eTR
\eTABLEbody
\eTABLE
\stoplinecorrection
\stoptext
··8·

What am I missing here? Is line correction even recommended for
use with tables? Why isn't it ignored if grid typesetting is
switched off? Thanks in advance,


that you should not use linecorrection with split


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] natural tables -- split 'n grid

2010-09-11 Thread Philipp Gesang
Hi,

line correction leads to unwanted vertical spacing in split
natural tables. Example (in both MkII and MkIV):

··8·
%\setuplayout[grid=yes] % not required to reproduce it
\starttext
\dorecurse{4}{\input knuth\par}
\startlinecorrection% fine without line correction
\bTABLE[split=yes]  % fine with split=no
\bTABLEhead
\bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR
\bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC\eTR
\bTR\bTC False\eTC\bTC True\eTC\bTC True\eTC\eTR
\bTR\bTC True\eTC\bTC True\eTC\bTC True\eTC\eTR
\eTABLEbody
\eTABLE
\stoplinecorrection
\stoptext
··8·

What am I missing here? Is line correction even recommended for
use with tables? Why isn't it ignored if grid typesetting is
switched off? Thanks in advance,

Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgppUVXhT9VuC.pgp
Description: PGP signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Wolfgang Schuster

Am 05.01.2010 um 04:02 schrieb Curiouslearn:

 Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
 to understand your code. But will look at it more carefully later.
 
 Meanwhile, is there any further work going on on Natural Tables? Are
 there plans to introduce the ability to have borders of different
 thickness for the same cell through simple options.


A TeX based solution won't be possible without Hans but you can set
the values in TeX (\framed, \setupTABLE) and use them in MetaPost.

The following example show you what can be done.

\unprotect

\startuseMPgraphic{tableborder}

%linecap := butt ;

numeric FrameOffset, LeftRuleThickness, RightRuleThickness, TopRuleThickness, 
BottomRuleThickness ;

FrameOffset := \frameddimension{frameoffset} ;
LeftRuleThickness   := \frameddimension{leftrulethickness}   ;
RightRuleThickness  := \frameddimension{rightrulethickness}  ;
TopRuleThickness:= \frameddimension{toprulethickness};
BottomRuleThickness := \frameddimension{bottomrulethickness} ;

pair lt, rt, lb, rb ;

lt = (FrameOffset/2,OverlayHeight-FrameOffset/2) ;
rt = (OverlayWidth-FrameOffset/2,OverlayHeight-FrameOffset/2) ;
lb = (FrameOffset/2,FrameOffset/2) ;
rb = (OverlayWidth-FrameOffset/2,FrameOffset/2) ;

draw lt--rt withpen pencircle scaled TopRuleThickness;
draw lb--rb withpen pencircle scaled BottomRuleThickness ;
draw lb--lt withpen pencircle scaled LeftRuleThickness   ;
draw rb--rt withpen pencircle scaled RightRuleThickness  ;

setbounds currentpicture to OverlayBox ;

\stopuseMPgraphic

\defineoverlay
  [tableborder]
  [%\edef\topframeparameter   {\framedparameter\c!topframe   }%
   %\edef\bottomframeparameter{\framedparameter\c!bottomframe}%
   %\edef\leftframeparameter  {\framedparameter\c!leftframe  }%
   %\edef\rightframeparameter {\framedparameter\c!rightframe }%
   \useMPgraphic{tableborder}]

\setupTABLE
  [   toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness},
 leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
%  topframe=on,
%   bottomframe=on,
% leftframe=on,
%rightframe=on,
background=tableborder,
 frame=off]

\protect

\starttext

\start

\setupTABLE[y][1][bottomrulethickness=2pt]
\setupTABLE[3][3][bottomrulethickness=2pt,rightrulethickness=2pt]
\setupTABLE[1][3][bottomframe=off]

\bTABLE
\bTR
\bTD 1 \eTD
\bTD 2 \eTD
\bTD 3 \eTD
\eTR
\bTR
\bTD 4 \eTD
\bTD 5 \eTD
\bTD 6 \eTD
\eTR
\bTR
\bTD 7 \eTD
\bTD 8 \eTD
\bTD 9 \eTD
\eTR
\eTABLE

\stop

\stoptext

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


Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Curiouslearn
Thanks very much Wolfgang. Will try to play with this during this week.



On Wed, Jan 6, 2010 at 6:54 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.01.2010 um 04:02 schrieb Curiouslearn:

 Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
 to understand your code. But will look at it more carefully later.

 Meanwhile, is there any further work going on on Natural Tables? Are
 there plans to introduce the ability to have borders of different
 thickness for the same cell through simple options.


 A TeX based solution won't be possible without Hans but you can set
 the values in TeX (\framed, \setupTABLE) and use them in MetaPost.

 The following example show you what can be done.

 \unprotect

 \startuseMPgraphic{tableborder}

 %linecap := butt ;

 numeric FrameOffset, LeftRuleThickness, RightRuleThickness, TopRuleThickness, 
 BottomRuleThickness ;

 FrameOffset         := \frameddimension{frameoffset}         ;
 LeftRuleThickness   := \frameddimension{leftrulethickness}   ;
 RightRuleThickness  := \frameddimension{rightrulethickness}  ;
 TopRuleThickness    := \frameddimension{toprulethickness}    ;
 BottomRuleThickness := \frameddimension{bottomrulethickness} ;

 pair lt, rt, lb, rb ;

 lt = (FrameOffset/2,OverlayHeight-FrameOffset/2) ;
 rt = (OverlayWidth-FrameOffset/2,OverlayHeight-FrameOffset/2) ;
 lb = (FrameOffset/2,FrameOffset/2) ;
 rb = (OverlayWidth-FrameOffset/2,FrameOffset/2) ;

 draw lt--rt withpen pencircle scaled TopRuleThickness    ;
 draw lb--rb withpen pencircle scaled BottomRuleThickness ;
 draw lb--lt withpen pencircle scaled LeftRuleThickness   ;
 draw rb--rt withpen pencircle scaled RightRuleThickness  ;

 setbounds currentpicture to OverlayBox ;

 \stopuseMPgraphic

 \defineoverlay
  [tableborder]
  [%\edef\topframeparameter   {\framedparameter\c!topframe   }%
   %\edef\bottomframeparameter{\framedparameter\c!bottomframe}%
   %\edef\leftframeparameter  {\framedparameter\c!leftframe  }%
   %\edef\rightframeparameter {\framedparameter\c!rightframe }%
   \useMPgraphic{tableborder}]

 \setupTABLE
  [   toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness},
     leftrulethickness=\framedparameter{rulethickness},
    rightrulethickness=\framedparameter{rulethickness},
 %              topframe=on,
 %           bottomframe=on,
 %             leftframe=on,
 %            rightframe=on,
            background=tableborder,
                 frame=off]

 \protect

 \starttext

 \start

 \setupTABLE[y][1][bottomrulethickness=2pt]
 \setupTABLE[3][3][bottomrulethickness=2pt,rightrulethickness=2pt]
 \setupTABLE[1][3][bottomframe=off]

 \bTABLE
    \bTR
        \bTD 1 \eTD
        \bTD 2 \eTD
        \bTD 3 \eTD
    \eTR
    \bTR
        \bTD 4 \eTD
        \bTD 5 \eTD
        \bTD 6 \eTD
    \eTR
    \bTR
        \bTD 7 \eTD
        \bTD 8 \eTD
        \bTD 9 \eTD
    \eTR
 \eTABLE

 \stop

 \stoptext

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

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


Re: [NTG-context] Natural Tables Cell Borders

2010-01-05 Thread Hans Hagen

On 5-1-2010 4:02, Curiouslearn wrote:

Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
to understand your code. But will look at it more carefully later.

Meanwhile, is there any further work going on on Natural Tables? Are
there plans to introduce the ability to have borders of different
thickness for the same cell through simple options.


normally that is demand driven i.e. if i need it in a project or so

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


Re: [NTG-context] Natural Tables Cell Borders

2010-01-04 Thread Wolfgang Schuster

Am 31.12.2009 um 23:04 schrieb Curiouslearn:

 Help needed! The fifth \setupTABLE command below reduces the
 rulethickness of the bottomframe in cells (2,5) and (3,5). Is there a
 way to avoid that? I just want the rightframe to be thin in these
 cells, but the bottomframe to be thick.

You can use MetaPost to draw the rules, you can use the example i posted
today [1] as starting point.

[1] http://www.ntg.nl/pipermail/ntg-context/2010/046077.html

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


Re: [NTG-context] Natural Tables Cell Borders

2010-01-04 Thread Curiouslearn
Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
to understand your code. But will look at it more carefully later.

Meanwhile, is there any further work going on on Natural Tables? Are
there plans to introduce the ability to have borders of different
thickness for the same cell through simple options.

Thanks.

On Mon, Jan 4, 2010 at 11:55 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 31.12.2009 um 23:04 schrieb Curiouslearn:

 Help needed! The fifth \setupTABLE command below reduces the
 rulethickness of the bottomframe in cells (2,5) and (3,5). Is there a
 way to avoid that? I just want the rightframe to be thin in these
 cells, but the bottomframe to be thick.

 You can use MetaPost to draw the rules, you can use the example i posted
 today [1] as starting point.

 [1] http://www.ntg.nl/pipermail/ntg-context/2010/046077.html

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

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


[NTG-context] Natural Tables Cell Borders

2009-12-31 Thread Curiouslearn
Help needed! The fifth \setupTABLE command below reduces the
rulethickness of the bottomframe in cells (2,5) and (3,5). Is there a
way to avoid that? I just want the rightframe to be thin in these
cells, but the bottomframe to be thick.

Thanks a ton!

\starttext
\start
\setupTABLE[frame=off]
\setupTABLE[column][align={middle,lohi}]
\setupTABLE[2,3,4,][1,5][bottomframe=on,rulethickness=1pt]
\setupTABLE[1,4][2,3,4,5,][rightframe=on,rulethickness=1pt]
\setupTABLE[2,3][2,3,4,5][rightframe=on,rulethickness=0.2pt]

\bTABLE
\bTR
  \bTD\eTD\bTD\eTD\bTD[nc=2] {\bf 2} \eTD
\eTR
\bTR
  \bTD\eTD\bTD\eTD
  \bTD
a2
  \eTD
  \bTD
b2
  \eTD
\eTR
\bTR
  \bTD[nr=3] 1 \eTD \bTD a1 \eTD
  \bTD 2,2 \eTD
  \bTD 4,5 \eTD
\eTR
\bTR
  \bTD b1 \eTD
  \bTD 5,4 \eTD
  \bTD 3,3 \eTD
\eTR
\bTR
  \bTD c1 \eTD
  \bTD 6,6 \eTD
  \bTD 4,4 \eTD
\eTR
\eTABLE
\stop
\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] natural tables: when I say nc=2, I really mean it

2009-09-03 Thread Zed Lopez
Hi folks,

When I compile this table:

\starttext
\setupTABLE[c][1][width=12pt,rightframe=off]
\setupTABLE[c][2][width=108pt,leftframe=off]
\setupTABLE[c][each][width=60pt]
\bTABLE
\bTR \bTD x \eTD \bTD y \eTD \bTD z \eTD \eTR
\bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
\eTABLE
\endtext

I get the 2 rows I expect: the first with 1 narrow column, 1 wide
column, and 1 medium column; the second with 1 even wider column and 1
medium column.

When I do the same thing, but with the first row omitted:

\starttext
\setupTABLE[c][1][width=12pt]
\setupTABLE[c][2][width=108pt]
\setupTABLE[c][each][width=60pt]
\bTABLE
\bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
\eTABLE
\endtext

it's as if the nc=2 is ignored -- it tries to squeeze
thisisaverylongwordishthing into 1 12pt column instead of a combined
120pt column.

How can I convince it to do what I mean with nc=2 despite having only
one row with only 2 cells?

thanks. (Long time subscriber, first time poster, love the macro package.)
___
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] natural tables: when I say nc=2, I really mean it

2009-09-03 Thread luigi scarso
On Thu, Sep 3, 2009 at 11:06 PM, Zed Lopezzed.lo...@gmail.com wrote:
 Hi folks,

 When I compile this table:

 \starttext
 \setupTABLE[c][1][width=12pt,rightframe=off]
 \setupTABLE[c][2][width=108pt,leftframe=off]
 \setupTABLE[c][each][width=60pt]
 \bTABLE
 \bTR \bTD x \eTD \bTD y \eTD \bTD z \eTD \eTR
 \bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
 \eTABLE
 \endtext

 I get the 2 rows I expect: the first with 1 narrow column, 1 wide
 column, and 1 medium column; the second with 1 even wider column and 1
 medium column.

 When I do the same thing, but with the first row omitted:

 \starttext
 \setupTABLE[c][1][width=12pt]
 \setupTABLE[c][2][width=108pt]
 \setupTABLE[c][each][width=60pt]
 \bTABLE
 \bTR \bTD[nc=2] thisisaverylongwordishthing \eTD \bTD word \eTD \eTR
 \eTABLE
 \endtext
\endtext or \stoptext ?


 it's as if the nc=2 is ignored -- it tries to squeeze
 thisisaverylongwordishthing into 1 12pt column instead of a combined
 120pt column.

 How can I convince it to do what I mean with nc=2 despite having only
 one row with only 2 cells?

\starttext
\setupTABLE[c][1][width=12pt]
\setupTABLE[c][2][width=108pt]
\setupTABLE[c][each][width=60pt]
\bTABLE
\bTR \bTD[nc=2] this is a very long wordish thing \eTD \bTD word \eTD \eTR
\bTR[frame=off,strut=no,offset=0pt]
\bTD\relax\eTD\bTD\relax\eTD\bTD\relax\eTD\eTR
\eTABLE
\stoptext


-- 
luigi
___
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] Natural tables with \placetable

2009-04-17 Thread Design Department
Can anyone tell me why this table example is placed on the left margin
on the first page and the right margin on subsequent pages?
My intention is to place against the right margin on all pages.

\starttext
\placetable[right, 4*line, split]
  {none}
  {\bTABLE[split=repeat,option=stretch, textwidth=3in]
\bTABLEhead[rulethickness=1pt]
  \bTR
 \bTH[align={middle}] head \eTH
  \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{6}{
  \bTR
\bTD
  {\input knuth \par}
\eTD
  \eTR
}
\eTABLEbody
\bTABLEfoot
  \bTR
\bTH footer  \eTH
  \eTR
\eTABLEfoot
  \eTABLE}
\stoptext


-- 
david
___
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] Natural tables header

2008-11-19 Thread Horacio Suarez

Hello all:

I have a 5 pages tables at 5 points with a repeating header and also some 
nc=2 and nr=2 in header.

But when de table font is below 6 points there is a gap between the header and 
the body; and when there is some nr= in the header, the first row of the body 
repeats on every page. 

The code below shows it. Thankyou in advance for some advices.

\setuppapersize[A5][A5]

%%
\starttext

\setupcolors[state=start]

This table at 5 points. Below 6 points there is a gap between the header and 
the body; and the first row of the body repeats in every page.

\bTABLE[split=repeat]\switchtobodyfont[5pt]
\bTABLEhead
\bTR
\bTH[nr=2] 1\eTH
\bTH[nr=2] 2\eTH
\bTH[nc=2] 3\eTH
\eTR
\bTR
\bTH 3a\eTH
\bTH 3b\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR[color=red]
\bTD body\eTD
\bTD first\eTD
\bTD row\eTD
\bTD Should not repeat every page\eTD
\eTR
\dorecurse{55}{\bTR\bTD[nc=4]the first row is repeating on every page\eTD\eTR}
\eTABLEbody
\eTABLE

\blank[12pt]

This table at 12 points. The gap is gone but still the first row of the body 
repeats in every page.

\bTABLE[split=repeat]\switchtobodyfont[12pt]
\bTABLEhead
\bTR
\bTH[nr=2] 1\eTH
\bTH[nr=2] 2\eTH
\bTH[nc=2] 3\eTH
\eTR
\bTR
\bTH 3a\eTH
\bTH 3b\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR[color=red]
\bTD body\eTD
\bTD first\eTD
\bTD row\eTD
\bTD Should not repeat every page\eTD
\eTR
\dorecurse{25}{\bTR\bTD[nc=4]the first row is repeating on every page\eTD\eTR}
\eTABLEbody
\eTABLE

\blank[12pt]

In this table at 12 points and without nr=2 in the header, the repeating header 
is ok,

\bTABLE[split=repeat]\switchtobodyfont[12pt]
\bTABLEhead
\bTR
\bTH 1\eTH
\bTH 2\eTH
\bTH 3\eTH
\eTR
\bTR
\bTH 1a\eTH
\bTH 2a\eTH
\bTH 3a\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR[color=red]
\bTD body\eTD
\bTD first\eTD
\bTD row\eTD
\eTR
\dorecurse{6}{\bTR\bTD[nc=3]the first row is ok\eTD\eTR}
\eTABLEbody
\eTABLE

\stoptext
%

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
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] Natural Tables, backgroundcolor, and frames

2008-05-05 Thread Wolfgang Schuster
On Sun, May 4, 2008 at 11:22 PM, Brian R. Landy [EMAIL PROTECTED] wrote:
 Hi,

 I actually posted this last summer, but never got a reply and did not
 have a chance to follow up.  When using natural tables, a cell with
 backgroundcolor enabled will overwrite the topframe/rightframe from
 the cell to the left/above.  A workaround could be to always use
 topframe/leftframe.  However this workaround is not possible with
 tables with split=repeat that span multiple pages, since you cannot
 know which rows on pages beyond the first for which you should set
 topframe=on.

 The below code demonstrates the problem for color w/ bottomframe
 specified for the header --

 \setupcolors[state=start]
 \definecolor[ice][r=0.867, g=0.945, b=0.973, s=0.9]

\startuseMPgraphic{headerrule}
linecap := butt ;
draw (-1.5*\the\linewidth,0)--(OverlayWidth+1.5*\the\linewidth,0) ;
setbounds currentpicture to unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
\stopuseMPgraphic

\defineoverlay[headerrule][\useMPgraphic{headerrule}]

 \starttext
 \bTABLE[split=repeat,frame=off,background=color]
 \bTABLEhead
 \bTR[bottomframe=on]

\bTR[background=headerrule,backgroundoffset=-\linewidth]

 \bTH A \eTH \bTH B \eTH
 \eTR
 \eTABLEhead
 \bTABLEbody
 \dorecurse{25}{\bTR[backgroundcolor=ice] \bTD a \eTD \bTD b \eTD \eTR
 \bTR \bTD a \eTD \bTD b \eTD \eTR}
 eTABLEbody
 \eTABLE
 \stoptext

 I tested this at http://live.contextgarden.net.  Does anyone have a
 solution?  One thought I had was to insert a very thin row  (with
 height set to rulethickness) at the bottom of the header, but with
 split=repeat it appears that the table forces a minimum height to a
 row, so it is too tall.

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
___


[NTG-context] Natural Tables, backgroundcolor, and frames

2008-05-05 Thread Brian R . Landy
Hi,

I actually posted this last summer, but never got a reply and did not  
have a chance to follow up.  When using natural tables, a cell with  
backgroundcolor enabled will overwrite the topframe/rightframe from  
the cell to the left/above.  A workaround could be to always use  
topframe/leftframe.  However this workaround is not possible with  
tables with split=repeat that span multiple pages, since you cannot  
know which rows on pages beyond the first for which you should set  
topframe=on.

The below code demonstrates the problem for color w/ bottomframe  
specified for the header --

\setupcolors[state=start]
\definecolor[ice][r=0.867, g=0.945, b=0.973, s=0.9]
\starttext
\bTABLE[split=repeat,frame=off,background=color]
\bTABLEhead
\bTR[bottomframe=on]
\bTH A \eTH \bTH B \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{25}{\bTR[backgroundcolor=ice] \bTD a \eTD \bTD b \eTD \eTR  
\bTR \bTD a \eTD \bTD b \eTD \eTR}
eTABLEbody
\eTABLE
\stoptext

I tested this at http://live.contextgarden.net.  Does anyone have a  
solution?  One thought I had was to insert a very thin row  (with  
height set to rulethickness) at the bottom of the header, but with  
split=repeat it appears that the table forces a minimum height to a  
row, so it is too tall.

Thanks,
Brian
___
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] Natural tables, offsets

2008-04-14 Thread Wolfgang Schuster
On Fri, Apr 11, 2008 at 3:24 PM, Santy, Michael
[EMAIL PROTECTED] wrote:

 Wolfgang,

 Can you use the leftoffset/rightoffset on individual table cells?

Yes you can.

You could also the offset parameters in \framed and any other command which
use \localframed.

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
___


Re: [NTG-context] Natural tables, offsets

2008-04-11 Thread Santy, Michael

Wolfgang,

Can you use the leftoffset/rightoffset on individual table cells?

Thanks,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Wolfgang Schuster
Sent: Fri 4/11/2008 8:13 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Natural tables, offsets
 
On Sun, Mar 30, 2008 at 3:12 AM, David [EMAIL PROTECTED] wrote:

 On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:

  On Fri, 28 Mar 2008 14:02:55 -0700
  David [EMAIL PROTECTED] wrote:
 
  Hi all
 
  I'm using the natural table environment, and would like the text in
  each cell to have some horizontal offset from the cell boundaries - but
  I don't want to change the vertical offset. Is there a way to do this?
 
  \starttext
 
  \startsetups table:margins
 
  \rightskip=1cm\relax
  \leftskip=1cm\relax
 
  \stopsetups
 
  \setupTABLE
[setups=table:margins]
 
  \bTABLE
  \bTR
  \bTD \input ward\par \eTD
  \bTD \input ward\par \eTD
  \eTR
  \bTR
  \bTD \input ward\par \eTD
  \bTD \input ward\par \eTD
  \eTR
  \eTABLE
 
  \stoptext


Hi David,

 Thank you, Wolfgang. For my purposes, this setup is perfect.

I updated my extended version of the localframed macros and they
permit you to use

\usemodule[wolf-rul]

\starttext

\setupTABLE[leftoffset=1cm,rightoffset=1cm]

\bTABLE
  \bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD  \eTR
  \bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD
  \eTR
\eTABLE

\stoptext

Greetings

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
___


Re: [NTG-context] Natural tables, offsets

2008-03-31 Thread Wolfgang Schuster
On Sun, Mar 30, 2008 at 7:04 PM, Willi Egger [EMAIL PROTECTED] wrote:
 Hi Wolfgang,

 Thanks a lot for this solution!

I needed something similiar not so long ago for \framed and used this solution
because it could be easy integrated in a setup command.

Offset parameters for all margins would be the better solution but this
another topic.

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
___


Re: [NTG-context] Natural tables, offsets

2008-03-29 Thread Wolfgang Schuster
On Fri, 28 Mar 2008 14:02:55 -0700
David [EMAIL PROTECTED] wrote:

 Hi all
 
 I'm using the natural table environment, and would like the text in 
 each cell to have some horizontal offset from the cell boundaries - but 
 I don't want to change the vertical offset. Is there a way to do this?

\starttext

\startsetups table:margins

\rightskip=1cm\relax
\leftskip=1cm\relax

\stopsetups

\setupTABLE
  [setups=table:margins]

\bTABLE
\bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD
\eTR
\bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD
\eTR
\eTABLE

\stoptext

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
___


Re: [NTG-context] Natural tables, offsets

2008-03-29 Thread David
On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:

 On Fri, 28 Mar 2008 14:02:55 -0700
 David [EMAIL PROTECTED] wrote:
 
 Hi all
 
 I'm using the natural table environment, and would like the text in 
 each cell to have some horizontal offset from the cell boundaries - but 
 I don't want to change the vertical offset. Is there a way to do this?
 
 \starttext
 
 \startsetups table:margins
 
 \rightskip=1cm\relax
 \leftskip=1cm\relax
 
 \stopsetups
 
 \setupTABLE
   [setups=table:margins]
 
 \bTABLE
 \bTR
 \bTD \input ward\par \eTD
 \bTD \input ward\par \eTD
 \eTR
 \bTR
 \bTD \input ward\par \eTD
 \bTD \input ward\par \eTD
 \eTR
 \eTABLE
 
 \stoptext

_

Thank you, Wolfgang. For my purposes, this setup is perfect.

David
___
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] Natural tables, offsets

2008-03-28 Thread David
Hi all

I'm using the natural table environment, and would like the text in 
each cell to have some horizontal offset from the cell boundaries - but 
I don't want to change the vertical offset. Is there a way to do this?

Thanks
David
___
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] 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


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

2007-04-05 Thread Wolfgang Schuster

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

___
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


[NTG-context] Natural Tables with verbatim text

2006-08-03 Thread Confused Scientist
HelloIs it possible to use \type{} in a natural table cell? The example below seems to generate an error for me.Thanks!% example\starttextThis is a quick \type{test_run} of the problem.
\bTABLE \bTR \bTD first \eTD\bTD {\bf alpha} \eTD\bTD one \eTD\eTR \bTR \bTD {\em second} \eTD\bTD beta \eTD\bTD two \eTD\eTR \bTR \bTD third \eTD\bTD gamma \eTD\bTD \type{three_ex} \eTD\eTR 
\eTABLE\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural Tables with verbatim text

2006-08-03 Thread Peter Rolf
Confused Scientist wrote:
 Hello
 
 Is it possible to use \type{} in a natural table cell?  The example
 below seems to generate an error for me.
 
 Thanks!
 
\type works (try \type{\TEST}), but not exactly as in normal
environment. For your example you can use '\_' instead of '_' (even
without \type). Dunno if there are more limitations.

HTH, Peter

 % example
 \starttext
 
 This is a quick \type{test_run} of the problem.
 
 \bTABLE
 \bTR \bTD first\eTD\bTD {\bf alpha} \eTD\bTD one
 \eTD\eTR
 \bTR \bTD {\em second} \eTD\bTD beta\eTD\bTD two
 \eTD\eTR
 \bTR \bTD third\eTD\bTD gamma   \eTD\bTD \type{three_ex}
 \eTD\eTR
 \eTABLE
 
 \stoptext
 
 
 
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural Tables with verbatim text

2006-08-03 Thread Hans Hagen
Confused Scientist wrote:
 Hello

 Is it possible to use \type{} in a natural table cell?  The example below
 seems to generate an error for me.

 Thanks!

 % example
 \starttext

 This is a quick \type{test_run} of the problem.

 \bTABLE
 \bTR \bTD first\eTD\bTD {\bf alpha} \eTD\bTD one
 \eTD\eTR
 \bTR \bTD {\em second} \eTD\bTD beta\eTD\bTD two
 \eTD\eTR
 \bTR \bTD third\eTD\bTD gamma   \eTD\bTD \type{three_ex}
 \eTD\eTR
 \eTABLE

 \stoptext
frozen catcode problem, tex limitation etc etc 

try \retype{three_ex} instead 

Hans 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Natural tables: how to adjust row height/vertical spacing?

2006-04-18 Thread Mari Voipio


This may almost be a FAQ question, but I just cannot find the answer in the wiki
nor in mailing list archives: How do I adjust row height/vertical spacing in
natural tables?

In my old tables (\starttable etc.) the trick was
\noalign{\vskip-6pt}
but this one doesn't work with my natural tables. In Word I'd just adjust
linespacing and paragraph spacing in the table, but that obviously isn't the
soluction in ConTeXt - or at least I don't seem to understand enough to get it
to work.

Any ideas of what to do?
I like natural tables, but if vertical spacing isn't adjustable, I'll have to
stick to my old alternatives, tables and tabulate. If somebody gives me a
working solution (that's simple enough that I manage to implement it), I
promise to wikify it for future use...

Mari
(with lots of specifications and parts lists to fit into tables in small
print...)





This message was sent using IMP, the Internet Messaging Program.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables: how to adjust row height/vertical spacing?

2006-04-18 Thread Hans Hagen
Mari Voipio wrote:
 This may almost be a FAQ question, but I just cannot find the answer in the 
 wiki
 nor in mailing list archives: How do I adjust row height/vertical spacing in
 natural tables?

 In my old tables (\starttable etc.) the trick was
 \noalign{\vskip-6pt}
 but this one doesn't work with my natural tables. In Word I'd just adjust
 linespacing and paragraph spacing in the table, but that obviously isn't the
 soluction in ConTeXt - or at least I don't seem to understand enough to get it
 to work.

 Any ideas of what to do?
 I like natural tables, but if vertical spacing isn't adjustable, I'll have to
 stick to my old alternatives, tables and tabulate. If somebody gives me a
 working solution (that's simple enough that I manage to implement it), I
 promise to wikify it for future use...

 Mari
 (with lots of specifications and parts lists to fit into tables in small
 print...)
   
\bTABLE[spaceinbetween=big]
\bTR \bTD test \eTD \eTR
\bTR \bTD test \eTD \eTR
\eTABLE

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables, rulethickness

2006-03-05 Thread Berend de Boer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Patrick Gundlach [EMAIL PROTECTED] writes:

 but I wish (feature request) something like

 \toprule
 \bTR  \eTR 
 \midrule
 \bTR  \eTR 
 \bTR  \eTR 
 \bTR  \eTR 
 \bottomrule

 or together with \setupTABLE.

Something like:

\def\midrule{% assume we're in a bTABLE
  \bTR[rulethickness=0.8pt,height=\rulethickness,bottomframe=on]\eTR}

might work.

Basically the idea is to insert a very small row with only the rule.

- -- 
Live long and prosper,

Berend de Boer
(PGP public key: http://www.pobox.com/~berend/berend-public-key.txt)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iD8DBQFEC4oEIyuuaiRyjTYRAtSsAKDSUM9jwXojPSonpg3gK+9C1BcJAgCgoKsz
8Y7zTK8OsACPDlDYict/VYc=
=rdDU
-END PGP SIGNATURE-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Natural tables, rulethickness

2006-03-04 Thread Patrick Gundlach
Hello,

I have a (natural) table and I'd like to have three rules in that
table. The toprule and the bottomrule should be .08em thick, the
midrule 0.05em. What would be a way to achieve that? The example is
incorrect.


\starttext

\setupTABLE[r][each][frame=off]
\setupTABLE[r][first][topframe=on,rulethickness=.08em]
\setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
\setupTABLE[r][last][bottomframe=on,rulethickness=.08em]
\bTABLE
\bTR \bTD Lorem \eTD \bTD ipsum \eTD \bTD dolor sit \eTD \eTR
\bTR \bTD amet \eTD \bTD[nc=2] consectetuer adipiscing elit \eTD  \eTR
\bTR \bTD 1 \eTD \bTD  \eTD \bTD Donec hendrerit tempor tellus. Donec pretium 
posuere\eTD \eTR
\bTR \bTD 2 \eTD \bTD  \eTD \bTD tellus. Proin quam nisl, tincidunt
et, mattis eget, convallis nec, \unknown \eTD \eTR
\bTR \bTD  \eTD \bTD[nc=2] purus. Cum sociis \eTD \eTR
\bTR \bTD 3 (natoque) \eTD \bTD penatibus \eTD \bTD  \eTD \eTR
\bTR \bTD 5 \eTD \bTD[nc=2] et magnis dis \eTD  \eTR
\bTR \bTD 6 \eTD \bTD parturient \eTD \bTD montes, nascetur ridiculus \eTD \eTR
\bTR \bTD  \eTD \bTD mus \eTD \bTD Nulla posuere. Donec vitae dolor \eTD \eTR
\eTABLE
\stoptext

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables, rulethickness

2006-03-04 Thread Peter Rolf
Hi Patrick,

Patrick Gundlach wrote:
 Hello,
 
 I have a (natural) table and I'd like to have three rules in that
 table. The toprule and the bottomrule should be .08em thick, the
 midrule 0.05em. What would be a way to achieve that? The example is
 incorrect.
 
 
 \starttext
 
 \setupTABLE[r][each][frame=off]
 \setupTABLE[r][first][topframe=on,rulethickness=.08em]
 \setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
 \setupTABLE[r][last][bottomframe=on,rulethickness=.08em]
 \bTABLE

You can't use different frame sizes in the same frame (as in \framed). A
simple solution is

\setupTABLE[r][2][topframe=on,rulethickness=.05em]

instead of using a bottomframe. Or maybe better

\setupTABLE[r][first][topframe=on,rulethickness=.08em,
  after={\hrule width\hsize height.05em}]

You can adjust the vertical spacing by using

\setupTABLE[r][first][topframe=on,rulethickness=.08em,
  after={\hbox{\raise 5pt\hbox{\vrule width\hsize height.05em}}}]

But the second solution maybe has some unwanted sideeffects (page
breaks,..). I've tried to use \hrule in combination with 'before=', but
this does not work here. Hope this helps.

Greetings, Peter

 \bTR \bTD Lorem \eTD \bTD ipsum \eTD \bTD dolor sit \eTD \eTR
 \bTR \bTD amet \eTD \bTD[nc=2] consectetuer adipiscing elit \eTD  \eTR
 \bTR \bTD 1 \eTD \bTD  \eTD \bTD Donec hendrerit tempor tellus. Donec pretium 
 posuere\eTD \eTR
 \bTR \bTD 2 \eTD \bTD  \eTD \bTD tellus. Proin quam nisl, tincidunt
 et, mattis eget, convallis nec, \unknown \eTD \eTR
 \bTR \bTD  \eTD \bTD[nc=2] purus. Cum sociis \eTD \eTR
 \bTR \bTD 3 (natoque) \eTD \bTD penatibus \eTD \bTD  \eTD \eTR
 \bTR \bTD 5 \eTD \bTD[nc=2] et magnis dis \eTD  \eTR
 \bTR \bTD 6 \eTD \bTD parturient \eTD \bTD montes, nascetur ridiculus \eTD 
 \eTR
 \bTR \bTD  \eTD \bTD mus \eTD \bTD Nulla posuere. Donec vitae dolor \eTD \eTR
 \eTABLE
 \stoptext
 
 Patrick

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables, rulethickness

2006-03-04 Thread Peter Münster
On Sat, 4 Mar 2006, Patrick Gundlach wrote:

 \setupTABLE[r][first][bottomframe=on,rulethickness=.05em]

Replace this line by
\setupTABLE[r][2][bottomframe=on,rulethickness=.05em,height=0pt,offset=overlay]

 \bTABLE
 \bTR \bTD Lorem \eTD \bTD ipsum \eTD \bTD dolor sit \eTD \eTR

and add here (second row):
\bTR \bTD[nc=3] \eTD \eTR

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables, rulethickness

2006-03-04 Thread Peter Münster
On Sat, 4 Mar 2006, Peter Rolf wrote:

 \setupTABLE[r][2][topframe=on,rulethickness=.05em]

Hello Patrick,
I've just seen Peter Rolf's solution, this is of course the better and
simpler one. The only case, where my empty row can be useful, is, when you
have just 2 rows:
\starttext
\setupTABLE[frame=off,rulethickness=1pt]
\setupTABLE[r][first][topframe=on]
\setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=overlay,height=0pt]
\setupTABLE[r][last][bottomframe=on]
\bTABLE
\bTR \bTD bla \eTD \eTR
\bTR \bTD \eTD \eTR
\bTR \bTD bla \eTD \eTR
\eTABLE
\stoptext

(There are some tables, where I need this...)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Natural tables, rulethickness

2006-03-04 Thread Patrick Gundlach

[Three rules in a table]

Thanks, Peter and Peter, the following setup produces the output I'd
like to have:

\setupTABLE[r][first][topframe=on,rulethickness=.08em,
  after={\hrule width\hsize height.05em}]
\setupTABLE[r][last][bottomframe=on,rulethickness=.08em]

but I wish (feature request) something like

\toprule
\bTR  \eTR 
\midrule
\bTR  \eTR 
\bTR  \eTR 
\bTR  \eTR 
\bottomrule

or together with \setupTABLE.

Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] natural tables flaw: extra space

2005-04-08 Thread Hans Hagen
Eckhart Guthöhrlein wrote:
Hi,
consider the following example
\starttext
  \setupTABLE[frame=off]
  \setupTABLE[row][first][topframe=on,rulethickness=1mm]
  \bTABLE
\bTR \bTD 1,1 \eTD \bTD 2,1 \eTD \eTR
\bTR \bTD 1,2 \eTD \bTD 2,2 \eTD \eTR
  \eTABLE
\stoptext
In the first cell, extra space is added before the entry. I guess it's
1mm from the left frame which should be off, so the space shouldn't be
there. Or is it a feature?
a feature (invisible rules at left/right/bottom)
\setupTABLE[frame=off,rulethickness=1mm]
gives better results
Hans

-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] natural tables flaw: extra space

2005-04-08 Thread Hans Hagen
Eckhart Guthöhrlein wrote:
Hm. I would expect a frame that is 'off' to be inexistent, not only
invisible. Alas, not that important, you will know why that is a
feature.
because in most cases (in framed, which is the cornerstone of bTABLE) one will 
not let a not present frame influence the game; has to do with aligning framed 
things and such

Hans
-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Natural Tables (all options)

2003-10-18 Thread ml-context
Hello,

with a lot of help of Lutz (member of this list) I am now able to produce Context 
files and compile them to PDF. Now I am reading the documentation and some emails from 
this list to learn some details.
I played a little bit with natural tables (also read the examples in ennatab.pdf) - 
but I think that is not all what is possible with natural tables. Wehre can I find a 
documetation with all options for nat. tabs? 

At the examples there was no table with round corners. But I found a parameter for it 
-I tried:

\\eTABLE[corner=round]
with the result: every cell was round.
It looks funny but is not the thing I was looking for.
I want to have round corners arround the table:
left corner top and bottom
right corner top and bottom

1. How does it work?
2. Where can I find all parameters/options for natural tables
   (I googled with no success).

Jörg



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context