[NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread CuriousLearn
Hi, Is it possible to break labels in two lines if needed? For example, suppose I have label.rt(textext(Do you see this label text. Quite long. Need to break it across lines),(3,5)); Can I have it appear in the figure as Do you see this label text. Quite long. Need to break it across

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread Aditya Mahajan
On Fri, 27 Mar 2009, CuriousLearn wrote: Hi, Is it possible to break labels in two lines if needed? For example, suppose I have label.rt(textext(Do you see this label text. Quite long. Need to break it across lines),(3,5)); label.rt(textext(\framed[frame=no,width=5cm]{}, (3,5)) ;

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread CuriousLearn
Aditya Mahajan adityam at umich.edu writes: For example, suppose I have label.rt(textext(Do you see this label text. Quite long. Need to break it across lines),(3,5)); label.rt(textext(\framed[frame=no,width=5cm]{}, (3,5)) ; Aditya Thanks Aditya. Sorry but that does not

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread Aditya Mahajan
On Fri, 27 Mar 2009, CuriousLearn wrote: Aditya Mahajan adityam at umich.edu writes: For example, suppose I have label.rt(textext(Do you see this label text. Quite long. Need to break it across lines),(3,5)); label.rt(textext(\framed[frame=no,width=5cm]{}, (3,5)) ; Aditya Thanks

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread CuriousLearn
Aditya Mahajan adityam at umich.edu writes: Any ideas why it may not be working for me? Because I did not test before posting :) Try \framed[align=normal, width=5cm, frame=no]{} Aditya Awesome! That works great. Before asking I tried searching a lot in metafun manual

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread Aditya Mahajan
searching a lot in metafun manual and on the web but could not find anything. I am not yet clear about the logic. When I saw that I could color labels using the \color[red]{red} command by putting it between btex...etex, it seemed to me that any context command would work if put in there. So I tried \crlf

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread Wolfgang Schuster
Am 28.03.2009 um 01:33 schrieb Aditya Mahajan: Of course, certain objects like floats, footnotes, marginpars, will never work inside metapost. (I think you can get floats and footnotes to work, but that will require some hackery) You could use streams and local footnotes. Wolfgang

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread CuriousLearn
Aditya Mahajan adityam at umich.edu writes: Here is a simplified picture. Basically, anything inside btex ... etex (or textext(...) or \sometxt{...}) is in what is known as TeX's horizontal mode. Think of this as what you will get if you put the same argument in a \hbox (see the TeXbook

Re: [NTG-context] Linebreak in Metapost/Metafun Label

2009-03-27 Thread Aditya Mahajan
On Sat, 28 Mar 2009, Wolfgang Schuster wrote: Am 28.03.2009 um 01:33 schrieb Aditya Mahajan: Of course, certain objects like floats, footnotes, marginpars, will never work inside metapost. (I think you can get floats and footnotes to work, but that will require some hackery) You could use

Re: [NTG-context] Command show in Metapost/Metafun

2009-03-12 Thread Hans Hagen
Aditya Mahajan wrote: On Thu, 12 Mar 2009, Curious Learn wrote: Hi, I am trying to learn Metapost using Context. I tried a few examples for drawing things and they worked well. But the show command does not seem to work. For example, the code \startuseMPgraphic{GridDots} u=1cm;

Re: [NTG-context] Command show in Metapost/Metafun

2009-03-12 Thread Aditya Mahajan
On Thu, 12 Mar 2009, Hans Hagen wrote: \ctxlua{metapost.showlog = true} Can you make this default? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Command show in Metapost/Metafun

2009-03-11 Thread Curious Learn
Hi, I am trying to learn Metapost using Context. I tried a few examples for drawing things and they worked well. But the show command does not seem to work. For example, the code \startuseMPgraphic{GridDots} u=1cm; pickup pencircle scaled 8pt for i = 0 upto 2:

[NTG-context] mplib/metafun broken in latest beta

2008-05-28 Thread Thomas A. Schmitz
Hi Hans and Taco, it looks like mplib is broken in the latest beta. Simple file: \starttext \startuseMPgraphic{test} draw fullcircle scaled 5cm ; \stopuseMPgraphic \useMPgraphic{test} \stoptext produces no output. I tested on several different computers, so it doesn't look like a

Re: [NTG-context] mplib/metafun broken in latest beta

2008-05-28 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi Hans and Taco, it looks like mplib is broken in the latest beta. Simple file: indeed, we're experimenting with a couple of nasty bugs and in the process mess aroudn with beta's; sorry ... i'll upload a new one (new bins later) Hans

Re: [NTG-context] mplib/metafun broken in latest beta

2008-05-28 Thread Thomas A. Schmitz
On May 28, 2008, at 4:33 PM, Hans Hagen wrote: indeed, we're experimenting with a couple of nasty bugs and in the process mess aroudn with beta's; sorry ... i'll upload a new one (new bins later) Hans Hi Hans, new beta does indeed produce output, but every MP graphic is centered (which

Re: [NTG-context] mplib/metafun broken in latest beta

2008-05-28 Thread Hans Hagen
Thomas A. Schmitz wrote: On May 28, 2008, at 4:33 PM, Hans Hagen wrote: indeed, we're experimenting with a couple of nasty bugs and in the process mess aroudn with beta's; sorry ... i'll upload a new one (new bins later) Hans Hi Hans, new beta does indeed produce output, but every

Re: [NTG-context] mplib/metafun broken in latest beta

2008-05-28 Thread Thomas A. Schmitz
On May 28, 2008, at 11:41 PM, Hans Hagen wrote: hm i wonder why ... maybe you use raggedcenter? Hans Just try the minimal example I sent this afternoon and compile it with mkii and mkiv and you'll see the difference. Thomas

Re: [NTG-context] Weird behavior about metafun

2008-01-09 Thread Wolfgang Schuster
On Jan 8, 2008 6:04 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that

Re: [NTG-context] Weird behavior about metafun

2008-01-08 Thread Zhichu Chen
Hi, On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that can do this. I've made a test file which is somewhat like what it shows, but I still

Re: [NTG-context] Weird behavior about metafun

2008-01-08 Thread Arthur Reutenauer
I've made a test file which is somewhat like what it shows, but I still have many problems so it's far from perfect. Could you still make the test file available? Arthur ___ If your question is of

Re: [NTG-context] Weird behavior about metafun

2008-01-08 Thread Hans Hagen
Zhichu Chen wrote: Hi, On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that can do this. I've made a test file which is somewhat like what

Re: [NTG-context] Weird behavior about metafun

2008-01-08 Thread Zhichu Chen
Pretty cool! I knew ConTeXt can do it and thank you Hans for teaching me so much. Hi Arthur, I'm suffering a network problem so sometimes mails may no be delivered correctly. But ignore my test file and get Hans' one. On Jan 9, 2008 1:04 AM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen

[NTG-context] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment on to the marginal notes which my comments lay

Re: [NTG-context] Weird behavior about metafun

2008-01-07 Thread Hans Hagen
Zhichu Chen wrote: Oh, by the way, if I put \fpos at the beginning of a paragraph, it adds an extra blank line. I have to force it to the horizontal mode like: \leavevmode\fpos{A-1} . . . \tpos{A-1} \dontleavehmode \fpos ... So is it safe to change the definition of \fpos to add

Re: [NTG-context] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
:45 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment

Re: [NTG-context] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
On Jan 7, 2008 9:41 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Oh, by the way, if I put \fpos at the beginning of a paragraph, it adds an extra blank line. I have to force it to the horizontal mode like: \leavevmode\fpos{A-1} . . . \tpos{A-1} \dontleavehmode \fpos ...

Re: [NTG-context] Weird behavior about metafun

2008-01-07 Thread Aditya Mahajan
On Mon, 7 Jan 2008, Zhichu Chen wrote: Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment on to the marginal

Re: [NTG-context] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 7 Jan 2008, Zhichu Chen wrote: Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual

Re: [NTG-context] MathML in Metafun

2007-11-03 Thread Wolfgang Schuster
2007/11/2, Maurí­cio [EMAIL PROTECTED]: Is it possible to use MathML inside a Metapost or Metafun label? I'm not 100% sure, but \sometxt{... your ConTeXt stuff with mathml here ...} could work. It seems a good idea. But, actually, I should have learned how to insert MathML in Context

Re: [NTG-context] MathML in Metafun

2007-11-02 Thread Mojca Miklavec
On 11/1/07, Maurí­cio wrote: Hi, Is it possible to use MathML inside a Metapost or Metafun label? I'm not 100% sure, but \sometxt{... your ConTeXt stuff with mathml here ...} could work. Or, I could imagine that you should be able to defne some commant, so that \sometxt[mathml]{..mathml stuff

Re: [NTG-context] MathML in Metafun

2007-11-02 Thread Maurí­cio
Is it possible to use MathML inside a Metapost or Metafun label? I'm not 100% sure, but \sometxt{... your ConTeXt stuff with mathml here ...} could work. It seems a good idea. But, actually, I should have learned how to insert MathML in Context in the first place. Do you know a good doc

[NTG-context] MathML in Metafun

2007-11-01 Thread Maurí­cio
Hi, Is it possible to use MathML inside a Metapost or Metafun label? Thanks, Maurício ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] MetaFun and different body font size

2007-08-20 Thread Oliver Buerschaper
Dear folks, I'm wondering how to communicate a different default bodyfont size to MetaFun ... consider this: --- \setupbodyfont[32pt] \starttext \input ward \startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; draw textext.rt(Test); draw btex \TeX etex

Re: [NTG-context] MetaFun and different body font size

2007-08-20 Thread Oliver Buerschaper
Somehow MetaFun doesn't recognize the larger body font size :-( By the way, font face changes aren't reflected either ... --- \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,32pt] \starttext \input ward \startuseMPgraphic{test} draw unitsquare scaled

Re: [NTG-context] MetaFun and different body font size

2007-08-20 Thread Wolfgang Schuster
2007/8/20, Oliver Buerschaper [EMAIL PROTECTED]: Somehow MetaFun doesn't recognize the larger body font size :-( By the way, font face changes aren't reflected either ... --- \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,32pt] \starttext \input ward

