[NTG-context] splitting tables from csv with first row as header

2021-06-23 Thread Jan U. Hasecke

Hi all,

I have this sample:

\usemodule[database]

\setuppapersize [A6]

\setupTABLE
  [split=yes,
  header=repeat]

\defineseparatedlist
   [test]
   [separator={;}, % tab
before=\bTABLE,after=\eTABLE,
first=\bTR,last=\eTR,
left=\bTD,right=\eTD]

\starttext
\processdatabasefile[test][test.csv]

\stoptext


A test.csv is attached.

The table splits but no header is repeated.

I guess I have to define that the first row in the file is the header.

How to achieve this?

TIA
juh
A;B;C;D;E;F
1;2;3;4;5;6
2;3;4;5;6;7
3;4;5;6;7;8
4;5;6;7;8;9
5;6;7;8;9;10
6;7;8;9;10;11
7;8;9;10;11;12
8;9;10;11;12;13
9;10;11;12;13;14
10;11;12;13;14;15
11;12;13;14;15;16
12;13;14;15;16;17
13;14;15;16;17;18
14;15;16;17;18;19
15;16;17;18;19;20
16;17;18;19;20;21
17;18;19;20;21;22
18;19;20;21;22;23
19;20;21;22;23;24
20;21;22;23;24;25
21;22;23;24;25;26
4;5;6;7;8;9
5;6;7;8;9;10
6;7;8;9;10;11
7;8;9;10;11;12
8;9;10;11;12;13
9;10;11;12;13;14
10;11;12;13;14;15
11;12;13;14;15;16
12;13;14;15;16;17
13;14;15;16;17;18
14;15;16;17;18;19
15;16;17;18;19;20
16;17;18;19;20;21
17;18;19;20;21;22
18;19;20;21;22;23
19;20;21;22;23;24
20;21;22;23;24;25
21;22;23;24;25;26
___
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 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] Extreme tables and XML conflict?

2020-09-21 Thread Hans Hagen

On 9/21/2020 4:38 PM, Denis Maier wrote:

Hi,

I'm a bit confused, but this here won't compile:



\startxmlsetups xml:table
   \startxtable
     \startxrow
   \startxcell one \stopxcell
   \startxcell two \stopxcell
     \stopxrow
   \stopxtable
\stopxmlsetups


when used this way you need:

\startembeddexstable
\stopembeddexstable

(at the outer level they are buffers)

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


Re: [NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier

Thanks everyone. I'm on the way now.
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] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier

Am 21.09.2020 um 16:50 schrieb Wolfgang Schuster:

Denis Maier schrieb am 21.09.2020 um 16:38:

Hi,

I'm a bit confused, but this here won't compile:

[...]


\startxmlsetups xml:table
    \startembeddedxtable
    \startxrow
    ...
    \stopxrow
    \stopembeddedxtable
\stopxmlsetups

Wolfgang


Thanks. Just like it's written in the documentation...
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] Extreme tables and XML conflict?

2020-09-21 Thread Thomas A. Schmitz

On 9/21/20 4:38 PM, Denis Maier wrote:

Hi,

I'm a bit confused, but this here won't compile:


xtables manual, chapter 13.

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] Extreme tables and XML conflict?

2020-09-21 Thread Wolfgang Schuster

Denis Maier schrieb am 21.09.2020 um 16:38:

Hi,

I'm a bit confused, but this here won't compile:

=
\startbuffer[test]


Test


\stopbuffer

\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    \xmlsetsetup{#1}{article}{xml:*}
    \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}
    \stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:table
  \startxtable
    \startxrow
  \startxcell one \stopxcell
  \startxcell two \stopxcell
    \stopxrow
  \stopxtable
\stopxmlsetups


\startxmlsetups xml:table
    \startembeddedxtable
    \startxrow
    ...
    \stopxrow
    \stopembeddedxtable
\stopxmlsetups

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
___


Re: [NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Taco Hoekwater


> On 21 Sep 2020, at 16:38, Denis Maier  wrote:
> 
> Hi,
> 
> I'm a bit confused, but this here won't compile:
> 
> =
> 
> \startxmlsetups xml:table
>   \startxtable
> \startxrow
>   \startxcell one \stopxcell
>   \startxcell two \stopxcell
> \stopxrow
>   \stopxtable
> \stopxmlsetups

The normal xtables don’t like to be called from inside other constructs. Use 
this instead:

\startxmlsetups xml:table
  \message{xml:table}
  \startembeddedxtable
\startxrow
  \startxcell one \stopxcell
  \startxcell two \stopxcell
\stopxrow
  \stopembeddedxtable
\stopxmlsetups


Best wishes,
Taco
___
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] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier

Hi,

I'm a bit confused, but this here won't compile:

=
\startbuffer[test]


Test


\stopbuffer

\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    \xmlsetsetup{#1}{article}{xml:*}
    \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}
    \stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:table
  \startxtable
    \startxrow
  \startxcell one \stopxcell
  \startxcell two \stopxcell
    \stopxrow
  \stopxtable
\stopxmlsetups

\xmlprocessbuffer{test}{test}{}


The process just stops in the middle. This is the error message from the 
live version from the homepage:


resolvers   | formats | executing runner 'run luametatex format': 
/opt/context/lmtx/tex/texmf-linux-64/bin/luametatex --jobname="texweb" 
--fmt=/opt/context/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/opt/context/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./texweb.tex" --c:input="./texweb.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/opt/context/lmtx/tex/texmf-linux-64/bin"
This is LuaMetaTeX, Version 2.06.12
open source > level 1, order 1, name 'cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2020.06.30 17:30 MKIV beta  fmt: 2020.7.1  int: 
english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/opt/context/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/opt/context/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'texweb', input './texweb', result 'texweb'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './texweb.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > defining > source file 
'/opt/texweb/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf'
 is not found
fonts   > defining > using source file 
'/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf' due to 
cache mismatch
fonts   > defining > source file 
'/opt/texweb/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf'
 is not found
fonts   > defining > using source file 
'/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf' due 
to cache mismatch
fonts   > 'fallback modern-designsize rm 12pt' is loaded
close source> level 2, order 3, name './texweb.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'

tex error   > error not related to input file:
tex error   >   tex: ?
tex error   >   lua: ?
tex error   >   mps: -
mtx-context | fatal error: return code: 256


Putting a simple string into the xml:table setup let's me compile the file:

=
\startbuffer[test]


Test


\stopbuffer

\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    \xmlsetsetup{#1}{article}{xml:*}
    \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}
    \stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:table
  asdfasdfasdf
\stopxmlsetups

\xmlprocessbuffer{test}{test}{}


OTOH, this here works as well:

\starttext
  \startxtable
    \startxrow
  \startxcell one \stopxcell
  \startxcell two \stopxcell
    \stopxrow
  \stopxtable
\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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-16 Thread Felipe de Jesús Molina Bravo
Ok, thanks Otaredsee you!

El jue., 16 may. 2019 a las 1:56, Otared Kavian ()
escribió:

>
>
> > On 15 May 2019, at 21:28, Felipe de Jesús Molina Bravo <
> fjmolinabr...@gmail.com> wrote:
> > OFF-TOPIC:
> > I have a problem with the mailing list; the posts that I start I do not
> receive them as well as the answers to these posts...why?
>
> This is a Gmail « feature »… but your message is actually sent to the list
> (as you may have observed) and in the subsequent thread your message
> appears as expected.
>
> Best regards: OK
>
> ___
> 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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-16 Thread Otared Kavian


> On 15 May 2019, at 21:28, Felipe de Jesús Molina Bravo 
>  wrote:
> OFF-TOPIC:
> I have a problem with the mailing list; the posts that I start I do not 
> receive them as well as the answers to these posts...why?

This is a Gmail « feature »… but your message is actually sent to the list (as 
you may have observed) and in the subsequent thread your message appears as 
expected.

Best regards: OK
___
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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-15 Thread Felipe de Jesús Molina Bravo
>*> generate my pdf with it new version
*>*>
*>*> How wan resolve this problem? please guide me!!
*>broad effectively uses hsize so 39 times the hsize is larger than tex
>likes dealing with ... can't you use fit instead?

ok, i tried with it. Thanks! :)

OFF-TOPIC:

I have a problem with the mailing list; the posts that I start I do
not receive them as well as the answers to these posts...why?

thnks for all!!
___
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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Hans Hagen

On 5/10/2019 8:22 PM, Felipe de Jesús Molina Bravo wrote:

Hi!

I have a table with 39 columns (the file is attached). With the context 
version:

     ConTeXt Process Management 1.01
     current version: 2017.05.15 21:48

I don't have any problem; but with the newer version:
     ConTeXt Process Management 1.02
     current version: 2019.04.29 08:52

show the next error:

tex error   > tex error on line 114 in file 
/home/fmolina/tempo/latex/context/pbas/ts.tex: ! Dimension too large


\tabl_ntb_table_get_max_width ...<\wd \scratchbox
   \relax \scratchdimen 
