Re: [NTG-context] xetex and metapost

2006-09-16 Thread Hans Hagen
Alex Lubberts wrote: > Hi, > > After switching to `XeConTeXt' my file with MP graphics (which ran fine > before) results in errors. I include a .mp-file like: > > \startuseMPgraphic{dia1} > input Diagram1 ; > \stopuseMPgraphic > \placefigure{Comment}{\externalfigure[Diagram1.1]} > > When I run Co

Re: [NTG-context] xetex and metapost

2006-09-16 Thread Mojca Miklavec
On 9/16/06, Hans Hagen wrote: > Alex Lubberts wrote: > > Hi, > > > > After switching to `XeConTeXt' my file with MP graphics (which ran fine > > before) results in errors. I include a .mp-file like: > > > > \startuseMPgraphic{dia1} > > input Diagram1 ; > > \stopuseMPgraphic > > \placefigure{Comme

Re: [NTG-context] Lost in METAPOST

2007-01-12 Thread Peter Rolf
luigi scarso wrote: > Almost for sure (99.9%) I have made some dp mess with last context distro. > Now, I would like to discover where I have corrupted my installation. > %% > \setupcolors[state=start] > \starttext > %%\global\runMPgraphicstrue > \startuseMPgraphic{h

Re: [NTG-context] Lost in METAPOST

2007-01-12 Thread luigi scarso
On 1/12/07, Peter Rolf <[EMAIL PROTECTED]> wrote: > luigi scarso wrote: > > Almost for sure (99.9%) I have made some dp mess with last context > > distro. > > Now, I would like to discover where I have corrupted my installation. > > %% > > \setupcolors[state=start]

Re: [NTG-context] Lost in METAPOST

2007-01-12 Thread Peter Rolf
luigi scarso wrote: > On 1/12/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >> luigi scarso wrote: >>> Almost for sure (99.9%) I have made some dp mess with last context >>> distro. >>> Now, I would like to discover where I have corrupted my installation. >>> %% >>> \se

Re: [NTG-context] Lost in METAPOST

2007-01-12 Thread Peter Rolf
Peter Rolf wrote: [..] >> \openout0 = `b-mpgraph.mp'. >> >> \openout0 = `mpgraph.mp'. >> >> >> systems : system commands are enabled >> color : mpcmyk color space is supported >> color : mpspot color space is supported >> color : system rgb is global activated

Re: [NTG-context] Lost in METAPOST

2007-01-12 Thread luigi scarso
Thank you very much. I update all to new context distro 2007-01-12, and after a bit of hacking I was able to compile . Some notes 1) files under web2c in distro ; they can be in multiples dirs in working installation 2) files *ori in in base/ ; they should be edit and save as *.tex I also change t

Re: [NTG-context] Metapost and CMYK

2007-02-02 Thread luigi scarso
On 2/2/07, Peter Rolf <[EMAIL PROTECTED]> wrote: > Hi all, > > I have some questions about cmyk in combination with Metapost. Just by using > > \setupcolors[state=start, > cmyk=yes, > mpcmyk=yes, > rgb=no, > ] > > I get cmy(k=0) graphics, although all

Re: [NTG-context] Metapost and CMYK