Re: [NTG-context] MetaFun and different body font size

2007-08-20 Thread Peter Rolf
Oliver Buerschaper schrieb: Dear folks, I'm wondering how to communicate a different default bodyfont size to MetaFun ... consider this: --- \setupbodyfont[32pt] \starttext \input ward \startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; draw

[NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Oliver Buerschaper
Dear folks, can anyone reproduce this? (Live ConTeXt on the garden seems to run into this \faststartcolor thing ... with pdfTeX.) Uncomment the page background overlay and the top bit of the frames' titles will be chipped off ... doesn't happen for the plain vanilla color background on my

Re: [NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Peter Rolf
Oliver Buerschaper schrieb: Dear folks, can anyone reproduce this? (Live ConTeXt on the garden seems to run into this \faststartcolor thing ... with pdfTeX.) Uncomment the page background overlay and the top bit of the frames' titles will be chipped off ... doesn't happen for the plain

Re: [NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Hans Hagen
Peter Rolf wrote: Oliver Buerschaper schrieb: Dear folks, can anyone reproduce this? (Live ConTeXt on the garden seems to run into this \faststartcolor thing ... with pdfTeX.) it may help to increase \def\objectoffset{1cm} (by default reused objects clip and this creates a virtual bbox)

Re: [NTG-context] MetaFun and different body font size

2007-08-20 Thread Mojca Miklavec
On 8/20/07, Oliver Buerschaper wrote: Dear folks, I'm wondering how to communicate a different default bodyfont size to MetaFun ... consider this: --- \setupbodyfont[32pt] \starttext \input ward \startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; draw

Re: [NTG-context] frames in ConTeXt and metafun

2007-07-13 Thread Thomas A. Schmitz
On Thu, 12 Jul 2007 On Thu, 12 Jul 2007, Thomas A. Schmitz wrote: On Jul 12, 2007, at 10:04 AM, Peter Rolf wrote: sure (see attachment). Thanks so much Peter! THis looks MUCH better. The more I use metafun, the more I love it. Hello, Did you take a look at the result with xpdf

[NTG-context] frames in ConTeXt and metafun

2007-07-12 Thread Thomas A. Schmitz
This is a very small cosmetic problem, but it bugs me: I'm preparing a background for a presentation, and I want a frame with a transparent color to appear on every slide, so I define an overlay and use metapost. I also want to frame some text elements, so I use a \framed. The problem is

Re: [NTG-context] frames in ConTeXt and metafun

2007-07-12 Thread Peter Rolf
Hi Thomas, Thomas A. Schmitz schrieb: This is a very small cosmetic problem, but it bugs me: I'm preparing a background for a presentation, and I want a frame with a transparent color to appear on every slide, so I define an overlay and use metapost. I also want to frame some text

Re: [NTG-context] frames in ConTeXt and metafun

2007-07-12 Thread Thomas A. Schmitz
On Jul 12, 2007, at 10:04 AM, Peter Rolf wrote: Hi Thomas, sure (see attachment). Greetings, Peter Thanks so much Peter! THis looks MUCH better. The more I use metafun, the more I love it. Thomas ___ If your

Re: [NTG-context] frames in ConTeXt and metafun

2007-07-12 Thread Peter Münster
On Thu, 12 Jul 2007, Thomas A. Schmitz wrote: On Jul 12, 2007, at 10:04 AM, Peter Rolf wrote: sure (see attachment). Thanks so much Peter! THis looks MUCH better. The more I use metafun, the more I love it. Hello, Did you take a look at the result with xpdf? There seems

[NTG-context] metafun externalfigure macro with xetex

2007-07-10 Thread Lutz Haseloff
Hi all, if i use the metafun macro externalfigure with xetex, there is a printed number (first externafigure prints a 1, the second a 2 right after the 1 and so on) in the lower left corner of the picture; the picture itself is shifted to the upper right, out of the bounding box. I have

[NTG-context] metafun externalfigure macro with xetex

2007-07-05 Thread Lutz Haseloff
Hi all, if i use the metafun macro externalfigure with xetex, there is a printed number (first externafigure prints a 1, the second a 2 right after the 1 and so on) in the lower left corner of the picture; the picture itself is shifted to the upper right out of the bounding box. I have

Re: [NTG-context] metafun/label: utf8 and spaces

2007-07-02 Thread Patrick Gundlach
Hi Mojca, label(foobar baz äöß,(3cm,3cm)); % -- broken draw btex foobar baz äöß etex % --- OK Why not this one? [\sometxt] (Much faster, less problems, etc.) (with the sound of 'wizard of oz') Because, because, because... I didn't know about it. Thanks! Patrick

Re: [NTG-context] metafun/label: utf8 and spaces

2007-06-29 Thread Mojca Miklavec
On 6/28/07, Patrick Gundlach wrote: Hi, is there any way to get utf-8 labels and without the 'strange' space glyph? -- \startMPenvironment[+] \enableregime[utf] \stopMPenvironment \starttext foobar baz äöß % -- OK

[NTG-context] metafun/label: utf8 and spaces

2007-06-28 Thread Patrick Gundlach
Hi, is there any way to get utf-8 labels and without the 'strange' space glyph? -- \startMPenvironment[+] \enableregime[utf] \stopMPenvironment \starttext foobar baz äöß % -- OK \startuniqueMPgraphic{bla} label(foobar baz äöß,(3cm,3cm)); %

Re: [NTG-context] metafun/label: utf8 and spaces

2007-06-28 Thread Patrick Gundlach
is there any way to get utf-8 labels and without the 'strange' space glyph? A follow-up/answer... (I hate doing this) textext is a perfect substitute for label. (see metafun-p.pdf) Patrick ___ If your question

Re: [NTG-context] metafun/label: utf8 and spaces

2007-06-28 Thread Aditya Mahajan
Quoting Patrick Gundlach [EMAIL PROTECTED]: is there any way to get utf-8 labels and without the 'strange' space glyph? A follow-up/answer... (I hate doing this) textext is a perfect substitute for label. (see metafun-p.pdf) I think of textext (and \sometxt) as a substitute for btex

Re: [NTG-context] loadcurrentMPgraphic from metafun manual

2007-06-10 Thread Wolfgang Schuster
On Fri, 08 Jun 2007 16:25:13 -0400 Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting nicola [EMAIL PROTECTED]: Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red

[NTG-context] \loadcurrentMPgraphic from metafun manual

2007-06-08 Thread nicola
Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red; \stopMPgraphic \hbox \bgroup \loadcurrentMPgraphic{width=5cm,height=1cm}\placeMPgraphic \quad \loadcurrentMPgraphic

Re: [NTG-context] loadcurrentMPgraphic from metafun manual

2007-06-08 Thread Aditya Mahajan
Quoting nicola [EMAIL PROTECTED]: Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red; \stopMPgraphic \hbox \bgroup \loadcurrentMPgraphic{width=5cm,height=1cm

Re: [NTG-context] Back to Metafun Manual

2007-06-07 Thread Taco Hoekwater
David Arnold wrote: All, I am wondering what is wrong with the following. On my system it It runs fine on my system, somehow your metapost output image is broken: (./meta-meta.tmp [MP to PDF] (./meta-mpgraph.1 ! Dimension too large. recently read \onebasepoint \handleMPboundingbox

Re: [NTG-context] Back to Metafun Manual

2007-06-07 Thread David Arnold
Taco, After updating my gWTeX, it now works here as well. Thanks., On Jun 7, 2007, at 12:05 AM, Taco Hoekwater wrote: David Arnold wrote: All, I am wondering what is wrong with the following. On my system it It runs fine on my system, somehow your metapost output image is broken:

[NTG-context] Back to Metafun Manual

2007-06-06 Thread David Arnold
All, I am wondering what is wrong with the following. On my system it produces the error that follows. \setuppapersize[S6][S6] \usetypescriptonce [map] [times,helvetica,palatino] [texnansi] \usetypescriptonce [serif][times][name,texnansi] \usetypescriptonce [sans]

Re: [NTG-context] Acrobat crashes metafun manual

2007-06-05 Thread luigi scarso
On 6/6/07, David Arnold [EMAIL PROTECTED] wrote: All, Running Acrobat 7.0.9. In reading the metafun-s.pdf from pragma- ade.com, Acrobat every so often just shuts down. Anyone else experience that? Is this a known behavior with metafun manual? No problem on a Linux box -- luigi

Re: [NTG-context] unicode in metafun?

2007-04-08 Thread Andrea Valle
Hi Nicola, Taco, thanks. So now I discovered \sometxt. As far as I understood what Taco say I this way I can use On 7 Apr 2007, at 09:16, Taco Hoekwater wrote: all characters context knows how to use. This means that, if my chars aren't in \showcharacters they're unavailable (am I

Re: [NTG-context] unicode in metafun?

2007-04-07 Thread Taco Hoekwater
Andrea Valle wrote: Is there a way to use unicode symbols with metapost? If you let context typeset the labels by using \textext or, even better, \sometxt, you should be able to use all characters context knows how to use. Unfortunately, in phonetics, that is very few, because of the lacking

Re: [NTG-context] unicode in metafun?

2007-04-07 Thread nicola
In article [EMAIL PROTECTED], Andrea Valle [EMAIL PROTECTED] wrote: Hi to all, I'm plotting a phonetic formant chart with metapost inside context. I know I can't use TIPA, but I would be happy with utf8. I did something similar with XeTeX and ConTeXt using the \sometxt macro, e.g.:

[NTG-context] unicode in metafun?

2007-04-06 Thread Andrea Valle
Hi to all, I'm plotting a phonetic formant chart with metapost inside context. I know I can't use TIPA, but I would be happy with utf8. So I'm encoding a utf8 file, and I can see the chars in the source. As an example I see this: ɷ But MP is complaining about not ascii characters. Even outside

[NTG-context] Fonts, nice looking headers, MetaFun and CV module

2007-03-19 Thread Gudmundur J. Kristjansson
, to change font in headers or definitions of commands to affect only text in those definitions? 2. Fancy header with half of the text in background color (see headers in my former pdf at http://www.vitum.net/gjk/cv.pdf). I tried various things here. Using \framed, MetaFun and \setupbackground

Re: [NTG-context] Fonts, nice looking headers, MetaFun and CV module

2007-03-19 Thread Wolfgang Schuster
Wolfgang I tried various things here. Using \framed, MetaFun and \setupbackground. For example: \setupbackground [leftoffset=0.3cm, rightoffset=0.3cm topoffset=-0.5cm, bottomoffset=0.3cm, background=color, backgroundcolor=red] I guess I'm misunderstanding

Re: [NTG-context] error with metafun

2007-01-05 Thread Taco Hoekwater
Peter Münster wrote: On Thu, 4 Jan 2007, Taco Hoekwater wrote: Peter Münster wrote: with the latest ConTeXt on TeX-live 2007 and this input file: No error here, but my context and metapost are newer and my pdftex is older than TL, so that may not mean much. Did you use the --dvi

[NTG-context] error with metafun

2007-01-04 Thread Peter Münster
error in dvi-mode: This is MetaPost, Version 0.993 (Web2C 7.5.6) (test-mpgraph.mp [1] metafun 2007-1-4 11:2 ) 1 output file written: test-mpgraph.1 Transcript written on test-mpgraph.log. [MP as EPS ./test-mpgraph.1] [MP color conversion ./test-mpgraph.1 ! Argument of \dodohandleMPcolor has

Re: [NTG-context] error with metafun

2007-01-04 Thread Peter Münster
On Thu, 4 Jan 2007, Taco Hoekwater wrote: Peter Münster wrote: with the latest ConTeXt on TeX-live 2007 and this input file: No error here, but my context and metapost are newer and my pdftex is older than TL, so that may not mean much. Did you use the --dvi switch of texexec? Cheers,

Re: [NTG-context] error with metafun

2007-01-04 Thread Taco Hoekwater
Peter Münster wrote: Hello, with the latest ConTeXt on TeX-live 2007 and this input file: No error here, but my context and metapost are newer and my pdftex is older than TL, so that may not mean much. Best, Taco ___ ntg-context mailing list

Re: [NTG-context] error with metafun

2007-01-04 Thread Hans Hagen
get the following error in dvi-mode: This is MetaPost, Version 0.993 (Web2C 7.5.6) (test-mpgraph.mp [1] metafun 2007-1-4 11:2 ) 1 output file written: test-mpgraph.1 Transcript written on test-mpgraph.log. [MP as EPS ./test-mpgraph.1] [MP color conversion ./test-mpgraph.1 ! Argument

[NTG-context] Problems with MetaFun and registers

2006-10-23 Thread Fredrik Sjunnesson
I have problems with the register macro in MetaFun. When I try == \setupcolors[state=start] \starttext \definelayer[test] \startuseMPgraphic{oeps} path p ; p := fullcircle scaled 6cm ; fill p withcolor .8white

[NTG-context] bug: MetaFun doesn't speak French

2006-10-03 Thread Mojca Miklavec
Hello Hans, here's a little MetaFun snippet which fails to work because of special treatment of French characters: \useencoding[ffr] \mainlanguage[fr] \startMPcode fill fullcircle scaled 5cm; \stopMPcode \stoptext (0,0,5cm.directdiscretionary,0,0,5cm.directdiscretionary) ! Transform

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-29 Thread Patrick Gundlach
Hello Sanjoy, [...] (I wonder if the live context has been having the same problem?) I tried to fix it after Taco reported the exact problem. Plese test if it's working now. Thanks, the live context works! I tested this file: Thank you and Mojca for testing and fixing things. Patrick

Re: [NTG-context] does metafun require texexec --final?

2006-09-27 Thread Patrick Gundlach
Hi, If I try to edit the top level of a page by clicking the edit tab at the top, then I get a dialog box from Firefox (on Linux). I just tried it with http://wiki.contextgarden.net/Cont-sys.tex and got You have chosen to open index.php which is a: PHP script. What should Firefox do with

Re: [NTG-context] does metafun require texexec --final?

2006-09-26 Thread Peter Münster
On Sun, 24 Sep 2006, Hans Hagen wrote: Oh, that's not a good idea, because the next context update will overwrite cont-sys.rme. So I should copy cont-sys.rme to cont-sys.tex first, then uncomment the lines in cont-sys.tex. But then a context update will overwrite cont-sys.rme, and the

Re: [NTG-context] does metafun require texexec --final?

2006-09-26 Thread Sanjoy Mahajan
sure, that's an option, but up to the user (maybe wikify this suggestion) Patrick: Not sure if it's a firefox-only problem or one that the contextgarden wiki can help with by sending more detailed mime types, but... If I try to edit the top level of a page by clicking the edit tab at the top,

Re: [NTG-context] does metafun require texexec --final?

2006-09-26 Thread Hans Hagen
� wrote: On Sun, 24 Sep 2006, Hans Hagen wrote: Oh, that's not a good idea, because the next context update will overwrite cont-sys.rme. So I should copy cont-sys.rme to cont-sys.tex first, then uncomment the lines in cont-sys.tex. But then a context update will overwrite cont-sys.rme,

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-25 Thread Mojca Miklavec
commented out the .mpost line (there was no separate metafun line, which I guess was getting the main_memory value of 100), regenerated the texmf.cnf with update-texmf, then regenerated metafun with texexec --make metafun and transparency worked. So thanks for the magic! Have wikified

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-25 Thread Sanjoy Mahajan
(I wonder if the live context has been having the same problem?) I tried to fix it after Taco reported the exact problem. Plese test if it's working now. Thanks, the live context works! I tested this file: \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill

Re: [NTG-context] does metafun require texexec --final?

2006-09-24 Thread Mojca Miklavec
On 9/23/06, Sanjoy Mahajan wrote: So maybe the best approach is to edit cont-sys.rme directly, then merge changes (using a revision control system like mercurial or git) that arrive with the new context distributions. Changes in cont-sys.rme don't happen that often. You can safely create

Re: [NTG-context] does metafun require texexec --final?

2006-09-24 Thread Taco Hoekwater
Mojca Miklavec wrote: On 9/23/06, Sanjoy Mahajan wrote: So maybe the best approach is to edit cont-sys.rme directly, then merge changes (using a revision control system like mercurial or git) that arrive with the new context distributions. Changes in cont-sys.rme don't happen that often.

Re: [NTG-context] does metafun require texexec --final?

2006-09-24 Thread Hans Hagen
Sanjoy Mahajan wrote: Wolfgang, Thanks for the pointer. I don't have a cont-sys.tex, but cont-sys.rme has these lines % \runMPgraphicstrue % \runMPTEXgraphicstrue The .rme extension meant I'd missed it when I ran grep on the .tex files. I'll uncomment them. Oh, that's not a good

[NTG-context] metafun: verbatimtex coming too late?

2006-09-24 Thread Sanjoy Mahajan
In this file, I intended that all labels would come out in 7pt: === cut here \starttext \startMPenvironment \setupbodyfont[7pt] \stopMPenvironment \startMPinclusions def drawtext = label(btex In drawtext() macro. etex, origin); enddef;

Re: [NTG-context] metafun: verbatimtex coming too late?

2006-09-24 Thread Sanjoy Mahajan
I had wondered: only the label that is directly in the figure (Inline in the figure.) comes out in 7pt. The other one, produced by the drawtext macro, comes out in 12pt. A possible solution is to put the verbatimtex at the beginning of the mp file or after the input mp-grph, making it like

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Sanjoy Mahajan
[Hans: Feature suggestion for figure inclusion at the end...] I wrote: So, is --final a requirement when using metafun, or am I hacking around a problem I've caused by leaving something out? An answer is that I should set \runMPgraphicstrue. I thought it was automatically set, half

[NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
Just for (meta)fun, I tried a few experiments with transparent colors. The example below gives a black circle instead of a red one. Is it that transparent colors aren't part of metafun -- which I can easily live with since color printing is too expensive still, alas -- or have I omitted

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Wolfgang Schuster
On Sat, 23 Sep 2006 15:03:57 +0100 Sanjoy Mahajan [EMAIL PROTECTED] wrote: [Hans: Feature suggestion for figure inclusion at the end...] I wrote: So, is --final a requirement when using metafun, or am I hacking around a problem I've caused by leaving something out? An answer is that I

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Sanjoy Mahajan
Wolfgang, Thanks for the pointer. I don't have a cont-sys.tex, but cont-sys.rme has these lines % \runMPgraphicstrue % \runMPTEXgraphicstrue The .rme extension meant I'd missed it when I ran grep on the .tex files. I'll uncomment them. Oh, that's not a good idea, because the next context

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Wolfgang Schuster
On Sat, 23 Sep 2006 17:46:56 +0100 Sanjoy Mahajan [EMAIL PROTECTED] wrote: Wolfgang, Thanks for the pointer. I don't have a cont-sys.tex, but cont-sys.rme has these lines % \runMPgraphicstrue % \runMPTEXgraphicstrue The .rme extension meant I'd missed it when I ran grep on the .tex

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Peter Rolf
Hi Sanjoy, Sanjoy Mahajan wrote: Just for (meta)fun, I tried a few experiments with transparent colors. The example below gives a black circle instead of a red one. Is it that transparent colors aren't part of metafun -- which I can easily live with since color printing is too expensive

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
Maybe you also need \runMPTEXgraphicstrue (enabled in my cont-sys.tex)? I just enabled that in cont-sys.rme, and I put it in the test file for good measure. your example works here (beta 17.09.). I also tried your example at contextgarden (same beta) and it worked too (using Firefox).

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Peter Rolf
Sanjoy Mahajan wrote: Maybe you also need \runMPTEXgraphicstrue (enabled in my cont-sys.tex)? I just enabled that in cont-sys.rme, and I put it in the test file for good measure. your example works here (beta 17.09.). I also tried your example at contextgarden (same beta) and it worked

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Taco Hoekwater
trace of '.mpost' and '.metafun' memory settings from your texmf.cnf, but at least make sure all the '.mpost' and 'metafun' values are the same . Then regenerate metafun using texexec --make, and all should be well again. Cheers, Taco ___ ntg-context

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
(there was no separate metafun line, which I guess was getting the main_memory value of 100), regenerated the texmf.cnf with update-texmf, then regenerated metafun with texexec --make metafun and transparency worked. So thanks for the magic! Have wikified the above in case anyone else runs into it http

[NTG-context] does metafun require texexec --final?

2006-09-22 Thread Sanjoy Mahajan
I was trying experiments with the file below, changing r from 1cm to 10cm or vice versa, then rerunning texexec and looking at the pdf. But the pdf changes only the second time that I run texexec (and each time, texexec runs metafun for the embedded graphic). However, the pdf changes right away

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-07 Thread Mojca Miklavec
On 8/7/06, Hans Hagen wrote: Taco Hoekwater wrote: Hi Mojca, Mojca Miklavec wrote: But the other \sometxt was indeed red - withcolor seems to work, but only conditionally. And I have some weird examples of two texts one after another. In some cases (if something else is drawn

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-07 Thread Mojca Miklavec
On 8/7/06, Taco Hoekwater wrote: Mojca Miklavec wrote: The real problem appears in the following figure where the first black is ignored and the second one is not, so it's rather inconsistent: It is not really inconsistent, the rule is very simple: all use of withcolor black upto

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-07 Thread Hans Hagen
Mojca Miklavec wrote: On 8/7/06, Taco Hoekwater wrote: Mojca Miklavec wrote: The real problem appears in the following figure where the first black is ignored and the second one is not, so it's rather inconsistent: It is not really inconsistent, the rule is very simple:

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-06 Thread Taco Hoekwater
Mojca Miklavec wrote: Hello, Does anyone have any idea about what's going on here? I get blue text, but a black square, although both are supposed to come out black (I wouldn't mind so much, but the problem is that some text is blue and some is black - I have some other testcases where this

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-06 Thread Mojca Miklavec
On 8/6/06, Taco Hoekwater wrote: Mojca Miklavec wrote: Hello, Does anyone have any idea about what's going on here? I get blue text, but a black square, although both are supposed to come out black (I wouldn't mind so much, but the problem is that some text is blue and some is black -

<    4   5   6   7   8   9   10   11   >