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

2023-08-18 Thread Wolfgang Schuster
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()} \eTABLE

[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
Hi, I am trying to generate a table representation for some xml source. As the data structure doesn't directly correspond to the desired table structure, some manipulations via lua are required. So far everything works OK except table sectioning commands, like \bTABLEhead, \eTABLEhead, bTABLEbody

Re: [NTG-context] natural table oddities

2023-03-27 Thread Bruce Horrocks via ntg-context
r=red], body and foot >> are formatted, but not the same column in header. I couldn’t find how to >> format columns in header. If you disregard the Wiki page instructions to use \bTH...\eTH then you can format the header using: \bTABLEhead \bTR \bTH Column 1 \eTH \bTD[color=bl

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

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

2023-03-15 Thread Bruce Horrocks via ntg-context
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=bottom] >

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

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

2023-02-25 Thread Paul Mazaitis via ntg-context
rtsTable] [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 \eTR \eTABLEhead \bTABLEbody }, after={ \eTABLEbody \eTABLE }] \s

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

2023-02-22 Thread Denis Maier via ntg-context
ight}] > \stopxmlsetups > > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:table-wrap > \startplacetable > \xmlflush{#1} > \stopplacetable > \stopxmlsetups > > \startxmlsetups xml:table &g

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

2023-02-20 Thread Denis Maier via ntg-context
d)} \xmlfilter{#1}{/tbody/command(xml:table:tbody)} \eTABLE \stopxmlsetups \startxmlsetups xml:table:thead \bTABLEhead \xmlfilter{#1}{/tr/command(xml:table:thead:tr)} \eTABLEhead \stopxmlsetups \startxmlsetups xml:table:thead:tr \bTR

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
(xml:table:tbody)} \eTABLE \stopxmlsetups \startxmlsetups xml:table:thead \bTABLEhead \xmlfilter{#1}{/tr/command(xml:table:thead:tr)} \eTABLEhead \stopxmlsetups \startxmlsetups xml:table:thead:tr \bTR

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

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
LE in your > header. I have modified your example file (see attached). With that you > get the > attached PDF. > > By the way, your example was missing a \bTABLEhead. Moreover, I believe > cells > in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. > I &

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

2022-05-14 Thread śrīrāma via ntg-context
xample was missing a \bTABLEhead. Moreover, I believe cells in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I have made these changes as well. [Also, I hope you are aware that you can use style=\tt, style=\bf per row/ column/cell with \setupTABLE; that will significantly reduce ma

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

[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
xml:colgroup \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:col \xmlpos{#1} \xmlatt{#1}{align}\par \stopxmlsetups \startxmlsetups xml:table:thead \bTABLEhead \xmlflush{#1} \eTABLEhead \stopxmlsetups \startxmlsetups xml:table:tr \bTR \xmlflush{#1} \eTR

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
ables 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] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
][corner=07] \setupTABLE[last][last][corner=06] \setupTABLE[column][last][style={\setcharacterspacing[frenchpunctuation]}] \stopsetups \bTABLE[setups=tablesettings] %\bTABLEhead \bTR \bTH espéranto \eTH \bTH exemple \eTH \bTH équivalent en français \eTH \eTR %\eTABLEhead %\bTABLEbody

[NTG-context] bTABLEhead not working

2020-11-24 Thread Bruce Horrocks
This worked for me a couple of versions ago but not under 2020.11.24 00:41. The headings are being printed as ordinary text at the top of the table rather than framed. \starttext \bTABLE[split=yes, header=repeat] \bTABLEhead \bTR \bTH A \eTH \bTH B \eTH \eTR

Re: [NTG-context] Split Table, don't repeat caption

2020-10-08 Thread Denis Maier
of times, but I couldn't find an answer. If this doesn't help you have to provide a example. [...] Ok: = \setupcaption[table]     [location=top] \starttext \startplacetable[location=split,title={Title\footnote{footnote}}]     \bTABLE[split=yes]     \bTABLEhead

Re: [NTG-context] Split Table, don't repeat caption

2020-10-07 Thread Denis Maier
. If this doesn't help you have to provide a example. [...] Ok: = \setupcaption[table]     [location=top] \starttext \startplacetable[location=split,title={Title\footnote{footnote}}]     \bTABLE[split=yes]     \bTABLEhead     \bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR

Re: [NTG-context] Split Table, don't repeat caption

2020-10-07 Thread Wolfgang Schuster
. \starttext \bTABLE[split=yes]     \bTABLEhead     \bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR     \eTABLEhead     \bTABLEbody     \dorecurse{100}{\bTR \bTD Column 1 \eTD \bTD Column 2 \eTD \eTR}     \eTABLEbody \eTABLE \stoptext Wolfgang

Re: [NTG-context] pdf tagging for accesbility

2020-07-12 Thread Duncan Hothersall
get tagging in general and thought that natural tables would > work because of \bTABLEhead ... \eTABLEhead would do the job, but it > doesn't. > > I'd appreciate any feedback. > > David > > > Sent with ProtonMai

[NTG-context] pdf tagging for accesbility

2020-07-12 Thread David Eric Cox
Hello. Is there any way to pdf-tag table headers to assist screen readers and the like? I can get tagging in general and thought that natural tables would work because of \bTABLEhead ... \eTABLEhead would do the job, but it doesn't. I'd appreciate any feedback. David Sent with [ProtonMail

Re: [NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Hans Hagen
... l.114 \eTABLE My table is: \setupTABLE[header][each][background=color,backgroundcolor=white, width=broad] \bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]   \bTABLEhead[align=flushright]     \bTR    \bTH [offset=none, align={flushleft},

[NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
=color,backgroundcolor=white, width=broad] \bTABLE[split=repeat,option={stretch}, align={flushright}, frame=off] \bTABLEhead[align=flushright] \bTR \bTH [offset=none, align={flushleft}, nc=39] . \eTH ... \bTR[strut=no] \bTD[align={flushleft,lohi}

Re: [NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-10 Thread Tomas Hala
I have got the following two minimal non-working examples (on TeXlive 2018): # > # >\starttext\setupTABLE[split=yes] # > \bTABLE # > \bTABLEhead\bTR\bTH head \eTH\eTR\eTABLEhead # > \bTABLEbody # > \dorecurse{100}{\bTR\bTD \currentTABLErow xxx \eTD\eTR} # > \eTA

Re: [NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-03 Thread Wolfgang Schuster
] \bTABLE \bTABLEhead\bTR\bTH head \eTH\eTR\eTABLEhead \bTABLEbody \dorecurse{100}{\bTR\bTD \currentTABLErow xxx \eTD\eTR} \eTABLEbody \eTABLE \stoptext In this case, the head-line is alse counted which makes no sense and I do not know how to supress it. Even though

[NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-03 Thread Tomas Hala
Hi all, at https://wiki.contextgarden.net/Command/currentTABLEcolumn I learnt about \currentTABLErow etc. for counting lines in natural tables. I have got the following two minimal non-working examples (on TeXlive 2018): \starttext\setupTABLE[split=yes] \bTABLE \bTABLEhead\bTR\bTH head

Re: [NTG-context] Issue with ligatures before dashes

2018-10-30 Thread Wolfgang Schuster
\setupTABLE[c][1,3][align=left] \setupTABLE[c][2,4][loffset=1em,roffset=1em] \setupTABLE[r][each][offset=0pt] \bTABLE[frame=off] \bTABLEhead \bTR[align=center,bottomframe=on] \bTH[nc=2] Non-compound\eTH \bTH[nc=2] Compound\eTH \eTR

[NTG-context] Issue with ligatures before dashes

2018-10-30 Thread Rik Kabel
) it fails with bare %% hyphen and all shown compounds except |=|. \starttext \setupTABLE[c][1,3][align=left] \setupTABLE[c][2,4][loffset=1em,roffset=1em] \setupTABLE[r][each][offset=0pt] \bTABLE[frame=off] \bTABLEhead \bTR[align=center,bottomframe

[NTG-context] align is reversed inside a table

2018-09-29 Thread David Walther
=off,align=left] \setupTABLE[c][2][style=\tfx\it,align=left] \bTABLE \bTABLEhead \bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR \eTABLEhead \bTABLEnext \bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR \eTABLEnext \bTABLEbody \bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR

[NTG-context] table making ugly column sizes, how to fix?

2018-09-29 Thread David Walther
=off,rightframe=off,align=right] \setupTABLE[c][first][frame=off,align=left] \setupTABLE[c][2][style=\tfx\it,align=left] \bTABLE \bTABLEhead \bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR \eTABLEhead \bTABLEnext \bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR \eTABLEnext \bTABLEbody \bTR\bTC

Re: [NTG-context] TABLE: centering splitted TABLE

2018-06-21 Thread Wolfgang Schuster
m 07:59 Place the table as float and disable the caption, e.g. \startplacetable[location={split,force,none}] ... \stopplacetable Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 21. Juni 2018 um 11:10 Hello, thanks, it works: \startalignment[middle] \startplacetable[locatio

Re: [NTG-context] TABLE: centering splitted TABLE

2018-06-21 Thread Procházka Lukáš Ing .
Hello, thanks, it works: \startalignment[middle] \startplacetable[location={split,force,none}] \bTABLE[split=repeat] \bTABLEhead \bTR\bTH A\eTH\bTH B\eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{60}{ \bTR \bTD

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-31 Thread Rik Kabel
SET}{b}}     \define\C{\getvariable{#SET}{c}}     \bTR   \expanded{\bTC\A\eTC}   \expanded{\bTC\B\eTC}   \expanded{\bTC\C\eTC}     \eTR \stoptexdefinition \starttext     \processcommacommand[\Sets]\doInlineText     \bTABLE[frame=off]   \bTAB

[NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
  \bTC\B\eTC     \eTR \stoptexdefinition \starttext \starttext \expandafter\processcommalist\expandafter[\Sets]\doInlineText     \bTABLE[frame=off]   \bTABLEhead     \bTR[nc=2]   \bTH Direct\eTH     \eTR   \eTABLEhead

[NTG-context] Long and slender floating tables

2017-04-23 Thread Javier M Mora
Hi, I have several long and slenders tables like this: ---8<--- \starttext Some Text at start. % Point bA \placetable[split]{My long table}{ % Point bB \bTABLE[split=repeat] \bTABLEhead \bTR\bTD one \eTD\bTD two \eTD\bTD three \eTD\eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\

Re: [NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Wolfgang Schuster
=3.0in] \setupTABLE[c][2][width=0.5in, align=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH \eTH \eTR \eTABLEhead \bTAB

Re: [NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Aditya Mahajan
] \setupTABLE[c][2][width=0.5in, align=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH

[NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Pavneet Arora
n=flushright] \setupTABLE[c][3][width=0.5in, align=flushright] \setupTABLE[c][4][width=2.5in] \bTABLE \bTABLEhead \bTR[topframe=on, bottomframe=on] \bTH {\bf Unit Description} \eTH \bTH {\bf Weight} \eTH \bTH {\bf Mark} \eTH \bTH \eTH \eTR

[NTG-context] Floating split TABLE misaligned

2016-02-05 Thread Andreas Schneider
[column][last][width=broad] \setupTABLE[row][first][style=bold] \setupTABLE[offset=.2em] \setupwhitespace[medium] \setuptolerance[verytolerant] \starttext \dorecurse{2}{\input knuth\par} \placetable[here,split][]{Test}{ \bTABLE \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR

[NTG-context] Fwd: \bTABLEheader used to work?

2015-10-18 Thread Henman
I found out that the command is \bTABLEhead and not \bTABLEheader, but I don't know why my saved example had ...header instead of head. Thanks. Forwarded Message Subject:\bTABLEheader used to work? Date: Sun, 18 Oct 2015 00:06:38 -0700 From: Henman <d

Re: [NTG-context] Splitting natural table fails with xtable in footer

2015-10-06 Thread Andreas Schneider
] \setupfooter[style=\tx] \setupfootertexts[\setups{s:footer}][][][\setups{s:footer}] \startchapter[title={Test}] \placetable[split]{Test}{ \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{50}{\bTR \bTD Value1 \eTD \bTD

[NTG-context] Splitting natural table fails with xtable in footer

2015-10-01 Thread Andreas Schneider
[title={Test}] \placetable[split]{Test}{ \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{50}{\bTR \bTD Value1 \eTD \bTD Value2 \eTD \eTR} \eTABLEbody \eTABLE} \stopchapter \stoptext

[NTG-context] formal multipage table

2015-04-07 Thread Csikos Bela
of the trials I made: \defineipsum[tf][alternative=lines,n=2] \starttext \setupTABLE[r][first][style=\tf] \bTABLE[split=repeat,option=stretch,frame=off,bottomframe=on] \bTABLEhead \bTR \bTH[nc=2] This is the first page header \eTH \eTR \bTR \bTH Column 1 \eTH \bTH Column 2 \eTH \eTR

[NTG-context] Multi-page centered natural TABLE

2014-08-25 Thread Christoph Reller
] \bTABLEhead \bTR\bTH Thing \eTH\bTH Desc \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR} \eTABLEbody \eTABLE \stopalignment \stoptext Thank you for any help. Christoph

Re: [NTG-context] Multi-page centered natural TABLE

2014-08-25 Thread Wolfgang Schuster
=no. \starttext \startalignment[middle]\dontleavehmode% \bTABLE[split=yes] \bTABLEhead \bTR\bTH Thing \eTH\bTH Desc \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR} \eTABLEbody \eTABLE \stopalignment \stoptext Thank

Re: [NTG-context] About natural tables

2013-10-30 Thread Wolfgang Schuster
=middle] \setupTABLE [header] [topframe=on,bottomframe=on] \setupTABLE [row] [first] [topframe=on] \setupTABLE [row] [last] [bottomframe=on] \stopsetups \starttext \bTABLE[setups=table:rules] \bTABLEhead \bTR \bTD Letters

Re: [NTG-context] About natural tables

2013-10-30 Thread Aditya Mahajan
] \setupTABLE [start] [frame=off,align=middle] \setupTABLE [header] [topframe=on,bottomframe=on] \setupTABLE [row] [first] [topframe=on] \setupTABLE [row] [last] [bottomframe=on] \stopsetups \starttext \bTABLE[setups=table:rules] \bTABLEhead \bTR

Re: [NTG-context] About natural tables

2013-10-30 Thread MANUEL GONZALEZ SUAREZ
[table:rules] \setupTABLE [start] [frame=off,align=middle] \setupTABLE [header] [topframe=on,bottomframe=on] \setupTABLE [row] [first] [topframe=on] \setupTABLE [row] [last] [bottomframe=on] \stopsetups \starttext \bTABLE[setups=table:rules] \bTABLEhead

[NTG-context] setuplayout with duplex - shifted textarea

2013-10-14 Thread Zenlima
tufte \par } \setuplayout[WithoutMarginnotes] \placetable[split][]{Big table object} { \setupTABLE[row][1][width=\textwidth] \bTABLE[split=repeat] \bTABLEhead \bTR \bTD XXX \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{20}{ \bTR \bTD XXX \eTD \eTR} \eTABLEbody \eTABLE } \setuplayout

Re: [NTG-context] Alignment table with comma, and long long space after

2013-09-22 Thread Xan
=on] \setupTABLE[column][last][rightframe=on] \stopsetups \placefigure[here]{Diverses mesures}{ \bTABLE[setups={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD

Re: [NTG-context] Alignment table with comma, and long long space after

2013-09-22 Thread Xan
={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR \bTR \bTD Distància Palma

[NTG-context] Alignment table with comma, and long long space after

2013-09-21 Thread Xan
={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR \bTR \bTD Distància Palma

Re: [NTG-context] Alignment table with comma, and long long space after

2013-09-21 Thread Wolfgang Schuster
=on] \stopsetups \placefigure[here]{Diverses mesures}{ \bTABLE[setups={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD

Re: [NTG-context] Table cell spanning multiple columns in tabulate

2013-07-16 Thread Thomas Friedrich
=on] \bTABLEhead \bTR \bTD[nr=3] Trial \eTD \bTD[nr=3] Author \eTD \bTD[nr=3] Year \eTD \bTD[nc=4] Infected when\eTD \bTD[nr=3] {Absolute\\ latitute}\eTD \eTR \bTR \bTD[nc=2] vaccinated \eTD \bTD[nc=2] not vaccinated \eTD \eTR \bTR \bTD yes \eTD \bTD no \eTD \bTD yes \eTD \bTD

[NTG-context] [***SPAM***] Shifting table header when using overlay

2013-07-14 Thread Dmitriy Tokarev
\defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}] \starttext \bTABLE \setupTABLE[align=middle] \setupTABLE[header][background={foreground,OL:thickBtm}] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR

[NTG-context] split natural table

2013-05-21 Thread Stephens, Kenny
={center,lohi},style={\bfx}] \setupTABLE[r][1][align={hilo,center},style={\bfx}] \setupTABLE[c][2][width=20em,style={\tfx}] \bTABLEhead \bTR\bTH Row number \eTH\bTH Content \eTH\eTR \eTABLEhead \bTABLEbody \bTR\bTC 1 \eTC\bTC \input{knuth} \eTC\eTR \bTR\bTC 2 \eTC\bTC \input{knuth

[NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Alan BRASLAU
Hello, I naively tried using \bTD\numexpr\currentTABLErow\minusone\relax\dTD in a TABLE. As I do not master even simple calculations under TeX, I do not see what I am missing in order to label TABLE rows, starting from 0? (Row 1 is a heading, set off by \bTABLEhead\eTABLEhead, which

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody \eTABLE \stoptext Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Rogers, Michael K
},bottomrulethickness=1.5mm, boffset=.55mm] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody \eTABLE \stoptext This e-mail message (including any attachments) is for the sole

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
][background={OL:thickBtm},bottomrulethickness=3mm,boffset=1.3mm] \setupTABLE[row][4][background={OL:thickBtm},bottomrulethickness=1.5mm, boffset=.55mm] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody

[NTG-context] TABLE: header with a thick bottom line

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to achieve the table header to have a thick bottom line? Here are my two attempts: \starttext \bTABLE \setupTABLE[width=broad] \setupTABLE[header][align=middle] \bTABLEhead \bTR[bottomframe=on,rulethickness=2mm]\bTH a\eTH\bTH b\eTH\eTR \eTABLEhead

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-22 Thread Aditya Mahajan
On Mon, 22 Oct 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, how to achieve the table header to have a thick bottom line? Here are my two attempts: \starttext \bTABLE \setupTABLE[width=broad] \setupTABLE[header][align=middle] \bTABLEhead \bTR[bottomframe

[NTG-context] TABLE and row/column align settings

2012-10-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
] % Settings for ALL columns in the row 1 should be overwritten ... [2] \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE } \starttext No column specification

Re: [NTG-context] TABLE and row/column align settings

2012-10-03 Thread Wolfgang Schuster
] % ... [1] \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 should be overwritten ... [2] \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD

Re: [NTG-context] TABLE and row/column align settings

2012-10-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
with a particular column settings to work: \starttext \bTABLE \setupTABLE[width=2cm] \setupTABLE[column][2][align=flushright] \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 should be overwritten; but are not (?!) \bTABLEhead[align=middle] \bTR

Re: [NTG-context] TABLE and row/column align settings

2012-10-03 Thread Wolfgang Schuster
in the row 1 should be overwritten; but are not (?!) \bTABLEhead[align=middle] \bTR \bTH[align=middle] a\eTH \bTH[align=middle] b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE

[NTG-context] Long table centered on every page

2012-09-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello how to center a table over several pages? Suppose the following code: \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR

Re: [NTG-context] Long table centered on every page

2012-09-20 Thread Wolfgang Schuster
Am 20.09.2012 um 09:26 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello how to center a table over several pages? Suppose the following code: \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead

Re: [NTG-context] Long table centered on every page

2012-09-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Use \placetable[force]{}{…} and omit the caption with the “none” keyword when you don’t want it. WOlfgang did you mean this? \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR

Re: [NTG-context] Long table centered on every page

2012-09-20 Thread Wolfgang Schuster
it. WOlfgang did you mean this? \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE } \starttext

Re: [NTG-context] Long table centered on every page

2012-09-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
You need also the “split” keyword for the float. \starttext \startplacetable[location={force,split,none}] \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR

[NTG-context] Luatex crash with x86-64 Linux binary

2012-09-10 Thread Brian R. Landy
]% \bTABLEhead% \bTR% \bTH[nc=23]{\setupinterlinespace\strut Freddie Mac Fixed 30yr 3.0\strut\par}\eTH% \eTR% \bTR% \bTH[]{\setupinterlinespace\strut \strut\par}\eTH% \bTH[]{\setupinterlinespace\strut \strut\par}\eTH% \bTH[]{\setupinterlinespace\strut \strut\par}\eTH% \bTH[nc=4]{\setupinterlinespace\strut

[NTG-context] TABLE lines (frame)

2012-06-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
=on] \bTABLEhead[bottomframe=on] \bTR\bTD Head \eTD\eTR \bTR\bTD Head \eTD\eTR \eTABLEhead \bTABLEbody \bTR\bTD 11\eTD\bTD 12\eTD\eTR \bTR\bTD 21\eTD\bTD 22\eTD\eTR \eTABLEbody \eTABLE \stoptext How to specify rules (frame) to get the desired look? TIA

Re: [NTG-context] TABLE lines (frame)

2012-06-12 Thread luigi scarso
: \starttext  \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]    \bTABLEhead[bottomframe=on]      \bTR\bTD Head \eTD\eTR      \bTR\bTD Head \eTD\eTR    \eTABLEhead    \bTABLEbody      \bTR\bTD 11\eTD\bTD 12\eTD\eTR      \bTR\bTD 21\eTD\bTD 22

Re: [NTG-context] TABLE lines (frame)

2012-06-12 Thread Wolfgang Schuster
: \starttext \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on] \bTABLEhead[bottomframe=on] \bTR\bTD Head \eTD\eTR \bTR\bTD Head \eTD\eTR \eTABLEhead \bTABLEbody \bTR\bTD 11\eTD\bTD 12\eTD\eTR \bTR\bTD 21\eTD\bTD 22\eTD\eTR

Re: [NTG-context] TABLE lines (frame)

2012-06-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
=off,leftframe=on,rightframe=on] \setupTABLE[header][frame=on] \setupTABLE[row][first][topframe=on] \setupTABLE[row][last][bottomframe=on] \bTABLE[split=repeat,option=stretch] \bTABLEhead \bTR\bTD Head \eTD\bTD Head \eTD\eTR \eTABLEhead \bTABLEbody \bTR\bTD 11\eTD\bTD 12\eTD\eTR \bTR

[NTG-context] TABLE with split=repeat and headings

2012-03-22 Thread Andreas Schneider
\dorecurse{35}{some text some text some text some text some text\crlf} \subsubsubject{Some Table} \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD foo \eTD \bTD bar \eTD \bTD \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD

[NTG-context] Styling of naturaltable headings

2012-03-15 Thread Steffen Fritzsche
},bottomframe=on] % Styling 2 \starttext \placetable [here][tab:example] {A very simple example of a table.}{ \bTABLE \bTABLEhead \bTR \bTH col1 \eTH \bTH col2 \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTC this \eTC \bTC is \eTC \eTR \bTR \bTC a \eTC \bTC

Re: [NTG-context] Styling of naturaltable headings

2012-03-15 Thread Wolfgang Schuster
]% Styling 1 \setupTABLE[r][first][style={\ss},bottomframe=on] % Styling 2 \starttext \placetable [here][tab:example] {A very simple example of a table.}{ \bTABLE \bTABLEhead \bTR \bTH col1 \eTH \bTH col2 \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTC this \eTC

Re: [NTG-context] Styling of naturaltable headings

2012-03-15 Thread Wolfgang Schuster
this gives me a nice gray background, it still uses a serif font. Since the background is applied I guess it somehow drops anything which is defined as style. Any other ideas or is this a bug? Don’t use \bTH when you use put the header in a \bTABLEhead … \eTABLEhead block because the \bTH

Re: [NTG-context] Styling of naturaltable headings

2012-03-15 Thread Steffen Fritzsche
Am 15.03.2012 um 15:36 schrieb Wolfgang Schuster: Don’t use \bTH when you use put the header in a \bTABLEhead … \eTABLEhead block because the \bTH command applies a format the the cells, when you use \bTD instead no formatting is applied and the \setupTABLE setting is used. Thanks Wolfgang

Re: [NTG-context] Styling of naturaltable headings

2012-03-15 Thread Wolfgang Schuster
Am 15.03.2012 um 15:59 schrieb Steffen Fritzsche: Am 15.03.2012 um 15:36 schrieb Wolfgang Schuster: Don’t use \bTH when you use put the header in a \bTABLEhead … \eTABLEhead block because the \bTH command applies a format the the cells, when you use \bTD instead no formatting is applied

[NTG-context] \placelist summary alternative solution

2011-12-14 Thread Felix Ingram
I've ended up delving into the dark art that is Lua for this solution: \define[0]\SummaryTable{% \placetable[force, none]{}{% \setupTABLE[frame=off] \bTABLE \bTABLEhead \bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR \eTABLEhead \bTABLEbody \startluacode for k, v in ipairs

Re: [NTG-context] \placelist summary alternative solution

2011-12-14 Thread Hans Hagen
On 14-12-2011 17:50, Felix Ingram wrote: I've ended up delving into the dark art that is Lua for this solution: \define[0]\SummaryTable{% \placetable[force, none]{}{% \setupTABLE[frame=off] \bTABLE \bTABLEhead \bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR \eTABLEhead \bTABLEbody

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
] \starttext \startchapter[title=Chapter] \startsection[title=section] \dorecurse{2}{\input knuth } \startplacetable[title={My Table},location=split] \bTABLE[option=stretch] \bTABLEhead \bTR \bTH C1 \eTH \bTH C2 \eTH \eTR \eTABLEhead

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
[table][location=top] \setuplabeltext[table={Tabelle ,:}] \starttext \startchapter[title=Chapter] \startsection[title=section] \dorecurse{2}{\input knuth } \startplacetable[title={My Table},location=split] \bTABLE[option=stretch] \bTABLEhead \bTR \bTH C1 \eTH