\wd \...

\tabl_ntb_table_stop ...l_ntb_table_get_max_width
   \ifautoTBLspread 
\tabl_ntb...

\eTABLE ...oveunwantedspaces \tabl_ntb_table_stop
   \stopTBLprocessing 
\fi \po...

l.114 \eTABLE


My table is:

\setupTABLE[header][each][background=color,backgroundcolor=white, 
width=broad]

\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
   \bTABLEhead[align=flushright]
     \bTR
    \bTH [offset=none, align={flushleft}, nc=39]
     .
    \eTH
    ...
       \bTR[strut=no]
        \bTD[align={flushleft,lohi}, nr=1]
   {
     \bTABLE[option={stretch},offset=0pt, frame=off]
  ...
      \eTABLE % fin de tabla interna en columna matriz
   }
    \eTD
    \bTD[ width=broad, nr=1 ] banco 1\eTD
    \bTD[ width=broad, nr=1 ] banco 1\eTD
        ... % to complet 39 columns

When i remove "width=broad" from  the "\bTD...banco 1\eTD" i can 
generate my pdf with it new version


How wan resolve this problem? please guide me!!
broad effectively uses hsize so 39 times the hsize is larger than tex 
likes dealing with ... can't you use fit instead?


Hans

-
  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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
Hi!

I have a table with 39 columns (the file is attached). With the context
version:
ConTeXt Process Management 1.01
current version: 2017.05.15 21:48

I don't have any problem; but with the newer version:
ConTeXt Process Management 1.02
current version: 2019.04.29 08:52

show the next error:

tex error   > tex error on line 114 in file
/home/fmolina/tempo/latex/context/pbas/ts.tex: ! Dimension too large

\tabl_ntb_table_get_max_width ...<\wd \scratchbox
  \relax \scratchdimen \wd
\...
\tabl_ntb_table_stop ...l_ntb_table_get_max_width
  \ifautoTBLspread
\tabl_ntb...
\eTABLE ...oveunwantedspaces \tabl_ntb_table_stop
  \stopTBLprocessing \fi
\po...
l.114 \eTABLE


My table is:

\setupTABLE[header][each][background=color,backgroundcolor=white,
width=broad]
\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
  \bTABLEhead[align=flushright]
\bTR
   \bTH [offset=none, align={flushleft}, nc=39]
.
   \eTH
   ...
  \bTR[strut=no]
   \bTD[align={flushleft,lohi}, nr=1]
  {
\bTABLE[option={stretch},offset=0pt, frame=off]
 ...
 \eTABLE % fin de tabla interna en columna matriz
  }
   \eTD
   \bTD[ width=broad, nr=1 ] banco 1\eTD
   \bTD[ width=broad, nr=1 ] banco 1\eTD
   ... % to complet 39 columns

When i remove "width=broad" from  the "\bTD...banco 1\eTD" i can generate
my pdf with it new version

How wan resolve this problem? please guide me!!

Thank's in advance!

See you
\starttext
% Hoja legal horizontal
\definepapersize[LH][legal,landscape][legal,landscape]
\setuppapersize[LH]
%
\setuplayout
  [backspace=0.8cm,
   topspace=1.6cm,
   bottomspace=0cm,
   leftmargin=0cm,
   rightmargin=0cm,
   bottomspace=0cm,
   header=0cm,
   footer=0.5cm,
%  paperwidth=34.7cm
%  width=33.9cm,
%  height=39.2cm
   ]

\usetypescript[heros]
\setupbodyfont[heros,8pt]
\testpage[15]
% Calculamos el tamaño de la columna matriz. \textwidth tiene el ancho de la
% linea en puntos (en la documentación indica que es el ancho del contexto en el
% que se encuentra). Dividimos entre el total de columnas menos las columnas que
% son llamadas y las que son separadoras de columna
\definemeasure[tam][1.5\dimexpr (\textwidth/39)\relax]

\setupTABLE[column][1][width=1.5\dimexpr (\textwidth/39)]
\setupTABLE[header][each][background=color,backgroundcolor=white, width=broad]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][even][background=color,backgroundcolor=white]

\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
  \bTABLEhead[align=flushright]
\bTR
   \bTH [offset=none, align={flushleft}, nc=39]
   {
 \bTABLE[option=tight, align={flushright}, frame=off]
   \bTR
 \bTD[ align={flushleft}, width=.8\textwidth ]
   Sucursales de la banca múltiple por demarcación territorial según institución
 \eTD
 \bTD[ align={flushright}, width=.2\textwidth ]
   Cuadro 23.1
 \eTD
   \eTR
 \eTABLE
   }
   \eTH
\eTR
\bTR[strut=no]
   \bTH[align={flushleft}, nc=39]
 Al 31 de diciembre de 2017   \eTH
\eTR

%  Linea horizontal de encabezados ***
\bTR[strut=no]
   \bTH[rulethickness=2pt,topframe=on, nc=39] \eTH
\eTR
\bTR[strut=no]
  \bTD[align={flushleft,lohi}, nr=1] 
  {
\bTABLE[option={stretch},offset=0pt, frame=off]
  \bTR
  \bTD[loffset= 0ex]
  Demarcación territorial
  \eTD
  \eTR
\eTABLE % fin de tabla interna en columna matriz
  }
   \eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
%  \bTD[ width=broad, nr=1 ] banco 1\eTD  
%  \bTD[ width=broad, nr=1 ] banco 

Re: [NTG-context] Construct tables column after column

2018-09-10 Thread Henri Menke
On 09/10/2018 10:47 PM, Jan Willem Flamma wrote:
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
> \bTR
> \bTC Row 1, Column 1 \eTC
> \bTC Row 1, Column 2 \eTC
> \eTR
> \bTR
> \bTC Row 2, Column 1 \eTC
> \bTC Row 2, Column 2 \eTC
> \eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?

If you are not scared of plain TeX macros, you can use \valign.

\starttext

\begingroup
\hsize=5cm
\valign{%
  \strut#\aligntab\strut#\cr
  %
  Column 1, Row 1\aligntab
  Column 1, Row 2\cr
  %
  Column 2, Row 1\aligntab
  Column 2, Row 2\cr
}
\endgroup

\stoptext

> (The code below does not generate output. I merely switched the xTC and xTR 
> to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
> \bTC
> \bTR Column 1, Row 1 \eTR
> \bTR Column 1, Row 2 \eTR
> \eTC
> \bTC
> \bTR Column 2, Row 1 \eTR
> \bTR Column 2, Row 2 \eTR
> \eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___
> 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] Construct tables column after column

2018-09-10 Thread Taco Hoekwater
Hi,

This is a funny bit of synchronicity. I made exactly the same request 
for extreme tables (\startxtable) during the ConTeXt meeting. Would
xtables work for you as well? It would be easier for Hans to set it up
in that because a) bTABLE is ‘like html’ which would not allow a swap
like that and b) xtable has explicits command for rows and cells, but 
not columns, so that could be added without any extra effort and confusion.

Best wishes,
Taco

> On 10 Sep 2018, at 12:47, Jan Willem Flamma  wrote:
> 
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
>\bTR
>\bTC Row 1, Column 1 \eTC
>\bTC Row 1, Column 2 \eTC
>\eTR
>\bTR
>\bTC Row 2, Column 1 \eTC
>\bTC Row 2, Column 2 \eTC
>\eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?
> (The code below does not generate output. I merely switched the xTC and xTR 
> to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
>\bTC
>\bTR Column 1, Row 1 \eTR
>\bTR Column 1, Row 2 \eTR
>\eTC
>\bTC
>\bTR Column 2, Row 1 \eTR
>\bTR Column 2, Row 2 \eTR
>\eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] Construct tables column after column

2018-09-10 Thread Jan Willem Flamma
Dear list members,

Table are constructed row after row like in the code below:

Building up a table row after row
\par
\bTABLE
\bTR
\bTC Row 1, Column 1 \eTC
\bTC Row 1, Column 2 \eTC
\eTR
\bTR
\bTC Row 2, Column 1 \eTC
\bTC Row 2, Column 2 \eTC
\eTR
\eTABLE

But is it possible to construct tables column after column?
(The code below does not generate output. I merely switched the xTC and xTR to 
illustate the idea)

Building up a table column after column
\par
\bTABLE
\bTC
\bTR Column 1, Row 1 \eTR
\bTR Column 1, Row 2 \eTR
\eTC
\bTC
\bTR Column 2, Row 1 \eTR
\bTR Column 2, Row 2 \eTR
\eTC
\eTABLE

Kind regards,
Jan Willem Flamma
___
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
___

[NTG-context] extreme tables cell spanning interference: a bug?

2017-11-25 Thread mf
Dear list,
i've found that a cell spanning across multiple rows in extreme tables
interferes with a cell spanning across multiple columns on a common
row. Ok, if that is not so clear, try this:



\starttext

The first cell spans across 3 rows. The cell in the last row should
span
across 2 columns, but it's actually one column large.

