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

2023-03-28 Thread Wolfgang Schuster via ntg-context
jbf schrieb am 28.03.2023 um 10:43: Got it! But I would not have picked that up from reading http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my guide for this particular exercise. It certainly says \placetable[here,split] but there is no mention of the \start...stop vers

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

2023-03-28 Thread jbf via ntg-context
Got it! But I would not have picked that up from reading http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my guide for this particular exercise. It certainly says \placetable[here,split] but there is no mention of the \start...stop version of that. Anyway, I now understand

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

2023-03-28 Thread Wolfgang Schuster via ntg-context
jbf via ntg-context schrieb am 28.03.2023 um 10:27: 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 secon

[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] xtable as list item (again)

2021-06-16 Thread Pablo Rodriguez
On 6/16/21 9:56 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 15.06.2021 um 19:57: >>[...] >>\showframe\showstruts >>\starttext >>\startitemize[n][margin=yes] >>\item a >>\item >> \startembeddedxtable[option={stretch, width}] >> \dorecurse{25}{\startxrow >>

Re: [NTG-context] xtable as list item (again)

2021-06-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.06.2021 um 19:57: Dear list, I already posted a similar question some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I got no reply. I have the following sample: \showframe\showstruts \starttext \startitemize[n][margin=yes]

[NTG-context] xtable as list item (again)

2021-06-15 Thread Pablo Rodriguez
Dear list, I already posted a similar question some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I got no reply. I have the following sample: \showframe\showstruts \starttext \startitemize[n][margin=yes] \item a \item \startembeddedxtable[option={st

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

2021-05-18 Thread Werner Hennrich
Hi Adam, no, I hadn't tried that - even tough I had skimmed over that part way back, it now escaped me. \long\def\iconblock[#1]#2{% \ignorespaces *\startembeddedxtable[icbtable]* \startxrow \startxcell[width=17mm] \externalfigure[img/#1.svg][height=15mm,width=15mm] \stopxcell

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

2021-05-18 Thread Adam Reviczky
Hi Werner, Did you try startembeddedxtable ? See Section 5 in the manual ( https://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf). Adam On Tue, May 18, 2021 at 6:38 PM Werner Hennrich wrote: > Hello everyone, > > I'm trying to create an xtable from within a \def (or within a \setups) >

[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] \long\def\iconb

[NTG-context] xtable as list item

2021-01-12 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize[n][margin=yes] \item a \item \startembeddedxtable[option={stretch, width}] \dorecurse{25}{\startxrow \startxcell \Characters{\recurselevel}\stopxcell \startxcell \characters{\recurselevel}\stopxcell \

Re: [NTG-context] xtable row number trouble

2020-10-27 Thread Oleg
On Mon, Oct 26, 2020 at 10:42:47PM +0100, Wolfgang Schuster wrote: > Oleg schrieb am 26.10.2020 um 21:03: > > It seems that reseting once at table start is simpler, isn't it :-)? > > Try your method with natural table or tabulate and it won't work anymore. ok. > > What is the difference between

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Wolfgang Schuster
Oleg schrieb am 26.10.2020 um 21:03: On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: Oleg schrieb am 25.10.2020 um 14:51: Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \s

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Oleg
On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: > Oleg schrieb am 25.10.2020 um 14:51: > > Hi, all. > > > > I try to place a row number into the first column of my table. > > I tried: > > > > \definecounter[rownum][way=bytext,prefix=no] > > \setcounter[rownum][0] > > > > \star

Re: [NTG-context] xtable row number trouble

2020-10-25 Thread Wolfgang Schuster
Oleg schrieb am 25.10.2020 um 14:51: Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum]

[NTG-context] xtable row number trouble

2020-10-25 Thread Oleg
Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell

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

2020-04-03 Thread Pablo Rodriguez
On 4/3/20 3:16 PM, Geert Dobbels wrote: > Pablo, > > Gracias, your suggestion with \rownums works.  I will try this one too, > since it is a simpler solution.  By the way, All information I have > about handlecsv comes from the PDF file you wrote.  \rownums and \lineno > are not explained in this d

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

2020-04-03 Thread Geert Dobbels
Wolfgang, Thanks for this.  It works, however, the page where the table starts has three lines of text before the table starts.  After inserting "split=repeat", the table jumps to the next page, leaving the rest of the page with the three lines of text completely blank.  This did not happen withou

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

2020-04-03 Thread Geert Dobbels
Pablo, Gracias, your suggestion with \rownums works.  I will try this one too, since it is a simpler solution.  By the way, All information I have about handlecsv comes from the PDF file you wrote.  \rownums and \lineno are not explained in this document.  Do you know of documentation that describ

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

2020-04-03 Thread Pablo Rodriguez
On 4/3/20 12:31 PM, Pablo Rodriguez wrote: > On 4/3/20 11:57 AM, Geert Dobbels wrote: >> [...] >> So in my second \doloopfromto I give the second argument a number >> high enough to be sure it reads all the lines. It works fine, but I >> would like to know if there is a way to read the number of li

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

2020-04-03 Thread Pablo Rodriguez
On 4/3/20 11:57 AM, Geert Dobbels wrote: > Hello, > > The sample below has 2 problems I cannot find the solution for: > > I am reading a table from a CSV file and want to typeset it via \xtable. > > The xtable as defined below works, it splits over several pages, but the > header does not repeat. I

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

2020-04-03 Thread Wolfgang Schuster
Geert Dobbels schrieb am 03.04.2020 um 11:57: Hello, The sample below has 2 problems I cannot find the solution for: I am reading a table from a CSV file and want to typeset it via \xtable. The xtable as defined below works, it splits over several pages, but the header does not repeat. I have

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
Hello, The sample below has 2 problems I cannot find the solution for: I am reading a table from a CSV file and want to typeset it via \xtable. The xtable as defined below works, it splits over several pages, but the header does not repeat. I have seen examples in the mailing list where people p

[NTG-context] xtable and natural tables

2019-02-19 Thread Damien Thiriet
Hi list, From Hans xtable manual: As each cell is basically a \framed and as we need to do two passes over the table, this mechanism is not the fastest but it is some two times faster than the natural tables mechanism, and in most cases can be used instead. Manuals examples are of course short o

Re: [NTG-context] xtable First row missing in document

2018-11-24 Thread Christopher Bock
t | fatal error: return code: 100 Thanks Chris Von: Wolfgang Schuster Gesendet: Samstag, 24. November 2018 10:59 An: mailing list for ConTeXt users ; Christopher Bock Betreff: Re: [NTG-context] xtable First row missing in document Christopher Bock schrieb am 23.11.18 um 16:1

Re: [NTG-context] xtable First row missing in document

2018-11-24 Thread Wolfgang Schuster
Christopher Bock schrieb am 23.11.18 um 16:14: Hi all, I think I found another bug in xtable (or placetable). The last table in the MWE is not showing the first row (the header row). Remove the split setting (\startxtable[split=yes]) from the tables because the "split" keyword (\placetable

[NTG-context] xtable First row missing in document

2018-11-23 Thread Christopher Bock
Hi all, I think I found another bug in xtable (or placetable). The last table in the MWE is not showing the first row (the header row). Thanks, Chris mwe.pdf Description: Adobe PDF document mwe.tex Description: Binary data _

[NTG-context] xtable in itemize

2018-11-12 Thread Florian Rudt
Dear list, I don’t find how to align xtables in lists. My mwe: \starttext \startitemize \item \input knuth \blank \startxtable[option=stretch] \startxrow \startxcell text \stopxcell \startxcell more text \stopxcell \stopxrow \stopxtable \item \input knuth \stopitemize \stoptext The table has th

[NTG-context] xtable setup

2017-03-29 Thread Henning Hraban Ramm
Hi again, I’m trying xtables with the natural tables emulation (\usemodule[ntb-to-xtb]). While it works generally, I found no way to influence the lines (e.g. frame=off) or settings like \setupTABLE[c][1,2,3][align=flushright] \setupTABLE[r][first,last][style=bold] Is this supposed to work? A

Re: [NTG-context] xtable align

2016-07-18 Thread Wolfgang Schuster
John Kitzmiller 18. Juli 2016 um 17:58 In the first table, the lohi of align works, but the middle does not have any effect. Putting the content in a frame gives the desired result as in the second table. This is not a problem, I just wondered if it is supposed to wor

[NTG-context] xtable align

2016-07-18 Thread John Kitzmiller
In the first table, the lohi of align works, but the middle does not have any effect. Putting the content in a frame gives the desired result as in the second table. This is not a problem, I just wondered if it is supposed to work in the first table. Thanks, John \useMPlibrary[dum] \starttext

Re: [NTG-context] xtable

2012-06-22 Thread Meer, H. van der
On 22 jun. 2012, at 12:48, Wolfgang Schuster wrote: You should also know that each xtable cell is a framed (it uses the \framed code) like natural tables and \setupxtable accepts the same arguments as \setupframed. I knew already, which is what me did develop the macros. No need to give compl

Re: [NTG-context] xtable

2012-06-22 Thread Wolfgang Schuster
Am 22.06.2012 um 12:00 schrieb Meer, H. van der: > > On 22 jun. 2012, at 10:53, Wolfgang Schuster wrote: > >> >> Am 21.06.2012 um 16:27 schrieb Meer, H. van der: >> >>> Can one put individual horizontal and vertical lines between rows/columns >>> in xtable? Just like for example \HL in \star

Re: [NTG-context] xtable

2012-06-22 Thread Meer, H. van der
On 22 jun. 2012, at 10:53, Wolfgang Schuster wrote: > > Am 21.06.2012 um 16:27 schrieb Meer, H. van der: > >> Can one put individual horizontal and vertical lines between rows/columns in >> xtable? Just like for example \HL in \starttable? > > You can use MetaPost to draw the rules but it’s a

Re: [NTG-context] xtable

2012-06-22 Thread Wolfgang Schuster
Am 21.06.2012 um 16:27 schrieb Meer, H. van der: > Can one put individual horizontal and vertical lines between rows/columns in > xtable? Just like for example \HL in \starttable? You can use MetaPost to draw the rules but it’s awkward because you can make a setup like this \setuxptable[col

[NTG-context] xtable

2012-06-21 Thread Meer, H. van der
Can one put individual horizontal and vertical lines between rows/columns in xtable? Just like for example \HL in \starttable? The workings of parameter spaceinbetween on \startxtable remain a mystery to me. Can someone enlighten me? Hans van der Meer

[NTG-context] xtable cellcentering?

2012-05-17 Thread Meer, H. van der
Why does this one centers the contents in the cells? \startxtable[offset=1cm]% By the way: coloring does nothing here. why? \startxrow \startxcell one \stopxcell \startxcell two \stopxcell \stopxrow \startxrow \startxcell[foregroundcolor="blue"] alpha \stopxcell \star

[NTG-context] xtable spaceinbetweent?

2012-05-17 Thread Meer, H. van der
\startxtable[spaceinbetween=0cm] \startxrow \startxcell one \stopxcell \startxcell two \stopxcell \stopxrow \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell \stopxrow \stopxtable I cannot follow the behaviour of spaceinbetween. When absent the rows are p

[NTG-context] xtable question

2012-05-17 Thread Meer, H. van der
I have the following xmlsetup for a tablecell in xtable (plus other appropiate definitions): \startxmlsetups xmlcommon:td \startxcell[\doifnot{\xmlatt{#1}{width}}{\empty}{width={\xmlatt{#1}{width}}},] \xmlflush{#1} \stopxcell \stopxmlsetups and the following table:

[NTG-context] xtable question backgroundcolor

2012-05-17 Thread Meer, H. van der
I have the following xmlsetup for a table and tablecell in xtable (plus other appropiate definitions): \startxmlsetups xmlcommon:table \startembeddedxtable[background=color,backgroundcolor=\xmlatt{#1}{bgcolor}] .. \startxmlsetups xmlcommon:td \startxcell[backgroundcolor=\xmlatt{#1}{bgcolor},] .. \

[NTG-context] xtable cell centering?

2012-05-17 Thread Meer, H. van der
Sorry for the previous post, but accidentely the mail flew away far too soon! Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] xtable formatting issues

2012-01-18 Thread Brian Landy
Hi, I’ve been experimenting a bit with converting some natural tables into xtables and ran across two issues. The first has to do with nested xtables and settings. In particular, if you attempt to set a cell’s width on the internal table using \setupxtable the option is lost. In the below exa

Re: [NTG-context] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Andreas Harder
On 24.11.2011, at 17:19, Hans Hagen wrote: > On 24-11-2011 11:24, Andreas Harder wrote: >> Hi Hans, >> >> it seems \processtablebuffer ignores the table settings (at least the >> stretch-option). >> >> \starttext >> >> \startbuffer[my:xtable] >> \startxtable[option=stretch] >> \startxro

Re: [NTG-context] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Hans Hagen
On 24-11-2011 11:24, Andreas Harder wrote: Hi Hans, it seems \processtablebuffer ignores the table settings (at least the stretch-option). \starttext \startbuffer[my:xtable] \startxtable[option=stretch] \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell

[NTG-context] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Andreas Harder
Hi Hans, it seems \processtablebuffer ignores the table settings (at least the stretch-option). \starttext \startbuffer[my:xtable] \startxtable[option=stretch] \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell \startxcell gamma \stopxcell \stopxrow