2007-02-03 Thread Peter Rolf
luigi scarso wrote: > On 2/2/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I have some questions about cmyk in combination with Metapost. Just by using >> >> \setupcolors[state=start, >> cmyk=yes, >> mpcmyk=yes, >> rgb=

Re: [NTG-context] Metapost and CMYK

2007-02-03 Thread Hans Hagen
Peter Rolf wrote: > luigi scarso wrote: > >> On 2/2/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >> >>> Hi all, >>> >>> I have some questions about cmyk in combination with Metapost. Just by using >>> >>> \se

Re: [NTG-context] Metapost and CMYK

2007-02-04 Thread Peter Rolf
Hans Hagen wrote: > Peter Rolf wrote: >> luigi scarso wrote: >> >>> On 2/2/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >>> >>>> Hi all, >>>> >>>> I have some questions about cmyk in combination with Metapo

Re: [NTG-context] Metapost and CMYK

2007-02-04 Thread Hans Hagen
Peter Rolf wrote: > > > But to my surprise ConTeXt automatically converts my RGB colors (even > the MP defined ones), except that the final colors are in the CMY > instead of CMYK color space. All I want is a true RGBtoCMYK conversion. > I know about the calculating limitations in TeX, so I can wai

Re: [NTG-context] Metapost and CMYK

2007-02-04 Thread Mojca Miklavec
On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > Peter Rolf wrote: > > > > > > But to my surprise ConTeXt automatically converts my RGB colors (even > > the MP defined ones), except that the final colors are in the CMY > > instead of CMYK color space. All I want is a true RGBtoCMYK conversion. >

Re: [NTG-context] Metapost and CMYK

2007-02-04 Thread Hans Hagen
Mojca Miklavec wrote: > On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > >> Peter Rolf wrote: >> >>> But to my surprise ConTeXt automatically converts my RGB colors (even >>> the MP defined ones), except that the final colors are in the CMY >>> instead of CMYK color space. All I want is a

Re: [NTG-context] Metapost and CMYK

2007-02-04 Thread Mojca Miklavec
On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > > On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > > > >> Peter Rolf wrote: > >> > >>> But to my surprise ConTeXt automatically converts my RGB colors (even > >>> the MP defined ones), except that the final colors are in t

Re: [NTG-context] Metapost and CMYK

2007-02-05 Thread Peter Rolf
Mojca Miklavec wrote: > On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: >> Mojca Miklavec wrote: >>> On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: >>> Peter Rolf wrote: > But to my surprise ConTeXt automatically converts my RGB colors (even > the MP defined ones), except that

Re: [NTG-context] Metapost and CMYK

2007-02-05 Thread Mojca Miklavec
On 2/5/07, Peter Rolf <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > > On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > >> Mojca Miklavec wrote: > >>> On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > >>> > Peter Rolf wrote: > > > But to my surprise ConTeXt automatically conv

Re: [NTG-context] Metapost and CMYK

2007-02-05 Thread Peter Rolf
Mojca Miklavec wrote: > On 2/5/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >> Mojca Miklavec wrote: >>> On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: Mojca Miklavec wrote: > On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > >> Peter Rolf wrote: >> >>> But to my surprise C

Re: [NTG-context] [metapost] shading text

2007-05-06 Thread Mojca Miklavec
The ConTeXt mailing list is probably more suitable for this discussion, so I'm redirecting your question there (if anyone responds to it). On 5/2/07, Stephan Hennig wrote: > Hi, > > my attempt to shade a piece of text with MetaFun fails (see below). Is > this a restriction of M

Re: [NTG-context] [metapost] shading text

2007-05-07 Thread Peter Rolf
>> my attempt to shade a piece of text with MetaFun fails (see below). Is >> this a restriction of MetFun/MetaPost or of the PDF format? >> >> While there is an explicit example for transparent text in metafun-p.pdf >> on p. 185 I didn't find one for shade

Re: [NTG-context] [metapost] shading text

2007-05-07 Thread Stephan Hennig
Peter Rolf schrieb: > http://www.pragma-ade.com/general/manuals/mmakempy.pdf > > (this should answer some of your questions). You find the needed > tools at Thank you for the pointer! > I have tested this some years ago and it worked without problems. A fast > run with the old code ended in the

Re: [NTG-context] [metapost] shading text

2007-05-07 Thread Stephan Hennig
ngs. I've updated to v8.56, recently, and didn't observe any problems with pstoedit and MetaPost with older versions of Ghostscript (in other applications). What version of Ghostscript are you running? Best regards, Stephan Hennig

Re: [NTG-context] [metapost] shading text

2007-05-08 Thread Peter Rolf
the file PUBLIC for details. > > That is, it seems as if pstoedit calls Ghostscript and that hangs. I've > updated to v8.56, recently, and didn't observe any problems with > pstoedit and MetaPost with older versions of Ghostscript (in other > applications). What version

Re: [NTG-context] [metapost] shading text

2007-05-08 Thread Stephan Hennig
[CC'ed back to the metapost list, since this is not only related to ConTeXt.] Peter Rolf schrieb: > Stephan Hennig wrote: >> >> [makempy/pstoedit/Ghostscript hang] >> >> That is, it seems as if pstoedit calls Ghostscript and that hangs. >> I've updated

Re: [NTG-context] [metapost] shading text

2007-05-08 Thread Tobias Burnus
perl makempy.pl outline >> $ mpost outline This is MetaPost, Version 0.993 (Web2C 7.5.6) ... 1 output file written: outline.1 Transcript written on outline.log. $ makempy outline ... MakeMPY 1.1 - MetaFun / PRAGMA ADE 2000-2004 ... pstoedit: version 3.44 / DLL interface 108 (build May 4 20

Re: [NTG-context] [metapost] shading text

2007-05-08 Thread Taco Hoekwater
Stephan Hennig wrote: > [CC'ed back to the metapost list, since this is not only related to > ConTeXt.] > > Peter Rolf schrieb: >> Stephan Hennig wrote: >>> [makempy/pstoedit/Ghostscript hang] >>> >>> That is, it seems as if pstoedit calls Gho

Re: [NTG-context] MetaPost 1.001 announcement

2007-11-14 Thread Andrea Valle
https://foudnry.supelec.fr/projects/metapost/ (little typo) Sorry Taco, but it is a step on the way to MegaPost, or are they two separate project? Best -a- The source package should compile normally on all systems that are capable of compiling a modern web2c-based TeX

Re: [NTG-context] MetaPost 1.001 announcement

2007-11-14 Thread Hans Hagen
Andrea Valle wrote: >>https://foudnry.supelec.fr/projects/metapost/ > > > (little typo) > > Sorry Taco, but it is a step on the way to MegaPost, or are they two > separate project? megapost is now mplib, development starts soon, first beta

Re: [NTG-context] MetaPost 1.002 announcement

2007-11-27 Thread Peter Münster
On Mon, Nov 26, 2007 at 06:44:54PM +0100, Taco Hoekwater wrote: > The MetaPost team is happy to announce a new release of MetaPost: > > -- > Me

Re: [NTG-context] MetaPost 1.002 announcement

2007-11-30 Thread frantisek holop
hmm, on Mon, Nov 26, 2007 at 06:44:54PM +0100, Taco Hoekwater said that > > The MetaPost team is happy to announce a new release of MetaPost: > > -- >

Re: [NTG-context] shading in metapost

2008-01-16 Thread John Luciani
There is some information on doing transparencies in METAPOST at http://www-math.univ-poitiers.fr/~phan/metalpha.html Using the code at the above link you should be able to produce the effect in your jpeg. (* jcl *) -- http://www.luciani.org

Re: [NTG-context] Presentations with Metapost

2003-08-14 Thread Hans Hagen
At 18:17 05/08/2003 +0200, you wrote: Hi: I am trying to generate presentations using the six styles describing in art-pres.pdf doc by Hans Hagen. I had not problems with the original style but yes with the others styles. I suspect that something about metapost configuration is failing. In

Re: [NTG-context] Re: MetaPost error

2003-09-05 Thread Henning Hraban Ramm
Am Freitag, 05.09.03, um 07:24 Uhr (Europe/Zurich) schrieb ^Nitram^: I had some problems with generate metafun format - there I couldn't find mem file on hard disk. Maybe first time I forgot '-update and refresh MikTeX database' ;) This the point for new users: after each operation do it ! ;)

[NTG-context] MetaPost with etex/btex

2003-12-14 Thread David Munger
Hello, The following code results in no label output: \starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext I'm using ConTeXt 2003.12.12. By the way, why don't \startMPgraphic and \stopMPgraphic do anything? David ___

[NTG-context] Metapost 3D [Fwd: m3D]

2004-03-29 Thread Tobias Burnus
Hello, this is a nice extension to use MetaPost for 3D graphics. I don't know how well it works since I haven't tested it. Tobias Original Message Subject:m3D Date: Mon, 29 Mar 2004 11:34:44 +0200 From: Rolf Niepraschk To: TeX-Stammtisch ==&g

Re: [NTG-context] Metapost font size

2004-05-12 Thread Sebastian Sturm
Hi, You can setup the font to be used in the Metapost-figure \startMPenvironment \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,8pt] \stopMPenvironment works great, thank you! Best regards, Sebastian ___ ntg-context mailing list

[NTG-context] Re: Metapost font size

2004-05-13 Thread Patrick Gundlach
Hi, if I remember correctly: Besides the answer from Willi, you can also use \startMPenvironment[+] ... \stopMPenvironment and the result will be used for MP and text. Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman

Re: [NTG-context] Metapost font size

2004-05-10 Thread Willi Egger
Hi Sebastian, You can setup the font to be used in the Metapost-figure \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,8pt] \startMPenvironment \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,8pt] \stopMPenvironment kind regards Willi Sebastian Sturm wrote: Hi

Re: [NTG-context] Overwritten metapost files

2004-05-28 Thread Hans Hagen
At 17:47 27/05/2004, you wrote: How was it one avoided getting metapost overwritten? I have two metapost graphics in a .tex file defined by \startreusableMPgraphic and the first one gets overwritten by the second when running texexec --path=.. masters-project.tex i suppose that you have a

[NTG-context] Re: Overwritten metapost files

2004-05-28 Thread Nikolai Weibull
* Hans Hagen <[EMAIL PROTECTED]> [May 28, 2004 09:30]: > >texexec --path=.. masters-project.tex > > i suppose that you have a good reason for doing that -) you may try: Probably not as good a reason as I think, but yes, the reason being that I want all texexec output to go into a separate

