[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-19 Thread Gerion Entrup
gt;>> > >>>>> Here is a minimal example: > >>>>> ``` > >>>>> \startsetups[table:rotated] > >>>>> \setupTABLE[frame=off] > >>>>> \setupTABLE[row][first][bottomframe=on, style=bf, align={center,

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-19 Thread Hans Hagen via ntg-context
}] \setupTABLE[row][2][align=flushright] \stopsetups \starttext \define\tablerotate{\dontleavehmode\rotate[rotation=-45, location=high]} \bTABLE[setups=table:rotated] \bTR \bTD \eTD \bTD \tablerotate{Water buffalo} \eTD \bTD \tablerotate{Mexican redknee tarantula} \eTD \bTD \tablerotate{European

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Mikael Sundqvist
> > >> > > >> Here is a minimal example: > > >> ``` > > >> \startsetups[table:rotated] > > >>\setupTABLE[frame=off] > > >>\setupTABLE[row][first][bottomframe=on, style=bf, align={center, low}] > > >>\se

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Gerion Entrup
;>\setupTABLE[frame=off] > >>\setupTABLE[row][first][bottomframe=on, style=bf, align={center, low}] > >> \setupTABLE[row][2][align=flushright] > >> \stopsetups > >> > >> \starttext > >> \define\tablerotate{\dontleavehmode\rotate[rotation=-

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Hans Hagen
]} \bTABLE[setups=table:rotated] \bTR \bTD \eTD \bTD \tablerotate{Water buffalo} \eTD \bTD \tablerotate{Mexican redknee tarantula} \eTD \bTD \tablerotate{European turtle dove} \eTD \eTR \bTR \bTD Amount of legs \eTD \bTD \digits{4} \eTD \bTD \digits{8} \eTD \bTD \digits{2} \eTD \eTR \eTABLE

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Wolfgang Schuster
[table:rotated] \setupTABLE[frame=off] \setupTABLE[row][first][bottomframe=on, style=bf, align={center, low}] \setupTABLE[row][2][align=flushright] \stopsetups \starttext \define\tablerotate{\dontleavehmode\rotate[rotation=-45, location=high]} \bTABLE[setups=table:rotated] \bTR

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Gerion Entrup
: > ``` > \startsetups[table:rotated] > \setupTABLE[frame=off] > \setupTABLE[row][first][bottomframe=on, style=bf, align={center, low}] > \setupTABLE[row][2][align=flushright] > \stopsetups > > \starttext > \define\tablerotate{\dontleavehmode\rotate[rotation=-45, locatio

[NTG-context] Table and rotation: push together 45 degree rotated cells

2024-09-17 Thread Gerion Entrup
}] \setupTABLE[row][2][align=flushright] \stopsetups \starttext \define\tablerotate{\dontleavehmode\rotate[rotation=-45, location=high]} \bTABLE[setups=table:rotated] \bTR \bTD \eTD \bTD \tablerotate{Water buffalo} \eTD \bTD \tablerotate{Mexican redknee tarantula} \eTD \bTD \tablerotate

[NTG-context] Re: table float split behavior

2024-07-10 Thread Henning Hraban Ramm
three. Can I influence this anyhow? Hans explained in today’s online meeting: The float location "split" cannot be combined with other locations (here, top, bottom, page). "split" alone is like "here"; for "page", use \startpostponing \startplaceta

[NTG-context] Re: table float split behavior

2024-07-08 Thread Henning Hraban Ramm
Am 08.07.24 um 15:48 schrieb vm via ntg-context: There is a reason that the \recurselevel do not work in this context; all \recurselevel show up as zero   {\bTABLE    \dorecurse{100}{    \bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR    \bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR

[NTG-context] Re: table float split behavior

2024-07-08 Thread Henning Hraban Ramm
an also use the parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE} \stoptext Thank you, that’s a good idea. (Another m

[NTG-context] Re: table float split behavior

2024-07-08 Thread vm via ntg-context
parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE} \stoptext There is a reason that the \recurselevel do not work in this

[NTG-context] Re: table float split behavior

2024-07-08 Thread Bruce Horrocks
t] {\select{caption} {Parameters of \type{\setupsomething}. You can also use the parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR

[NTG-context] Re: table float split behavior

2024-07-07 Thread Henning Hraban Ramm
] \starttext \samplefile{tufte} \startplacetable[location={top,split},title=table split test] \bTABLE%[setups=twoparamstable] \bTABLEhead \bTR\bTH One \eTH\bTH Two\eTH\bTH Three \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{60}{% \bTR\bTD #1\eTD\bTD \fakewords{1}{10}\eTD\bTD \fakewords{1}{10}\eTD\eTR

[NTG-context] Re: How to specify a default formatting for TABLE

2024-07-01 Thread Gerion Entrup
etupTABLE [each] [background=color,backgroundcolor=lightgray] > \stopsetups > > \startsetups[table:b] >\setupTABLE [each] > [frame=off,width=2cm,height=1.2\lineheight,align=middle] >\setupTABLE [each] [topframe=on,bottomframe=on] > \stopsetups > > \starttext >

[NTG-context] Re: How to specify a default formatting for TABLE

2024-07-01 Thread Wolfgang Schuster
,lohi}] \setupTABLE [each] [background=color,backgroundcolor=lightgray] \stopsetups \startsetups[table:b] \setupTABLE [each] [frame=off,width=2cm,height=1.2\lineheight,align=middle] \setupTABLE [each] [topframe=on,bottomframe=on] \stopsetups \starttext \bTABLE \bTR \bTD A \eTD \bTD B

[NTG-context] How to specify a default formatting for TABLE

2024-07-01 Thread Gerion Entrup
, offset=2pt] \setupTABLE[row][first][topframe=on, bottomframe=on, style=bf] \setupTABLE[row][last][bottomframe=on] \setupTABLE[row][even][background=color,backgroundcolor=red] \setupcolors[state=start] \starttext A table:\\ \bTABLE \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD

[NTG-context] table float split behavior

2024-06-17 Thread Henning Hraban Ramm
\usemodule[visual] \starttext \samplefile{tufte} \startplacetable[location={top,split},title=table split test] \bTABLE%[setups=twoparamstable] \bTABLEhead \bTR\bTH One \eTH\bTH Two\eTH\bTH Three \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{60}{% \bTR\bTD #1\eTD\bTD \fakewords{1}{10}\eTD\bTD \fakewords{1

[NTG-context] Re: simplify side by side Poems

2024-05-24 Thread seyal . zavira
Thanks so much i also could define poem structure like this: Using table method: \protected\def\PoemStart#1\PoemStop {\bTABLE[setups=tablepoem]#1\eTABLE} \protected\def\Beyt#1 {\bTR #1 \eTR} \protected\def\Misra#1 {\bTD #1 \eTD} \starttext \PoemStart \Beyt{\Misra{the first sentence

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
\StartTableCell#R\StopTableCell#1% % {\bTD#1\eTD} \bTABLE \bTR \StartTableCell row 1 column 1 \StopTableCell \StartTableCell row 1 column 2 \StopTableCell \eTR \bTR \StartTableCell row 2 column 1 \StopTableCell \StartTableCell row 2 column 2 \StopTableCell \eTR \eTABLE \stoptext

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 23.05.2024 um 14:13: Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD

[NTG-context] simplify side by side Poems

2024-05-23 Thread seyal . zavira
Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD \bTD two gfjgfd oski kwo \eTD \eTR \bTR \bTD One wer s dft

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
around them so not meant for e.g. section heads or whatever text; it's for images, framed stuff, maybe bTABLE etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 80

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
r][first][style=bold] \setupTABLE[r][each][ topoffset=1em,bottomoffset=0.5em, background=sketchylines, % would be nice if the background wouldn’t start at each column ] \setupTABLE[c][each][frame=off] \bTABLE[] \bTR \bTD{Stadt}\eTD \bTD{Land}\eTD \bTD{Fluss}\eTD \eTR \dorecurse

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
he graphic (OverlayBox is the size of the cell). begin example \startuseMPgraphic{dottedborder}    draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
begin example \startuseMPgraphic{dottedborder}   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] Thank you! Since I needed o

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
er} draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] \bTR \bTD Hello Table! \eTD \eTR \eTABLE \stoptext e

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
dth] \stopplacefigure \samplefile{lorem} \startplacetable \bTABLE \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR \eTABLE \stopplacetable \samplefile{lorem} \startplacetable \bTABLE[textwidth=\dimexpr\textwidth+\rightmarginwidth+\rightmargindistance\relax,opt

[NTG-context] Re: How to stop

2024-01-28 Thread Bruce Horrocks
TABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off] > \setupTABLE[r][1][bottomframe=on] > \bTABLE[split=yes] > \bTR\bTD {\it Lesson}\eTD\bTD {\it > Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR >

[NTG-context] Re: How to stop

2024-01-27 Thread Hraban Ramm
]                             \bTABLE[split=yes]                                 \bTR\bTD {\it Lesson}  \eTD\bTD {\it Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR                             \eTABLE What I've been finding is that previous settings on TABLES appearing earlier in the docume

[NTG-context] How to stop

2024-01-27 Thread Joel via ntg-context
=.1\textwidth]                             \setupTABLE[c][1,2,3,4,5][align=raggedleft, frame=off]                              %\setupTABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off]                             \setupTABLE[r][1][bottomframe=on]                             \bTABLE[split=yes

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-12 Thread Jeroen
It does not seem to have an effect to the table. The distance between the rows remains the same Thanks, Jeroen Op ma 11 sep 2023 om 09:08 schreef : > \bTABLE[spaceinbetween=0cm] > > ... > > \eTABLE > > > > > > > > *Von:* Jeroen > *Gesendet:* Sonntag

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
] \starttext \bTABLE    \bTR   \bTD Cell 1:1 \eTD   \bTD Cell 1:2 \eTD   \bTD Cell 1:3 \eTD    \eTR    \bTR   \bTD Cell 2:1 \eTD   \bTD Cell 2:2 \eTD   \bTD Cell 2:3 \eTD    \eTR    \bTR   \bTD Cell 3:1 \eTD   \bTD Cell 3:2 \eTD   \bTD Cell 3:3 \eTD    \eTR \eTABLE

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread denis.maier
\bTABLE[spaceinbetween=0cm] ... \eTABLE Von: Jeroen Gesendet: Sonntag, 10. September 2023 22:05 An: mailing list for ConTeXt users Betreff: [NTG-context] Reduce space between lines in Natural Tables Is there an easy way to reduce the line space between rows in a natural table so the table

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
is to put the table together piece by piece with the collecting mechanism which collect parts of the table until you flush the whole collection at the end with the \stopcollecting command. \starttext \bTABLE \startcollecting \startcollect \bTABLEbody \stopcollect \startcollect \bTR \bTD Cell

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
oning commands, like \bTABLEhead, \eTABLEhead, bTABLEbody or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \e

[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
Ebody or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \eTABLE \stoptext Can anybody suggest a worka

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
u figura~\in[fig:oli-aigua-diposit]). 26 27 \startplacefigure[reference=fig:oli-aigua-diposit, location=force, title={Dipòsit omplit amb aigua i oli}] 28 \bTABLE[frame=off,align={middle,lohi},width=fit] 29 \bTR 30 \bTD 31 \starttikzpicture[scale=0.75] 32 % recipient 33

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
y tex's strong point. So, when Mikael and I were looking at one of his documents that mixes a lot of math into itemized situations, a different variant was made (ok, there was another reason but that's a bit technical). At that time, I had already adapted itemize to work a bit better

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
y tex's strong point. So, when Mikael and I were looking at one of his documents that mixes a lot of math into itemized situations, a different variant was made (ok, there was another reason but that's a bit technical). At that time, I had already adapted itemize to work a bit better

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
tex: The file ended when scanning an argument. 200 persones en total \par \startitemize [a, packed] \item 2 de 5 persones estan a $A$ \item a cada 4 persones de $A$ li corresponen 3 persones de $B$ \item 20\% són de $C$ \item 2/8 són de $D$ \stopitemize \par \head 420 persones en total \par \startite

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
10$ següent (vegeu la figura~\\in [figura:diagrama-punts-5x10]) representeu la informació donada en cada cas. \\par \\placefigure [force] [figura:diagrama-punts-5x10] {Diagrama de punts $5 \\times 10$} { \\bTABLE [frame=off,align={middle,lohi},width=fit, offset=2mm] \\bTR \\bTD \\starttikzpicture

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Bruce Horrocks via ntg-context
st row. \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22][frame=on, framecolo

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
[1]{\RtH}{\rotate{#1}} \starttext \setupTABLE[offset=3pt] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR You can change the vertical alignment in a

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} } \flushlayer[test3] \page %%% Wolfgang %%% \centerbox {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] \bTR \bTD \externalfigure[dummy] \eTD \bTD \rotate[rotation=90]{\externalfigure[

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
gt; > > > > > \useMPlibrary [dum] > > > > > > \starttext > > > > > > \definelayer[test3] > > > > > > \setlayer[test3][x=2cm,y=15cm] > > > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Alan Braslau via ntg-context
text > > > > \definelayer[test3] > > > > \setlayer[test3][x=2cm,y=15cm] > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > {\externalfigure[dummy]}{} > > > > \rotate[rotation=90]{\externalfigure[dumm

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox    {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]     \bTR     \bTD     \externalfigure[dummy

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread Bruce Horrocks via ntg-context
ldn’t find an option to do that. > Tried \dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bot

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread fv leung via ntg-context
\dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] > \bTABLE > \bTABLEhead > \bTR \bTH

[NTG-context] rotated headers in natural tables

2023-03-15 Thread Henning Hraban Ramm via ntg-context
] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eTR \bTR \bTD dog

Re: [NTG-context] Table

2023-03-13 Thread Ursula Hermann via ntg-context
rttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTABLE \bTR \bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD \eTR \bTR \bTD \eTD \bTD \eT

Re: [NTG-context] Table

2023-03-13 Thread Mikael Sundqvist via ntg-context
> There are probably better ways, but this seems to give something like what you look for: \starttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTA

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
igure \stoptext However, this does not work (the pictures are all in one row). Do you have some advice? you can cheat: \startplacefigure[title=Test] \bTABLE[frame=off] \bTR \bTD[nx=2,align=middle,offset=overlay] \dontleavehmode\externalfigure[dummy-1][width=4cm,heigh

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

2023-03-02 Thread Denis Maier via ntg-context
/td/command(xml:table:tr:td)}\NC\NR \stopxmlsetups \startxmlsetups xml:table:tr:td \NC \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessbuffer{test}{test}{} \startplacetable \starttabulate[|p|p|] \NC a\footnote{3}\NC b\NC\NR \stoptabulate \stopplacetable \startplacetable \b

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
ootnote{3}\NC b\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 \startx

[NTG-context] [m-database] How to properly add module arguments?

2023-02-25 Thread Paul Mazaitis via ntg-context
tabase] \setupdatabase[quotechar={"},separator={,}] \defineseparatedlist [PartsTable] [separator=comma,left=\bTD,right=\eTD,first=\bTR,last=\eTR,before={ \bTABLE[split=repeat,option=stretch] \bTABLEhead \bTR \bTH Ref. No. \eTH \bTH Part No. \eTH \bTH Description \eTH \bTH Remarks \eTH

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
not sure where \layoutcolumnwidth is coming from so I just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuserv

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
from so I just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD \bTD \structureuservar

Re: [NTG-context] \xmlmap errors when returning key-value

2023-02-22 Thread Denis Maier via ntg-context
ups > > \startxmlsetups xml:table:colgroup:colvar > \setupTABLE[c][\xmlmatch > {#1}][align=\xmlvalue{colgroupalignvar}{\xmlatt{#1}{style}}{lefttoright}] > \stopxmlsetups > > \startxmlsetups xml:table:colgroup:col > \setupTABLE[c][\xmlmatch > {#1}][\xmlvalue{colgroupalign}{\xm

[NTG-context] \xmlmap errors when returning key-value

2023-02-20 Thread Denis Maier via ntg-context
ment \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:table-wrap \startplacetable \xmlflush{#1} \stopplacetable \stopxmlsetups \startxmlsetups xml:table \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)} \bTABLE \xmlfilter{#1}{/thead/command(xml:table:thea

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
lgroup:col %\xmlvalue{colstyle}{\xmlatt{#1}{style}}{} \xmlpos {#1} \stopxmlsetups \startxmlsetups xml:table \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)} \bTABLE \xmlfilter{#1}{/thead/command(xml:table:thead)} \xmlfilter{#1}{/tbo

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
intuitive, that always the brackets are placed. Specially while editing \bTABLE … \eTABLE and the commands belonging to this table-type it could be good to have the right arrow key to have the command placed with brackets and with the down-arrow-key the command being placed without brackets

Re: [NTG-context] Writing Tabular with \Vert

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 12:39 PM, Ursula Hermann via ntg-context wrote: Dear List, In this tabular I wanted to set \Vert. But when I compile it, \bTABLE \bTR \bTD \Vert r1c1\Vert \eTD \bTD \bf r1c2 \eTD \bTD \bf r1c3 \eTD \bTD \bf r1c4 \eTD \eTR \bTR \bTD r2c1 \eTD \bTD r2c2 \eTD \bTD[nr=2

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context
> Am 19.05.2022 um 08:14 schrieb Hans Hagen via ntg-context > : > > On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: >> Hi, >> I just found an old mail from 30 May 2008: >> How do I split not only TABLE but cells? It was not possible then. >> \s

Re: [NTG-context] split TABLE cells

2022-05-18 Thread Hans Hagen via ntg-context
On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input

[NTG-context] split TABLE cells

2022-05-18 Thread Steffen Wolfrum via ntg-context
Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input tufte \eTD \bTD \input knuth \eTD \eTR \bTR \bTD Test \eTD \bTD

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
flushright] \stopsetups \startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
etups \startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber

[NTG-context] XML: calculations on attribute values before output

2022-05-04 Thread Duncan Hothersall via ntg-context
give me a row span at all. Thanks in advance. Duncan -- \startbuffer[demo] 1 2 3 \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:in

Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Ben Moon via ntg-context
> > \startxmlsetups xml:table-wrap > \startplacetable > % \contextversion \par > \xmlflush{#1} > \stopplacetable > \stopxmlsetups > > \startxmlsetups xml:table > \bTABLE > \xmlflush{#1} > \eTABLE > \st

Re: [NTG-context] right item marks for associative questions?

2022-04-12 Thread Wolfgang Schuster via ntg-context
ially with long answers.. That makes a four columns table more cumbersome, so I believe. You can use different alignment settings to move the bullet points to the right side of your lists. \starttext \bTABLE[frame=off,width=.4\textwidth,columndistance=.2\textwidth,align={normal,lohi}]  

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
ak the alternative, align, closesymbol, closecommand to get exactly what you want; the example above will give a somewhat symmetric layout] More generally, if the text can multi-line, then I think TABLE (with proper alignment options) might be better-suited: %%% start example-2 \define\startIte

Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context
eader=repeat, option=stretch, > loffset=.5ex,roffset=.5ex] > > \setupTABLE [row] [odd] > [background=color,backgroundcolor=hs-hellblau,] > > \setupTABLE [start] [spaceinbetween=25pt] > > \defineseparatedlist > [preislistecsv] > [separator={;}, % tab >befor

[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context
,] \setupTABLE [start] [spaceinbetween=25pt] \defineseparatedlist [preislistecsv] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] Is it possible to align decimal numbers in cells to the right? The data differs a lot. Sometimes only the last

[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
}{xml:*} \stopxmlsetups \xmlregistersetup{xml:tabletestsetups} \startxmlsetups xml:table-wrap \startplacetable % \contextversion \par \xmlflush{#1} \stopplacetable \stopxmlsetups \startxmlsetups xml:table \bTABLE \xmlflush{#1} \eTABLE \stopxmlsetups \startxmls

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ion={local,default}] \setvariables [assignments] [set={\setups[assignments:set]}] \startsetups assignments:set \writestatus{variables}{assignments:set is being called..} \startalignment[middle] \bTABLE[frame=off] \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm] \setu

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-09 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 08.01.2022 um 23:57: I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. I agree natural tables

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Joel via ntg-context
is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm] \setupTABLE[c][each][align={lohi,center}] \bTABLE     \bTR         \bTD {\bf Eons}\eTD \bTD {\bf Eras

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Willi Egger via ntg-context
I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
then. If it is > > still possible to solve without the surrounding framed I'm interested > > to hear how. > > You have to put the table in a box to change the vertical position. > > \starttext > > a\tbox{\bTABLE \bTR \bTD

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Wolfgang Schuster via ntg-context
ition. \starttext a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
\starttext Foofoo Bar\bTABLE[width=2cm,location=top] \bTR \bTD This is a long sentence \eTD \eTR \eTABLE The last foo \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
t; > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. > > I switched to natural tables a long time ago and that's how I would do it: > > \starttext > \bTABLE[width=8cm, frame=

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Denis Maier via ntg-context
offer more in this regard, but those seem not to be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[width=8cm, frame=off] \setupTABLE[c][1][roffset=0.5em] \setupTABLE[c][2][loffset=0.5em] \bTR \bTD[

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
the cells at the top aren’t merged. > > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[widt

Re: [NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context
ttext \startsetups [alexandre:1]     \setupTABLE [start] [frame=off]     \setupTABLE [c] [1] [width=.3\textwidth]     \setupTABLE [c] [2] [width=.6\textwidth] \stopsetups \startitemize [a] [right=),stopper=] \bTABLE[setups=alexandre:1] \bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Some

[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: \starttext \startitemize [a] [right=),stopper=] \bTABLE[frame=off] \setupTABLE[column][1] [

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread Hans Hagen via ntg-context
natural tables I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suf

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread juh via ntg-context
I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suffix \eTH \eTR \

Re: [NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread Wolfgang Schuster via ntg-context
ecause I have no problem to access values in the current row. \usemodule[spreadsheet] \starttext \bTABLE     \bTR     \bTD Amount \eTD     \bTD Single \eTD     \bTD Sum \eTD     \eTR     \bTR     \bTD \getspr{2} \eTD     \bTD \getspr{5} \eTD     \bTD \getspr{A[2] * B[

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
][2][width=3cm, align=middle] \setupTABLE[c][each][frame=off] \stopsetups \switchtobodyfont[10pt] \starttext \doifmode{title}{\title{Rooster}} \startcolumns[n=2] \bTABLE[split=yes, setups=tablesettings] \dorecurse{75}{\bTR \bTD 25 \eTD \bTD aug, wo \eTD \bTD Lecture \eTD \eTR

Re: [NTG-context] (no subject)

2021-07-18 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 17.07.2021 um 08:38: I have the following file: \setupfloat[table][default=nonumber] \starttext \section[title={Tables without force}] Here is a table without a caption, unforced. \startplacetable[location=none]   \bTABLE   \bTR\bTD r1c1

Re: [NTG-context] (no subject)

2021-07-18 Thread Pablo Rodriguez
On 7/17/21 8:38 AM, T. Kurt Bond wrote: > I have the following file: > > \setupfloat[table][default=nonumber] > > \starttext > \startplacetable[title={Table With A Caption},location=force] > \bTABLE > \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR > \e

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

2021-06-23 Thread Jan U. Hasecke
Hi all, I have this sample: \usemodule[database] \setuppapersize [A6] \setupTABLE [split=yes, header=repeat] \defineseparatedlist [test] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \processdatabasefile[test

[NTG-context] Natural tables framecolor=white regression

2021-06-20 Thread Christoph Reller
Hi, Consider the following MWE: \starttext \setupTABLE[ rulethickness=5pt, framecolor=white, %red, background=color, backgroundcolor=gray, frame=off] \setupTABLE[1][2][foregroundcolor=white, topframe=on] \setupTABLE[r][2][topframe=on] \bTABLE[setups=table:color] \bTR \bTD One

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] > \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE > \setupTABLE[r][each][height=1.3cm,topframe=on] > \setupTABLE[c][each][width=1.7cm] > \setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table > \setupT

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster
his indeed is the desired behavior? Thank you very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3cm,t

[NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] \setupTABLE[c][each][width=1.7cm] \setupTABL

Re: [NTG-context] PDF forms not creating proper children

2021-06-07 Thread Leonard Janis Robert König
; signatures into one, however Okular doesn't. I could, however, isolate the original issue I posted on the ML: Actually forms still work, but they don't, if embedded into TABLEs. Here's a MWE: \setupinteraction[state=start] \definefield[lineField][line][][][] \starttex

  1   2   3   4   5   6   7   8   9   10   >