\startxtable[align={middle,lohi}]
  \startxrow
\startxcell[ny=3] 3x1 \stopxcell
\startxcell   1x1 \stopxcell
\startxcell   1x1 \stopxcell
  \stopxrow
  \startxrow
\startxcell   1x1 \stopxcell
\startxcell   1x1 \stopxcell
  \stopxrow
  \startxrow
\startxcell[nx=2] 1x2 (why 1x1?) \stopxcell
  \stopxrow
\stopxtable

Now the first cell spans across 2 rows, and the first cell of the last
row
spans across 2 columns as expected.

\startxtable[align={middle,lohi}]
  \startxrow
\startxcell[ny=2] 2x1 \stopxcell
\startxcell   1x1 \stopxcell
\startxcell   1x1 \stopxcell
  \stopxrow
  \startxrow
\startxcell   1x1 \stopxcell
\startxcell   1x1 \stopxcell
  \stopxrow
  \startxrow
\startxcell[nx=2] 1x2 (ok!) \stopxcell
  \stopxrow
\stopxtable

\stoptext



Best wishes,
Massi
___
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] lua tables - how do you cope?

2016-07-30 Thread Hans Hagen

On 7/30/2016 3:04 PM, Joseph Canedo wrote:

If the requirement is to iterate on a table having the keys, values
sorted by key (assuming the keys can be sorted), there are ways to do
this. Please see http://lua-users.org/wiki/SortedIteration for an
example (this just replaces pairs(t) with orderedPairs(t)).


or just in context

for k, v in table.sortedhash(t)
  print(k,v)
end

btw,

mtxrun --script foo.lua

has all that on board as well




Hope this helps



Joseph



*De : *Schmitz Thomas A. <mailto:thomas.schm...@uni-bonn.de>
*Envoyé le :*samedi 30 juillet 2016 12:21
*À : *mailing list for ConTeXt users <mailto:ntg-context@ntg.nl>
*Objet :*[NTG-context] lua tables - how do you cope?



This is less a specific question about ConTeXt than a hope for good
advice: I’m maltreating my xml files with a mixture of TeX and Lua. I
want to extract and typeset information in different forms, so I first
collect everything in lua tables, rearrange and order these tables and
typeset the results. All fine and dandy. My problem is that I have to
have tables within tables within tables… you get the picture. One aspect
of Lua that is really bugging me is the fact that associative tables
have no order, which can be a pain in the butt for this kind of
operation. So I have to be careful that I have to use constructs that
will keep the order in which items have been added and loop through them
via ipairs() instead of pairs(). I find it difficult to keep track of
what’s inside my layers upon layers of tables. So my question is: how do
those of you who are more experienced with this kind of question
proceed? Do you have any handy tool to visualize a table? Any tips you
want to share?



Thanks a lot!



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://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
___




--

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Hans Hagen

On 7/30/2016 11:01 PM, Schmitz Thomas A. wrote:

Thank you, but this is not what I’m looking for. I know how to sort a table, and I 
know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
disorganized). I have to construct deeply nested tables and sometimes lose track of 
what is at what level of my table, so I was wondering if there was an easy way of 
visualizing a nested table. On the web, you can find a number of (mostly abandoned) 
projects; the one at http://siffiejoe.github.io/lua-microscope/ says: "Many Lua 
programmers have written their own pretty-printer or data dumper and some even use 
it for (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
users here on the list has something they want to share.


\startluacode
context.tocontext(yourtable)
\stopluaxcode

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.

> On 30 Jul 2016, at 23:46, Lukas Prochazka  wrote:
> 
> Hello Thomas,
> 
> here is my "dump()" I've been using for several years:

Arthur, Lukas,

these are both great and very helpful, thanks a lot! I feel bad for not knowing 
table.serialize (which can even be used with the context() function to typeset 
the result, and I really like Lukas’ step-by-step breakdown of the table. Maybe 
I’ll try and think of a nice visual way to represent these Lua tables!

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Lukas Prochazka
Hello Thomas,

here is my "dump()" I've been using for several years:


function dump(arg, opts) -- .seen, .pfx
  if type(opts) == "string" then print(opts); opts = nil
  elseif opts == true then print("-- (dump)"); opts = nil
  end

  local pfx = opts and opts.pfx
  local seen = opts and opts.seen or {}

  if type(arg) == "table" then
if pfx then pfx = pfx .. "]["
else
  pfx = "["
  --seen = {}
end

seen[arg] = tostring(arg) --true

local keys = {}

do
  -- Sort keys, if all are strings

  local strs_only = true

  for k in pairs(arg) do
if strs_only and type(k) ~= "string" then strs_only = false end

keys[#keys + 1] = k
  end

  if strs_only then table.sort(keys) end
end

for _, key in ipairs(keys) do
  local val = arg[key]

  io.write(pfx .. tostring(key) .. "] = " .. tostring(val) .. "\t(" .. 
type(val) .. ")")

  if type(val) == "table" then
if seen[val] then print(" (seen)")
else
  print()

  dump(val, {pfx = pfx .. tostring(key), seen = seen}) --pfx .. 
tostring(key), seen)
end
  else
print()
  end
end
  else
print(arg)
  end
end


Try:


a = {c = 1, b = 2}; a.a = a

dump(a)
dump(a, "This is 'a'.")


Improvements or parametrization of visualizing style would be possible, of 
course... 

Best regards,

Lukas


- Original Message -
From: Schmitz Thomas A. [mailto:thomas.schm...@uni-bonn.de]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Sat, 30 Jul 2016 23:01:29 +0100
Subject: Re: [NTG-context] lua tables - how do you cope?


> Thank you, but this is not what I’m looking for. I know how to sort a table, 
> and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
> disorganized). I have to construct deeply nested tables and sometimes lose 
> track of what is at what level of my table, so I was wondering if there was 
> an easy way of visualizing a nested table. On the web, you can find a number 
> of (mostly abandoned) projects; the one at 
> http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
> written their own pretty-printer or data dumper and some even use it for 
> (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
> users here on the list has something they want to share.

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Arthur Reutenauer
On Sat, Jul 30, 2016 at 11:01:29PM +0200, Schmitz Thomas A. wrote:
> Thank you, but this is not what I’m looking for. I know how to sort a table, 
> and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
> disorganized). I have to construct deeply nested tables and sometimes lose 
> track of what is at what level of my table, so I was wondering if there was 
> an easy way of visualizing a nested table. On the web, you can find a number 
> of (mostly abandoned) projects; the one at 
> http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
> written their own pretty-printer or data dumper and some even use it for 
> (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
> users here on the list has something they want to share.

  Well, there’s table.serialize from the ConTeXt core, which fits nicely
in the description you quote.

Best,

Arthur
___
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] lua tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.
Thank you, but this is not what I’m looking for. I know how to sort a table, 
and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
disorganized). I have to construct deeply nested tables and sometimes lose 
track of what is at what level of my table, so I was wondering if there was an 
easy way of visualizing a nested table. On the web, you can find a number of 
(mostly abandoned) projects; the one at 
http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
written their own pretty-printer or data dumper and some even use it for 
(de-)serializing Lua data structures.” So I was wondering if any of the Lua 
users here on the list has something they want to share.

Thomas


> On 30 Jul 2016, at 16:31, Wolfgang Schuster  
> wrote:
> 
>> If the requirement is to iterate on a table having the keys, values sorted 
>> by key (assuming the keys can be sorted), there are ways to do this. Please 
>> see http://lua-users.org/wiki/SortedIteration for an example (this just 
>> replaces pairs(t) with orderedPairs(t)). 
> 
> \starttext
> 
> \startluacode
> 
> local testtable = { z = "A", y = "B", x = "C" }
> 
> for i, j in next, testtable do
> context("%s:%s",i,j)
> context.par()
> end
> 
> context.blank()
> 
> for i, j in table.sortedhash(testtable) do
> context("%s:%s",i,j)
> context.par()
> end
> 
> \stopluacode
> 
> \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] lua tables - how do you cope?

2016-07-30 Thread Wolfgang Schuster

Joseph Canedo 
30. Juli 2016 um 15:04

If the requirement is to iterate on a table having the keys, values 
sorted by key (assuming the keys can be sorted), there are ways to do 
this. Please see http://lua-users.org/wiki/SortedIteration for an 
example (this just replaces pairs(t) with orderedPairs(t)).




\starttext

\startluacode

local testtable = { z = "A", y = "B", x = "C" }

for i, j in next, testtable do
context("%s:%s",i,j)
context.par()
end

context.blank()

for i, j in table.sortedhash(testtable) do
context("%s:%s",i,j)
context.par()
end

\stopluacode

\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] lua tables - how do you cope?

2016-07-30 Thread Joseph Canedo
If the requirement is to iterate on a table having the keys, values sorted by 
key (assuming the keys can be sorted), there are ways to do this. Please see 
http://lua-users.org/wiki/SortedIteration for an example (this just replaces 
pairs(t) with orderedPairs(t)).

