Re: [NTG-context] libertine otf file not recognised

2010-04-09 Thread Salil Sayed
Amazing! the fonts from CTAN work perfect. And they are also so much more. I wonder why the main site of libertine is so out of date. Thanks a lot. That takes my move from mkII to mkVI one step further. I have another issue for which I will start a new thread. Best regards, Salil

[NTG-context] streams! atleast the left||right synchronization mechanism

2010-04-09 Thread Salil Sayed
Hi, As I am moving from mkII to mkIV with my thesis manuscript, I need to make the 'left||right synchronization mechanism' to work. I worked beautifully in mkII. I looked in the source of the module but could not make out where the issue is. I errors I get today begin like this.

Re: [NTG-context] streams! atleast the left||right synchronization mechanism

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 09:45, schrieb Salil Sayed: Hi, As I am moving from mkII to mkIV with my thesis manuscript, I need to make the 'left||right synchronization mechanism' to work. I worked beautifully in mkII. I looked in the source of the module but could not make out where the issue is. I errors I

Re: [NTG-context] streams! atleast the left||right synchronization mechanism

2010-04-09 Thread Salil Sayed
Thanks Wolfgang, this works. I knew this from a previous discussion but I was trying the line in m-streams.tex regards, Salil From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Cc: Hans Hagen

[NTG-context] code

2010-04-09 Thread R. Bastian
Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works \starttext \font\fgras =

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
I tried the following -- \starttext \startluacode local OldPreLB function MyPreLB(head,gc) ?texio.write_nl(### Here I am!) ?OldPreLB(head,gc) end OldPreLB = callback.find('pre_linebreak_filter')

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in

[NTG-context] error messages for callback.register

2010-04-09 Thread Peter Münster
Hello, Here a patch for luat-cbk.lua: function callbacks.register(name,func,freeze) if frozen[name] then if trace_callbacks then frozenmessage(registering,name) end return nil, name .. is frozen elseif freeze then frozen[name] = (type(freeze)

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian rbast...@free.fr wrote: On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex:

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 9 Apr 2010 14:32:08 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian rbast...@free.fr wrote: On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 5:24 PM, Peter Münster pmli...@free.fr wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra():    

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, luigi scarso wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; I'm not able to see any white space in mkiv Bastian refers to Wolfgang's solution with \setuplines[space=on]. Cheers, Peter -- Contact

[NTG-context] Building a guitar chord using MP

2010-04-09 Thread Vyatcheslav Yatskovsky
Hello, I have interesting task. I want to build a picture of a guitar chord using metapost. For now, I only knew how to make a chord grid: \startreusableMPgraphic{chordgrid} drawoptions(withpen pencircle scaled 0.4pt withcolor black) ; draw hlingrid(0, 5, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4,

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
Hello, Here a patch for luat-cbk.lua: function callbacks.register(name,func,freeze) if frozen[name] then if trace_callbacks then frozenmessage(registering,name) end return nil, name .. is frozen elseif freeze then frozen[name] =

Re: [NTG-context] Building a guitar chord using MP

2010-04-09 Thread Taco Hoekwater
Vyatcheslav Yatskovsky wrote: Please, help me with it. I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image. Best wishes, Taco

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 13:35, schrieb R. Bastian Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white space in front of the line Compare: {\bf def} ra(): def ra(): a = 3 b = 4 \startlines \bold{def} ra(): ... \stoplines Wolfgang

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
there are two user hooks: tasks.appendaction(processors,before,modules.mine.whatever_a) tasks.appendaction(processors,after,modules.mine.whatever_b) - My example looks now \starttext \startluacode function MyPreLB(head,gc) texio.write(\n) for n

Re: [NTG-context] Building a guitar chord using MP

2010-04-09 Thread Henning Hraban Ramm
Am 2010-04-09 um 20:30 schrieb Taco Hoekwater: Vyatcheslav Yatskovsky wrote: Please, help me with it. I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image.

[NTG-context] regenerate database

2010-04-09 Thread Honza Pohanka
Hello, which command regenerates the file database, please? I'm trying to add type-my.tex file to texmf-local tree in Context minimals. I found that luatools --generate should do that job, but it does not work for me. regards Jan -- Tato zpráva byla vytvořena převratným poštovním

Re: [NTG-context] callback.register

2010-04-09 Thread 李延瑞
2010/4/10 Wolfgang Werners-Lucchini w...@musensturm.de: there are two user hooks: tasks.appendaction(processors,before,modules.mine.whatever_a) tasks.appendaction(processors,after,modules.mine.whatever_b) - My example looks now \starttext

Re: [NTG-context] regenerate database

2010-04-09 Thread 李延瑞
2010/4/10 Honza Pohanka xhpoha...@gmail.com: Hello, which command regenerates the file database, please? I'm trying to add type-my.tex file to texmf-local tree in Context minimals. I found that luatools --generate should do that job, but it does not work for me. if you are using MkII, i