Re: [NTG-context] Metapost labels

2013-08-07 Thread Alan BRASLAU
with the current beta. It does not find files (cont-yes.mkiv, etc.), does not find fonts, etc. metapost loading 'metafun' fails, format not found Following the mailing list, Hans tried `fixing' something with file loading... Alan

Re: [NTG-context] Metapost labels

2013-08-07 Thread Hans Hagen
On 8/7/2013 6:50 AM, Lutz Haseloff wrote: Hi all, with LuaTeX, Version beta-0.77.0-2013073017 (rev 4639) and ConTeXt ver: 2013.08.06 15:50 MKIV beta fmt: 2013.8.7 int: english/english Context seems not to be able to typeset Labels anymore. Yesterday, before an Update, all worked as expected.

Re: [NTG-context] Metapost labels

2013-08-07 Thread Lutz Haseloff
Hi Hans, Labels work again as expected. Thanks for the quick help! 2013/8/7 Hans Hagen pra...@wxs.nl On 8/7/2013 6:50 AM, Lutz Haseloff wrote: Hi all, with LuaTeX, Version beta-0.77.0-2013073017 (rev 4639) and ConTeXt ver: 2013.08.06 15:50 MKIV beta fmt: 2013.8.7 int:

[NTG-context] Metapost labels

2013-08-06 Thread Lutz Haseloff
Hi all, with LuaTeX, Version beta-0.77.0-2013073017 (rev 4639) and ConTeXt ver: 2013.08.06 15:50 MKIV beta fmt: 2013.8.7 int: english/english Context seems not to be able to typeset Labels anymore. Yesterday, before an Update, all worked as expected. Minimal not working example: \starttext

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Meer, H. van der
The reason behind starting this thread was the fact that I want my \useMPgraphic's arbitrarily (and perfectly) scaled. In Metapost/Metafun that is easily done through a \MPvar{scale} variable, applied to the main dimensions on which all measures in my figures depend. But for the fontsizes

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Marco Patzer
On 2013–05–07 Meer, H. van der wrote: Perhaps a better and possibly more elegant way seems the following route. When I turn Metapost figures into external pdf-files, these can be placed with \useexternalfigure and the scaled as a whole, drawing and text alike. My question is: can this be done

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Meer, H. van der
–07 Meer, H. van der wrote: Perhaps a better and possibly more elegant way seems the following route. When I turn Metapost figures into external pdf-files, these can be placed with \useexternalfigure and the scaled as a whole, drawing and text alike. My question is: can this be done without

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
Meer On 6 May 2013, at 6:04 PM, Marco Patzer home...@lavabit.commailto:home...@lavabit.com wrote: On 2013–05–06 Meer, H. van der wrote: What is the simplest way to change the size of fonts in labels drawn in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin

Re: [NTG-context] MetaPost Function Grapher

2013-02-23 Thread Jaroslav Hajtmar
Hello Troy. Thank you very much for the link. It looks very nice and I'm sure that I will throw into teaching (I teach mathematics at the high school). I'm doing these things through Tikz and Pgfplots. Metapost unfortunately I don't control. Is it possible allowing export to Tikz or Pgfplots

Re: [NTG-context] MetaPost Function Grapher

2013-02-23 Thread Troy Henderson
Is it possible allowing export to Tikz or Pgfplots? If I would had the opportunity to also download the source Tikz or Pgfplots, it would be absolutely amazing. Unfortunately, I don't know TikZ or PGF, so not only would I have to learn these, but I would also have to rewrite the code to

[NTG-context] MetaPost Function Grapher

2013-02-22 Thread Troy Henderson
The MetaPost output from my Function Grapher http://www.tlhiv.org/mpgraph/ is now available in ConTeXt format. This can be illustrated by choosing a graph type and selecting an example from one of the Example buttons. Once the graph is drawn, the ConTeXt source can be downloaded using

[NTG-context] Metapost nodes.

2013-01-10 Thread Andre Caldas
Hello! 1. How does a metapost figure (\startMPcode) becomes a node? 2. When does it become a node? 3. What type of node it becomes? 4. Can I change its attributes? 5. Can I change its colors or transparency levels? André Caldas

Re: [NTG-context] Metapost nodes.

2013-01-10 Thread Hans Hagen
On 1/10/2013 5:15 PM, Andre Caldas wrote: Hello! 1. How does a metapost figure (\startMPcode) becomes a node? never, that is: it's turned into whatsit nodes with pdf operators and mixed with regular nodes when text is used 2. When does it become a node? sometime in the mp converter 3

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Troy Henderson
I've added a few more animations since my last post. They can be accessed at http://www.tlhiv.org/animations There is one in particular that, I think, is quite impressive. It is an animation of a function f(x,y,t) where t is time. It is available at the aforementioned link or directly at

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Marco Patzer
On 2013–01–07 Troy Henderson wrote: http://www.tlhiv.org/animations There is one in particular that, I think, is quite impressive. It is an animation of a function f(x,y,t) where t is time. I love that one. Very impressive, indeed! Although my browser flickers for about 20s until it

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Rogers, Michael K
On Jan 7, 2013, at 11:46 AM, Marco Patzer home...@lavabit.commailto:home...@lavabit.com wrote: On 2013–01–07 Troy Henderson wrote: http://www.tlhiv.org/animations There is one in particular that, I think, is quite impressive. It is an animation of a function f(x,y,t) where t is time. I love

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Alan BRASLAU
,t) where t is time. It is available at the aforementioned link or directly at http://www.tlhiv.org/animations/nocgi/function_surface.html Troy Do we get to see the MetaPost code? Alan ___ If your question

Re: [NTG-context] [metapost] MetaPost Animations

2013-01-02 Thread Jean-Michel Sarlat
Hello, 2012/12/28 Hans Hagen pra...@wxs.nl On 12/28/2012 8:41 PM, Troy Henderson wrote: I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/**animations/ http://www.tlhiv.org

Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Jeong Dal
Dear Wolfgang, Thank you for the explanation and the correction of the code. It works nicely. It also taught me some other things too. I'd like to ask you one more thing. When you update the animation module, would you please concern the location of the menu? I think that it is better to put

Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Wolfgang Schuster
Am 01.01.2013 um 15:30 schrieb Jeong Dal hak...@me.com: Dear Wolfgang, Thank you for the explanation and the correction of the code. It works nicely. It also taught me some other things too. I'd like to ask you one more thing. When you update the animation module, would you please

Re: [NTG-context] MetaPost Animations

2012-12-31 Thread Jeong Dal
Dear Wolfgang, Thank you for the explanation, and your sample works nicely. I enclosed \processMPbuffer using \startframe and \stopframe as following. Then I got a 'undefined control sequence' error. If I use '\framed[]' instead of '\startframe … \stopframe', then it gave all 7 circles of

Re: [NTG-context] MetaPost Animations

2012-12-31 Thread Wolfgang Schuster
and \startframe commands are only available *in* the animation environment where they are locally defined. 2. Although \framed sound similar to \frame there is no relation between both commands. 3. You have to expand the loop value *before* it is passed to metapost, see below. \usemodule[animation

Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Mojca Miklavec
On Sun, Dec 30, 2012 at 3:57 AM, Troy Henderson wrote: Bonus question: independent from the gears shape (assume that it stays as it is), there is something fundamentally wrong with the animation. What is that? ;) When fixing the teeth, I broke the direction of one of the gears. It's

Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Jeong Dal
Dear Troy, The animations are impressive and thank you for sharing the code. In the creation of many pdf for animation, it changes the recurselevel only. I wonder if there is a way to make such kind of animation in ConTeXt using Wolfgang's animation module. Then we can include the animation in

Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Wolfgang Schuster
Am 30.12.2012 um 14:19 schrieb Jeong Dal hak...@me.com: Dear Troy, The animations are impressive and thank you for sharing the code. In the creation of many pdf for animation, it changes the recurselevel only. I wonder if there is a way to make such kind of animation in ConTeXt using

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Hans Hagen
On 12/29/2012 2:02 AM, Rogers, Michael K wrote: I thought Hans was talking about the animations of the construction of Bezier curves, which are pretty cool. the gears were mentioned in an off-list mail Hans -

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Hans Hagen
On 12/29/2012 3:55 AM, Troy Henderson wrote: Are the gears more correct now? Yes, it looks better this way. I don't know how deep the tooths need to be. Probably some complex formula is needed to determine that. Hans -

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Mojca Miklavec
On Sat, Dec 29, 2012 at 3:55 AM, Troy Henderson wrote: Are the gears more correct now? Better that previously, but there is still room for improvement. The teeth are too small among other things. Bonus question: independent from the gears shape (assume that it stays as it is), there is

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Peter Münster
On Sat, Dec 29 2012, Mojca Miklavec wrote: there is something fundamentally wrong with the animation. Not necessarily. Just imagine 2 motors: the 2 right gears are driving the left one... ;) -- Peter

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Tom Fossen
Op 29-12-12 16:42, Mojca Miklavec schreef: On Sat, Dec 29, 2012 at 3:55 AM, Troy Henderson wrote: Are the gears more correct now? [ ... ] Bonus question: independent from the gears shape (assume that it stays as it is), there is something fundamentally wrong with the animation. What is that?

Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Troy Henderson
Bonus question: independent from the gears shape (assume that it stays as it is), there is something fundamentally wrong with the animation. What is that? ;) When fixing the teeth, I broke the direction of one of the gears. It's repaired now. Troy

[NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson
I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/animations/ Feedback is appreciated, and if there is a particular animation that you would like to see included, let me know and I

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Otared Kavian
wishes for the New Year, and best regards: OK On 28 déc. 2012, at 20:41, Troy Henderson thend...@gmail.com wrote: I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/animations/ Feedback

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Hans Hagen
On 12/28/2012 8:41 PM, Troy Henderson wrote: I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/animations/ Feedback is appreciated, and if there is a particular animation that you would

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Rogers, Michael K
On 12/28/2012 8:41 PM, Troy Henderson wrote: I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/animations/ Feedback is appreciated, and if there is a particular animation that you

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson
One thing, which you may know, gear teeth do not normally have rectangular profiles. This must be what Hans was talking about. Are you using the animations, or some frames perhaps, in a ConTeXt document? Well, actually I'm using ConTeXt/MetaPost to generate each frame of the animation

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Rogers, Michael K
On Dec 28, 2012, at 3:49 PM, Troy Henderson thend...@gmail.commailto:thend...@gmail.com wrote: One thing, which you may know, gear teeth do not normally have rectangular profiles. This must be what Hans was talking about. I thought Hans was talking about the animations of the construction of

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson
Are the gears more correct now? Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Otared Kavian
Dear Troy, The gears are much better now. However, have a look at http://fr.wikipedia.org/wiki/Fichier:Involute_wheel.gif and http://fr.wikipedia.org/wiki/Engrenage The animation for Gibbs is also very nice: thanks for sharing! I tried the TeX file for your Gibbs phenomena

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson
I tried the TeX file for your Gibbs phenomena animation: I could not get the same pictures as you show on your webpage. I built the TeX file with ConTeXt. I am using the ConTeXt that comes with TeX Live 2012. context gibbs.tex Troy

Re: [NTG-context] MetaPost instance mechanism broken

2012-12-06 Thread Marco Patzer
On 2012–11–25 Marco Patzer wrote: in one of the last few betas the MetaPost instance mechanism broke. Did the interface change again? The following does not work on today's beta, only “alpha” and “gamma” are printed. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{alpha

Re: [NTG-context] MetaPost instance mechanism broken

2012-12-06 Thread Hans Hagen
On 12/6/2012 8:10 PM, Marco Patzer wrote: On 2012–11–25 Marco Patzer wrote: in one of the last few betas the MetaPost instance mechanism broke. Did the interface change again? The following does not work on today's beta, only “alpha” and “gamma” are printed. \defineMPinstance [myinstance

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Sietse Brouwer
Aditya wrote: I am still using the old 2012.11.16 version, but now you have to specify the instance in the \startuseMPgraphic as well (Hans had announced this on the mailing list a few weeks ago): \startuseMPgraphic{instance::mygraphic} ... \stopuseMPgraphic Since I don't use MetaPost, I

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Marco Patzer
2012-11-26 Sietse Brouwer: Since I don't use MetaPost, I don't think I'm the best person to document this. But I took this as an opportunity to create the command reference pages for a bunch of the \...MP... commands; perhaps one of you could add this info to the proper page(s)? Thanks. I

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Aditya Mahajan
On Mon, 26 Nov 2012, Marco Patzer wrote: 2012-11-26 Sietse Brouwer: Since I don't use MetaPost, I don't think I'm the best person to document this. But I took this as an opportunity to create the command reference pages for a bunch of the \...MP... commands; perhaps one of you could add

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Hans Hagen
On 11/26/2012 5:10 PM, Marco Patzer wrote: 2012-11-26 Sietse Brouwer: Since I don't use MetaPost, I don't think I'm the best person to document this. But I took this as an opportunity to create the command reference pages for a bunch of the \...MP... commands; perhaps one of you could add

[NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic \starttext\null \useMPgraphic{myinstance::mympgraphic} \stoptext Marco

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Wolfgang Schuster
Am 25.11.2012 um 18:11 schrieb Marco Patzer home...@lavabit.com: Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Aditya Mahajan
On Sun, 25 Nov 2012, Marco Patzer wrote: Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic \starttext\null \useMPgraphic{myinstance

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
2012-11-25 Aditya Mahajan: I am still using the old 2012.11.16 version, but now you have to specify the instance in the \startuseMPgraphic as well (Hans had announced this on the mailing list a few weeks ago): I missed that. \startuseMPgraphic{instance::mygraphic} ... \stopuseMPgraphic

[NTG-context] [NTG-Context] MetaPost capacity exceeded.

2012-11-15 Thread Alan BRASLAU
! MetaPost capacity exceeded, sorry [expansion depth=1]. I have come across this error previously with run-away \dorecurse loops I now have this message with a document that makes VERY heavy use of MetaPost; I just have too many figures. Is there some way to flush the running instance

Re: [NTG-context] [NTG-Context] MetaPost capacity exceeded.

2012-11-15 Thread Hans Hagen
On 11/15/2012 12:27 PM, Alan BRASLAU wrote: ! MetaPost capacity exceeded, sorry [expansion depth=1]. this normally points to an error in mp code, not to instances I have come across this error previously with run-away \dorecurse loops I now have this message with a document that makes

Re: [NTG-context] metapost dashpattern (on 1) not shown in Mountain Lion Preview

2012-09-25 Thread Mojca Miklavec
after upgrading to Mountain Lion. I had to change the dash pattern in file metapost/context/third/gnuplot/mp-gnuplot.mp, so the pdf generated by gnuplot context term can be viewed correctly with Preview under Mountain Lion. What modifications did you do exactly? It seems that (on 1cm

Re: [NTG-context] metapost dashpattern (on 1) not shown in Mountain Lion Preview

2012-09-25 Thread Xiao-Yong Jin
is displayed correctly in Acrobat Reader. Awesome ;) Just curious: what do you get if you try to draw the same plots with PostScript terminal in gnuplot? The PostScript terminal in gnuplot works fine. However, if I wrap the metapost code in my previous message with begin/endfig and run

[NTG-context] metapost dashpattern (on 1) not shown in Mountain Lion Preview

2012-09-24 Thread Xiao-Yong Jin
ll the pdf files I previously generated with gnuplot context term are showing up incorrectly under the Preview after upgrading to Mountain Lion. I had to change the dash pattern in file "metapost/context/third/gnuplot/mp-gnuplot.mp", so the pdf generated by gnuplot context term can be viewed co

[NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
When I create animations using MetaPost, I typically do something like for n=1 upto N: beginfig(n); some code endfig; endfor; and a sequence of figures are created. How can I do this in ConTeXt using \startMPpage ... \stopMPpage? Troy Henderson

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
On Sun, 9 Sep 2012, Troy Henderson wrote: When I create animations using MetaPost, I typically do something like for n=1 upto N: beginfig(n); some code endfig; endfor; and a sequence of figures are created. How can I do this in ConTeXt using \startMPpage ... \stopMPpage? (untested

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
That works great. Now I have defined a global numeric N:=8; in \startMPinclusions ... \stopMPinclusions at the be beginning of my document. All of my \startMPpage ... \stopMPpage environments understand this N, but how do I reference this value as the start value for \dostepwiserecurse? That

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
That works great. Now I have defined a global numeric N:=8; in \startMPinclusions ... \stopMPinclusions at the be beginning of my document. All of my \startMPpage ... \stopMPpage environments understand this N, but how do I reference this value as the start value for \dostepwiserecurse? That

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
label(decimal(n),origin); Sorry. I found the answer by wrapping the decimal() inside textext(). That is, label(textext(decimal(n)),origin); does what I want. Troy ___ If your question is of interest to others

[NTG-context] Standalone MetaPost Graphics from ConTeXt

2012-08-30 Thread Troy Henderson
Is there a way to output several MetaPost PDF graphics from a single ConTeXt source file. For example, \startMPpage draw fullcircle scaled 72; \stopMPpage \startMPpage draw unitsquare scaled 72; \stopMPpage and have a separate output PDF generated for each MPpage? It seems

Re: [NTG-context] Standalone MetaPost Graphics from ConTeXt

2012-08-30 Thread luigi scarso
On Thu, Aug 30, 2012 at 10:57 PM, Troy Henderson thend...@gmail.com wrote: Is there a way to output several MetaPost PDF graphics from a single ConTeXt source file. For example, \startMPpage draw fullcircle scaled 72; \stopMPpage \startMPpage draw unitsquare scaled 72; \stopMPpage

Re: [NTG-context] Standalone MetaPost Graphics from ConTeXt

2012-08-30 Thread Aditya Mahajan
On Thu, 30 Aug 2012, Troy Henderson wrote: Is there a way to output several MetaPost PDF graphics from a single ConTeXt source file. For example, \starttext \startMPpage draw fullcircle scaled 72; \stopMPpage \startMPpage draw unitsquare scaled 72; \stopMPpage \stoptext and have

Re: [NTG-context] Standalone MetaPost Graphics from ConTeXt

2012-08-30 Thread Troy Henderson
Thank you both! Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

Re: [NTG-context] MetaPost Page height

2012-08-19 Thread Hans Hagen
On 18-8-2012 14:18, Troy Henderson wrote: The follow code produces a PDF whose page height is too large (i.e., is not tight enough around the graphic). How can I get this the height to be as tight as the width? \startMPpage bboxmargin:=0; label(btex foo etex,origin); \stopMPpage

Re: [NTG-context] MetaPost Page height

2012-08-19 Thread Troy Henderson
Thanks Hans. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl

[NTG-context] MetaPost Page height

2012-08-18 Thread Troy Henderson
The follow code produces a PDF whose page height is too large (i.e., is not tight enough around the graphic). How can I get this the height to be as tight as the width? \startMPpage bboxmargin:=0; label(btex foo etex,origin); \stopMPpage Thanks in advance, Troy Henderson

Re: [NTG-context] [metapost] MetaPost transformation

2012-05-31 Thread Dan Luecking
At 07:56 PM 5/30/2012, Troy Henderson wrote: Well then in case anyone needs such a transformation, I've constructed the (non-unique) transformation T t:=angle(f,e); q:=e++f; p:=(c*f-d*e)/q; s:=(c*e+d*f)/(q**2); transform T; T:=identity rotated t xscaled p yscaled q slanted s shifted

Re: [NTG-context] MetaPost transformation

2012-05-31 Thread Albrecht Kauffmann
Hello Troy, if you declare a transform variable (e.g., t), it works: transform t; t := identity rotated 270 yscaled 0.5; show identity transformed t; (0,0,0,1,-0.5,0) Greetings Albrecht On Wed, 30 May 2012, Troy Henderson wrote: I've encountered a MetaPost issue, and since many MetaPost

Re: [NTG-context] MetaPost transformation

2012-05-31 Thread Troy Henderson
Albrecht, The issue was to be able to define the transform t using its six components. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] MetaPost transformation

2012-05-30 Thread Troy Henderson
I've encountered a MetaPost issue, and since many MetaPost users also use ConTeXt (and vice-versa), I am posting this question on both lists. The command show identity rotated 270 yscaled 0.5; outputs (0,0,0,1,-0.5,0) as expected, while the command show identity transformed (0,0,0,1,-0.5,0

Re: [NTG-context] MetaPost transformation

2012-05-30 Thread Hans Hagen
On 30-5-2012 23:10, Troy Henderson wrote: I've encountered a MetaPost issue, and since many MetaPost users also use ConTeXt (and vice-versa), I am posting this question on both lists. The command show identity rotated 270 yscaled 0.5; outputs (0,0,0,1,-0.5,0) as expected, while

Re: [NTG-context] MetaPost transformation

2012-05-30 Thread Troy Henderson
Well then in case anyone needs such a transformation, I've constructed the (non-unique) transformation T t:=angle(f,e); q:=e++f; p:=(c*f-d*e)/q; s:=(c*e+d*f)/(q**2); transform T; T:=identity rotated t xscaled p yscaled q slanted s shifted (a,b); This yields T=(a,b,c,d,e,f). Troy

Re: [NTG-context] [metapost] MetaPost transformation

2012-05-30 Thread Troy Henderson
Thanks Dan. This is much better than what I was doing. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Font for MetaPost graphics

2012-05-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, many thanks Marco for wikifying. On Tue, 08 May 2012 21:57:04 +0200, Marco net...@lavabit.com wrote: Thanks a lot Hans for implementing this. Wikified: http://wiki.contextgarden.net/Command/defineMPinstance http://wiki.contextgarden.net/Command/setupMPinstance Best wishes Marco

Re: [NTG-context] Font for MetaPost graphics

2012-05-10 Thread Marco
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: With the permission, I tried to replace the tag texcode with context to get source and result. context mode=mkiv source=yes text=Gives: ... /context Unfortunately, the result doesn't appear. The code is MkIV

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
On 2012-05-05 Hans Hagen pra...@wxs.nl wrote: This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext(some text) ; \stopMPcode \startMPcode{mympinstance} draw textext(some text) ; \stopMPcode \stoptext Marco

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Hans Hagen
On 8-5-2012 19:01, Marco wrote: On 2012-05-05 Hans Hagenpra...@wxs.nl wrote: Did I? This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext(some text) ; \stopMPcode \startMPcode{mympinstance} draw textext(some

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
}{/home/zewz/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /home/zewz/context

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Hans Hagen
On 8-5-2012 19:19, Marco wrote: On 2012-05-08 Hans Hagenpra...@wxs.nl wrote: On 8-5-2012 19:01, Marco wrote: On 2012-05-05 Hans Hagenpra...@wxs.nl wrote: Did I? My bad ;) This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
On 2012-05-08 Hans Hagen pra...@wxs.nl wrote: ok, can you add this to cont-new.mkiv (after \unprotect): \def\m_meta_colo_initializations{% vardef OverlayLineColor=\MPcolor{\overlaylinecolor} enddef; vardef OverlayColor=\MPcolor{\overlaycolor} enddef; } That works. As I've used

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-07 Thread Mari Voipio
for fun nor for my tiny craft business as that one is concentrated on the pre-steam era. However, I'm planning to use MetaPost to create blackwork charts, I've got the feeling that it'll give me neater results than any existing software. And I won't be stuck with one OS, either. :-) Mari

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
On Mon, Apr 23, 2012 at 9:04 PM, Hans Hagen pra...@wxs.nl wrote: beware, metapost is addictive once you get better in it, It is. :-) This one is to both you and Peter, because your snippets together helped me adjust from WYSIWYG vector graphics to MetaPost - not that I'm that far yet, but I

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
PS. I got this link from a friend who'd struggled with an event registration system, but it SO applies to my MetaPost project: http://www.howtogeek.com/102420/geeks-versus-non-geeks-when-doing-repetitive-tasks-funny-chart/ (Scary, I seem to count as geeknow

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread luigi scarso
On Sun, May 6, 2012 at 10:53 AM, Mari Voipio mari.voi...@iki.fi wrote: http://www.lucet.fi/textiles/ ConTeXt, developed by the Dutch company Pragma Advanced Document Engineering, is not open source software, Hm, I'm not sure that it's correct. -- luigi

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Wolfgang Schuster
Am 06.05.2012 um 11:16 schrieb luigi scarso: On Sun, May 6, 2012 at 10:53 AM, Mari Voipio mari.voi...@iki.fi wrote: http://www.lucet.fi/textiles/ ConTeXt, developed by the Dutch company Pragma Advanced Document Engineering, is not open source software, Hm, I'm not sure that it's

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread luigi scarso
On Sun, May 6, 2012 at 11:56 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 06.05.2012 um 11:16 schrieb luigi scarso: On Sun, May 6, 2012 at 10:53 AM, Mari Voipio mari.voi...@iki.fi wrote: http://www.lucet.fi/textiles/ ConTeXt, developed by the Dutch company Pragma

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Pontus Lurcock
On Sun 06 May 2012, Wolfgang Schuster wrote: Am 06.05.2012 um 11:16 schrieb luigi scarso: On Sun, May 6, 2012 at 10:53 AM, Mari Voipio mari.voi...@iki.fi wrote: http://www.lucet.fi/textiles/ ConTeXt, developed by the Dutch company Pragma Advanced Document Engineering, is not open

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Hans Hagen
On 6-5-2012 13:33, Pontus Lurcock wrote: On Sun 06 May 2012, Wolfgang Schuster wrote: Am 06.05.2012 um 11:16 schrieb luigi scarso: On Sun, May 6, 2012 at 10:53 AM, Mari Voipiomari.voi...@iki.fi wrote: http://www.lucet.fi/textiles/ ConTeXt, developed by the Dutch company Pragma Advanced

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Martin Schröder
2012/5/6 Hans Hagen pra...@wxs.nl: (btw, I always wonder if the gpl restrictions also apply to the makers too ... i.e. if I extend context for a project should I then also make those extensions public ... quite a hassle if that would be true.) The copyright holders are free to use any license.

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Hans Hagen
On 6-5-2012 14:53, Martin Schröder wrote: 2012/5/6 Hans Hagenpra...@wxs.nl: (btw, I always wonder if the gpl restrictions also apply to the makers too ... i.e. if I extend context for a project should I then also make those extensions public ... quite a hassle if that would be true.) The

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
On Sun, May 6, 2012 at 3:47 PM, Hans Hagen pra...@wxs.nl wrote: http://www.lucet.fi/textiles/ Best change that in: ConTeXt, developed by the Dutch company Pragma Advanced Document Engineering, is open source software and avaliable as stand alone distribution (www.contextgarden.net) and is

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
for MetaPost since MetaPost did its own processing of labels and MetaPost didn't see the ConTeXt font setups. So it was difficult to convince MetaPost to use the same font. I agree, it's a big step forward towards usability and consistency to have MetaPost automatically inherit ConTeXts

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
On 4-5-2012 09:13, Aditya Mahajan wrote: On Fri, 4 May 2012, Mojca Miklavec wrote: I can think of many workarounds to this, but I agree that there is a valid reason why \startMPenvironment (or some other command) should be able to change the font inside metapost labels only. A better

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Marco
On 2012-05-05 Hans Hagen pra...@wxs.nl wrote: That means, MPenvironment will be dropped, right? But what is the new interface, \setupMPtext or MPinstance? +1 Marco So .. we know who is going to wikify this ... You're welcome :) Marco

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Aditya Mahajan
On Sat, 5 May 2012, Marco wrote: On 2012-05-05 Hans Hagen pra...@wxs.nl wrote: That means, MPenvironment will be dropped, right? But what is the new interface, \setupMPtext or MPinstance? \setupMPinstance The advantage is that you can have multiple instances in parallel. Aditya

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Mojca Miklavec
On Thu, May 3, 2012 at 3:13 AM, Marco wrote: The text in Metapost adapts to the text set in ConTeXt. But the font setup should *only* be set for MetaPost, not regular text. Does that mean, that MPenvironment is deprecated and does not work at all? Please don't rely on my answer since I

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Aditya Mahajan
On Fri, 4 May 2012, Mojca Miklavec wrote: I can think of many workarounds to this, but I agree that there is a valid reason why \startMPenvironment (or some other command) should be able to change the font inside metapost labels only. A better alternative would to define \setupMPtext

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Marco
On 2012-05-04 Aditya Mahajan adit...@umich.edu wrote: On Fri, 4 May 2012, Mojca Miklavec wrote: But my guess is that the argument goes into the opposite way. I past (and still in MKII) one *had to* set up fonts twice - once for the main document and once for MetaPost since MetaPost

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