Re: [NTG-context] xml and lua again

2011-10-24 Thread Hans Hagen
On 22-10-2011 18:46, Thomas A. Schmitz wrote: Hi all, again, I'm playing a bit with processing my xml in lua. I want a simple interface for processing tables (I don't need all the power and complexity of cals tables and want to learn something in the process). And I thought that collecting the

Re: [NTG-context] processing style inside verbatim in XML

2011-10-24 Thread Hans Hagen
On 21-10-2011 22:18, Mojca Miklavec wrote: Hello, Is there any simple way to typeset the following example properly in ConTeXt? I have an example of text that has to obey lines and spaces, but I would like to apply some color to make it more readable. The attachment contains an example of HTML

Re: [NTG-context] xml and lua again

2011-10-24 Thread Thomas A. Schmitz
On 10/24/2011 12:17 PM, Hans Hagen wrote: why so complex Hi Hans, yes, I'm aware that this procedure is quite silly for this example, this was just for myself, for educational purposes. As soon as the setup becomes more complex, I thought it might be easier to collect and process the

Re: [NTG-context] xml and lua again

2011-10-24 Thread Hans Hagen
On 24-10-2011 14:18, Thomas A. Schmitz wrote: On 10/24/2011 12:17 PM, Hans Hagen wrote: why so complex Hi Hans, yes, I'm aware that this procedure is quite silly for this example, this was just for myself, for educational purposes. As soon as the setup becomes more complex, I thought it

Re: [NTG-context] Links in exported XHTML file

2011-10-24 Thread Hans Hagen
On 21-10-2011 11:27, Andreas Harder wrote: \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \useURL[google][http://www.google.com/][][Google] \from[google] \textreference[txt:ref]{some text} \in[txt:ref] % OK

Re: [NTG-context] Image compression/resizing in PDFs

2011-10-24 Thread Hans Hagen
On 21-10-2011 11:54, John Devereux wrote: Hi all, Is there a way to have context automatically compress or resample included images to a given output resolution? I have not been following recent developments... I can obviously pre-reduce all images to the desired dpi. But: 1) This is a bit

Re: [NTG-context] Image compression/resizing in PDFs

2011-10-24 Thread Aditya Mahajan
downsamples images are cached so the overhead is minimal Is caching based only on the figure name? If I change the original figure, will the cached figure be updated? Aditya ___ If your question is of interest to

Re: [NTG-context] Image compression/resizing in PDFs

2011-10-24 Thread Hans Hagen
On 24-10-2011 16:29, Aditya Mahajan wrote: downsamples images are cached so the overhead is minimal Is caching based only on the figure name? If I change the original figure, will the cached figure be updated? Sure, local oldtime = lfs.attributes(oldname,'modification')

[NTG-context] Anand Raj wants to chat

2011-10-24 Thread Anand Raj
--- Anand Raj wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-709fcd6ca7-7faa394ef6-zj888FertlMzrmOH2voj9oglvSs You'll

Re: [NTG-context] xml and lua again

2011-10-24 Thread Thomas A. Schmitz
On 10/24/2011 02:26 PM, Hans Hagen wrote: if lxml.att(t, frame) == on then context(Yes, the frame is really on!) else context(Nope, sorry, it's still off.) end I don't really understand what kind of object a call such as lxml.att(t, frame) produces. all lxml.* calls print something to tex, so

[NTG-context] How do I test for empty labeltext?

2011-10-24 Thread Mojca Miklavec
Hello, The following code \setuplabeltext[test=] test is \doifemptyelse{\labeltext{test}}{empty}{not empty} doesn't work as intended for the reasons that I approximately understand (not exactly, but I understand that there might be a lot of weird stuff returned when I ask for labeltext).

Re: [NTG-context] How do I test for empty labeltext?

2011-10-24 Thread Hans Hagen
On 24-10-2011 19:41, Mojca Miklavec wrote: Hello, The following code \setuplabeltext[test=] test is \doifemptyelse{\labeltext{test}}{empty}{not empty} doesn't work as intended for the reasons that I approximately understand (not exactly, but I understand that there might be a lot of weird

Re: [NTG-context] xml and lua again

2011-10-24 Thread Hans Hagen
On 24-10-2011 19:00, Thomas A. Schmitz wrote: On 10/24/2011 02:26 PM, Hans Hagen wrote: if lxml.att(t, frame) == on then context(Yes, the frame is really on!) else context(Nope, sorry, it's still off.) end I don't really understand what kind of object a call such as lxml.att(t, frame)

[NTG-context] Question about chapter headings

2011-10-24 Thread Alasdair McAndrew
I'm trying to set up a chapter heading which looks like this: Chapter 4 This is the fourth chapter That is, there are two lines, one of which says Chapter followed by its number, and the next which is the chapter title. What is the easiest way to do this? I've tried \def\chap#1#2{Chapter