[NTG-context] Splitting natural tables

2011-11-29 Thread Christian
? Examle (table is not split, but could be): \starttext \dorecurse{2}{\input knuth } \startplacetable[title={My Table}] \bTABLE[option=stretch,split=repeat] \bTABLEhead \bTR \bTH C1 \eTH \bTH C2 \eTH \eTR \eTABLEhead \bTABLEbody

Re: [NTG-context] Table headers and section titles

2011-09-15 Thread Felix Ingram
}) ; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{LinearShade}] \setupTABLE[row][1][background={shaded},backgroundcolor=blue,foregroundcolor=white] \starttext \framed[background={shaded}, width=\textwidth, frame=off]{} \bTABLE \bTABLEhead \bTR \bTH 1 \eTH \bTH 1 \eTH \bTH 1 \eTH

[NTG-context] Table headers and section titles

2011-09-13 Thread Felix Ingram
]{} \bTABLE \bTABLEhead \bTR \bTH 1 \eTH \bTH 1 \eTH \bTH 1 \eTH \bTH 1 \eTH \bTH Page \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD 1 \eTD \bTD 1 \eTD \bTD 1 \eTD \bTD 1 \eTD \bTD 1 \eTD \eTR \eTABLEbody \eTABLE \stoptext The output shows a framed element which is similar to what I want to achieve

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Wolfgang Schuster
] \setupTABLE[c][1][align=right,width=.30\textwidth] \setupTABLE[c][2][width=.70\textwidth] \stopsetups \starttext \bTABLE[setups=mytable] \bTABLEhead \bTR \bTD[nx=2] The most important commands \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD \type{\completecontent} \eTD \bTD This generates a Table

