Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera
You're right, the manual says what you pasted.
I agree that it is logical and makes sense, but the actual program does not
do it. My version is: "mtx-context
I was using: version: 2017.08.29 19:35
I updated to: version: 2018.01.05 19:26
Reality does not match the manual page you quated.
I recommend that you test before you send out manual pages which are not accurate with the actual processing.
Regards
----
Alan Braslau
According to i-context.pdf ($CONTEXTHOME/tex/context/interface/mkiv)
1 2 \startxcell [...] [..,..=..,..] ... \stopxcell OPT OPT 1 NAME 2 nx=NUMBER ny=NUMBER nc=NUMBER nr=NUMBER inherits: \setupxtable
On Fri, 05 Jan 2018 15:50:51 -0800 "jdh"
wrote: No it wont compile with two groups. It takes the second as content. It may be a version difference. But it likewise would not work as is for me with puting the key=value into the 1st bracket pair.
Version parsing difference?
Alan Braslau
wrote: No, in ConTeXt one NEVER, EVER mixes key=value lists with simple keywords (parsing would otherwise be very less efficient).
The feature to be able to declare a "namespace" (such as the one called "suffix") having particular values of its parameters is really powerful. Think of it as "xtable:suffix" that inherits from the namespace "xtable" but then lives a life of its own...
\startxcell takes and optional namespace specification, i.e. [suffix] and an optional key=value list of parameters, i.e. [ny=2,...]. These parameters override locally the values that are otherwise carried by the namespace.
ConTeXt gurus: I hope that I have gotten this explanation right.
Alan
On Fri, 5 Jan 2018 17:12:40 +0100 Floris van Manen
wrote: apparently
\startxcell[suffix][ny=2] cell a 1 \stopxcell
should be
\startxcell[suffix, ny=2] cell a 1 \stopxcell
On 5 Jan 2018, at 14:32, Hans Hagen
wrote: On 1/5/2018 4:57 AM, Henri wrote:
Dear list, The Natural Tables have this great feature that I can control the layout with rowwise, columnwise, or cellwise setups. For example: \starttext \setupTABLE [frame=off] \setupTABLE [r] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE [c] [2] [style=italic] \setupTABLE [2] [3] [color=red] \setupTABLE [r] [last] [bottomframe=on] \startTABLE \NC A \NC A \NC A \NC\NR \NC B \NC B \NC B \NC\NR \NC C \NC C \NC C \NC\NR \NC D \NC D \NC D \NC\NR \NC E \NC E \NC E \NC\NR \stopTABLE \stoptext
it's also an extremely inefficient method
How can I do such a thing with Extreme Tables? If it is not yet possible I'd like to request the inclusion of such a mechanism. from the manual, named setups:
\setupxtable[suffix][align=middle,foregroundcolor=red] \setupxtable[blabla][foregroundstyle=slanted] \setupxtable[crap] [foregroundcolor=blue] \setupxtable[bold] [crap][foregroundstyle=bold]
\startxtable % [frame=off] \startxtablehead \startxrow[bold] \startxcell[suffix] head a \stopxcell \startxcell[blabla] head b \stopxcell \startxcell head c \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow \startxcell[suffix][ny=2] cell a 1 \stopxcell \startxcell cell b 1 \stopxcell \startxcell cell c 1 \stopxcell \stopxrow \startxrow \startxcell cell b 2 \stopxcell \startxcell cell c 2 \stopxcell \stopxrow \startxrow \startxcell[suffix] cell a 3 \stopxcell \startxcell cell b 3 \stopxcell \startxcell cell c 3 \stopxcell \stopxrow \startxrow \startxcell[suffix] cell a 4 \stopxcell \startxcell cell b 4 \stopxcell \startxcell cell c 4 \stopxcell \stopxrow \startxrow \startxcell[suffix] cell a 5 \stopxcell \startxcell cell b 5 \stopxcell \startxcell cell c 5 \stopxcell \stopxrow \stopxtablebody \stopxtable
----------------------------------------------------------------- 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
jdh mailto:dhenman@gmail.com 6. Januar 2018 um 23:42 You're right, the manual says what you pasted. I agree that it is logical and makes sense, but the actual program does not do it. My version is: "mtx-context
I was using: version: 2017.08.29 19:35 I updated to: version: 2018.01.05 19:26
Reality does not match the manual page you quated. I recommend that you test before you send out manual pages which are not accurate with the actual processing.
The description for the \startxcell command was written two years ago and nothing has changed since then but you have use the \setupxtable command to create a named setup. \setupxtable[emphasized][foregroundstyle=italic] \starttext \startxtable[width=4cm,height=4cm,align={middle,lohi}] \startxrow \startxcell Default settings \stopxcell \startxcell[emphasized] Named settings \stopxcell \stopxrow \startxrow \startxcell[foregroundcolor=red] Direct settings \stopxcell \startxcell[emphasized][foregroundcolor=red] Named + direct settings \stopxcell \stopxrow \stopxtable \stoptext Wolfgang
On Sun, 07 Jan 2018 14:13:11 +0100
Wolfgang Schuster
Reality does not match the manual page you quated. I recommend that you test before you send out manual pages which are not accurate with the actual processing.
The description for the \startxcell command was written two years ago and nothing has changed since then but you have use the \setupxtable command to create a named setup.
Context does not "test" and silently ignores errors, unless they are syntactically incorrect. So unknown keywords and key=value keys are ignored. When one tries to use an "instance" that was not declared, or incorrectly declared, than this usually leads to no effect. Wolfgang made a HUGE effort in combing through ALL of the sources to create the "interface" xml files. He (and others) also work to keep them up to date as the sources evolve. Perhaps before throwing out complaints about the documentation, we (users) should always submit a complete MWE (but it should not contain any unnecessary extra). Quite often, the error is a mixture of keywords with key=value pairs, other times it is an incorrect or misspelled keyword or key, and sometimes it is a real bug or else a missing (and useful) new feature. Alan
participants (3)
-
Alan Braslau
-
jdh
-
Wolfgang Schuster