Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread Wolfgang Schuster via ntg-context
a second page. \setupxtable[width=4cm,option={stretch,width}] \setupxtable[split=yes] \starttext \placetable[here]{} \startxtable \startxrow \startxcell cell one \stopxcell \startxcell cell two \stopxcell \startxcell cell three\stopxcell \stopxrow ... and so on and so forth for twenty or so

[NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread jbf via ntg-context
I cannot understand why my xtable setup does not split to the next page. As far as I can see I have it set up correctly... though obviously not! What might be wrong? Below is a sample. In the real case the number of rows would demand a second page. \setupxtable[width=4cm,option={stretch,width

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Hans Hagen via ntg-context
right. You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? \starttext \setupxtable[suffix][align=middle,foregroundcolor=red] \setupxtable[blabla][foregroundstyle=slanted] \setupxtable[crap] [foregroundcolor

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T. Kurt Bond
> > > My first try with extreme tables looked like this: > > > > == Example > ======== > > \definecolor[tablebackground][r=.8,g=.8,b=.8] > > \setupxtable[background=color,frame=off] > > \setupxtable[row][odd][backgroundcolor=tablebackground] >

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Wolfgang Schuster
with extreme tables looked like this: == Example \definecolor[tablebackground][r=.8,g=.8,b=.8] \setupxtable[background=color,frame=off] \setupxtable[row][odd][backgroundcolor=tablebackground] == End of Example

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Henning Hraban Ramm
e effect with extreme tables? > > My first try with extreme tables looked like this: > > == Example > > \definecolor[tablebackground][r=.8,g=.8,b=.8] > \setupxtable[background=color,frame=off] > \setupxta

[NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T . Kurt Bond
this: == Example \definecolor[tablebackground][r=.8,g=.8,b=.8] \setupxtable[background=color,frame=off] \setupxtable[row][odd][backgroundcolor=tablebackground] == End of Example = That didn't

Re: [NTG-context] xtable in def or setups

2021-05-18 Thread Werner Hennrich
t always run into "runaway error: end of file encountered" whenever the xtable-commands are in there. \definextable[icbtable] \setupxtable[icbtable] [frame=off, top=\vskip7mm] \long\def\iconblock[#1]#2{% \ignorespaces

Re: [NTG-context] xtable in def or setups

2021-05-18 Thread Adam Reviczky
a \setups) > but always run into "runaway error: end of file encountered" > whenever the xtable-commands are in there. > > \definextable[icbtable] > \setupxtable[icbtable] > [frame=off, > top=\vskip7mm] > \long\def\iconblock[#1]#2{% > \ignorespaces > \startxtabl

[NTG-context] xtable in def or setups

2021-05-18 Thread Werner Hennrich
Hello everyone, I'm trying to create an xtable from within a \def (or within a \setups) but always run into "runaway error: end of file encountered" whenever the xtable-commands are in there. \definextable[icbtable] \setupxtable[icbtable] [frame=off, top=\vskip7mm]

[NTG-context] new page before xtable with repeated headers

2021-04-23 Thread Werner Hennrich
o any header, floats or the like - and I don't see yet how I can get this working in my situation. Any help is highly appreciated, here is a MWE of my problem: \definextable[mytable] \setupxtable[mytable] [ option=max, split=repeat, %split=yes, header=repeat, width=\textwidth ] \definextable[mytable:

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
; prefix=no, > align={flushleft,nothyphenated}, > way=bytext] > \setupcaption[table][location=top] > > \setupthinrules[width=15em] % width of horizontal rules > > \setupxtable[frame=off,option=stretch,bodyfont=small,foregroundstyle=

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
~}] \setupcaptions[style={\sans\small}, width=max, prefix=no, align={flushleft,nothyphenated}, way=bytext] \setupcaption[table][location=top] \setupthinrules[width=15em] % width of horizontal rules \setupxtable[frame=off,option=stretch,bodyfont=small

[NTG-context] How to get the last item from an XML node

2020-09-21 Thread Denis Maier
in the \startxtablefoot ...\stopxtablefoot, i.e., I need one command for the last element, and one for the rest (Or is there a better way?). What would be the everything but the last? What am I missing? Thanks again, Denis == \setupxtable[frame=off,split=yes] \setupxtable[head][topframe

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Wolfgang Schuster
e can put the table in a float environment and disable the caption and counter. \startplacetable[location={force,none}]   \startembeddedxtable   ...   \stopembeddedxtable \stopplacetable Many thanks for your reply, Wolfgang. These are my defaults for tables in the document: \setupxtable [f

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
environment and disable the caption and counter. > > \startplacetable[location={force,none}] >   \startembeddedxtable >   ... >   \stopembeddedxtable > \stopplacetable Many thanks for your reply, Wolfgang. These are my defaults for tables in the document: \setupxtable

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
eing typeset in a horizontal context, > based on the error message (at least, if we assume that the error > message was triggered by a table). I think it is easy to trigger the error: \setupxtable[split=yes] \starttext \ifvmode yes\else no\fi \startxtable[align={middle,

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 1:16 PM, Taco Hoekwater wrote: >> On 13 Aug 2020, at 13:07, Pablo Rodriguez wrote: >> [...] >> I get the following error message (that breaks compilation) when I add >> \setupxtable[split=yes]: >> >> You can't use '\prevdepth' in restricted hori

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Taco Hoekwater
> On 13 Aug 2020, at 13:07, Pablo Rodriguez wrote: > > Dear list, > > in order to avoid a problem already reported > (https://mailman.ntg.nl/pipermail/dev-context/2020/003694.html), I added > to an indiviual table \startxtable[split=yes] (being the default in the > doc

[NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
Dear list, in order to avoid a problem already reported (https://mailman.ntg.nl/pipermail/dev-context/2020/003694.html), I added to an indiviual table \startxtable[split=yes] (being the default in the document \setupxtable[split=repeat, header=repeat]). But I’m experiencing a weird issue

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-24 Thread Benjamin Buchmuller
edtext[width=6cm,style=mono] >> \sethyphenationfeatures[dna] >> \setuphyphenation[method=traditional] >> GATTGCTTACTCCTGGTTGG% >> TCTTACATTCTGTCGCCTC% >> CTACTAGAGCCGGCATATT% >> CTAG

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Rik Kabel
\define[1]\DNAspacer{#1\hskip 2.3pt plus .1pt} \define[2]\mycommandc{     \startxrow     \startxcell o#1 \stopxcell     \startxcell {\tt\WORD{\DNA{5'-#2}}}\stopxcell     \stopxrow     } \starttext \setupxtable[width=5cm] \startxtable \my

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Benjamin Buchmuller
\setupxtable[width=5cm] \startxtable \mycommandc{C}{GATTGCTTACTCCTGGTTGGTCTTACATTCTGTCGCCTCCTACTAGAGCCGGCATATTCTAGAAGGGCCGCCTTCATGTGGCCTAGGGCACCATCGCGTACGAGGGCAATGAGTTTACCGCTGCGAAGTCTCTACGTCACGGCCAACCACAGTCCTGCTCCCAACGAAATTTAGACGCTGTCGTGAAACCTGAATTCGAGGATAAGCCGCGTCATGAAGAGTCTACTG} \stopxtable

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Rik Kabel
  \stopxrow     } \define[2]\mycommandc{     \startxrow     \startxcell o#1 \stopxcell     \startxcell 5'-\tt\WORD #2 \stopxcell     \stopxrow     } \definebreakpoint[mybreaks][][nright=12,nleft=12,type=1] \setbreakpoints[mybreaks] \starttext \setupxtabl

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
> the > >>> rounded corners to put the key corner = round, but it does not work. > >> > >> 1. To create a new framed-instance you need \defineframe, \setupframed > isn't > >> enough to set the values. > >> > >> I guess you assumed th

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
, but it does not work. 1. To create a new framed-instance you need \defineframe, \setupframed isn't enough to set the values. I guess you assumed this works similar to xtables but this mechanism sets a few values to assure \setupxtable is enough in certain cases but even here you need \definextable

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
rk. > > 1. To create a new framed-instance you need \defineframe, \setupframed isn't > enough to set the values. > >I guess you assumed this works similar to xtables but this mechanism sets > a few values to assure \setupxtable is enough in certain cases but even here &g

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
the values. I guess you assumed this works similar to xtables but this mechanism sets a few values to assure \setupxtable is enough in certain cases but even here you need \definextable in certain cases. When you create a new instance you have to use the name of the new instance as command

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
ting "split" in the setupfloat and "header=repeat" in the setupxtable gives me a table with repeated headers that starts exactly where I want it to start. Apparently in this case, the "headers=repeat" is necessary. Unfortunately, I need a company logo up in the page header, whic

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
header by a normal text suddenly solves the problem: putting "split" in the setupfloat and "header=repeat" in the setupxtable gives me a table with repeated headers that starts exactly where I want it to start. Apparently in this case, the "headers=repeat" is necess

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Wolfgang Schuster
to "split=repeat" in the setupxtable gives me repeating headers, but the table starts at the second page, leaving the first page with only the text line and all the rest as blank spaces. - Placing the table in a float by activating the 3 commented lines gives me an error ("extr

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Pablo Rodriguez
is is the standard and intended behavior (documented on page 10 from xtables-mkiv.pdf). > - Changing "split=yes" to "split=repeat" in the setupxtable gives me > repeating headers, but the table starts at the second page, leaving the > first page with only the text line and

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
Hello, Code below shows some behaviour I cannot explain (csv file attached): - If I run the code below as is, I get what I want, except that the header line of the table does not repeat at the top of each page. - Changing "split=yes" to "split=repeat" in the setupxtabl

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
ll[left] \cC \stopxcell >> \startxcell[left] \cD \stopxcell >> \startxcell \cE \stopxcell >> \startxcell[left] \cF \stopxcell >> \startxcell \cG \stopxcell >> \startxcell \cH \stopxcell >> \doifdefined{cI}{\startxcell \cI \stopxcell} >> \doifdefined{cJ}

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Wolfgang Schuster
\cF \stopxcell \startxcell \cG \stopxcell \startxcell \cH \stopxcell \doifdefined{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
cH \stopxcell \doifdefined{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, align=middle] \setu

[NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Benjamin Buchmuller
[rulethickness=...] \setupparagraphs[rulethickness=...] \setupsidebar[rulethickness=...] \setuptables[rulethickness=...] \setuptabulation[rulethickness=...] \setuptextbackground[rulethickness=...] \setuptextrules[rulethickness=...] \setupthinrules[rulethickness=...] \setupxtable[rulethickness

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Wolfgang Schuster
    \startxcell xxx \stopxcell     \startxcell xxx \stopxcell     \stopxrow     \stopxtable \stopframedtext \stoptext 2. Why do you try to split a table in a makup environment (which will never work)? \setupxtable[split=yes] is a general setup for the whole document. I mean

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Pablo Rodriguez
ehmode is required to center the table when \startmakeup[standard][align=center]. > 2. Why do you try to split a table in a makup environment (which will > never work)? \setupxtable[split=yes] is a general setup for the whole document. I mean, I don’t want a table in the document to be st

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 18.10.2019 um 16:23: Dear list, I have another issue related to extreme tables. \setupxtable[split=yes] \starttext \startmakeup[standard] \dontleavehmode \startxtable[align={middle,lohi},columndistance=0em] \startxrow

[NTG-context] issue splitting tables and horizontal mode

2019-10-18 Thread Pablo Rodriguez
Dear list, I have another issue related to extreme tables. \setupxtable[split=yes] \starttext \startmakeup[standard] \dontleavehmode \startxtable[align={middle,lohi},columndistance=0em] \startxrow \startxcell

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 16:12: Hello, I can not change the font size of my figures in the table. \startxcell[foregroundstyle={\switchtobodyfont[...]}] or \setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}] \startxcell[smallbodyfont] Wolfgang

Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Hans Hagen
ven more than two passes I guess to be handy to implement both \setupTABLE[c][...] and \setupxtable[c][...] in a similar way, especially when there is a simple mechanism which allows TABLE/xtable switching (ntb-to-xtb module). it would

Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Procházka Lukáš Ing .
th) specification(s), if provided, and keep on reading xcell specification(s), considering xcell width, if provided. I guess to be handy to implement both \setupTABLE[c][...] and \setupxtable[c][...] in a similar way, especially when there is a simple mechanism which allows TABLE/xtable swi

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Fabrice Couvreur
xtablerow,j=\currentxtablecolumn}] 14 15 \setupxtable[background=tablebackground] 16 17 \starttext 18 \startluacode 19 local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Henri Menke
background] [\useMPgraphic{tablebackground}{i=\currentxtablerow,j=\currentxtablecolumn}] \setupxtable[background=tablebackground] > > \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] > > \startuseMPgraphic {tablebackground} > fill OverlayBox withcolor \MPcolor{fondpaille}

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Henri Menke
layBox withcolor \MPcolor{fondpaille} ; \stopuseMPgraphic \defineoverlay [tablebackground] [\ifnum\currentxtablerow=1 \useMPgraphic{tablebackground}% \else\ifnum\currentxtablecolumn=1 \useMPgraphic{tablebackground}% \fi\fi] \setupxtable[background=tablebackground] \sta

Re: [NTG-context] xtables: horizontal splitting

2018-10-13 Thread Tomas Hala
Am 2018-10-12 um 17:20 schrieb Tomas Hala : # ># # ># > Hi all, # ># > # ># > at https://wiki.contextgarden.net/Tables_Overview is mentioned that # ># > the xtables can be splitted even horizontally (which will just suit # ># > me very well). # ># > # ># &g

Re: [NTG-context] xtables: horizontal splitting

2018-10-13 Thread Wolfgang Schuster
t; me very well). # > # > The command \setupxtable[myxtable][split=yes] will do it only # > vertically. I would like to ask what is the correct option for # > the horizonal splitting; neither xtables manual, nor i-context.pdf # > say anything. # &g

Re: [NTG-context] xtables: horizontal splitting

2018-10-13 Thread Tomas Hala
: # # > Hi all, # > # > at https://wiki.contextgarden.net/Tables_Overview is mentioned that # > the xtables can be splitted even horizontally (which will just suit # > me very well). # > # > The command \setupxtable[myxtable][split=yes] will do it only # > vertically.

Re: [NTG-context] xtables: horizontal splitting

2018-10-12 Thread Henning Hraban Ramm
Tomas Hala : > Hi all, > > at https://wiki.contextgarden.net/Tables_Overview is mentioned that > the xtables can be splitted even horizontally (which will just suit > me very well). > > The command \setupxtable[myxtable][split=yes] will do it only > vertically.

[NTG-context] xtables: horizontal splitting

2018-10-12 Thread Tomas Hala
Hi all, at https://wiki.contextgarden.net/Tables_Overview is mentioned that the xtables can be splitted even horizontally (which will just suit me very well). The command \setupxtable[myxtable][split=yes] will do it only vertically. I would like to ask what is the correct option

Re: [NTG-context] xtables multipage horizontally

2018-09-04 Thread be ba
The wiki says I should ask again one week later if I did not get an answer. Could someone please help me with my problem. Thanks. On 8/26/18 6:03 PM, be ba wrote > the wiki says for xtables and multipage "yes, even horizontally". How > can I do that? > > Doing this: >

Re: [NTG-context] protrusion with opening exclamation and question marks

2018-08-29 Thread Hans Hagen
On 8/29/2018 10:12 PM, Pablo Rodriguez wrote: Hi Hans, I have the following sample: \definefontfeature[default][default] [protrusion=quality] \setupxtable[frame=off, option=stretch] \startbuffer[standard] ¿Cómo? ¡No! \stopbuffer \startbuffer

[NTG-context] protrusion with opening exclamation and question marks

2018-08-29 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \definefontfeature[default][default] [protrusion=quality] \setupxtable[frame=off, option=stretch] \startbuffer[standard] ¿Cómo? ¡No! \stopbuffer \startbuffer[right] \hfill¿Cómo? \hfill¡No! \stopbuffer

[NTG-context] xtables multipage horizontally

2018-08-27 Thread be ba
Hi, the wiki says for xtables and multipage "yes, even horizontally". How can I do that? Doing this: \setupxtable[split=yes] is not enough since this only gives vertically splitting. Both http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf and http://wiki.contextgarden.net/

Re: [NTG-context] xtables setup

2018-07-29 Thread Henning Hraban Ramm
e in my example? >> The commented lines below are wrong. Is there another way? > > Hi Hraban, > > I never used natural tables. > > The right approach would be: > >\setupxtable[headtable] >[bottomframe={\ifnum\currentxtablerow = 6 on\fi}, >

Re: [NTG-context] xtables setup

2018-07-29 Thread Pablo Rodriguez
er way? Hi Hraban, I never used natural tables. The right approach would be: \setupxtable[headtable] [bottomframe={\ifnum\currentxtablerow = 6 on\fi}, topframe={\ifcase\currentxtablerow\or on\or on\else off\fi}] I hope it helps, Pablo -- h

[NTG-context] xtables setup

2018-07-29 Thread Henning Hraban Ramm
Hello again, I’m trying xtables for the first time. Is it possible to setup defined rows/columns like with natural tables, e.g. for a header, like in my example? The commented lines below are wrong. Is there another way? \definextable[headtable] % table with repeated head \setupxtable

[NTG-context] Spacebefore and spaceafter a Float

2018-05-28 Thread John Grasty
? Sincerely, John Grasty \setupfloat[table][before={\blank[2*big]}] \setupxtable[frame=off] \setupxtable[head][topframe=on,bottomframe=on] \setupxtable[body][] \setupxtable[foot][bottomframe=on] \starttext \input douglas \startplacetable[title={Cost Overview}] \startxtable \startxtablehead[head

Re: [NTG-context] conditional format in xtables

2018-04-11 Thread Pablo Rodriguez
nd I need \ifcase and \ifodd. I must admit that now I don’t understand what expansion actually is. Many thanks for your help, Pablo >> Pablo Rodriguez 10. April 2018 um 19:18 >> Dear list, >> >> thanks to Wolfgang, I learnt to set conditional format in xtables,

Re: [NTG-context] \ifcase changes default align in xtables

2018-04-10 Thread Wolfgang Schuster
In your example the argument for the align key is always empty which results in the default alignment for a frame which put the content in the middle of the box. Wolfgang Pablo Rodriguez <mailto:oi...@gmx.es> 10. April 2018 um 21:05 Dear list, I have the following sample: \setup

Re: [NTG-context] conditional format in xtables

2018-04-10 Thread Wolfgang Schuster
format in xtables, such as in: \setupxtable [foregroundcolor={\ifnum\currentxtablecolumn=2 red\else green\fi}] \starttext \startxtable \startxrow \startxcell one \stopxcell \startxcell two \stopxcell \startxcell tree \stopxcell \startxcell four \stopxcell \stopxrow \stopxtable \stoptext My qu

[NTG-context] \ifcase changes default align in xtables

2018-04-10 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupxtable[mytable] [option={stretch, height}, align={\ifcase\currentxtablerow\fi}] \starttext \startxtable[mytable] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell

[NTG-context] conditional format in xtables

2018-04-10 Thread Pablo Rodriguez
Dear list, thanks to Wolfgang, I learnt to set conditional format in xtables, such as in: \setupxtable [foregroundcolor={\ifnum\currentxtablecolumn=2 red\else green\fi}] \starttext \startxtable \startxrow \startxcell one \stopxcell \startxcell

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

2018-02-28 Thread Hans Hagen
,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

[NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz
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

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera

2018-01-07 Thread Alan Braslau
. > > 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. S

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera

2018-01-07 Thread Wolfgang Schuster
ou 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] Nam

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera

2018-01-07 Thread jdh
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" <dhen...@gmail.com>

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera

2018-01-06 Thread 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&q

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise opera

2018-01-06 Thread jdh
gt; >> \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

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise operations

2018-01-05 Thread Alan Braslau
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

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise operations

2018-01-05 Thread Floris van Manen
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, name

Re: [NTG-context] xtables: rowwise, columnwise, and cellwise operations

2018-01-05 Thread Hans Hagen
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

Re: [NTG-context] professional looking tables

2016-12-23 Thread Csikos Bela
Thank you for your help so far. Now I am close to what I'd like to achieve. I want to insert a foot on every pages except on the last page (at the end of the table). Is it possible? I have this simple code: \starttext \setupxtable[split=repeat,header=repeat,footer=repeat] \startxtable[frame

Re: [NTG-context] professional looking tables

2016-12-22 Thread Csikos Bela
e habitant morbi tristique senectus et netus >> \stopxcell >> \startxcell Pellentesque \stopxcell >> \stopxrow >> \startxrow >> \startxcell Donec nunc lorem, sollicitudin vel sodales eget >> \stopxcell >> \startxcell Donec nunc lor

Re: [NTG-context] professional looking tables

2016-12-22 Thread Hans Hagen
\stopxcell \startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell \startxcell Donec \stopxcell \stopxrow \stopxtable \stoptext How can I fix this? \setupxtable[one] [width=4cm] \setupxtable[two] [width=5cm

[NTG-context] space before and after an xtable

2016-11-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupxtable[option={stretch}] \setupxtable[beforeafter] [before={\blank[big]}, after={\blank[big]}] \starttext \dorecurse{5}{\startembeddedxtable[beforeafter] \startxrow \startxcell first

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
lus 0.2ex] \setupxtable[frame=off, boffset=0pt, toffset=0pt, rulethickness=0pt] \starttext Good\crlf \startxtable \startxrow \startxcell spacing \stopxcell \stopxrow \startxrow \startxcell here. \stopxcell \stopxrow \stopxtable Unwanted\blank[depth] \startxtable \startxrow \startxcell

Re: [NTG-context] applying properties to columns / rows in xtables

2016-02-17 Thread Pablo Rodriguez
On 02/17/2016 04:22 PM, Wolfgang Schuster wrote: > [...] > \setupxtable[align=\ifcase\currentxtablecolumn\or flushright\else middle\fi] Many thanks for your fast reply, Wolfgang. This is exactly what I need. I wouldn’t have found out myself in centuries. Many thanks for your help,

Re: [NTG-context] applying properties to columns / rows in xtables

2016-02-17 Thread Wolfgang Schuster
pxcell \stopxrow \startxrow \startxcell[align=left] alpha \stopxcell \startxcell[align=center] beta \stopxcell \stopxrow \stopxtable \stoptext I don’t know whether there is something similar to: \setupxtable[column:first][align=left] Having to add an identifier to the xcell is something that I woul

Re: [NTG-context] applying properties to columns / rows in xtables

2016-02-17 Thread Pablo Rodriguez
\startxcell[align=center] beta \stopxcell \stopxrow \stopxtable \stoptext I don’t know whether there is something similar to: \setupxtable[column:first][align=left] Having to add an identifier to the xcell is something that I would like to avoid too. Many than

[NTG-context] setting lineheight in embedded xtables

2015-10-19 Thread Thomas A. Schmitz
] \xmlflush{#1} \stopxrow \stopxmlsetups \startxmlsetups xml:bilingualcell \startxcell [width=0.4\textwidth,align=normal,ny=\xmlattdef{#1}{ny}{1}] \xmlflush{#1} \stopxcell \stopxmlsetups \setupxtable [Bilingual] [option=stretch

Re: [NTG-context] issues with typeface selection

2015-08-10 Thread Pablo Rodriguez
into that later) as i don't upload today you can test \setupxtable[newtimes][foregroundstyle=\newtimes] \startxcell[newtimes] ...\stopxcell Many thanks for your fix, Hans. It works perfect now. Pablo -- http://www.ousia.tk

Re: [NTG-context] issues with typeface selection

2015-08-09 Thread Hans Hagen
do it for cells but so far other mechanisms were less sensitive for this (we'd need an extension to luatex for handling such cases ... maybe i'll look into that later) as i don't upload today you can test \setupxtable[newtimes][foregroundstyle=\newtimes] \startxcell[newtimes

[NTG-context] issues with xtable

2015-07-04 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupxtable[frame=on, option=stretch] \setupxtable[name][foregroundstyle=\bfc, ny=3, align=lohi] \setupxtable[cv][foregroundstyle=\em, ny=2, align=bottom] \setupxtable[contact][foregroundstyle=\em, align=flushright] \starttext \startxtable \startxrow

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
to remove them. There is something I do not understand and I hope you can explain this. The table is typeset by the \xmlflush{#1} in the table macro: \startxmlsetups xmlcommon:table Z\bgroup \setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Wolfgang Schuster
\setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit,width=fit, align={center,lohi},columndistance=0pt] \setupxtableparameters{#1} \startlocationbox{#1} \removeunwantedspaces \startembeddedxtable X\xmlflush{#1}Y\stopembeddedxtable \ignorespaces

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
\startxmlsetups xmlcommon:table \bgroup \setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit,width=fit, align={center,lohi},columndistance=0pt] \setupxtableparameters{#1} \startlocationbox{#1} \startembeddedxtable \xmlflush{#1} \removeunwantedspaces

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Wolfgang Schuster
Am 24.05.2015 um 18:01 schrieb Meer, H. van der h.vanderm...@uva.nl: Defined as follows: \def\setupxtableparameters#1{% #1 is the node \setupframeparameters{#1}{\setupxtable}% \setupToAttribute{#1}{\setupxtable}{foregroundstyle}{style}{style}{\tf}% \setupToAttribute{#1}{\setupxtable

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
}{lohi}% } % Setups for tables with xtable. \def\setupxtableparameters#1{% \setupframeparameters{#1}{\setupxtable}% \setupToAttribute{#1}{\setupxtable}{foregroundstyle}{style}{style}{\tf}% \setupToAttribute{#1}{\setupxtable}{offset}{cellpadding}{}{0pt}% \setupToAttribute{#1}{\setupxtable

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
Defined as follows: \def\setupxtableparameters#1{% #1 is the node \setupframeparameters{#1}{\setupxtable}% \setupToAttribute{#1}{\setupxtable}{foregroundstyle}{style}{style}{\tf}% \setupToAttribute{#1}{\setupxtable}{offset}{cellpadding}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{columndistance

Re: [NTG-context] aligning \placetable with bidi

2014-11-17 Thread Hans Hagen
On 11/16/2014 8:53 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, In the following, we middle align both \placetable's: \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \setupxtable[width=1in] \showframe

Re: [NTG-context] Macros in \start-stopTABLE

2014-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
don’t know how you could make it work with TABLE, but your macro seems to work with xtables: \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \define\NCD{\stopxcell\startxcell\righttoleft} \setupxtable[width=1in] \starttext

[NTG-context] aligning \placetable with bidi

2014-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, In the following, we middle align both \placetable's: \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \setupxtable[width=1in] \showframe \starttext \startalignment[middle] \ALM \placetable[middle,none

Re: [NTG-context] Macros in \start-stopTABLE

2014-11-15 Thread Pablo Rodriguez
to work with xtables: \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \define\NCD{\stopxcell\startxcell\righttoleft} \setupxtable[width=1in] \starttext \ALM \placetable[right,none]{} {\startxtable

Re: [NTG-context] xtables and xml and lua

2014-06-18 Thread Hans Hagen
in test-style.tex) \setupxtable [split=yes, spaceinbetween=medium] for the xtable environment, I get an error: tex errorerror on line 22 in file /mnt/shared/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! You can't use `\prevdepth' in horizontal mode

[NTG-context] Multipage xtables starts at the wrong page

2014-01-07 Thread Marco Pallante
Hello everyone, I'm using ConTeXt to write a technical manual and I'm facing with some strange behavior I don't know how to overcome. I need a multipage table and I'm using the xtables. This is a (stripped down) version of a part of my document: \mainlanguage [en] \setupxtable [externaldocs

Re: [NTG-context] two questions for the simplest slides

2012-07-22 Thread Pablo Rodríguez
, how can I make that the first column are aligned to the right? \setupxtable[xcell][1][align=right] doesn't seem to work. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest

  1   2   >