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

2012-10-25 Thread Jeong Dal
Thanks to all who gave a nice solutions. To write a big matrix of unknowns A=(a_{ij}) is not a frequent case. In math, there are many occasions to write matrices which need some typing work like \NC 2 \NC 3 \NC 4 \NR So if we have a function which write a matrix when the data is given as a f

[NTG-context] Section/head with separate numbering and references

2012-10-25 Thread Jason Brown
Hello, I'm working on a document with both chapter/section numbering, and a 'topic' whose numbers are sequential across the entire document. I found a solution to enable this from a 2003 thread in the archives ("Creating list with separate numbering", 15 April 2003), but I can't seem to get re

[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 g

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

2012-10-25 Thread Wolfgang Schuster
Am 26.10.2012 um 00:46 schrieb 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

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 : > 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

Re: [NTG-context] \setuplayout question

2012-10-25 Thread Wolfgang Schuster
Am 26.10.2012 um 00:35 schrieb Marcin Borkowski : > 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 the bottom of the

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}

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 napisał(a): > Dnia 2012-10-25, o godz. 15:50:49 > Nicholas Ulle 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 do

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 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 Borkowski http://o

Re: [NTG-context] Making math smaller

2012-10-25 Thread Marcin Borkowski
Dnia 2012-10-26, o godz. 00:52:30 Marcin Borkowski 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 \switchtobodyfont[

[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] 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 / http://www.ntg.nl/mailm

[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]

[NTG-context] \setuplayout question

2012-10-25 Thread Marcin Borkowski
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 the bottom of the sheet. Which parameter is responsible for that? Regards, --

[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 \startit

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

2012-10-25 Thread Philipp Gesang
· > 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 Procházka Lukáš
On Thu, 25 Oct 2012 20:02:22 +0200, 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

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

[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] 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

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 \ctxlua{document.print_

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Wolfgang Schuster
Am 25.10.2012 um 19:27 schrieb Wolfgang : > 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 > screenshot. M

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] [renderingsetu

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 d

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] 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] \he

[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 y

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 $a_{13}

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: · 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. actually it's wrong ... only the

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

2012-10-25 Thread Philipp Gesang
· > 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 Description: PGP signature _

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 Hass