[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
rtparagraphs Command/ startparallel Command/ startplacefloat Command/ startplacepairedbox Command/ startsection Command/ startsectionblock Command/ startstartstop Command/ startstop Command/ startstyle Command/ starttabulate Command/ starttextbackground Command/ starttyping Command/ startviewerlayer

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

2023-03-28 Thread Wolfgang Schuster via ntg-context
{...} or \bgoup ...\egroup as second mandatory argument, in your case you has been lucky because \startxtable has an \bgroup in its definition but you shouldn't rely on this. Wolfgang ___ If your question

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
}] \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 rows, but certainly enough to require a second page

Re: [NTG-context] The same Table, im Math Modus?

2023-03-23 Thread Ursula Hermann via ntg-context
Math Modus? Ursula Hermann via ntg-context mailto:ntg-context@ntg.nl>> 于2023年3月21日周二 20:45写道: I’d like to do a Table lik this one [enter image description here] I have no example. How can I do that? You can use xtable, e.g. \startxtable[frame=off,width=1cm,align=center] \startxrow[botto

Re: [NTG-context] The same Table, im Math Modus?

2023-03-22 Thread 李延瑞
Ursula Hermann via ntg-context 于2023年3月21日周二 20:45写道: > > > I’d like to do a Table lik this one > > [image: enter image description here] > > I have no example. How can I do that? > > > You can use xtable, e.g. \startxtable[frame=off,width=1cm,align=center] \startx

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\eTR \bTR \bTD One \eTD \bTD two \eTD \eTR \eTABLE \stopplacetable % \startpostponingnotes \startplacetable \startxtable \startxrow \startxcell a\footnote{5}\stopxcell \startxcell b\footnote{6}\stopxcell \stopxrow \stopxtable \stopplacetable % \stoppostponingnotes \stoptext

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\NC\NR \stoptabulate \stopplacetable \startplacetable \bTABLE \bTR \bTD One\footnote{4} \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR \eTABLE \stopplacetable % \startpostponingnotes \startplacetable \startxtable \startxrow \startxcell a\footnote{5}\stopxcell \startxcell b\footnote

Re: [NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 9:14 PM, Rik Kabel via ntg-context wrote: With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: \starttext \startxtable   \startxrow     \startxcell   This is a line of text.     \stopxcell     \startxcell

[NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Rik Kabel via ntg-context
With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: \starttext \startxtable   \startxrow     \startxcell   This is a line of text.     \stopxcell     \startxcell   \contextversion     \stopxcell   \stopxrow

Re: [NTG-context] filling buffers in cld documents

2022-11-27 Thread Hans Hagen via ntg-context
txcell {"width=1.5cm","align=flushright"} context(Eleve[note]) context("/") context(notemax)   context.stopxcell ()    end    \stopluacode    \startbuffer [grille]    \startxtable   \startxrow \startxcell     \ct

[NTG-context] filling buffers in cld documents

2022-11-27 Thread damien thiriet via ntg-context
context(Eleve[note]) context("/") context(notemax) context.stopxcell () end \stopluacode \startbuffer [grille] \startxtable \startxrow \startxcell \ctxlua {userdata.Critere ("structure","NoteStructure"

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Pablo Rodriguez via ntg-context
lly so the text is vertically centered just in > specific rows? Hi Joel, I have no experience with tabulates, but I wouldn’t be surprised if they didn’t support vertical alignment. You can achieve that with xtables: \starttext \startxtable[frame=off, option={stretch, width}] \startxrow[topfra

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Wolfgang Schuster via ntg-context
one marked row. By default, they seem to place each cell aligned to the top, but how can I adjust them vertically so the text is vertically centered just in specific rows? Use natural or extreme tables. \starttext \startxtable[frame=off,topframe=on,bottomframe=on] \startx

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

2022-06-30 Thread Pablo Rodriguez via ntg-context
starttext \showframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \dorecurse{5} {\startxcell[width=.115\textwidth]\inlinebuffer\

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

2022-06-30 Thread Pablo Rodriguez via ntg-context
wframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \startxcell[width=3cm, option=fixed]\inlinebuffer\stopxcell \dorecurse{5} {\star

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

2022-06-30 Thread Hans Hagen via ntg-context
=blue] \setupxtable[bold] [crap][foregroundstyle=bold] \startxtable[frame=off] \startxtablehead \startxrow[bold] \startxcell[suffix] a 0 \stopxcell \startxcell[blabla] a 1 \stopxcell \startxcell a 2 \stopxcell \stopxrow

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

2022-06-30 Thread Henning Hraban Ramm via ntg-context
Am 30.06.22 um 08:40 schrieb Angel M Alganza via ntg-context: Hello, Hans, On Thu, Jun 30, 2022 at 08:16:53AM +0200, Hans Hagen via ntg-context wrote: \startxtable[option=stretch]   \startxrow   \startxcell[width=3cm,option=fixed] one \stopxcell Thank you very much, that does part

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

2022-06-30 Thread Angel M Alganza via ntg-context
Hello, Hans, On Thu, Jun 30, 2022 at 08:16:53AM +0200, Hans Hagen via ntg-context wrote: \startxtable[option=stretch] \startxrow \startxcell[width=3cm,option=fixed] one \stopxcell Thank you very much, that does part of the trick (the column width). Is there a way to do the same

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

2022-06-30 Thread Hans Hagen via ntg-context
t possible to have ConTeXt do all those calculations for me? I haven't been able to figure it out from the manuals and the wiki. \starttext \startxtable[option=stretch] \startxrow \startxcell[width=3cm,option=fixed] one \stopxcell \startxcell two \stopxcell \startxcell three

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-12 Thread Denis Maier via ntg-context
extgarden.net/Command/_starttyping>) says there are > > some dedicated commands, e.g. \startXML and \startPARSEDXML. How do > > they differ? > > Hi Denis, > > yesterday I had to start using xml instead of parsed-xml. > > See the difference: > > \setu

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-11 Thread Pablo Rodriguez via ntg-context
\startPARSEDXML. How do they > differ? Hi Denis, yesterday I had to start using xml instead of parsed-xml. See the difference: \setuppapersize[A4, landscape] \setupbodyfont[dejavu] \starttext \startxtable[option=stretch] \startxrow[offset=1ex] \startxcell \startXML

Re: [NTG-context] fixing indentation of xtable inside item

2021-11-22 Thread fv leung via ntg-context
; \starttext > \startitemize > \item > Determine la {\sc an} de cada objetivo del microscopio, con los ángulos > de la tabla y teniendo en cuenta lo siguiente: $n_{\text{aire}} = 1$ y > $n_{\text{aceite de inmersión}} = 1.515$: > \blank > \startxtable[align=middle,option=stretch]

[NTG-context] fixing indentation of xtable inside item

2021-11-22 Thread Andres Conrado Montoya via ntg-context
}} = 1$ y $n_{\text{aceite de inmersión}} = 1.515$: \blank \startxtable[align=middle,option=stretch] \startxtablebody[body] \startxrow \startxcell Objetivo 4x \stopxcell \startxcell $n=1$ \stopxcell \startxcell $\alpha=5.8$ \stopxcell \startxcell {\sc an}$=$ \stopxcell \stopxrow

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

2021-07-23 Thread T. Kurt Bond
> fill OverlayBox withcolor "gray"; > \stopuseMPgraphic > > \defineoverlay >[xtablerow] >[\ifodd\currentxtablerow > \useMPgraphic{xtablerow}% > \fi] > > \starttext > >

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

2021-07-23 Thread Wolfgang Schuster
[\ifodd\currentxtablerow \useMPgraphic{xtablerow}% \fi] \starttext \startxtable[frame=off,background=xtablerow] \dorecurse{20} {\startxrow \startxcell Column 1 \stopxcell \startxcell Column 2 \stopxcell \stopxrow} \stopxtable \stoptext

Re: [NTG-context] help with xtreme tables

2021-06-08 Thread Ajith R
xtables : \startxtable[split=repeat,header=repeat] \startxtablehead ... \stopxtablehead \startxtablebody . . . \stopxtablebody the table rows get split into different pages, but the columns get cut at the right edge of the page. Is there a way to split the columns as well (repeating

[NTG-context] help with xtreme tables

2021-06-08 Thread Ajith R
Hi, I have a table with around 120 rows and 120 columns which fits an A0 paper. I want it to be split so that it fits A4 sized papers. When I tried using xtables : \startxtable[split=repeat,header=repeat] \startxtablehead ... \stopxtablehead \startxtablebody . . . \stopxtablebody

[NTG-context] Fwd: help with xtreme tables

2021-06-08 Thread Ajith R
Hi, I have a table with around 120 rows and 120 columns which fits an A0 paper. I want it to be split so that it fits A4 sized papers. When I tried using xtables : \startxtable[split=repeat,header=repeat] \startxtablehead ... \stopxtablehead \startxtablebody . . . \stopxtablebody

Re: [NTG-context] help with xtreme tables

2021-06-08 Thread Hans Hagen
On 6/8/2021 9:11 AM, Ajith R wrote: Hi, I have a table with around 120 rows and 120 columns which fits an A0 paper. I want it to be split so that it fits A4 sized papers. When I tried using xtables : \startxtable[split=repeat,header=repeat] \startxtablehead ... \stopxtablehead

[NTG-context] help with xtreme tables

2021-06-07 Thread Ajith R
Hi, I have a table with around 120 rows and 120 columns which fits an A0 paper. I want it to be split so that it fits A4 sized papers. When I tried using xtables : \startxtable[split=repeat,header=repeat] \startxtablehead ... \stopxtablehead \startxtablebody . . . \stopxtablebody

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
\long\def\iconblock[#1]#2{% \ignorespaces \startxtable[icbtable] \startxrow \startxcell[width=17mm] \externalfigure[img/#1.svg][height=15mm,width=15mm] \stopxcell \startxcell #2 \stopxcell \stopxrow \stopxtable \removeunwantedspaces } Is this simply not possible or

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

2021-04-23 Thread Werner Hennrich
header] \setupxtable[mytable:header] [ foregroundstyle=\bf, foregroundcolor=darkred, ] % == \startdocument \dorecurse{2} { \input tufte \vskip7mm } \startxtable[mytable] \startxtablehead \startxrow[mytable:header] \startxcell Some Header \stopxcell \st

[NTG-context] 3 questions about xtables after reading manuals

2021-01-18 Thread Andres Conrado Montoya
arrowed so much as to break a line of 4 or 5 words. MWE: % \startplacetable[location=none] %\startxtable[align={middle,lohi},option=tight] % This makes the first column too narrow. Lines are not that long \startxtable[align={middle,lohi}] \startxtablehead[head] \startxrow \startx

[NTG-context] Hatch a cell : meta:hash:left

2021-01-16 Thread Fabrice Couvreur
Hi, I seem to have seen a method for hatching the cell of a table, but maybe it's my imagination. The following code does not work. Thanks for your help. Fabrice ## hatching.tex # \setupcolors[state=start] \usemodule[xwi] \starttext \startxtable [align={lohi

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
all]\emph{Fuente:}~#1\par\stop} > > \starttext > \reference[tbl:t03]{}% > \startplacetable[title={Composición química y valor energético de recursos > forrajeros de corte en el área de influencia del Subproyecto Carne Bovina > (trópico de altura).}] > \startxtable[option=tight,bodyfo

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, Sylvain Hubert wrote: > Indeed. Thanks for the information! > > For the record, this is how the problem is finally solved: > > \setuphead[section][after={\blank[sampage]}] > \begingroup\setupindenting[no]\dontleavehmode\startxtable … > \stopxt

[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
\par\stop} \starttext \reference[tbl:t03]{}% \startplacetable[title={Composición química y valor energético de recursos forrajeros de corte en el área de influencia del Subproyecto Carne Bovina (trópico de altura).}] \startxtable[option=tight,bodyfont=7pt] \startxtablehead[head] \startxrow

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
amepage]\hskip 0pt}] > > \starttext > > \showframe > > \dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > > > What happens when you \hskip is that you switch to horizontal > mode and the preferred to do this is to use

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 19:11: Weirdly enough, "\hskip 0pt" solves the problem.     \setuphead[section][after={\blank[samepage]\hskip 0pt}]     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec]     \startxtable What happens when

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
gt; because the optional argument is for userdata (values like author etc.) > > > \startxtable > > \startxrow > > \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell > > \stopxrow > > \dorecurse{29}{\startxrow\startxcell 2\stopxcell\s

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
,big]}, after={\blank[samepage,big]}] Your settings in the second argument of \startsection make no sense because the optional argument is for userdata (values like author etc.)     \startxtable     \startxrow     \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell     \stopxrow

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
testpage[4]\blank[2*big]}] > > Wolfgang > Hi Wolfgang, Thanks for the suggestion, but as illustrated by the second example, copied here, where the section title is at the top of the page: \starttext \showframe \dorecurse{50}{a } \startsection[title=spec][before={\blank[preferenc

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > Hi Sylvain, > > no fix is required when you allow the table to be split: > > \startxtable[split=yes] > > Pablo > Hi Pablo, Thanks for the suggestion, but unlike the MWE, in

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 5:23 PM, Sylvain Hubert wrote: > My mistake, but the problem survives the fix: > >     \setuphead[section][after={\blank[samepage,big]}] >     \starttext >     \showframe >     \dorecurse{50}{a } >     \startsection[title=spec] >     \startxtable Hi Sylvain,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
My mistake, but the problem survives the fix: \setuphead[section][after={\blank[samepage,big]}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
\starttext \showframe \dorecurse{50}{a } \startsection[title=spec][before={\blank[preference,big]}, after={\blank[samepage,big]}] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow \dorecurse{29}{\startxrow\startxcell 2\stopxcell\

[NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
c } \section{title} \startxtable \startxrow \startxcell[ny=10]a\stopxcell\startxcell 1\stopxcell \stopxrow \dorecurse{9}{\startxrow\startxcell 2\stopxcell\stopxrow} \stopxtable \stoptext Does anyone know where to adjust the penalty in this case, so that the section

[NTG-context] extra warning in the lua version

2020-11-09 Thread Sylvain Hubert
xtable() context.startxrow() context.startxcell() context.starttyping() context('1') context.stoptyping() context.stopxcell() context.stopxrow() context.stopxtable() \stopluacode % this does not \startxtable \startxrow \startxcell \starttyping

Re: [NTG-context] \define in conflict with \startxtable[]

2020-11-08 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 08.11.2020 um 04:54: Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup".     \starttext     \define\sample{     \startxtable[]     \startxtablehead     \startxrow     \star

[NTG-context] \define in conflict with \startxtable[]

2020-11-07 Thread Sylvain Hubert
Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup". \starttext \define\sample{ \startxtable[] \startxtablehead \startxrow \startxcell 123\stopxcell \stopxrow \stopxtablehead \

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Wolfgang Schuster
] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Oleg
xt,prefix=no] > > \setcounter[rownum][0] > > > > \starttext > > \startxtable > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > >

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

[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
f5-d4d5c22e7...@mailbox.org> > Content-Type: text/plain; charset=utf-8; format=flowed > > Hi, > > I'm trying to typeset a parallel text that should appear in columns. The > sources are XML, and there I have to use tables for this. So, I thought > the easiest way is t

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

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

2020-09-21 Thread Wolfgang Schuster
!='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

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

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
Hi Dalyoung, I don't know why \recurselevel returns 0 inside a tabulate environment, but the following works fine: \starttext \startxtable[frame=off,bottomframe=on,width=1cm,align={middle,lohi}] \startxrow\startxcell \stopxcell\stopxrow % just to have a line on the top of the first row

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
d > > Hi, > > I'm trying to typeset a parallel text that should appear in columns. The > sources are XML, and there I have to use tables for this. So, I thought > the easiest way is to use extreme tables for this: > > = > \starttext > &

[NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier
\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

[NTG-context] Parallel text support

2020-09-21 Thread Denis Maier
Hi, I'm trying to typeset a parallel text that should appear in columns. The sources are XML, and there I have to use tables for this. So, I thought the easiest way is to use extreme tables for this: = \starttext \dorecurse{3}{\input knuth} \startxtable[split=yes

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
zontal mode >> [...] >> My questions are: what is the restricted horizontal mode (as different >> from the horizontal mode)? Why might it be triggered with >> \startxtable[split=yes] in the huge source, but not in the single file? > > At a wild guess, as I had a simi

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

[NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Fabrice Couvreur
Hello, With the latest version of lmtx, the background color of cells does not work. Thank you. Fabrice \starttext \startxtable [align={middle,lohi}, offset=0.8ex,background=color, backgroundcolor=red,frame=off] \startxrow \startxcell \m{\displaystyle

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
old, >width=broad] > > \defineenumeration >[definition] >[text=Définition, > number=yes, > headcommand=\groupedcommand{}{.}, > style=italic] > > \starttext > > \startdefinition > \blank > \startxtable[align={lohi,middle},w

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
yes, > headcommand=\groupedcommand{}{.}, > style=italic] > > \starttext > > \startdefinition > \blank > \startxtable[align={lohi,middle},width=2cm,offset=0.8ex] > \startxrow > \startxcell > 1 > \stopxcell > \startxcell > 2

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdefinition \blank \startxtable[align

Re: [NTG-context] Problem with \vfill in extreme table

2020-05-17 Thread Hans Hagen
. What's the 'official' way to align top and bottom in an xrow? MWE \setuppapersize [A4] [A4] \starttext \startxtable[width=\textwidth]    \startxrow[height=150mm] \startxcell[align=middle]    Top    \vfill    Bottom \stopxcell    \stopxrow \stopxtable \stoptext It's

Re: [NTG-context] Problem with \vfill in extreme table

2020-05-17 Thread Wolfgang Schuster
in an xrow? MWE \setuppapersize [A4] [A4] \starttext \startxtable[width=\textwidth] \startxrow[height=150mm] \startxcell[align=middle] Top \vfill Bottom \stopxcell \stopxrow \stopxtable \stoptext It's not a real fix but you can you exclude the \vfi

[NTG-context] Problem with \vfill in extreme table

2020-05-17 Thread Bruce Horrocks
\starttext \startxtable[width=\textwidth] \startxrow[height=150mm] \startxcell[align=middle] Top \vfill Bottom \stopxcell \stopxrow \stopxtable \stoptext The error message is: > tex error > tex error on line 4 in file virtual://buffer.x_table_1

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
± \stopxcell \startxcell \digits{#2} \stopxcell }{ \startxcell[align=left] \digits{#1} \stopxcell \startxcell \stopxcell \startxcell \digits{#2} \stopxcell } } \startxtable[split=repeat, aligncharacter=yes, alignmentcharacter

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
ve a lot of typing, if I wouldn’t have >> to specify the padding manually and I vaguely recall that there is somewhere >> a ConTeXt solution that can make such alignments, but I simply can’t find it >> any more … > > You can align number on the decimal point (comma) but this works o

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Wolfgang Schuster
on the decimal point (comma) but this works only when you have only one number in a cell. \starttext \startxtable[aligncharacter=yes,alignmentcharacter=±] \startxrow \startxcell \digits {14.0} ± \digits {1.5} \stopxcell \stopxrow \startxrow \startxcell

Re: [NTG-context] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
Okay, I found the solution myself: Need to specify \startxtable[split=repeat] or else. It’s actually a bit surprising that the value of the “outer” enivornment (placetable) depends on the settings in the inner one (xtable). I speculate this might be because the order of the tables might

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

[NTG-context] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
Hi, I would like to reference a table of the following structure. \starttext \startplacetable[reference=tab1,title={A table},location=split] \startxtable \startxrow \startxcell hi \stopxcell \stopxrow \stopxtable \stopplacetable In Table \in[tab1] \stoptext It has [location=split], which I

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
\startframedtext [frame=off,width=\textwidth, background=color,backgroundcolor=fondpaille] \input tufte \startlinecorrection[blank] \startmidaligned \startxtable [align={lohi,middle}, option={stretch},framecolor=cyan, offset=0.8ex,background=color,backgroundcolor

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

2020-04-05 Thread Wolfgang Schuster
\setupheadertexts[\directsetup{header}] \startbuffer[tablerow] \startxrow \startxcell first \stopxcell \startxcell second \stopxcell \stopxrow \stopbuffer \startbuffer[table] \startxtable \startxtablehead[head] \getbuffer[tablerow] \stopxt

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

2020-04-04 Thread Geert Dobbels
tartxcell first \stopxcell \startxcell second \stopxcell \startxcell third \stopxcell \startxcell fourth \stopxcell \startxcell fifth \stopxcell \startxcell sixth \stopxcell \stopxrow} %\startplacetable \startxtable \startxtablehead[head] \onerow \stopxtablehead \startxtablebody \

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

2020-04-04 Thread Geert Dobbels
d{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer %\startplacetable[] \startxtable \startxtablehead[head] \doloopif{\lineno}{<}{2}{\getbuffer[loop]} \stopxtablehead \startxtablebody \doloo

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

2020-04-03 Thread Geert Dobbels
le 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 put the "\startxtable.\stopxtable" within a >&g

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

2020-04-03 Thread Geert Dobbels
gt; data. I cannot guess why a second loop might be required. > Hi Geert, > > this approach is simpler: > > \starttext > \startxtable > \startxtablehead[head] > \doloopif{\lineno}{<}{2}{\getbuffer[loop]} > \stopxtablehead > \start

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

2020-04-03 Thread Pablo Rodriguez
is a way to read the number of lines in >> the csv file to use the exact number of lines, instead of guessing. > > If \numrows doesn’t fit your needs, please provide a CSV file with fake > data. I cannot guess why a second loop might be required. Hi Geert, this approach is

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

2020-04-03 Thread Pablo Rodriguez
; header does not repeat. I have seen examples in the mailing list where > people put the "\startxtable.\stopxtable" within a \placefigure, but > as soon as I try this, I get an error message: "missing } or endgroup", > although I doublechecked the "}"

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

2020-04-03 Thread Wolfgang Schuster
have seen examples in the mailing list where people put the "\startxtable.\stopxtable" within a \placefigure, but as soon as I try this, I get an error message: "missing } or endgroup", although I doublechecked the "}" and I see no error. The other issue I

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
put the "\startxtable.\stopxtable" within a \placefigure, but as soon as I try this, I get an error message: "missing } or endgroup", although I doublechecked the "}" and I see no error. The other issue I have: Since xtable requires me to read the header l

[NTG-context] Hatch color in a table cell

2020-03-12 Thread Fabrice Couvreur
] [\metahashoverlay{ -45}] \defineoverlay[meta:hash:horizontal][\metahashoverlay{+180}] \defineoverlay[meta:hash:vertical] [\metahashoverlay{ -90}] \starttext \startmidaligned \startxtable [align={lohi,middle}, width=1.5cm, background=color

[NTG-context] SOLVED Re: \bTABLE bug, please help !

2020-03-10 Thread Taco Hoekwater
his problem in my current ConTeXt > installation for > this project. That is now nearly 4 years old, but the same bug is still > happens with > a new beta of mkiv. > > I cannot switch to \startxtable because I would need \startembeddedxtable, > and that > has way too many limitatio

[NTG-context] \bTABLE bug, please help !

2020-03-10 Thread Taco Hoekwater
for this project. That is now nearly 4 years old, but the same bug is still happens with a new beta of mkiv. I cannot switch to \startxtable because I would need \startembeddedxtable, and that has way too many limitations to be useful in this project. Best wishes, Taco test.pdf Description: Adobe

Re: [NTG-context] [HOWTO] spanning xtable cells

2020-02-02 Thread Floris van Manen
inbetween and/or columndistance > the cells of the xtable will not properly size when spanning over rows > and/or columns. > > e.g. > > \starttext > > \startxtable[spaceinbetween=2mm, columndistance=2mm, corner=round] > \startxtablebody > \startxrow >

Re: [NTG-context] [HOWTO] spanning xtable cells

2020-01-31 Thread Pablo Rodriguez
On 1/31/20 12:13 AM, Floris van Manen wrote: > Does anyone knows a hint to get the stacked boxes to the correct size? > [...] > \startxtable[spaceinbetween=2mm, columndistance=2mm, corner=round] > \startxtablebody > \startxrow > \startxcell[ny=3] a1\stopxcell >

[NTG-context] [HOWTO] spanning xtable cells

2020-01-30 Thread Floris van Manen
Does anyone knows a hint to get the stacked boxes to the correct size? When usinig non-zero values for the options spaceinbetween and/or columndistance the cells of the xtable will not properly size when spanning over rows and/or columns. e.g. \starttext \startxtable[spaceinbetween=2mm

  1   2   3   4   >