Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Hans Hagen
On 25-10-2012 03:02, Philipp Gesang wrote: context.NC(string.format(schema, i, j)) context.NC(schema, i, j) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Philipp Gesang
···date: 2012-10-25, Thursday···from: Hans Hagen··· On 25-10-2012 03:02, Philipp Gesang wrote: context.NC(string.format(schema, i, j)) context.NC(schema, i, j) Right, but then if you encounter this the first time you won’t know what to google. Regards Philipp pgpVIf0TmiH7I.pgp

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Hans Hagen
On 25-10-2012 10:01, Philipp Gesang wrote: ···date: 2012-10-25, Thursday···from: Hans Hagen··· On 25-10-2012 03:02, Philipp Gesang wrote: context.NC(string.format(schema, i, j)) context.NC(schema, i, j) Right, but then if you encounter this the first time you won’t know what to

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Gesang and Hans, Your solution is working nicely. I may use lua to simplify my other work. I'd like to ask you one more thing. I tried to write a matrix using MetaFun to add some graphics as following: label(btex $a_{11}$ etex, ( , )); label(btex $a_{12}$ etex, ( , )); label(btex

[NTG-context] setuphead and newline

2012-10-25 Thread WolfgangZ
Hello, I'm trying to insert a newline between the number and the head text (chaper). Where do I have to put the \crlf ? It sohould look like: 1 This is the chapter text Many thanks in advance WolfgangZ ___ If

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Marco Patzer
2012-10-25 WolfgangZ: Hi WolfgangZ I'm trying to insert a newline between the number and the head text (chaper). Where do I have to put the \crlf ? It sohould look like: 1 This is the chapter text \defineheadalternative [mine] [renderingsetup=mine] \startsetups [mine]

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Hans Hagen
On 25-10-2012 13:59, Jeong Dal wrote: Dear Gesang and Hans, Your solution is working nicely. I may use lua to simplify my other work. I'd like to ask you one more thing. I tried to write a matrix using MetaFun to add some graphics as following: label(btex $a_{11}$ etex, ( , ));

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Hans, The structure of your code is very interesting. MP code) inside ConTeXt) inside Lua) inside ConTeXt) again! It is really useful. Thank you. Best regards, Dalyoung play with code like this \starttext \startluacode context.startMPcode() for i=1,10 do

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Wolfgang
Am 25.10.2012 15:10, schrieb Marco Patzer: 2012-10-25 WolfgangZ: Hi WolfgangZ I'm trying to insert a newline between the number and the head text (chaper). Where do I have to put the \crlf ? It sohould look like: 1 This is the chapter text \defineheadalternative [mine]

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Wolfgang Schuster
Am 25.10.2012 um 19:27 schrieb Wolfgang wol...@gmx.net: it works alsmost as I need, but I don't manage to get the text on grid. I tried linecorrection=on option at the framed text as well as \startlinecorrection. I'm also wondering why the chapter number is above the first line, see

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Otared Kavian
Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to modify your code in such a way that upon saying

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Hans Hagen
On 25-10-2012 20:02, Otared Kavian wrote: Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to modify your code in such a way that

[NTG-context] A few questions about itemizations

2012-10-25 Thread Marcin Borkowski
Hi all, this code: \defineitemgroup[subitems] \setupitemgroup[subitems][each][a,packed][left=(,stopper=)] \starttext \startitemize[n] \startitem Lorem ipsum \startsubitems \startitem dolor \stopitem \startitem sit \stopitem \startitem

Re: [NTG-context] Multi-page textbackground ignores topoffset

2012-10-25 Thread Nicholas Ulle
Hello all, I tried working around this by wrapping the textbackground in a background with the correct topoffset and then manually correcting for the itemize indent, but on the first page this doubles the topoffset and introduces problems with the bottomoffset. If this gives anyone an idea for a

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Procházka Lukáš
On Thu, 25 Oct 2012 20:02:22 +0200, Otared Kavian ota...@gmail.com wrote: Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Philipp Gesang
···date: 2012-10-25, Thursday···from: Otared Kavian··· Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to modify your code in