Hope this helps

Joseph

De : Schmitz Thomas A.___
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] lua tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.
This is less a specific question about ConTeXt than a hope for good advice: I’m 
maltreating my xml files with a mixture of TeX and Lua. I want to extract and 
typeset information in different forms, so I first collect everything in lua 
tables, rearrange and order these tables and typeset the results. All fine and 
dandy. My problem is that I have to have tables within tables within tables… 
you get the picture. One aspect of Lua that is really bugging me is the fact 
that associative tables have no order, which can be a pain in the butt for this 
kind of operation. So I have to be careful that I have to use constructs that 
will keep the order in which items have been added and loop through them via 
ipairs() instead of pairs(). I find it difficult to keep track of what’s inside 
my layers upon layers of tables. So my question is: how do those of you who are 
more experienced with this kind of question proceed? Do you have any handy tool 
to visualize a table? Any tips you want to share?

Thanks a lot!

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://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 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
___


[NTG-context] long tables in multicolumns / Interactive cross-referencing

2013-01-31 Thread Thomas De Maet

Hi !

I'm currently creating a book in context - it's a tremendous project ! - 
and I have a couple of questions:


Firstly, I'm interested in the multicolumns table issue raised in 
http://wiki.contextgarden.net/TABLE. Do you have an idea of a date for a 
fix ? Alternatively, it's quite a huge work to skip portions of tables 
at the good size, especially when an entry is added at the beginning


Secondly, I have here a code in which several cross-links are down with 
MKIV (2012.05.30). It happens for references to chapter (or 
section/subsection) when \startcomponent is used (with starttext it is 
just ok). When merged in the whole document, I only have the problem for 
cross-links interns to a file (and each file is a component...)


Thanks in advance !

Thomas


\setupcolors[state=start]
\setupinteraction[state=start]

\startcomponent comp

\chapter[one]{chapt 1}\reference[oneBis]{}
\input{knuth}
\page
this chapt : \in{chap}[one] or \at{page}[one] or \at{hard}[oneBis]

following chapt : \in{chap}[two] or \at{page}[two] or \at{hard}[twoBis]

\chapter[two]{chapt 2}\reference[twoBis]{}

\placecontent[criterium=all]

\stopcomponent comp


___
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] long tables in multicolumns / Interactive cross-referencing

2013-01-31 Thread Aditya Mahajan

On Thu, 31 Jan 2013, Thomas De Maet wrote:

Firstly, I'm interested in the multicolumns table issue raised in 
http://wiki.contextgarden.net/TABLE. Do you have an idea of a date for a fix 
? Alternatively, it's quite a huge work to skip portions of tables at the 
good size, especially when an entry is added at the beginning



Can you give an example? The following splits just fine across columns:

\starttext
\startcolumns[n=2]
\bTABLE[split=yes]
\dorecurse{10}
  {\bTR
  \bTD A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
  \eTD
  \bTD A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
  \eTD
   \eTR}
\eTABLE
\stopcolumns
\stoptext


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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] making tables with lua

2012-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

my experience is that the best way is to create the table first, then to call 
Lua function to typeset the table.

You may choose whether the table will be typeset with 'tabulate' family 
functions or 'TABLE' family; I may recommend you the latter as it gives you 
much more control of the final look than the former; 'TABLE' is much better 
anyway.

Once you have such functions prepared, you just select to type:

printTabulate(mytab) -- via 'tabulate'

or

printTABLE(mytab) -- via 'TABLE'

If you insist on 'tabulate' family, you could use the following snippet for 
your start:


\starttext
  \startluacode
local tab = {{1,2},{3,4}}

printTabulate = function(tab)
  context.starttabulate{| .. string.rep(c|, #tab[1])}
context.HL()
for _, r in ipairs(tab) do
  for _, c in ipairs(r) do
context.VL()
context(c)
  end
  context.VL()
  context.NR()
  context.HL()
end
  context.stoptabulate()
end

printTabulate(tab)
  \stopluacode
\stoptext


You can write a similar function(s) to typeset via 'TABLE'.

Best regards,

Lukas


On Wed, 17 Oct 2012 03:13:39 +0200, Jeong Dal hak...@me.com wrote:


Dear all,

I used code which generates the table as following:

\startluacode
local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
HL()
for i=1, 6, 1 do
for j=1,10 ,1 do
k= i % 3
if k==1 then
VL() context(10*(i - k)/3+j)
else
VL()
end
end
VL()
NR()
if k==0 then
HL()
end
end
context.stoptabulate()
\stopluacode

But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the number 
of columns.
I wonder it is possible to use the variable for j to control the number of 
columns and the column setting.
Of course, I may put similar codes  which are different only in the number of 
columns and column settings when I need a table.
But I have many similar tables whose number of columns are different only.
If such a method is possible, I'd like to put such a code in 
\startbuffer…\stopbudffer and call it to generate tables of various number of 
columns given at each time.
I also don't know whether it is possible to convey a number from ConTeXt to the 
variable in Lua code.

I write this email because I saw a hope in recent discussion Re: Fwd: Need help 
with \definetabulate which has a method to vary the column setting.

\definetabulate
[whatever]
[|l|r|]

\definetabulate
[whatever][else]
[|l|c|r|]


It may be a lazy man's question with no need for others.

Thank you for reading.

Best regards,

Dalyoung



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Tabulate.mkiv
Description: Binary data


t-Tabulate.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] making tables with lua

2012-10-17 Thread Hans Hagen
On 17-10-2012 03:13, Jeong Dal wrote:
 Dear all,
 
 I used code which generates the table as following:
 
 \startluacode
 local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
 context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
 HL()
 for i=1, 6, 1 do
   for j=1,10 ,1 do
   k= i % 3
   if k==1 then
   VL() context(10*(i - k)/3+j)
   else
   VL()
   end
   end
   VL()
   NR()
   if k==0 then
   HL()
   end
 end
 context.stoptabulate()
 \stopluacode
 
 But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the 
 number of columns.


context.starttabulate { string.rep(|c,10+1) }


-
  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] making tables with lua

2012-10-17 Thread Jeong Dal
Dear Proch?zka Luk?? Ing and Hans,

Thank you for the reply.

It works fine.

I modify your code to write a matrix and it also works too.

\startformula
\startluacode
local NC, NR = context.NC, context.NR
local t = {{1,0,3,4},{0,2,-2,5},{0,0,1,2}}
context.startmatrix() --{left={\left (\,},right={\,\right)}})
for _, r in ipairs(t) do
for _, c in ipairs(r) do
NC()
context(c)
end
NR()
end
context.stopmatrix()
\stopluacode
\stopformula

But I couldn't put ( ) before and after matrix.
If I use
context.startmatrix({left={\left (\,},right={\,\right)}})
then it wrote left… as text before the matrix.

How to enclose matrix with (  )?

Thank you again.

Best regards,

Dalyoung




  4. Re: making tables with lua
 (Proch?zka Luk?? Ing. - Pontex s. r. o.)
 
 
 Once you have such functions prepared, you just select to type:
 
 printTabulate(mytab) -- via 'tabulate'
 
 or
 
 printTABLE(mytab) -- via 'TABLE'
 
 If you insist on 'tabulate' family, you could use the following snippet for 
 your start:
 
 
 \starttext
  \startluacode
local tab = {{1,2},{3,4}}
 