[NTG-context] Re: Overwritten metapost files

2004-05-29 Thread Patrick Gundlach
Hello, > still go in the same directory as myfile, such as metapost files a .tmp > and the .tui file. I guess it's not that bad, but I like keeping things > as clean as possible. You know about texutil --purgeall ? Patrick ___ ntg-c

[NTG-context] Re: Overwritten metapost files

2004-05-29 Thread Nikolai Weibull
* Patrick Gundlach <[EMAIL PROTECTED]> [May 29, 2004 11:50]: > You know about texutil --purgeall ? No. It seems it's called --purge on my machine, but it seems to do what you're suggesting :-). Perhaps this is a better solution actually. Thanks, nikolai -- ::: name: Nikolai Weibull

[NTG-context] Re: Overwritten metapost files

2004-05-29 Thread Patrick Gundlach
Hi, >> You know about texutil --purgeall ? > > No. It seems it's called --purge on my machine, but it seems to do what > you're suggesting :-). Perhaps this is a better solution actually. well, newer versions of texutil has purgeall; search the mailing list archive if you need to find out the e

[NTG-context] Re: Disable Metapost rendering?

2004-07-24 Thread Patrick Gundlach
Hi, The only way I know of is to disable all mpost runs with texexec --nomp .. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailma

Re: [NTG-context] Disable Metapost rendering?

