Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
oes not work >> anymore. As a matter of fact, it doe snot work at all, nor MKII, nor MKIV >> (probably my error !). >> So I came back to the wiki, where my code came from, and the code below is >> just a copy for the wiki. It is supposed to make a table with three columns, >

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Wolfgang Schuster
!). So I came back to the wiki, where my code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table… I admit I do not understand the code, but is there is missing \eTR somewhere ? Use

[NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table… I admit I do not understand the code, but is there is missing \eTR somewhere ? Thanks for any help. Fabrice. Ps: in case

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Rik Kabel
table of content the \TeX command should be written in the register and not the content of the command. In the following example the first line prints the definition of the \TeX logo but in many cases you ant to preserve the command as in the second line. \starttext \tex{TeX} = \detokenize

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Wolfgang Schuster
Rik Kabel schrieb am 20.11.2020 um 00:18: You are right about not quite understand. There are cases where you want to pass a command to another command as it is without replacing it with its content, e.g. when you store the \TeX logo in the table of content the \TeX command should be

Re: [NTG-context] Tables in multiple columns?

2020-11-16 Thread Bruce Horrocks
> On 16 Nov 2020, at 08:55, Bruce Horrocks wrote: [snip] > I'm interested because I have a long thin table that I would to avoid having > to manually split, but I would also like the heading to repeat at the top of > each column and \starttabulation doesn't do the lat

[NTG-context] Tables in multiple columns?

2020-11-16 Thread Bruce Horrocks
There's an example in the Wiki on how to put a table into multiple columns that no longer works in LMTX (version 2020.11.05 23:01). <https://wiki.contextgarden.net/TABLE#Tables_in_multiple_columns> \starttext \startcolumns[n=3] \bTABLE \dorecurse{21} {\bTR \bTD a\eTD \bTD b \eTD \e

Re: [NTG-context] LMTX, mathcases and noalign

2020-11-13 Thread Hans Hagen
we do overload them in all those different table mechanisms but this is not something users have to worry about.) Btw, using \noalign is to be avoided because it assumes that the mechanism uses the alignment mechanism. But best wait for th

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 Andres Conrado Montoya
By the way, I already tried with \framed, but I can't get it to take the current float width. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios,

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 Andres Conrado Montoya
> Hi Andrés, > > You could probably put the notes inside a \start...\stopxtablefoot > > Sylvain Thanks Sylvain, but I have a lot of tables to edit...This may work, but I would prefer to explore programmatic solutions involving the two defined macros(\fuentent & \fuente in my example), because I re

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
Hi Andrés, You could probably put the notes inside a \start...\stopxtablefoot Sylvain On Tue, 10 Nov 2020 at 21:49, Andres Conrado Montoya < andresconr...@gmail.com> wrote: > MWE (sorry for the long table, I hadn't anything else at hand): > > > \defi

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 … > \stopxtable\endgroup Unless you

[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
MWE (sorry for the long table, I hadn't anything else at hand): \definehighlight[emph][style={\em}] \definehighlight[strong][style={\bf}] \setupfloat[table][default={here}] \definereferenceformat[figura][text={Figura~}] \definereferenceformat[tabla][text={

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

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > 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 > > \sho

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 you \hskip i

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

2020-11-10 Thread Sylvain Hubert
topxrow} > > \stopxtable > > \stoptext > > > > it is sometimes difficult to predict how much remaining space should > > trigger a line break. > > You can either reformat your table or put the table in a float > environment to move it to a pla

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

2020-11-10 Thread Wolfgang Schuster
    \dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow}     \stopxtable     \stoptext it is sometimes difficult to predict how much remaining space should trigger a line break. You can either reformat your table or put the table in a float environment to move it to a place where it fits

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

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Pablo Rodriguez schrieb am 10.11.2020 um 15:59: > > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > >> Dear List, > >> > >> In the following example, the section title appears at the very end of > >> the fir

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 the o

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

2020-11-10 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 10.11.2020 um 15:59: On 11/10/20 9:55 AM, Sylvain Hubert wrote: Dear List, In the following example, the section title appears at the very end of the first page. [...] Does anyone know where to adjust the penalty in this case, so that the section title can be repositi

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

2020-11-10 Thread Pablo Rodriguez
no fix is required when you allow the table to be split: \startxtable[split=yes] Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

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

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

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 16:00, Pablo Rodriguez wrote: > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, the section title appears at the very end of > > the first page. > > [...] > > Does anyone know where to adjust the penalty in this case, so that the

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

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 9:55 AM, Sylvain Hubert wrote: > Dear List, > > In the following example, the section title appears at the very end of > the first page. > [...] > Does anyone know where to adjust the penalty in this case, so that the > section title can be repositioned to the next page? Hi Sylvain,

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

2020-11-10 Thread Sylvain Hubert
Dear List, In the following example, the section title appears at the very end of the first page. \showframe \starttext \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{30}{a b

Re: [NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
: > Dear List, > > it is known that we can supply additional userdata like authors to > \startsection: > > \startsection[title=Title][author=Someone] > > so that the author can be included in the table of contents using > \structurelistuservariable{author}. > >

[NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
Dear List, it is known that we can supply additional userdata like authors to \startsection: \startsection[title=Title][author=Someone] so that the author can be included in the table of contents using \structurelistuservariable{author}. Now I would like to do the same with \section, but

Re: [NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
On Sat, 7 Nov 2020 at 20:37, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > \structurelistuservariable is for lists (e.g. the table of contents), > to access the values in your text use \structureuservariable. > Indeed. Thanks for the

Re: [NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 07.11.2020 um 20:32: Dear List, I have sections tagged with authors:     \startsection[title={Title}][author={Author}] ... \stopsection The authors were to be included in the table of contents using \structurelistuservariable{author}. Now I would also like to

[NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
Dear List, I have sections tagged with authors: \startsection[title={Title}][author={Author}] ... \stopsection The authors were to be included in the table of contents using \structurelistuservariable{author}. Now I would also like to mention the authors inside the sections, but

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
> say I have three sections in the document: > > > > \section{foo} ... \section{bar} ... \section{baz} ... > > > > Now I would like to auto generate a heavily customized table of contents > > like the following text, which cannot be done by the stock \place

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:32 PM, Sylvain Hubert wrote: > Dear List, > > say I have three sections in the document: > >     \section{foo} ... \section{bar} ... \section{baz} ... > > Now I would like to auto generate a heavily customized table of contents > like the following text, whi

[NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Dear List, say I have three sections in the document: \section{foo} ... \section{bar} ... \section{baz} ... Now I would like to auto generate a heavily customized table of contents like the following text, which cannot be done by the stock \placecontent in general, and put it into the

[NTG-context] store data in the first run for later runs?

2020-11-06 Thread Pablo Rodriguez
ter the first one see to empty the data in the Lua table. Adapting a sample from the wiki: \starttext \definedataset[somedataset] \startmode[*first] \setdataset[somedataset][wantscake=yes, wantsdeath=no] \stopmode Do you want cake? \datasetvariable{somedataset}{1}{wantscake}.\\ BTW,

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Hans Hagen
phead({somehead}, {somesettings}) are > actual Lua tables and follow Lua, not TeX, rules > But there are lua apis that support delayed TeX like > `context.chapter(context.delayed'text')`. > Whether or not the function is stored in a table should be theoretically

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
ules > > But there are lua apis that support delayed TeX like > > `context.chapter(context.delayed'text')`. > > Whether or not the function is stored in a table should be theoretically > > irrelevant. > > I guess there should be a switch somewhere that let the

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-03 Thread Hans Hagen
ion is stored in a table should be theoretically irrelevant. I guess there should be a switch somewhere that let the command recognized delayed function. all is possible but not all is reasonable to support .. adding layer upon layed doesn't make it more pretty anyway, chapter (section) tit

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Jairo A. del Rio
Sorry. What I meant is: when you use context.setuphead({'chapter'}, {title="Some text"}) at the Lua end, {'chapter'} and {title="Some text"} (notice "Some text" is a string, not a function) are Lua tables. TeX will print "Some text",

[NTG-context] A syntax sugar for ConTeXt

2020-11-02 Thread Sylvain Hubert
and saving keystrokes to the level of tex compared to \ctxlua -only codes A major motivating example is the table. There are multiple implementations of table inside and outside ConTeXt, each of which uses its own ad-hoc syntax, but at the end of the day they're just mimicking 2d arrays with some var

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Sylvain Hubert
> as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules But there are lua apis that support delayed TeX like `context.chapter(context.delayed'text')`. Whether or not the function is stored in a table should be theoretically

[NTG-context] [save] [setmatrix] [restore] and [latelua] messages on terminal

2020-10-30 Thread Aditya Mahajan
]. data = function: 0x5585588b4250 [latelua].. data = table: 0x558557a5ab90floatblocks Any idea what is causing these and how to I disable

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Hans Hagen
ation of the text from one script to the other would be a really nice feature. Then you could type your text for a book once and have it typeset in both versions without any extra effort :) As for transliteration, cyrillic to latin is one-to-one, straightforward with no exceptions. A simple tab

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Ivan Pešić
at adding support for transliteration of the text > from one script to the other would be a really nice feature. Then you > could type your text for a book once and have it typeset in both > versions without any extra effort :) As for transliteration, cyrillic to latin is one-to-one, straight

Re: [NTG-context] xtable row number trouble

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

Re: [NTG-context] xtable row number trouble

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

Re: [NTG-context] xtable row number trouble

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

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

Re: [NTG-context] content of xml node (element) in lua

2020-10-17 Thread Jano Kula
described in the xml-mkiv.pdf manual. To access the element > >> content xml.text(t,"/element") Lua function is used. > >> > >> However, using the same function xml.text("#1",/element) directly > >> inside Lua doesn't work for me. Node #1 is a

Re: [NTG-context] content of xml node (element) in lua

2020-10-17 Thread Hans Hagen
rectly inside Lua doesn't work for me. Node #1 is available, but not the content of /element. In your lua fragment, node #1 is available as "xml:name::4" or "xml:name::6", but not as a lua table. when you're at the lua end you can use lxml.getid to access that

Re: [NTG-context] content of xml node (element) in lua

2020-10-16 Thread mf
rk for me. Node #1 is available, but not the content of /element. In your lua fragment, node #1 is available as "xml:name::4" or "xml:name::6", but not as a lua table. When node #1 is passed to a \xmlfunction, the function gets a lua table as argument. To write di

[NTG-context] index issues

2020-10-14 Thread Henning Hraban Ramm
suppose you’ll remember; I left out the Lua table lookup for unified entries): \defineprocessor[kursiv][style=italicface] \define[1]\nIndex{\doifmodeelse{*footnote}{% \expanded{\index[kursiv->]{#1}}}% }{% \expanded{\index{#1}}}% }} (2) Can I avoid linebreaking of page ranges in \placein

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 6:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 17:33: >> [...] >> 2. Is there no Lua version of \getvariable{...}{...}? > > There is no need because everything is stored in a Lua table. > [...] > local argumentlist  = d

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
on of \getvariable{...}{...}? There is no need because everything is stored in a Lua table. begin example \starttext \startluacode local argumentlist  = document.arguments.arguments local argumenttable = utilities.parsers.settings_to_hash(argumentlist) context(argumenttable["fna

Re: [NTG-context] font clarification

2020-10-13 Thread Hans Hagen
)? no, it's a math font with a math table and math feature sonly 2. If so, do I still need the first line in my setup, namely the [rm] line? Would not the [mm] be enough? no, you need a text font with basic symbols and text features only so, the setup you use is ok

Re: [NTG-context] Fine tuning an index

2020-10-09 Thread Duncan Hothersall
interactions are set >> up or not, but is there a way to manually insert a column or page break >> into the register before or after a certain entry, the way there is for a >> table of contents? >> >> __

Re: [NTG-context] Fine tuning an index

2020-10-08 Thread Duncan Hothersall
nd automatic > breaking seems to alter slightly depending on whether interactions are set > up or not, but is there a way to manually insert a column or page break > into the register before or after a certain entry, the way there is for a > table of contents? > >

Re: [NTG-context] Fine tuning an index

2020-10-08 Thread jbf
gister before or after a certain entry, the way there is for a table of contents? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/

[NTG-context] Fine tuning an index

2020-10-08 Thread Duncan Hothersall
ding on whether interactions are set up or not, but is there a way to manually insert a column or page break into the register before or after a certain entry, the way there is for a table of contents? Sorry for no MWE, for obvious reasons. Any pointers to what might be able to be don

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

2020-10-08 Thread Denis Maier
Am 07.10.2020 um 18:00 schrieb Denis Maier: Am 07.10.2020 um 17:46 schrieb Wolfgang Schuster: Denis Maier schrieb am 07.10.2020 um 17:39: Hi, is there a way not to repeat the caption of a multipage natural table? I've searched the list archive and it looks the question came up a coup

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

2020-10-07 Thread Denis Maier
Am 07.10.2020 um 17:46 schrieb Wolfgang Schuster: Denis Maier schrieb am 07.10.2020 um 17:39: Hi, is there a way not to repeat the caption of a multipage natural table? I've searched the list archive and it looks the question came up a couple of times, but I couldn't find an an

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

2020-10-07 Thread Wolfgang Schuster
Denis Maier schrieb am 07.10.2020 um 17:39: Hi, is there a way not to repeat the caption of a multipage natural table? I've searched the list archive and it looks the question came up a couple of times, but I couldn't find an answer. If this doesn't help you have to pr

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

2020-10-07 Thread Denis Maier
Hi, is there a way not to repeat the caption of a multipage natural table? I've searched the list archive and it looks the question came up a couple of times, but I couldn't find an answer. Also, if I add a footnote to a caption of a split table, this note always appears when t

[NTG-context] Keep postponed footnotes on page where called

2020-10-07 Thread Denis Maier
notes are cactually alled after the table is already finished so the notes always appear at the last page of the table, which in many cases is not what you'd want. Ok, no luck. With this example, the notes always appear after the table. (Pablo's settings from above mak

[NTG-context] solution to suppressing header in ToC

2020-10-06 Thread jbf
Hi list, I am offering the solution I found for myself for suppressing headers in a multipage Table of Contents, after trying a number of other unsuccessful approaches. My solution may be useful for others, but it may also be that, while it works, there may be even better solutions that

Re: [NTG-context] Citeproc

2020-10-05 Thread Aditya Mahajan
us amount of available styles in > > > CSL, I nevertheless think that this could be a worthwile addition. What > > > would be necessary to make such a toll usable with ConTeXt? How > > > complicated would that be? > > > > In principle, this should be trivial.

Re: [NTG-context] Citeproc

2020-10-05 Thread Hans Hagen
this should be trivial. Define a new command, say \citeproc[ref], which saves the values of `ref` to a lua table, and at the end of the run, write that lua table to an aux .json file, call citeproc and store output to a new file, and on the second run read from that file. This is essentially how

Re: [NTG-context] Citeproc

2020-10-04 Thread Aditya Mahajan
In principle, this should be trivial. Define a new command, say \citeproc[ref], which saves the values of `ref` to a lua table, and at the end of the run, write that lua table to an aux .json file, call citeproc and store output to a new file, and on the second run read from that file. This i

Re: [NTG-context] Postponed footnotes and pagebreaks

2020-10-02 Thread Denis Maier
Denis, this options might help: \setupnote [footnote] [split=verystrict, scope=text] Thanks, I'll try. The problem is that I have multiplage tables, and I want the notes on the appropriate pages. I think postponed footnotes are actually called after the tab

Re: [NTG-context] Best way to store text for later use

2020-10-02 Thread Denis Maier
Am 18.09.2020 um 18:18 schrieb Hans van der Meer: A possibility is saving the data as text in a Lua-table. If you are not afraid to use some Lua, I can send my code for saving files and data for repeated use. Sorry, for answering only now. I've missed your response. That sounds intere

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-10-01 Thread Denis Maier
[split=yes] \setupTABLE [start] [spaceinbetween=25pt] Thanks. What exactly does [start] do? \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE Try to avoid blank lines in tables, it shouldn't matter in this case but in certain cases this can

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Wolfgang Schuster
] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE Try to avoid blank lines in tables, it shouldn't matter in this case but in certain cases this can lead to unwanted whitespace. Wol

[NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Denis Maier
Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE \stoptext == What am I missing? Best, Denis

Re: [NTG-context] Tagged export breaks r2l alignment in tabulate

2020-09-30 Thread Wolfgang Schuster
Denis Maier schrieb am 30.09.2020 um 16:18: Ok, that works. Is it possible to define that both cells in the first row as left to right? (Like in the definition, not in the cell.) I don't think so but maybe table headers can help you. \starttext \starttabulatehead[] \BC \raggedcenter C

Re: [NTG-context] Tagged export breaks r2l alignment in tabulate

2020-09-30 Thread Denis Maier
\setupbackend but ignore the export key. Wolfgang Thanks, Wolfgang for that suggestion. However, that does not seems to solve the problem. Put differently, tagging seems to lead to the same sort of problems. It works when you set the alignment in the template of the table. \setupdirections   [bidi

[NTG-context] correct vertical alignment in ToC

2020-09-29 Thread jbf
A quick look at the attached pdf extract from my current Table of Contents will demonstrate the problem. I need authors names, chapter titles and/or date range to line up correctly underneath each other, but because of the definitions I am working with (see below how the current result has

Re: [NTG-context] Tagged export breaks r2l alignment in tabulate

2020-09-27 Thread Wolfgang Schuster
, Wolfgang for that suggestion. However, that does not seems to solve the problem. Put differently, tagging seems to lead to the same sort of problems. It works when you set the alignment in the template of the table. \setupdirections [bidi=global, method=unicode] \setuptagging [state=start

Re: [NTG-context] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
ki/%C2%AB_%C2%BB). This may be due to setupdirection algorithms or a side effect of how some Context commands work. One needs to document them, so a fix is uploaded. Depending on what you want to typeset, you may need to change the numerals (for page numbers, enumerations, figure and table numbers

Re: [NTG-context] More table questions

2020-09-22 Thread Denis Maier
an even in 0.25pt, if the resolution of the press (offset/digital) works with such thin lines. Also don’t use indented table lines if you don’t use vertical lines (and you should usually avoid those). Thanks for the suggestions. I'll keep that in mind. As said before, I don't really regul

Re: [NTG-context] More table questions

2020-09-22 Thread Denis Maier
can get this behavior using any of table mechanism. The wiki has an example when using the (now deprecated) TaBlE macros https://wiki.contextgarden.net/Table#Booktabs The same effect is rather easy to achieve when using natural tables as well. \startsetups booktabs \setupTABLE[each][each

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
On Tue, 22 Sep 2020, Peter Münster wrote: > On Tue, Sep 22 2020, Aditya Mahajan wrote: > > > The same effect is rather easy to achieve when using natural tables as > > well. > > But it fails, when there is only one data-row... :( Then don't create tables with only one data row :-) A better sol

Re: [NTG-context] More table questions

2020-09-22 Thread Peter Münster
On Tue, Sep 22 2020, Aditya Mahajan wrote: > The same effect is rather easy to achieve when using natural tables as > well. But it fails, when there is only one data-row... :( \startsetups booktabs \setupTABLE[each][each][frame=off] \setupTABLE[row][first][topframe=on,rulethickness=1.2bp]

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
On Tue, 22 Sep 2020, Denis Maier wrote: > Also, how do you easiest define booktabs style tables? I mean: can you > define tables such that the last row end with thicker lines without > having to make this explicit? Is there a mechanism for this? You can get this behavior using any

Re: [NTG-context] More table questions

2020-09-22 Thread Henning Hraban Ramm
use them unobtrusively. Depending on your product (black printing, CMYK printing, screen only) you can use light colors, but be aware that thin, rasterized lines look jagged, while you can e.g. use 100% cyan even in 0.25pt, if the resolution of the press (offset/digital) works with such thin lines.

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

2020-09-22 Thread Denis Maier
nt to have a frame above the table and one bar below. So I think I should wrap the last line in the \startxtablefoot ...\stopxtablefoot, i.e., I need one command for the last element, and one for the rest (Or is there a better way?). What would be the everything but the last? What am I missing?

[NTG-context] More table questions

2020-09-22 Thread Denis Maier
Hi, I usually don't need tables, therefore this maybe stupid question: What is the currently recommended way to typeset tables? Still natural tables? Or extreme tables? (My tables won't be 30 pages long.) Also, how do you easiest define booktabs style tables? I mean: can you define tables su

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

2020-09-22 Thread Taco Hoekwater
> On 21 Sep 2020, at 18:31, Denis Maier wrote: > > Hi > > struggling again: Shouldn't the code below give me the last element under > ? Right now \xmlfilter{#1}{/tr/last()/command(xml:table:tbody:tr)} > gives me nothing... > > (Use case is that I want to

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

2020-09-21 Thread Jeong Dal
Dear Aditya, Jairo, Wolfgang, and Otared, Thank you for the replies and explanations. I also read the blog. In this case, using '##1’ is an easy way. For more complex table, I may use luacode. Thanks again. Best regards, Dal

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

2020-09-21 Thread Wolfgang Schuster
Jeong Dal schrieb am 21.09.2020 um 20:54: Dear Aditya, Jairo, Wolfgang, and Otared, Thank you for the replies and explanations. I also read the blog. In this case, using '##1’ is an easy way. For more complex table, I may use luacode. I forgot the obvious \expanded solution: \star

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

2020-09-21 Thread Jeong Dal
Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created with the \recurselevel 0 and 2 only in the second example. Does the tabulate cause the error? What is

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

2020-09-21 Thread Denis Maier
Hi struggling again: Shouldn't the code below give me the last element under ? Right now \xmlfilter{#1}{/tr/last()/command(xml:table:tbody:tr)} gives me nothing... (Use case is that I want to have a frame above the table and one bar below. So I think I should wrap the last line i

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

2020-09-21 Thread Wolfgang Schuster
Denis Maier schrieb am 21.09.2020 um 16:38: Hi, I'm a bit confused, but this here won't compile: = \startbuffer[test] Test \stopbuffer \startxmlsetups xml:test     \xmlsetsetup{#1}{*}{-}     \xmlsetsetup{#1}{article}{xml:*}     \xmlsetsetup{#1}{table[@co

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

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 21.09.2020 um 16:35: > > On Mon, 21 Sep 2020, Jeong Dal wrote: > > > > > Hi, > > > > > > I tried to make a table using \dorecurse or \doloop as in the example. > > > T

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

2020-09-21 Thread Otared Kavian
t row \dorecurse{8} {\startxrow\startxcell \recurselevel \stopxcell\stopxrow} \stopxtable \stoptext Best regards: Otared K. > On 21 Sep 2020, at 16:07, Jeong Dal wrote: > > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error b

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

2020-09-21 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 21.09.2020 um 16:35: On Mon, 21 Sep 2020, Jeong Dal wrote: Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created with the

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

2020-09-21 Thread Jairo A. del Rio
p. de 2020 a la(s) 09:16, Jeong Dal (hak...@me.com) escribió: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the > first example and only two rows are created with the \recurselevel 0

[NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier
Hi, I'm a bit confused, but this here won't compile: = \startbuffer[test] Test \stopbuffer \startxmlsetups xml:test     \xmlsetsetup{#1}{*}{-}     \xmlsetsetup{#1}{article}{xml:*}     \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table

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

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Jeong Dal wrote: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the first > example and only two rows are created with the \recurselevel 0 and 2 only i

Re: [NTG-context] Parallel text support

2020-09-21 Thread Taco Hoekwater
> On 21 Sep 2020, at 12:21, Denis Maier wrote: > > > However, as it turns out, split only seems to mean that the table is split > between rows, individual rows stay on the same page. > > Is there a better approach? I've found the page-streams, but th

[NTG-context] Parallel text support

2020-09-21 Thread Denis Maier
t=yes,frame=off] \startxrow \startxcell Text \stopxcell \startxcell Übersetzung \stopxcell \stopxrow \startxrow \startxcell \input ward \stopxcell \startxcell \input tufte \stopxcell \stopxrow \stopxtable \stoptext = However, as it turns out, split only seems to mean that the

<    3   4   5   6   7   8   9   10   11   12   >