printTabulate = function(tab)
  context.starttabulate{| .. string.rep(c|, #tab[1])}
context.HL()
for _, r in ipairs(tab) do
  for _, c in ipairs(r) do
context.VL()
context(c)
  end
  context.VL()
  context.NR()
  context.HL()
end
  context.stoptabulate()
end
 
printTabulate(tab)
  \stopluacode
 \stoptext
 
 
 You can write a similar function(s) to typeset via 'TABLE'.
 
 Best regards,
 
 Lukas
 
 
 On Wed, 17 Oct 2012 03:13:39 +0200, Jeong Dal hak...@me.com wrote:
 
 Dear all,
 
 I used code which generates the table as following:
 
 \startluacode
 local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
 context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
 HL()
 for i=1, 6, 1 do
  for j=1,10 ,1 do
  k= i % 3
  if k==1 then
  VL() context(10*(i - k)/3+j)
  else
  VL()
  end
  end
  VL()
  NR()
  if k==0 then
  HL()
  end
 end
 context.stoptabulate()
 \stopluacode
 
 But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the 
 number of columns.
 I wonder it is possible to use the variable for j to control the number of 
 columns and the column setting.
 Of course, I may put similar codes  which are different only in the number 
 of columns and column settings when I need a table.
 But I have many similar tables whose number of columns are different only.
 If such a method is possible, I'd like to put such a code in 
 \startbuffer?\stopbudffer and call it to generate tables of various number 
 of columns given at each time.
 I also don't know whether it is possible to convey a number from ConTeXt to 
 the variable in Lua code.
 
 I write this email because I saw a hope in recent discussion Re: Fwd: Need 
 help with \definetabulate which has a method to vary the column setting.
 
 \definetabulate
 [whatever]
 [|l|r|]
 
 \definetabulate
 [whatever][else]
 [|l|c|r|]
 
 
 It may be a lazy man's question with no need for others.
 
 Thank you for reading.
 
 Best regards,
 
 Dalyoung
 
 
 -- 
 Ing. Luk?? Proch?zka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezov? 1658
 147 14 Praha 4
 
 Tel: +420 244 062 238
 Fax: +420 244 461 038
 -- next part --
 A non-text attachment was scrubbed...
 Name: t-Tabulate.mkiv
 Type: application/octet-stream
 Size: 496 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/d9e8158e/attachment-0001.obj
 -- next part --
 A non-text attachment was scrubbed...
 Name: t-Tabulate.pdf
 Type: application/pdf
 Size: 5121 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/d9e8158e/attachment-0001.pdf
 
 --
 
 Message: 5
 Date: Wed, 17 Oct 2012 08:55:01 +0200
 From: luigi scarso luigi.sca...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] ConTeXt unofficial test suite stub
 Message-ID:
   CAG5iGsB6f+sEzwu6O_p=+TnDzdwFoq4Y3=69z6c5evbt5_p...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8
 
 On Wed, Oct 17, 2012 at 8:44 AM, Marco Pessotto melmo...@gmail.com wrote:
 
 Aditya Mahajan adit...@umich.edu writes:
 
 It may be worthwhile to merge the two repos.
 
 I'm on my way. I'll keep you posted.
 
 
 Can you use graphicsmagick ?
 
 
 -- 
 luigi
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/a99aa46a/attachment.html
 
 --
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 

Re: [NTG-context] making tables with lua

2012-10-17 Thread Wolfgang Schuster

Am 17.10.2012 um 10:34 schrieb Jeong Dal hak...@me.com:

 Dear Proch?zka Luk?? Ing and Hans,
 
 Thank you for the reply.
 
 It works fine.
 
 I modify your code to write a matrix and it also works too.
 
 \startformula
 \startluacode
 local NC, NR = context.NC, context.NR
 local t = {{1,0,3,4},{0,2,-2,5},{0,0,1,2}}
 context.startmatrix() --{left={\left (\,},right={\,\right)}})
 for _, r in ipairs(t) do
 for _, c in ipairs(r) do
 NC()
 context(c)
 end
 NR()
 end
 context.stopmatrix()
 \stopluacode
 \stopformula
 
 But I couldn't put ( ) before and after matrix.
 If I use
 context.startmatrix({left={\left (\,},right={\,\right)}})
 then it wrote left… as text before the matrix.
 
 How to enclose matrix with (  )?


context.startmatrix{left=\\left(\\,,right=\\,\\right)}

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] making tables with lua

2012-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Wed, 17 Oct 2012 10:34:22 +0200, Jeong Dal hak...@me.com wrote:


Dear Proch?zka Luk?? Ing and Hans,

Thank you for the reply.

It works fine.

I modify your code to write a matrix and it also works too.

\startformula
\startluacode
local NC, NR = context.NC, context.NR
local t = {{1,0,3,4},{0,2,-2,5},{0,0,1,2}}
context.startmatrix() --{left={\left (\,},right={\,\right)}})
for _, r in ipairs(t) do
for _, c in ipairs(r) do
NC()
context(c)
end
NR()
end
context.stopmatrix()
\stopluacode
\stopformula

But I couldn't put ( ) before and after matrix.
If I use
context.startmatrix({left={\left (\,},right={\,\right)}})
then it wrote left… as text before the matrix.

How to enclose matrix with (  )?


... See the new sample attached.


printMatrix = function(tab)
  context.startmatrix{left = \\left(\\,, right = \\,\\right)}
for _, r in ipairs(tab) do
  for _, c in ipairs(r) do
context.NC(c)
  end
  context.NR()
end
  context.stopmatrix()
end


Best regards,

Lukas



Thank you again.

Best regards,

Dalyoung



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Tabulate.mkiv
Description: Binary data


t-Tabulate.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] making tables with lua

2012-10-17 Thread Jeong Dal
Dear Wolfgang and Proch?zka Luk?? Ing,

Thank you for the solution.
It works nicely. It is so convenient to write many matrices.

Best regards,

Dalyoung
___
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] making tables with lua

2012-10-16 Thread Jeong Dal
Dear all,

I used code which generates the table as following:

\startluacode
local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
HL()
for i=1, 6, 1 do
for j=1,10 ,1 do
k= i % 3
if k==1 then
VL() context(10*(i - k)/3+j)
else
VL()
end
end
VL()
NR()
if k==0 then
HL()
end
end
context.stoptabulate()
\stopluacode

But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the number 
of columns.
I wonder it is possible to use the variable for j to control the number of 
columns and the column setting.
Of course, I may put similar codes  which are different only in the number of 
columns and column settings when I need a table.
But I have many similar tables whose number of columns are different only.
If such a method is possible, I'd like to put such a code in 
\startbuffer…\stopbudffer and call it to generate tables of various number of 
columns given at each time. 
I also don't know whether it is possible to convey a number from ConTeXt to the 
variable in Lua code.

I write this email because I saw a hope in recent discussion Re: Fwd: Need 
help with \definetabulate which has a method to vary the column setting.

\definetabulate
[whatever]
[|l|r|]

\definetabulate
[whatever][else]
[|l|c|r|]


It may be a lazy man's question with no need for others.

Thank you for reading.

Best regards,

Dalyoung

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

Re: [NTG-context] xtreme tables repeating header

2011-11-07 Thread Patrick Gundlach
Hello Hans,

 quick hack:
 
 \placefigure[split,fixed,none]{}{...}
 
 currently only the the float related splitter will check the available space, 
 so in your case you have a regular flush with skips between the rows and a 
 header/footer only

Works fine, thanks!

Patrick

___
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] Xtreme tables and borders

2011-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

do xtables have (or is it intended to have in the future) support of various 
borders of row or cells?

- Personally, most often I'd would use double line, thick or dashed border 
bellow table head or a row, often also a thick border on the right side of the 
leftmost column:

ASCII art:

+---+---+---+
| A # B | C |
+***#***+***+
|   #   |   |
+---+---+---+
|   #   |   |
+===#===+===+
|   #   |   |
+...#...+...+
|   #   |   |
+---+---+---+

* = thick horizontal line
# = thick vertical line
- = normal line
= = double line
. = dotted line

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Xtreme tables and borders

2011-11-02 Thread Hans Hagen

On 2-11-2011 09:20, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

do xtables have (or is it intended to have in the future) support of
various borders of row or cells?

- Personally, most often I'd would use double line, thick or dashed
border bellow table head or a row, often also a thick border on the
right side of the leftmost column:

ASCII art:

+---+---+---+
| A # B | C |
+***#***+***+
| # | |
+---+---+---+
| # | |
+===#===+===+
| # | |
+...#...+...+
| # | |
+---+---+---+

* = thick horizontal line
# = thick vertical line
- = normal line
= = double line
.. = dotted line


What gets supported also depends on what I need myself (or need in 
projects) so there is no definite answer to this. You can always hook 
some mp background in cells.


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] xtreme tables repeating header

2011-11-01 Thread Patrick Gundlach
Hello,

any news on this subject? 

Thanks!

Patrick



Am 29.10.2011 um 12:41 schrieb Patrick Gundlach:

 Hi,
 
 I can't get the repeating header to work with the new extreme tables (the 
 new column A should be on the second page). What is the error here? 
 
 Thanks
 
 Patrick
 
 
 
 \setuppapersize [a5][a5]
 
 \starttext
 
 \setupxtable
  [width=.5\textwidth,
   split=yes,
   header=repeat,
   footer=repeat]
 
 \startxtable
 \startxtablehead
 \startxrow
  \startxcell  Column A \stopxcell
  \startxcell  Column B  \stopxcell
 \stopxrow
 \stopxtablehead
 \startxtablenext
 \startxrow
  \startxcell  new column A \stopxcell
  \startxcell  new column B  \stopxcell
 \stopxrow
 \stopxtablenext
 \startxtablebody
 \startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
 \stopxrow
 \startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
 \stopxrow
 \startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
 \stopxrow
 \stopxtablebody
 
 \stopxtable
 \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] xtreme tables repeating header

2011-11-01 Thread Hans Hagen

On 1-11-2011 13:54, Patrick Gundlach wrote:

Hello,

any news on this subject?

Thanks!


later, busy and away now

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] xtreme tables repeating header

2011-11-01 Thread Hans Hagen

On 29-10-2011 12:41, Patrick Gundlach wrote:

\setuppapersize [a5][a5]

\starttext

\setupxtable
   [width=.5\textwidth,
split=yes,
header=repeat,
footer=repeat]

\startxtable
  \startxtablehead
  \startxrow
   \startxcell  Column A \stopxcell
   \startxcell  Column B  \stopxcell
