Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi Hans, In fact, I was talking about functions that seemed to me "complicated" for what I wanted to do. Fabrice Le sam. 9 nov. 2019 à 14:43, Hans Hagen a écrit : > On 11/9/2019 11:42 AM, Fabrice Couvreur wrote: > > Hi, > > Thank you for your suggestions, the problem is solved. I searched, but

[NTG-context] Formatting in the toc

2019-11-09 Thread Calum MacLeod
I have now found time to see if I could work out how to apply \structurelistuservariable. In short, I have to admit that I could not. I am grateful to Hraban for his encouraging response, but though I could see it was related, it seems to me not quite what I seek. The more I thought about the

Re: [NTG-context] Issue with text running into footnotes

2019-11-09 Thread Pablo Rodriguez
On 11/9/19 6:22 PM, Otared Kavian wrote: > Hi Pablo, > > By setting > > \setupwhitespace[big] > > the specific issue could be solved, but then the number of pages became too > big as a consequence. > However, cutting the text into one more paragraph, without changing the > whitespace, solved the

Re: [NTG-context] Issue with text running into footnotes

2019-11-09 Thread Otared Kavian
Hi Pablo, By setting \setupwhitespace[big] the specific issue could be solved, but then the number of pages became too big as a consequence. However, cutting the text into one more paragraph, without changing the whitespace, solved the issue of the text running into the footnote. I don't

Re: [NTG-context] Number format with lua

2019-11-09 Thread Hans Hagen
On 11/9/2019 11:42 AM, Fabrice Couvreur wrote: Hi, Thank you for your suggestions, the problem is solved. I searched, but the solutions seemed too complex. Is it specific to Context with Lua. If so, which document should you read ? how do you mean complex ... anyway, if you refer to %g, one

Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi, Thank you for your suggestions, the problem is solved. I searched, but the solutions seemed too complex. Is it specific to Context with Lua. If so, which document should you read ? Fabrice Le sam. 9 nov. 2019 à 11:20, Hans Hagen a écrit : > On 11/9/2019 11:03 AM, Pablo Rodriguez wrote: > >

Re: [NTG-context] Number format with lua

2019-11-09 Thread Hans Hagen
On 11/9/2019 11:03 AM, Pablo Rodriguez wrote: On 11/9/19 10:38 AM, Fabrice Couvreur wrote: Hi, In the table below, how to have numbers with only three decimals? Hi Fabrice, at least in your sample "0.4g" seems the way to go, such as in: context.startxcell() context("%0.4g",1.031^i)

Re: [NTG-context] Issue with text running into footnotes

2019-11-09 Thread Pablo Rodriguez
On 11/4/19 9:49 PM, Wolfgang Schuster wrote: > Otared Kavian schrieb am 04.11.2019 um 20:30: >> Hi all, >> >> I have a lecture note in which a few footnotes are given, but in some >> cases the text runs into the footnote, and it has been impossible for >> me to exhibit a minimal example where the

Re: [NTG-context] Number format with lua

2019-11-09 Thread Pablo Rodriguez
On 11/9/19 10:38 AM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals? Hi Fabrice, at least in your sample "0.4g" seems the way to go, such as in: context.startxcell() context("%0.4g",1.031^i) context.stopxcell() Just in case it might help,

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
On 11/9/19 10:38 PM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals ? > Thank you. > Fabrice > > \starttext > \startluacode > local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > local letters_2 = { "1", "Année", "1998",

[NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi, In the table below, how to have numbers with only three decimals ? Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" }