2004-07-25 Thread Hans Hagen Outside
Sebastian Sturm wrote: Hi, I really like ConTeXt's MP processing features, but as soon as I include more than five or six MP graphics in a document, typesetting slows down to a crawl. As far as I know, the PSTricks package has some option to only process a given range of the figures defined in t

Re: [NTG-context] Metapost variable problem

2004-08-03 Thread Taco Hoekwater
On Tue, 03 Aug 2004 12:37:18 + Michal Kvasnicka <[EMAIL PROTECTED]> wrote: > Good afternoon. > > I am sorry that I bother you with this offtopic but I don't know where > else I can ask. There is a mailing list for metafont (and metapost). To subscribe, e-mail:

[NTG-context] Metapost and TeX [OT]

2004-08-23 Thread skhilji
I don't have any experience in metapost. I would appreciate if someone would please answer this question without me having to do thru tutorials and metapost source code. I was wondering how does metapost talk to TeX? Quicky glancing through the metafun book, I found out that you can

Re: [NTG-context] Metapost and TeX

2004-08-23 Thread Matthias Weber
, you can use your PDFs directly in ConText. I found this easier than to teach my picture producing applications to use the right fonts in the right way at the right place. Matthias On Aug 23, 2004, at 9:48 PM, [EMAIL PROTECTED] wrote: I don't have any experience in metapost. I would appre