\stopxrow
\stopxtablehead
\startxtablenext
  \startxrow
   \startxcell  new column A \stopxcell
   \startxcell  new column B  \stopxcell
\stopxrow
\stopxtablenext
\startxtablebody
\startxrow
   \startxcell \vrule height  7cm \stopxcell
   \startxcell x \stopxcell
\stopxrow
\startxrow
   \startxcell \vrule height  7cm \stopxcell
   \startxcell x \stopxcell
\stopxrow
\startxrow
   \startxcell \vrule height  7cm \stopxcell
   \startxcell x \stopxcell
\stopxrow
\stopxtablebody

\stopxtable
\stoptext


quick hack:

\placefigure[split,fixed,none]{}{...}

currently only the the float related splitter will check the available 
space, so in your case you have a regular flush with skips between the 
rows and a header/footer only



-
  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] xtreme tables repeating header

2011-10-29 Thread Patrick Gundlach
Hi,

I can't get the repeating header to work with the new extreme tables (the new 
column A should be on the second page). What is the error here? 

Thanks

Patrick



\setuppapersize [a5][a5]

\starttext

\setupxtable
  [width=.5\textwidth,
   split=yes,
   header=repeat,
   footer=repeat]

\startxtable
 \startxtablehead
 \startxrow
  \startxcell  Column A \stopxcell
  \startxcell  Column B  \stopxcell
\stopxrow
\stopxtablehead
\startxtablenext
 \startxrow
  \startxcell  new column A \stopxcell
  \startxcell  new column B  \stopxcell
\stopxrow
\stopxtablenext
\startxtablebody
\startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
\stopxrow
\startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
\stopxrow
\startxrow
  \startxcell \vrule height  7cm \stopxcell
  \startxcell x \stopxcell
\stopxrow
\stopxtablebody

\stopxtable
\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] cals tables - UNSOLVED

2011-03-19 Thread R. Ermers
Dear All,

After having succeeded with Aditya's kind help to typeset a table file in a 
separate pdf, I have been trying to typeset the cals tables in my docbook xml 
file in two ways:

A. directly in the document. 

The table is in //section/cals:table.

The cals module is loaded at the beginning of the document. But in the pdf 
there is no trace of any table. Do I need to add 
 definition somewhere? Perhaps in this list where the xml items are introduced?

\xmlsetsetup{#1}{article|footnote|foreignphrase|section [snippet] 
para|quote|itemizedlist|listitem}{xml:*}

This would be contrary to working with the directives and the cals module.

B. as a separate document in a mediaobject
Usually docbook files can contain tables, but there is nothing against imported 
a separate files. I chose to use the graphics wrapper:

  mediaobject role=tabel
imageobject
  imagedata fileref=./test2.xml/  (I also tried 
fileref=test2.xml) 
/imageobject
  /mediaobject

I know that the object is found, because I use a marker (TABEL 3), which is 
printed in the pdf.

\startxmlsetups xml:mediaobject:imageobject:imagedata:tabel
\xmlloaddirectives{directives.xml}
TABEL 3
\xmlprocess{xml:cals:process}{\xmlatt{#1}{fileref}}{}
\stopxmlsetups

The xml file, and I believe here the table file is meant, is not imported 
though. The log file says that the xml file is invalid, but that is not true.  
It is Hans' simple test table (alpha, betha, gamma), it is validated by xml 
software, and moreover, it can be typeset without any problems in a separate 
pdf.

\pagesflushing realpage 24, userpage 24
lxml: 9 directives found in 'directives.xml', 9 valid
load invalid xml file - parsed text

The log file also says that the text is parsed. But there is no text from the 
table in the pdf.

%I tried loading the directives in various places, e.g. directly after the 
module in the top of the document and after the command \startxmlsetups 
xml:dbsetups.

Well, has anyone any advice? Or should I give up on this?

Regards,

Robert





___
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] cals tables - UNSOLVED

2011-03-18 Thread R. Ermers
Dear Aditya,

thanks greatly for your advice! It works! I now can influence how my tables 
look like.

Do you think it is possible to typeset an xml file that contains cals:table, 
or do I need to typeset the tables separately and then import the separate pdf 
files?

Thanks again,

Robert



Op 18 mrt 2011, om 05:08 heeft Aditya Mahajan het volgende geschreven:

 On Thu, 17 Mar 2011, R. Ermers wrote:
 
 Dear All,
 
 I am still trying to typeset cals tables.
 
 I have
 1. an environment document with instructions.
 2. an xml docbook file containing cals tables
 
 Note that the original cals tables (docbook standard) use table, tgroup, 
 etc. but for ConTeXt purposes this  - as far as I understand - needs to be: 
 cals:table, cals:tgroup, etc. (My xml reader does not recognize them 
 anymore.)
 
 
 There is a bug in lxml-dir.lua. Open lxml-dir.lua and change
 
 local collection = xml.applylpath({ getid(xml.load(filename)) },directive) 
 -- is { } needed ?
 
 to
 
 local collection = xml.applylpath(getid(xml.load(filename)),directive) -- 
 AM: removed { }
 
 [@Hans: I do not checked if this affects other uses of directives.load(...).]
 
 Then run c --make to regenerate formats. After that create three files:
 
 %% directives.xml
 ?xml version=1.0 standalone=yes?
 directives
  directive attribute=cdx value=color element=cals:table
 setup=cdx:cals:table:colors/
 /directives
 
 
 %% table.xml
 ?xml version=1.0 standalone=yes?
 
 cals:table cdx=color
  cals:tgroup cols=3
cals:thead
  cals:row
cals:entryalpha/cals:entry
cals:entrybeta/cals:entry
cals:entrygamma/cals:entry
  /cals:row
/cals:thead
cals:tbody
  cals:row
cals:entryone/cals:entry
cals:entrytwo/cals:entry
cals:entrythree/cals:entry
  /cals:row
  cals:row
cals:entryfour/cals:entry
cals:entryfive/cals:entry
cals:entrysix/cals:entry
  /cals:row
/cals:tbody
  /cals:tgroup
 /cals:table
 
 
 %% test.tex
 \usemodule[cals]
 
 \startsetups cdx:cals:table:colors
  \setupTABLE[each][each][background=color,backgroundcolor=red]
 \stopsetups
 
 \starttext
 \xmlloaddirectives{directives.xml}
 \xmlprocess{xml:cals:process}{table.xml}{}
 \stoptext
 
 
 Then compile test.tex to get a table with a red background.
 
 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
 ___

___
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] cals tables - UNSOLVED

2011-03-17 Thread R. Ermers
Dear All,

I am still trying to typeset cals tables. 

I have
1. an environment document with instructions.
2. an xml docbook file containing cals tables

Note that the original cals tables (docbook standard) use table, tgroup, etc. 
but for ConTeXt purposes this  - as far as I understand - needs to be: 
cals:table, cals:tgroup, etc. (My xml reader does not recognize them anymore.)

Among the many things I tried is putting the table in a separate xml file, and 
then import it:

