[NTG-context] processing xml with lua

2013-02-26 Thread Schmitz Thomas A.
Hi all, one of my favorite topics… Here is a minimal example which shows something that I don't understand: when I process the subsection with the lua code, I want to get the value of the current section's label attribute in xml.attribute(r, ../../section, label, X). So i was expecting that

Re: [NTG-context] processing xml with lua

2013-02-26 Thread Hans Hagen
On 2/26/2013 1:23 PM, Schmitz Thomas A. wrote: Hi all, one of my favorite topics… Here is a minimal example which shows something that I don't understand: when I process the subsection with the lua code, I want to get the value of the current section's label attribute in xml.attribute(r,

Re: [NTG-context] processing xml with lua

2013-02-26 Thread Schmitz Thomas A.
On Feb 26, 2013, at 1:54 PM, Hans Hagen pra...@wxs.nl wrote: you go up to the parent of sections which to far up, try: section = xml.attribute(r, .., label, X) or section = xml.filter(r, ../attribute(label)) Mojca, Hans, thanks, that is exactly right! I wasn't too sure about

Re: [NTG-context] default parameter in \definefont

2013-02-26 Thread john Culleton
On Tue, 26 Feb 2013 08:18:25 +0100 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 26.02.2013 um 00:00 schrieb john Culleton j...@wexfordpress.com: Some time back Wolfgang advised me to use statements like this: \definefont [titlefont][MyriadPro-Bold*default at 70bp] I

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Mikael P. Sundqvist
On Mon, Feb 18, 2013 at 10:53 AM, Marco Patzer home...@lavabit.com wrote: On 2013–02–18 Mikael P. Sundqvist wrote: Thank you Marco for giving a better example. I thought that uniqueMPgraphic meant it was redrawn everytime while useMPgraphic meant it was done once and then gave the same

Re: [NTG-context] default parameter in \definefont

2013-02-26 Thread john Culleton
On Tue, 26 Feb 2013 10:04:38 -0500 john Culleton j...@wexfordpress.com wrote: On Tue, 26 Feb 2013 08:18:25 +0100 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 26.02.2013 um 00:00 schrieb john Culleton j...@wexfordpress.com: And the error messages indicate that MKIV cannot

Re: [NTG-context] default parameter in \definefont

2013-02-26 Thread Marco Patzer
On 2013–02–26 john Culleton wrote: files but they exist in /usr/share/fonts/OTF. The run completes but other fonts and sizes are used for the title page. Solved my problem the ugly way. I moved the fonts to the directory where I was compiling the document. Added otf suffix to the

Re: [NTG-context] default parameter in \definefont

2013-02-26 Thread john Culleton
On Tue, 26 Feb 2013 17:55:07 +0100 Marco Patzer home...@lavabit.com wrote: On 2013___02___26 john Culleton wrote: files but they exist in /usr/share/fonts/OTF. The run completes but other fonts and sizes are used for the title page. Solved my problem the ugly way. I moved the fonts

[NTG-context] Apparent error in wiki example

2013-02-26 Thread john Culleton
I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused an error: \setupencoding[default=uc] When I commented it out the doc ran fine. -- John Culleton Wexford Press Free list of books for self-publishers:

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread Philipp Gesang
Hi John! ···date: 2013-02-26, Tuesday···from: john Culleton··· I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused an error: \setupencoding[default=uc] These are instructions for MkII (and PostScript Type 1 fonts). You are

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread john Culleton
On Tue, 26 Feb 2013 19:33:03 +0100 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de wrote: Hi John! ···date: 2013-02-26, Tuesday···from: john Culleton··· I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused an

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Hans Hagen
On 2/26/2013 4:46 PM, Mikael P. Sundqvist wrote: On Mon, Feb 18, 2013 at 10:53 AM, Marco Patzer home...@lavabit.com wrote: On 2013–02–18 Mikael P. Sundqvist wrote: Thank you Marco for giving a better example. I thought that uniqueMPgraphic meant it was redrawn everytime while useMPgraphic

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Marco Patzer
On 2013–02–26 Hans Hagen wrote: Hans, is this a bug? Has something changed? I don't know .. no example I provided an example in http://www.ntg.nl/pipermail/ntg-context/2013/071552.html However, it seems to be fixed in a recent beta. At least it works for me. Marco signature.asc

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Marco Patzer
Hi Mikael, your original example works for me with a current beta if you replace uniqueMPgraphic with useMPgraphic. Marco signature.asc Description: Digital signature ___ If your question is of interest to others

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread Wolfgang Schuster
Am 26.02.2013 um 21:28 schrieb john Culleton j...@wexfordpress.com: Thanks for your help. I just spotted another somewhat comic error. The typescript for Sans calls roman fonts and the typescript for Roman calls sans fonts. ??? Wolfgang

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread Philipp Gesang
···date: 2013-02-26, Tuesday···from: Wolfgang Schuster··· Am 26.02.2013 um 21:28 schrieb john Culleton j...@wexfordpress.com: Thanks for your help. I just spotted another somewhat comic error. The typescript for Sans calls roman fonts and the typescript for Roman calls sans fonts.

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread john Culleton
Oes the code in the wiki article referred to earlier: Tue, 26 Feb 2013 22:28:22 +0100 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 26.02.2013 um 21:28 schrieb john Culleton j...@wexfordpress.com: Thanks for your help. I just spotted another somewhat comic error. The typescript