Re: [NTG-context] Re: Metapost animation

2004-09-13 Thread Michal Kvasnicka
Good morning. Thanks for your answers. Well, I'm searching for automatic steps. (I know that manual steps are covered in the widgets manual.) And even for more funny stuff, like curves that appear `per partes', or curves thats slide from somewhere to their final location. You need automatic ste

[NTG-context] 3D MetaPost tool:3DLDF

2005-01-13 Thread Tobias Burnus
Hi, 3DLDF might be interesting to some of you. I have not tested it, but it seems to use a similar language to MetaPost (but with 3D coordinates) and generates real MetaPost. http://www.gnu.org/software/3dldf/ | My primary purpose in writing 3DLDF was to make it possible to use MetaPost for

Re: [NTG-context] OT: metapost question

2005-03-28 Thread Taco Hoekwater
Gerben Wierda wrote: Is it ok in a .mp file to do something like for k=1 step 1 until N: beginfig(k); % some stuff endfig; endfor Sure, why not? Simply try this, which shows that it works fine: N := 100; for k=1 step 1 until N: beginfig(k); drawdot (100,100) withpen pencircle scaled k

Re: [NTG-context] OT: metapost question

2005-03-28 Thread Nikolai Weibull
* Taco Hoekwater (Mar 29, 2005 00:10): > N := 100; > for k=1 step 1 until N: > beginfig(k); >drawdot (100,100) withpen pencircle scaled k; > endfig; > endfor; > end. Wow, I never realized that. Man, I really gotta try to remember what can be done with macro processors..., nikolai

Re: [NTG-context] MetaPost 0.9 announcement

2005-04-28 Thread Vit Zyka
Taco Hoekwater wrote: The MetaPost team is happy to announce a new release of MetaPost: -- MetaPost 0.9 -- Thank you Taco for maintaining such good, old an very

Re: [NTG-context] MetaPost 0.9 announcement

2005-04-29 Thread Taco Hoekwater
Vit Zyka wrote: Just a note. On the sarovar site, documentation page is empty (http://sarovar.org/docman/?group_id=230). The same situation was with pdftex project. Martin Sch. and Hartmut corrected this last week. I've added mpman.pdf to this page. Taco __

[NTG-context] importing figures in metapost

2005-06-11 Thread andrea valle
x27;n not satisfied with the output, and I like very much context capabilties: more, metafun is amazing. Taking a look at the metafun doc, it seems to me that the drawing the edges should be a very simple task. But: is it possible to import an external figure inside metapost giving it a preci

Re: [NTG-context] Fonts in Metapost

2005-07-01 Thread Willi Egger
Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label("test",(200,200));): %normal stups: \loadmapfile[cmbright.map] %it seem

Re: [NTG-context] Fonts in Metapost