\starttext
\xmlprocess{main}{\xmlatt{#1}{fileref}}{}
\stoptext

This works, so yes, it is possible to produce a standard table on a pdf page. 
This pd file can be imported as an image (which of course is of no help when 
the table is longer than one page).

But the directives - the ones prepared by Hans - have no influence on the 
tables at all. According to the log file the cdx file file is loaded, but the 
directives are not recognized:

lxml : no directives found in 'x-cals-test.cdx'

To solve this, I tried rephrasing the directives as context instructions:

directive attribute='cdx' value=colors element=cals:table 
setup=cdx:cals:table:colors/

\xmlcontextdirective {cdx} {colors} {cals:table} {cdx:cals:table:colors}

But there is no effect, and I don't know whether I did this right. However, 
loading the separate xml file and processing the table remain the main problem. 
When the process instruction is part of a setup in an environment file, such as:

\startxmlsetups xml:mediaobject:imageobject:imagedata:tabel
\xmlloaddirectives{x-cals-test.cdx}%
\xmlprocess{main}{\xmlatt{#1}{fileref}}{}
\stopxmlsetups

The table is not typeset and the entire file is broken off at this point (the 
table xml file is valid of course). 
So the table is probably read in, but then something happens. Without the 
table, the file is typeset normally.

I already read and reread all information in the manuals on this subject, and 
all archived email correspondence.

Can anyone explain me in more than one line how to set up an environmental 
file? Or show me a working minimal example?

Thanks in advance!

Regards,

Robert






___
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] cals tables - UNSOLVED

2011-03-17 Thread Aditya Mahajan

On Thu, 17 Mar 2011, R. Ermers wrote:


Dear All,

I am still trying to typeset cals tables.

I have
1. an environment document with instructions.
2. an xml docbook file containing cals tables

Note that the original cals tables (docbook standard) use table, tgroup, etc. but 
for ConTeXt purposes this  - as far as I understand - needs to be: cals:table, 
cals:tgroup, etc. (My xml reader does not recognize them anymore.)



There is a bug in lxml-dir.lua. Open lxml-dir.lua and change

local collection = xml.applylpath({ getid(xml.load(filename)) },directive) -- 
is { } needed ?

to

local collection = xml.applylpath(getid(xml.load(filename)),directive) 
-- AM: removed { }


[@Hans: I do not checked if this affects other uses of 
directives.load(...).]


Then run c --make to regenerate formats. After that create three files:

%% directives.xml
?xml version=1.0 standalone=yes?
directives
  directive attribute=cdx value=color element=cals:table
 setup=cdx:cals:table:colors/
/directives


%% table.xml
?xml version=1.0 standalone=yes?

cals:table cdx=color
  cals:tgroup cols=3
cals:thead
  cals:row
cals:entryalpha/cals:entry
cals:entrybeta/cals:entry
cals:entrygamma/cals:entry
  /cals:row
/cals:thead
cals:tbody
  cals:row
cals:entryone/cals:entry
cals:entrytwo/cals:entry
cals:entrythree/cals:entry
  /cals:row
  cals:row
cals:entryfour/cals:entry
cals:entryfive/cals:entry
cals:entrysix/cals:entry
  /cals:row
/cals:tbody
  /cals:tgroup
/cals:table


%% test.tex
\usemodule[cals]

\startsetups cdx:cals:table:colors
  \setupTABLE[each][each][background=color,backgroundcolor=red]
\stopsetups

\starttext
\xmlloaddirectives{directives.xml}
\xmlprocess{xml:cals:process}{table.xml}{}
\stoptext


Then compile test.tex to get a table with a red background.

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
___


Re: [NTG-context] cals tables

2011-03-12 Thread R. Ermers
Dear all,

First the good news: I have succeeded in typesetting a table!

I first changed all tag names from table, entry, row to cals:table, 
cals:entry, cals:row, etc. Then the table is read in.

However, the table setup cannot be manipulated by means of the directives, 
because - according to the log file - the directives inside the cdx-file are 
not found (lxml: no directives found in 'x-cals-test.cdx').

Without the directives, the cals table are typeset according to a rough 
standard (framed). I typeset them in a separate document (pdf), which I insert 
as a pdf graphic (mediaobject) file in my main document. This works to some 
extent for short tables, but not for tables that cover more than one page. This 
procedure is also cumbersome, for some font specifications etc. have to be 
transferred to the tex file, and if you change one file, you have to change the 
other as wel. I am now thinking to typeset them with latex instead.

Since one of the main problems seems to be that the cdx file is loaded, but 
that the directives are not found, I tried to solve this problem by putting the 
directives in my docbook xml file, but that did not work either. (I also tried 
a number of other things.)

Can anyone give me a straight minimal example of what to write in my 
environment file or in my docbook file in order to typeset a text that contains 
the adapted cals tables? Which xmlsetsetup do I need?

I have read Hans' brief explanation of the directives 
(http://www.ntg.nl/maps/37/06.pdf), but well, I am not a programmer, I need a 
more straightforward example in order to understand the logics.

Or is it too early for these wishes? Perhaps should we accept that, in spite of 
everything, for the time being docbook files that contain cals tables simply 
cannot be typeset with ConTeXt?

Regards,

Robert

P.S. I use a minimal installation on Mac OS X 10.6.


Op 11 mrt 2011, om 09:35 heeft R. Ermers het volgende geschreven:

 Dear contexers,
 
 I get the impression that cals tables need to be processed separately from 
 the main docbook file.
 Instead of table and tbody, etc. the tags are changed into cals:table, 
 cals:tbody, etc.
 
 I first tried to process the file x-cals-test.tex pointed to by Hans.
 
 This file loads two other files
 \starttext
 \xmlloaddirectives{x-cals-test.cdx}
 \xmlprocess{main}{x-cals-test.xml}{}
 \stoptext
 
 However, the file x-cals-test.xml is not valid.
 
 Therefore I took one of the simple cals tables from within that file, making 
 sure it contains one of the cdx attributes (cdx=vertical) and saved it in 
 x-cals-test2.xml. My xml software says that the file is valid, and it opens 
 normally.
 
 The file are processed now, but the table is not typeset.
 Instead there is an error message printed in the pdf file: invalid xml file - 
 parsed text.
 
 The log file says: lxml: no directives found in 'x-cals-test.cdx' 
 (more log information further)
 
 It seems that the directives are not processed.
 
 x-cals-test2.xml
 
 
 Regards,
 
 Robert
 
 
 
 
 systems : begin file cals-test.tex at line 50
 lxml: no directives found in 'x-cals-test.cdx'
 systems : end file cals-test.tex at line 53
  )
 mkiv lua stats : used config file  - 
 /prog2/context/tex/texmf/web2c/texmfcnf.lua
 mkiv lua stats : used cache path   - 
 /prog2/context/tex/texmf-cache/luatex-cache/context/b37116f3b39a5afbaa249111be7bfbba
 mkiv lua stats : input load time   - 0.008 seconds
 mkiv lua stats : stored bytecode data  - 261 modules, 56 tables, 317 
 chunks
 mkiv lua stats : loaded tex modules- 1 requested, 1 found (*-cals), 0 
 missing
 mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 411
 mkiv lua stats : node memory usage - 18 glue_spec
 mkiv lua stats : node list callback tasks  - 6 unique task lists, 1 instances 
 (re)created, 397 calls
 mkiv lua stats : used backend  - pdf (backend for directly 
 generating pdf output)
 mkiv lua stats : result saved in file  - cals-test.pdf
 mkiv lua stats : fonts load time   - 0.197 seconds 
 mkiv lua stats : luatex banner - this is luatex, version 
 beta-0.65.0-2010121316
 mkiv lua stats : control sequences - 29719 of 165536
 mkiv lua stats : current memory usage  - 41 MB (ctx: 42 MB)
 
 
 
 
 Op 9 mrt 2011, om 14:30 heeft Hans Hagen het volgende geschreven:
 
 On 8-3-2011 9:00, R. Ermers wrote:
 Dear ConTeXers,
 
 I still have not been able to find out how to proceed with my docbook xml 
 document, which contains a number of cals tables.
 The cals module is loaded by means of \usemodule[cals].
 
 How to proceed from here?
 
 Any clue is appreciated!
 
 x-cals-test.*
 
 in the test suite
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 

Re: [NTG-context] cals tables

2011-03-11 Thread R. Ermers
Dear contexers,I get the impression that cals tables need to be processed separately from the main docbook file.Instead of table and tbody, etc. the tags are changed into cals:table, cals:tbody, etc.I first tried to process the file x-cals-test.tex pointed to by Hans.This file loads two other files\starttext\xmlloaddirectives{x-cals-test.cdx}\xmlprocess{main}{x-cals-test.xml}{}\stoptextHowever, the file x-cals-test.xml is not valid.Therefore I took one of the simple cals tables from within that file, making sure it contains one of the cdx attributes (cdx="vertical") and saved it in x-cals-test2.xml. My xml software says that the file is valid, and it opens normally.The file are processed now, but the table is not typeset.Instead there is an error message printed in the pdf file:invalid xml file - parsed text.The log file says:lxml  : no directives found in 'x-cals-test.cdx' (more log information further)It seems that the directives are not processed.

x-cals-test2.xml
Description: XML document
Regards,Robertsystems : begin file cals-test.tex at line 50lxml  : no directives found in 'x-cals-test.cdx'systems : end file cals-test.tex at line 53)mkiv lua stats : used config file - /prog2/context/tex/texmf/web2c/texmfcnf.luamkiv lua stats : used cache path  - /prog2/context/tex/texmf-cache/luatex-cache/context/b37116f3b39a5afbaa249111be7bfbbamkiv lua stats : input load time  - 0.008 secondsmkiv lua stats : stored bytecode data   - 261 modules, 56 tables, 317 chunksmkiv lua stats : loaded tex modules- 1 requested, 1 found (*-cals), 0 missingmkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 411mkiv lua stats : node memory usage - 18 glue_specmkiv lua stats : node list callback tasks - 6 unique task lists, 1 instances (re)created, 397 callsmkiv lua stats : used backend   - pdf (backend for directly generating pdf output)mkiv lua stats : result saved in file   - cals-test.pdfmkiv lua stats : fonts load time  - 0.197 secondsmkiv lua stats : luatex banner   - this is luatex, version beta-0.65.0-2010121316mkiv lua stats : control sequences - 29719 of 165536mkiv lua stats : current memory usage   - 41 MB (ctx: 42 MB)Op 9 mrt 2011, om 14:30 heeft Hans Hagen het volgende geschreven:On 8-3-2011 9:00, R. Ermers wrote:Dear ConTeXers,I still have not been able to find out how to proceed with my docbook xml document, which contains a number of cals tables.The cals module is loaded by means of \usemodule[cals].How to proceed from here?Any clue is appreciated!x-cals-test.*in the test suite- 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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] cals tables

2011-03-09 Thread Hans Hagen

On 8-3-2011 9:00, R. Ermers wrote:

Dear ConTeXers,

I still have not been able to find out how to proceed with my docbook xml 
document, which contains a number of cals tables.
The cals module is loaded by means of \usemodule[cals].

How to proceed from here?

Any clue is appreciated!


x-cals-test.*

in the test suite

-
  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] cals tables

