Re: [NTG-context] Small caps problem/bug with some fonts

2009-09-21 Thread Barry Schwartz
Hans Hagen skribis: > so, its not that frac itself is the problem dealing with in the engine, > because if so, many features would be a problem, it's just that font > makers stick to a couple of simple rules like: > > (1) replace all > > by > > > (1) replace all >

[NTG-context] Performance and fonts issues

2009-09-21 Thread Vyatcheslav Yatskovsky
Hello, I wonder -- why wait up to 5sec to (re)compile a single page on a Core 2 Duo machine? Let's look at the end of the log file for my simple, one-page document: mkiv lua stats : input load time - 0.000 seconds mkiv lua stats : stored bytecode data - 184 modules, 45 tables, 229 chunks mkiv

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
Peter Münster wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: As I've written yesterday, I suppose, that the following syntax is wanted: \getvariable{environment}{myVar} but this does not work... how does it look with: local flag, value = argument:match("^%-+(.-)=(.-)$") .+ -> .- I've chang

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
On Mon, 21 Sep 2009, Hans Hagen wrote: > > As I've written yesterday, I suppose, that the following syntax is wanted: > > \getvariable{environment}{myVar} but this does not work... > > how does it look with: > > local flag, value = argument:match("^%-+(.-)=(.-)$") > > .+ -> .- I've changed th

[NTG-context] letter module

2009-09-21 Thread Wolfgang Schuster
Hi all, I uploaded a new version of the letter module that deals with the recent changes in the MkIV spacing model, as a result of this you need todays beta (2009.09.21) or later. For MkII users this message is unimportant because the changes don't affect them and older installations can be u

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii)

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mki

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = d

Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Aditya Mahajan
Hi Wolfgang, On Mon, 21 Sep 2009, Wolfgang Schuster wrote: Am 21.09.2009 um 17:40 schrieb Joshua Lee: Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. \definestructureresetset[default][0,0][1

Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Joshua Lee
Hi Wolfgang, It works, thanks for your quick response. Best regards, Joshua On Mon, 21 Sep 2009, Wolfgang Schuster wrote: > > Am 21.09.2009 um 17:40 schrieb Joshua Lee: > > > Hi Derek, > > I write a little example, there's still a little issue. The chapter > > number start with 1 for part II,

[NTG-context] urls and linebreaking

2009-09-21 Thread Bowen Alan C.
Does any one recall how to get urls to break AFTER “.” and “/” etc. in MK II using \useURL? I know this was discussed a long time ago, but I have not found it. Alan ___ If your question is of interest to others as

Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Wolfgang Schuster
Am 21.09.2009 um 17:40 schrieb Joshua Lee: Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. \definestructureresetset[default][0,0][1] \setuphead[part][sectionresetset=default] Wolfgang _

Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Joshua Lee
Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. Thanks. Best regards, Joshua On Sat, 19 Sep 2009, Derek CORDEIRO wrote: > On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee wrote: > > > Hi Guys, > > H

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Matthijs Kooijman wrote: Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that v

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2009, Matthijs Kooijman wrote: Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that vardefs that use @# as a p

[NTG-context] vardef with @# not working within context

2009-09-21 Thread Matthijs Kooijman
Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that vardefs that use @# as a placeholder in their name only work when they are

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Taco Hoekwater
Thomas A. Schmitz wrote: On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Thomas A. Schmitz
On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever lua script? Thomas _

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
Peter Münster wrote: On Mon, 21 Sep 2009, luigi scarso wrote: test-file: \starttext Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} \stoptext cmd-line: context --arguments=myVar=myValue test But this syntax is very strange! Does context --arguments="myVar=myValue

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Taco Hoekwater
Thomas A. Schmitz wrote: On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote: I'll try to give a clearer explanation. First of all, when I cite a source using e.g. \cite[Smith2000], this should appear in the text as "Smith 2000". I've already managed to do this. Now, each entry in the bibliograp