Re: [NTG-context] Simple backgrounds not working

2012-05-26 Thread Wolfgang Schuster
Am 26.05.2012 um 04:57 schrieb Aditya Mahajan: Hi, Simple backgrounds are not working with the latest beta. The following has no background color. \setupbackground [background=color, backgroundcolor=red] \starttext \startbackground ABC \stopbackground \stoptext Name clash in

Re: [NTG-context] Simple backgrounds not working

2012-05-26 Thread Hans Hagen
On 26-5-2012 10:56, Wolfgang Schuster wrote: Am 26.05.2012 um 04:57 schrieb Aditya Mahajan: Hi, Simple backgrounds are not working with the latest beta. The following has no background color. \setupbackground [background=color, backgroundcolor=red] \starttext \startbackground ABC

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Hans Hagen
On 26-5-2012 04:08, Aditya Mahajan wrote: \starttext \externalfigure[something] \stoptext weird ... here it works ... can you runt with tracing? \enabletrackers[graphics.locating] \starttext \externalfigure[cow] \stoptext Hans

Re: [NTG-context] Is there some easy way to do tufte-style side note?

2012-05-26 Thread Jano Kula
Hello Andy, On 05/23/2012 04:09 PM, Andy Thomas wrote: I finished a first version of a tufte style sample document that is based on a predecessor in another macro language. The auto alignment of the marginals has to be improved, but the rest looks already quite decent. Please see:

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
Michael— Thank you so much for your very helpful response. 1. \unskip works well. 2. What I currently have is admittedly an ad hoc system for encoding my indices. As you note, the system works for page numbers 99 where line numbers 99. When line numbers 99, I adapt the sort key differently:

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Rogers, Michael K
Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today. Cheers, Michael On May 26, 2012, at 8:41 AM, Alan Bowen wrote: Michael— Thank you so much for your very

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Hans Hagen
On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp `luatools hacker.jpg` something ah .. i see, no extension .. too tricky to support that

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Aditya Mahajan
On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp `luatools hacker.jpg` something ah .. i see, no

Re: [NTG-context] Simple backgrounds not working

2012-05-26 Thread Aditya Mahajan
On Sat, 26 May 2012, Hans Hagen wrote: Ha, you beat me in maling ... i just changed that in the same way ... Thanks to both of you. but i was wondering why a public name was used .. can it be that \currentbackground is used in modules or styles (e.g. implementing alternative built in

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
It does indeed! Excellent! A. On Sat, May 26, 2012 at 9:21 AM, Rogers, Michael K mrog...@emory.eduwrote: Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today.

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Hans Hagen
On 26-5-2012 16:04, Aditya Mahajan wrote: On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread luigi scarso
On Sat, May 26, 2012 at 4:23 PM, Hans Hagen pra...@wxs.nl wrote: On 26-5-2012 16:04, Aditya Mahajan wrote: On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not

Re: [NTG-context] Simple backgrounds not working

2012-05-26 Thread Hans Hagen
On 26-5-2012 16:07, Aditya Mahajan wrote: On Sat, 26 May 2012, Hans Hagen wrote: Ha, you beat me in maling ... i just changed that in the same way ... Thanks to both of you. but i was wondering why a public name was used .. can it be that \currentbackground is used in modules or styles

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Hans Hagen
On 26-5-2012 16:12, Alan Bowen wrote: Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today. If you dont' like the + you can do: \setregisterentry [Passage]

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Rogers, Michael K
I don't know if this helps but the following tells what the type of the image file is. (In my case I copied a jpg to img1 and a png to img2, without extensions of course.) \startluacode userdata = userdata or { } function userdata.mytype(s) context(img.scan({filename=s}).imagetype) end

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Aditya Mahajan
On Sun, 27 May 2012, Rogers, Michael K wrote: I don't know if this helps but the following tells what the type of the image file is. (In my case I copied a jpg to img1 and a png to img2, without extensions of course.) Thanks. Hans implemented a version of unix file command for checking the