2011-03-08 Thread R. Ermers
Dear ConTeXers,

I still have not been able to find out how to proceed with my docbook xml 
document, which contains a number of cals tables.
The cals module is loaded by means of \usemodule[cals].

How to proceed from here?

Any clue is appreciated!

Regards,

Robert




 On 7-3-2011 12:26, R. Ermers wrote:
 Dear All,
 
 I am struggling with the processing of cals tables in mkiv. I used the 
 module x-cals, in different styles ([x][cals], etc.) but there is no effect, 
 the table is not typeset.
 
 \usemodule x-cals.mkiv
 
 funny syntax
 
 \usemodule[cals]
 
 -
  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] cals tables

2011-03-07 Thread R. Ermers
Dear All,

I am struggling with the processing of cals tables in mkiv. I used the module 
x-cals, in different styles ([x][cals], etc.) but there is no effect, the table 
is not typeset.

\usemodule x-cals.mkiv
\xmlloaddirectives x-cals-test.cdx

By way of experiment I also used the directives, but no avail either.

Should I write an xmlsetup for each element, e.g.

\xmlsetsetup{#1}{//thead}{xml:thead}
\xmlsetsetup{#1}{//entry}{xml:entry}

Can anyone help me out?

Thanks in advance.

Robert

___
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] cals tables

2011-03-07 Thread Hans Hagen

On 7-3-2011 12:26, R. Ermers wrote:

Dear All,

I am struggling with the processing of cals tables in mkiv. I used the module 
x-cals, in different styles ([x][cals], etc.) but there is no effect, the table 
is not typeset.

\usemodule x-cals.mkiv


funny syntax

\usemodule[cals]

-
  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] cals tables

2011-03-07 Thread R. Ermers
Thanks, Hans. But yes, I tried that too (and again) before I tried x-cals 
([x][cals], x-cals, x-cals.mkiv, etc.). But \usemodule[cals] does not work - 
the table is not typeset that is.

luatex: beta-065.0-2010121316.

Robert

Op 7 mrt 2011, om 12:41 heeft Hans Hagen het volgende geschreven:

 On 7-3-2011 12:26, R. Ermers wrote:
 Dear All,
 
 I am struggling with the processing of cals tables in mkiv. I used the 
 module x-cals, in different styles ([x][cals], etc.) but there is no effect, 
 the table is not typeset.
 
 \usemodule x-cals.mkiv
 
 funny syntax
 
 \usemodule[cals]
 
 -
  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
 ___

___
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] cals tables

2011-03-07 Thread R. Ermers
Dear all,

I see in the log file that the cals module is loaded.

system  : module cals loaded
(/prog2/context/tex/texmf-local/tex/context/base/x-cals.mkiv
loading : ConTeXt XML Macros / Cals Tables
+ /prog2/context/tex/texmf-local/tex/context/base/x-cals.lua) 

But the table is not typeset, which I had expected.

I do not know what I need to do now.

Do I need to map all elements to those of a Context table? (\bTABLE ...)?
(such as in: http://www.mail-archive.com/ntg-context@ntg.nl/msg50536.html)

Any advice is welcome.

Regards,

Robert


Op 7 mrt 2011, om 13:41 heeft R. Ermers het volgende geschreven:

 Thanks, Hans. But yes, I tried that too (and again) before I tried x-cals 
 ([x][cals], x-cals, x-cals.mkiv, etc.). But \usemodule[cals] does not work - 
 the table is not typeset that is.
 
 luatex: beta-065.0-2010121316.
 
 Robert
 
 Op 7 mrt 2011, om 12:41 heeft Hans Hagen het volgende geschreven:
 
 On 7-3-2011 12:26, R. Ermers wrote:
 Dear All,
 
 I am struggling with the processing of cals tables in mkiv. I used the 
 module x-cals, in different styles ([x][cals], etc.) but there is no 
 effect, the table is not typeset.
 
 \usemodule x-cals.mkiv
 
 funny syntax
 
 \usemodule[cals]
 
 -
 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
 ___
 
 ___
 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 (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] multipage tables - vertical space

2011-01-02 Thread Peter Van Kranenburg

On 12/6/10 1:18 PM, Hans Hagen wrote:

On 5-12-2010 3:16, Peter Van Kranenburg wrote:

Hello all,

What's wrong with this multipage table?

\starttext
\setuptables[split=repeat]
\placetable[split,here][tab:example]{Long Table Example}{\start
\starttablehead
\HL
\VL \bf A \VL \bf B \VL\MR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|l|]
\dorecurse{100}{\VL first \VL second \VL\MR}
\stoptables
\stop}
\stoptext

On each page, I get a vertical space above the footer. see:
http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf


there is some hard codes tolerance:

\def\tsplitminimumfreelines{2}%

that could be made configurable (not sure what key to use)



Thanks, but I'm still struggling with this. I don't understand what to 
do with your suggestion.


Should I use other table macro's?

best,
Peter van Kranenburg




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





___
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] multipage tables - vertical space

2010-12-06 Thread Hans Hagen

On 5-12-2010 3:16, Peter Van Kranenburg wrote:

Hello all,

What's wrong with this multipage table?

\starttext
\setuptables[split=repeat]
\placetable[split,here][tab:example]{Long Table Example}{\start
\starttablehead
\HL
\VL \bf A \VL \bf B \VL\MR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|l|]
\dorecurse{100}{\VL first \VL second \VL\MR}
\stoptables
\stop}
\stoptext

On each page, I get a vertical space above the footer. see:
http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf


there is some hard codes tolerance:

   \def\tsplitminimumfreelines{2}%

that could be made configurable (not sure what key to use)

-
  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] multipage tables - vertical space

2010-12-05 Thread Peter Van Kranenburg

Hello all,

What's wrong with this multipage table?

\starttext
\setuptables[split=repeat]
\placetable[split,here][tab:example]{Long Table Example}{\start
\starttablehead
\HL
\VL \bf A \VL \bf B \VL\MR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|l|]
\dorecurse{100}{\VL first \VL second \VL\MR}
\stoptables
\stop}
\stoptext

On each page, I get a vertical space above the footer. see:
http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf

Using TeX Live 2009 for Mac OS X:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 (/usr/local/texlive/2009/texmf/web2c/natural.tcx)
entering extended mode
(./tableproblem.tex

ConTeXt  ver: 2009.08.19 17:10 MKII  fmt: 2010.6.15  int: english/english

Thanks in advance!

Best,
Peter van Kranenburg

___
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] Wiki: Tables Overview: What table macros are deprecated?

2010-09-02 Thread Henning Hraban Ramm

Am 2010-09-02 um 00:51 schrieb Paul Menzel:


I was reading up about tables and found the overview in the Wiki [1]
with the following remark.

   Not each provides everything you may need, and the older ones
   are deprecated. [1]

Could someone please clarify which macros are deprecated or which are
the recommended or supported/still developed ones. This question is  
also

asked on the discussion page.


tabulate and TABLE are recommended. table and tables are deprecated  
(but TABLE suports most of table's syntax). linetable is experimental  
(don't know if it's supported on MkIV).



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



smime.p7s
Description: S/MIME cryptographic 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] Wiki: Tables Overview: What table macros are deprecated?

2010-09-02 Thread John Culleton
On Thursday 02 September 2010 12:59:35 Henning Hraban Ramm wrote:
 Am 2010-09-02 um 00:51 schrieb Paul Menzel:
  I was reading up about tables and found the overview in the Wiki
  [1] with the following remark.
 
 Not each provides everything you may need, and the older
  ones are deprecated. [1]
 
  Could someone please clarify which macros are deprecated or which
  are the recommended or supported/still developed ones. This
  question is also
  asked on the discussion page.

 tabulate and TABLE are recommended. table and tables are deprecated
 (but TABLE suports most of table's syntax). linetable is
 experimental (don't know if it's supported on MkIV).


 Greetlings from Lake Constance!

I use the table macros that come with TeXsis instead. 
-- 
John Culleton
Wexford Press
Create Book Covers with Scribus
Printable E-book 38 pages $5.95
http://www.booklocker.com/books/4055.html
___
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] Wiki: Tables Overview: What table macros are deprecated?

2010-09-01 Thread Paul Menzel
Dear ConTeXt folks,


I was reading up about tables and found the overview in the Wiki [1]
with the following remark.

Not each provides everything you may need, and the older ones
are deprecated. [1]

Could someone please clarify which macros are deprecated or which are
the recommended or supported/still developed ones. This question is also
asked on the discussion page.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Tables_Overview
[2] http://wiki.contextgarden.net/Talk:Tables_Overview


signature.asc
Description: This is a digitally signed message part
___
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
___


  1   2   >