[NTG-context] How to set the whole document flush left?

2012-10-25 Thread Marcin Borkowski
Hi, I'd like to have all my document set flush left. I know how to set a \framed flush left, or \startalign ... \stopalign - but what about the whole? (In my current case, the document is basically a (mid-aligned) title and then one big itemgroup, so I added [align={right,broad}] to the

[NTG-context] A problem with \blank

2012-10-25 Thread Marcin Borkowski
Good evening, I have something like this in my document: \startalignment[middle] ... \stopalignment \startitemize ... \stopitemize and I want some (more) vertical space in between them. Adding a \blank[big] (and even a \blank[big,force]) didn't help. Interestingly, \leavevmode\blank[big]

Re: [NTG-context] How to set the whole document flush left?

2012-10-25 Thread Nicholas Ulle
Hi, I suspect the command you're looking for is \setupalign[right] Nick ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Making math smaller

2012-10-25 Thread Marcin Borkowski
Hi again, I promise this is my last question now - it's 1:00 AM here, I'm starting to sleep;). But how do I make my math smaller? {\tfx\math{a^2+b^2=c^2}} won't work. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University

Re: [NTG-context] Making math smaller

2012-10-25 Thread Marcin Borkowski
Dnia 2012-10-26, o godz. 00:52:30 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi again, I promise this is my last question now - it's 1:00 AM here, I'm starting to sleep;). But how do I make my math smaller? {\tfx\math{a^2+b^2=c^2}} won't work. OK, one more;). It turned out that

Re: [NTG-context] How to set the whole document flush left?

2012-10-25 Thread Marcin Borkowski
Dnia 2012-10-25, o godz. 15:50:49 Nicholas Ulle nau...@ucdavis.edu napisał(a): Hi, I suspect the command you're looking for is \setupalign[right] Nope - it didn't work. (Maybe it just does nothing for itemizations, and my document was basically one big itemization?) Nick -- Marcin

Re: [NTG-context] How to set the whole document flush left?

2012-10-25 Thread Marcin Borkowski
Dnia 2012-10-26, o godz. 00:56:41 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Dnia 2012-10-25, o godz. 15:50:49 Nicholas Ulle nau...@ucdavis.edu napisał(a): Hi, I suspect the command you're looking for is \setupalign[right] Nope - it didn't work. (Maybe it just does nothing

Re: [NTG-context] How to set the whole document flush left?

2012-10-25 Thread Nicholas Ulle
Hi Marcin, I'd like to have all my document set flush left. I know how to set a \framed flush left, or \startalign ... \stopalign - but what about the whole? (In my current case, the document is basically a (mid-aligned) title and then one big itemgroup, so I added [align={right,broad}] to

Re: [NTG-context] \setuplayout question

2012-10-25 Thread Wolfgang Schuster
Am 26.10.2012 um 00:35 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hello, what is the *default* layout? (I am especially interested in bottomspace - in page-lay.mkiv I found bottomspace=0pt, but this seems not to be the case - even after \setupfooter[state=stop] text does not go to

Re: [NTG-context] How to set the whole document flush left?

2012-10-25 Thread Wolfgang Schuster
Am 26.10.2012 um 00:12 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hi, I'd like to have all my document set flush left. I know how to set a \framed flush left, or \startalign ... \stopalign - but what about the whole? (In my current case, the document is basically a (mid-aligned)

Re: [NTG-context] A problem with \blank

2012-10-25 Thread Wolfgang Schuster
Am 26.10.2012 um 00:46 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Good evening, I have something like this in my document: \startalignment[middle] ... \stopalignment \startitemize ... \stopitemize and I want some (more) vertical space in between them. Adding a

[NTG-context] Math Overruns Background

2012-10-25 Thread Nicholas Ulle
Hello, I'm trying to typeset an exam with solutions in framed or shaded boxes, using \background. However, the background doesn't stretch to the bottom of the text area when there is text preceding it, so if there is enough math inside the background, the math overruns its lower bound. How can I