2005-07-01 Thread Wolfgang Zillig
Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label("

Re: [NTG-context] Fonts in Metapost

2005-07-02 Thread Wolfgang Zillig
Hello all, finaly I solved my problem: I had my metapost graphic in an external file and used it with: \startuseMPgraphic{test} \input mp.mp ; \stopuseMPgraphic \useMPgraphic{test} or \startbuffer[test1] \input mp.mp \stopbuffer \processMPbuffer[test1,graphic] in both cases I get the

Re: [NTG-context] Fonts in Metapost

2005-07-02 Thread Willi Egger
Hi Wolfgang, usually I compile the MetaPost fiures into a pdf. I refer to the pictures then by \externalfigure[metapost-pdf][page=1] or similar. Willi Wolfgang Zillig wrote: Hello all, finaly I solved my problem: I had my metapost graphic in an external file and used it with

Re: [NTG-context] Fonts in Metapost

2005-07-02 Thread Willi Egger
\stopuniqueMPgraphic \starttext \dorecurse{3}{% \startTEXpage \useMPgraphic{\recurselevel} \stopTEXpage} \stoptext Willi Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In

Re: [NTG-context] Fonts in Metapost

2005-07-03 Thread Wolfgang Zillig
Hello all, the last suggestion I made was wrong, to change the font I need (somehow strange) the following code: \loadmapfile[mymap.map] \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \startMPenvironment[global] \input type-cmbr \usetypescript[Cmbr] \switchtobodyfont[Cmbr,12pt] \stopMPenv

Re: [NTG-context] Fonts in Metapost

2005-07-03 Thread Willi Egger
Hi Wolfgang, The MPlibraries are part of the metafun-suite. Willi Wolfgang Zillig wrote: Hello all, the last suggestion I made was wrong, to change the font I need (somehow strange) the following code: \loadmapfile[mymap.map] \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \startMPenv

[NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Jeroen
I have the following working example with hatching. This works fine, but when I uncomment the sketching commands, no figure is rendered. Is the mp-sketch macro still working? \starttext \startMPcode input hatching; %input mp-sketch; %sketchypaths; %sketch_amount := 2bp; u := 1cm; path c

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
l*u; > p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. > (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0); > draw p; > \stopMPcode > \stopframe}} > \stopanimation > \stoptext > > > What better way can I create a sine animation with Metapost? >

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
))) endfor shifted (n,0); > draw p; > \stopMPcode > \stopframe}} > \stopanimation > \stoptext > > > What better way can I create a sine animation with Metapost? > > > > > Here is another way to do your animation. This is doing something, but I

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
; numeric n, u; >> u := 1cm; >> n:=\recurselevel*u; >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. >> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0); >> draw p; >> \stopMPcode >> \stopframe}} >> \stopani

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
t;> \startanimation[menu=yes,framerate=10] >> \dorecurse{7}{\expanded >> {\startframe >> \startMPcode >> path p; >> numeric n, u; >> u := 1cm; >> n:=\recurselevel*u; >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Jeroen
gt; >> \setupinteraction[state=start] > >> \starttext > >> \startanimation[menu=yes,framerate=10] > >> \dorecurse{7}{\expanded > >> {\startframe > >> \startMPcode > >> path p; > >> numeric n, u; > >

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
Hi Jeroen, Unfortunately I am not familiar with Tikz, since all my documents use what is built-in ConTeXt and Metapost… That being said I am sure someone on the list can help you with Tikz module. Best regards: Otared > On 22 Jul 2021, at 14:28, Jeroen wrote: > > Hi, both solutions

[NTG-context] Use MetaPost to distort images?

2021-09-03 Thread Henning Hraban Ramm via ntg-context
Hi, is it possible to apply geometric transformations to images using MetaPost? This is again way over my head, but I’m still trying different methods to let a ConTeXt document look more “hand-made”. In my example*, I added frame and shadow to a photo and _distorted_ it slightly to have it

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Hans Hagen via ntg-context
ay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? \startuniqueMPgraphic{concept} StartPage; draw fullcircle scaled 1cm shifted (10cm,10cm); draw Page withpen

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
> > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > >

[NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either

Re: [NTG-context] Metapost examples seems broken

2022-05-22 Thread Bruce Horrocks via ntg-context
It's archived here <https://web.archive.org/web/20210815171931/https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html> which might suffice until the author gets his certificates sorted out? > On 22 May 2022, at 09:41, Jan-Erik Hägglöf via ntg-context > wrote: >

[NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Dear list, I have a large .tex file with metapost embedded in it and want to compile it, but it fails. Here is a link to the file (~12MB): https://drive.google.com/file/d/1t-6mxFmGp-nzpl0RrPgNFq8KRvpplgDv/view?usp=sharing Do you know of a way to compile it? BTW, the file is automatically

Re: [NTG-context] MetaPost label font size

2022-07-05 Thread Aditya Mahajan via ntg-context
On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle=sans] Or define a new instance, which sets the textstyle to san

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 07:17 schrieb Aditya Mahajan via ntg-context: On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle=s

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
My stupid way to get labels of different sizes: \starttext \startMPcode label("normal label", (0, 0)); label("\setsmallbodyfont small label", (0, 18)); label("\setbigbodyfont big label", (0, -18)); \stopMPcode \stoptext Henning Hraban Ramm via ntg-context 於 2022年7月6日 週三 下午5:23寫道: >

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode   label("normal label", (0, 0));   label("\setsmallbodyfont small label", (0, 18));   label("\setbigbodyfont big label", (0, -18)); \stopMPcode \stoptext nothin

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));    label("\setsmallbodyfont small label", (0, 18));    label("\setbigbodyf

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
I've used something like the following before. \starttext \startMPcode label("normal label", (0, 0)); label("{\switchtobodyfont[3pt] tiny label}", (0, 18)); label("{\switchtobodyfont[72pt] giant label}", (0, -72)); \stopMPcode \stoptext Henning Hraban Ramm via ntg-context 於 2022年7月6

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 1:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));    label("

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Fabrice L via ntg-context
> Le 5 juill. 2022 à 19:00, Henning Hraban Ramm via ntg-context > a écrit : > > How can I change the font size of labels within one picture? > > Hraban > > \startMPpage > defaultfont := "\truefontname{Sans}"; > defaultfontsize := \the\bodyfontsize; > > label.top(defaultfontsize, (0,0)); >

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 15:24 schrieb Fabrice L: Here are slightly different syntax that could be useful perhaps ? In the second one, the scaled parameter can be replaced easily with a variable, so you can decide and change the size of the label during the course of a picture. Thank you (all), I resol

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
Hi, I’d like a presentation progress indicator that looks like a boat on waves – and if it works, it can also become a bike on hills or a mars rover on dunes. But my math skills are lacking. Below’s a mostly working draft. * I find the waves not yet very convincing. Would it make sense to use

[NTG-context] Re: Gray gradient with Metapost

2023-10-05 Thread Henning Hraban Ramm
Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Keith McKay
obtain, if possible, a gray gradient like in the image. > > My code uses Metapost but maybe this is possible with Metafun. > > Have a look into the Metafun manual, chapter 8.1 “shading”. > > Hraban > > > __

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Henning Hraban Ramm
btain, if possible, a gray gradient like in the image. > My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban ___ If your ques

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Fabrice Couvreur
se in it. > > Best Wishes > > Keith > > > > On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm, > <mailto:te...@fiee.net>> wrote: > > > > Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: > > > Hi, > > > I would like to obtain, if

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Keith McKay
Fabrice Couvreur: >      > Hi, >      > I would like to obtain, if possible, a gray gradient like in the >     image. >      > My code uses Metapost but maybe this is possible with Metafun. > >     Have a look into the Metafun manual, chapter

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
How can I achieve multipage metapost output from ConTeXt? The result should be a multipage pdf. It contains just a metapost graphic per page. The graphic has always the same bounding box and evolves from page to page: Some elements to be drawn are added, and some others would ideally also be

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame-less TABLE; it will probably work, but it’s a

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
Am 19.02.24 um 23:15 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 21.02.2024 um 19:04: Am 19.02.24 um 23:15 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}   draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red";   setbounds currentpicture

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote: Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}    draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed withd

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
{10}{ \bTR \bTD\strut \eTD\bTD \eTD\bTD \eTD \eTR } \eTABLE """ Hraban%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\

[NTG-context] Update text variables inside metapost

2015-03-07 Thread DesdeChaves
Why the metapost not updated the value of text variables that are generated inside luacode environment? In the code below, If I have \startitemize[columns,two] then metapost draw: 1. \Bolha[size=6cm]{text1}{text2}{text3}, 2. and four \Bolha[size=4cm]{text1}{text2}{text3}, but text1, text2 and

[NTG-context] new error in Context-Metapost

2016-02-17 Thread Meer, Hans van der
Some code that worked ok but hasn't been used for some time, now gives an error: missing $. It is working fine in ConTeXt, but putting it inside an MPpage goes wrong. Here a minimal example, the output of the ConTeXt run and the error on the MPpage run. Has something changed I missed? Hans van

Re: [NTG-context] question for metapost experts

2017-08-10 Thread Hans Hagen
On 8/10/2017 2:07 PM, Schmitz Thomas A. wrote: Hi all, this one is for all the metapos/metafun experts out there (Alan, are you there?). For a counter in one of my slide backgrounds, I have to calculate an intersectionpoint, given in percentage of the difference between current page and last

<    1   2   3   4   5   6   7   8   9   10   >