Re: [NTG-context] Why is the \crlf needed to display the table correctly

2011-08-15 Thread Cecil Westerhof
] \setupTABLE[c][1][align=right,width=.30\textwidth] \setupTABLE[c][2][width=.70\textwidth] \stopsetups \starttext \bTABLE[setups=mytable] \bTABLEhead \bTR \bTD[nx=2] The most important commands \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD \type{\completecontent} \eTD \bTD

Re: [NTG-context] two problems with natural tables

2011-04-11 Thread Wolfgang Schuster
Am 10.04.2011 um 18:40 schrieb Florian Wobbe: 2) How do I get a small and bold header? This does not work: \bTABLE \setupTABLE[style=\tfx] \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 \bTABLEhead \bTR[style=\bfx] \bTH Header \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD hello

Re: [NTG-context] two problems with natural tables

2011-04-11 Thread Florian Wobbe
2) How do I get a small and bold header? This does not work: \bTABLE \setupTABLE[style=\tfx] \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 \bTABLEhead \bTR[style=\bfx] \bTH Header \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD hello \eTD \eTR \bTR \bTD world \eTD \eTR \eTABLEbody

[NTG-context] three more table questions

2011-04-11 Thread Florian Wobbe
Hi, 1) how can I auto-stretch a natural table to a defined width? The default seems to be the line width, which I don't want. Setting width=... will change the per column width, which I don't like either. I'd like to set the per table width. \bTABLE[option=stretch,width=80mm] \bTABLEhead \bTR

Re: [NTG-context] three more table questions

2011-04-11 Thread Wolfgang Schuster
. \bTABLE[option=stretch,width=80mm] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} \eTABLEbody \eTABLE Or is there maybe the possibility to enforce

Re: [NTG-context] three more table questions

2011-04-11 Thread Florian Wobbe
3) Consider this example: \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long

[NTG-context] two problems with natural tables

2011-04-10 Thread Florian Wobbe
still works in 2010.12.21 10:50. Anyone got an idea which setups might cause this issue? 2) How do I get a small and bold header? This does not work: \bTABLE \setupTABLE[style=\tfx] \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 \bTABLEhead \bTR[style=\bfx] \bTH Header \eTH \eTR \eTABLEhead

  1   2   >