From fangqq at gmail.com Sat Feb 4 05:44:11 2012 From: fangqq at gmail.com (Qianqian Fang) Date: Fri, 03 Feb 2012 23:44:11 -0500 Subject: [metapost] draw a single-stroke curve Message-ID: <4F2CB79B.6000307@gmail.com> hi list I want to produce a single-stroke curve in metapost and import to fontforge, a vector font editor. I used the "draw" command and output to a ps file, then import the ps file to fontforge. I realize that, even I set the pen width to 0, the imported ps graph is always an outline object: every stroke is a thin closed contour. what command I should use in metapost to produce a ps file that can have single-stroke one-directional curves? thanks Qianqian From luigi.scarso at gmail.com Sat Feb 4 23:27:11 2012 From: luigi.scarso at gmail.com (luigi scarso) Date: Sat, 4 Feb 2012 23:27:11 +0100 Subject: [metapost] draw a single-stroke curve In-Reply-To: <4F2CB79B.6000307@gmail.com> References: <4F2CB79B.6000307@gmail.com> Message-ID: On Sat, Feb 4, 2012 at 5:44 AM, Qianqian Fang wrote: > hi list > > I want to produce a single-stroke curve in > metapost and import to fontforge, a vector > font editor. > > I used the "draw" command and output to > a ps file, then import the ps file to fontforge. > I realize that, even I set the pen width to 0, the > imported ps graph is always an outline object: > every stroke is a thin closed contour. > > what command I should use in metapost to > produce a ps file that can have single-stroke > one-directional curves? What about svg export ? -- luigi From reinhard.kotucha at web.de Sun Feb 5 00:14:15 2012 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Sun, 5 Feb 2012 00:14:15 +0100 Subject: [metapost] draw a single-stroke curve In-Reply-To: <4F2CB79B.6000307@gmail.com> References: <4F2CB79B.6000307@gmail.com> Message-ID: <20269.48071.465362.416028@zaphod.ms25.net> On 2012-02-03 at 23:44:11 -0500, Qianqian Fang wrote: > hi list > > I want to produce a single-stroke curve in > metapost and import to fontforge, a vector > font editor. > > I used the "draw" command and output to > a ps file, then import the ps file to fontforge. > I realize that, even I set the pen width to 0, the > imported ps graph is always an outline object: > every stroke is a thin closed contour. You can't use arbitrary PostScript code in fonts. Fonts always require outlines. Seems that FontForge does exactly the right thing. Without this conversion FontForge cannot create fonts. I wasn't aware that FontForge supports this conversion, I always thought that it's only supported by MetaType1. But good to know. Or do you intend to create a Type 3 font? In this case you have to configure FontForge accordingly. Don't know whether it's supported. Maybe you could tell us what you want to achieve finally. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From fangqq at gmail.com Sun Feb 5 01:16:48 2012 From: fangqq at gmail.com (Qianqian Fang) Date: Sat, 04 Feb 2012 19:16:48 -0500 Subject: [metapost] draw a single-stroke curve In-Reply-To: <20269.48071.465362.416028@zaphod.ms25.net> References: <4F2CB79B.6000307@gmail.com> <20269.48071.465362.416028@zaphod.ms25.net> Message-ID: <4F2DCA70.7060304@gmail.com> On 02/04/2012 06:14 PM, Reinhard Kotucha wrote: > On 2012-02-03 at 23:44:11 -0500, Qianqian Fang wrote: > > > hi list > > > > I want to produce a single-stroke curve in > > metapost and import to fontforge, a vector > > font editor. > > > > I used the "draw" command and output to > > a ps file, then import the ps file to fontforge. > > I realize that, even I set the pen width to 0, the > > imported ps graph is always an outline object: > > every stroke is a thin closed contour. > > You can't use arbitrary PostScript code in fonts. Fonts always > require outlines. Seems that FontForge does exactly the right thing. > Without this conversion FontForge cannot create fonts. hi Reinhard In fontforge, you can draw a non-closed curve, and save it to SVG or SFD files. But it seems that you can not create these non-closed splines by importing. Because it always expand a spline object to outlines with certain width. > I wasn't aware that FontForge supports this conversion, I always > thought that it's only supported by MetaType1. But good to know. > > Or do you intend to create a Type 3 font? In this case you have to > configure FontForge accordingly. Don't know whether it's supported. I want to create a "stroke" font indeed. Does a Type 3 font support stroke (center lines only)? Any tools you can create this types of fonts using the *.ps files created by metapost? thanks Qianqian > > Maybe you could tell us what you want to achieve finally. > > Regards, > Reinhard > From luecking at uark.edu Sun Feb 5 08:23:03 2012 From: luecking at uark.edu (Dan Luecking) Date: Sun, 05 Feb 2012 01:23:03 -0600 Subject: [metapost] draw a single-stroke curve In-Reply-To: <4F2CB79B.6000307@gmail.com> References: <4F2CB79B.6000307@gmail.com> Message-ID: <201202050723.q157N3dQ016989@comp.uark.edu> At 10:44 PM 2/3/2012, you wrote: >hi list > >I want to produce a single-stroke curve in >metapost and import to fontforge, a vector >font editor. > >I used the "draw" command and output to >a ps file, then import the ps file to fontforge. >I realize that, even I set the pen width to 0, the >imported ps graph is always an outline object: >every stroke is a thin closed contour. > >what command I should use in metapost to >produce a ps file that can have single-stroke >one-directional curves? I can't tell what you want. If you want a penstroke to be visible, you can't set its width to 0. If you set the width to 0, then you need to make a closed contour and use the "fill" command, not "draw". If you want the effect of a calligrapher's penstroke, metapost has a "penpos" command to determine a shape followed by a "penstroke" command to produce that shape. Despite the name, "penstroke" actually outputs a filled contour emulating the sroke of a calligrapher's pen. It would be useful to see an example of what you are doing (i.e., the actual metapost code) to produce a picture of a "single-stroke, one-directional curve". Dan Daniel H. Luecking Department of Mathematical Sciences Fayetteville, Arkansas http://www-cs-faculty.stanford.edu/~knuth/iaq.html From luigi.scarso at gmail.com Sun Feb 5 09:54:17 2012 From: luigi.scarso at gmail.com (luigi scarso) Date: Sun, 5 Feb 2012 09:54:17 +0100 Subject: [metapost] draw a single-stroke curve In-Reply-To: <201202050723.q157N3dQ016989@comp.uark.edu> References: <4F2CB79B.6000307@gmail.com> <201202050723.q157N3dQ016989@comp.uark.edu> Message-ID: On Sun, Feb 5, 2012 at 8:23 AM, Dan Luecking wrote: > At 10:44 PM 2/3/2012, you wrote: >> >> hi list >> >> I want to produce a single-stroke curve in >> metapost and import to fontforge, a vector >> font editor. >> >> I used the "draw" command and output to >> a ps file, then import the ps file to fontforge. >> I realize that, even I set the pen width to 0, the >> imported ps graph is always an outline object: >> every stroke is a thin closed contour. >> >> what command I should use in metapost to >> produce a ps file that can have single-stroke >> one-directional curves? > > > I can't tell what you want. If you want a penstroke > to be visible, you can't set its width to 0. If you > set the width to 0, then you need to make a closed > contour and use the "fill" command, not "draw". > > If you want the effect of a calligrapher's penstroke, > metapost has a "penpos" command to determine a shape > followed by a "penstroke" command to produce that shape. > Despite the name, "penstroke" actually outputs a filled > contour emulating the sroke of a calligrapher's pen. > > It would be useful to see an example of what you are doing > (i.e., the actual metapost code) to produce a picture of a > "single-stroke, one-directional curve". > > Dan > > > Daniel H. Luecking > Department of Mathematical Sciences > Fayetteville, Arkansas > http://www-cs-faculty.stanford.edu/~knuth/iaq.html > -- > http://tug.org/metapost/ With this code %%%%%%% outputformat:="eps"; outputtemplate:="%j-%c.eps"; beginfig(1); pickup pencircle scaled 2pt; draw (100,0) .. (0,100) .. (-100,0) .. (0,-100) ..cycle shifted (100,100); endfig; end %%%%%%% fontforge show the pen effect (and it's also slow) With this one %%%%%%%%% outputformat:="svg"; outputtemplate:="%j-%c.svg"; beginfig(1); pickup pencircle scaled 2pt; draw (100,0) .. (0,100) .. (-100,0) .. (0,-100) ..cycle shifted (100,100); endfig; end %%%%%%%%% the pen effect disappear. -- luigi From fangqq at gmail.com Sun Feb 5 17:36:04 2012 From: fangqq at gmail.com (Qianqian Fang) Date: Sun, 05 Feb 2012 11:36:04 -0500 Subject: [metapost] draw a single-stroke curve In-Reply-To: References: <4F2CB79B.6000307@gmail.com> Message-ID: <4F2EAFF4.9040707@gmail.com> On 02/04/2012 05:27 PM, luigi scarso wrote: > What about svg export ? excellent suggestion! I tried an eps2svg script found online, and the result is exactly what I need. The "stroke-expand-to-contour" issue I mentioned in the first post was indeed a pstoedit/fontforge issue. thanks for the input Qianqian From luigi.scarso at gmail.com Sun Feb 5 18:44:44 2012 From: luigi.scarso at gmail.com (luigi scarso) Date: Sun, 5 Feb 2012 18:44:44 +0100 Subject: [metapost] draw a single-stroke curve In-Reply-To: <4F2EAFF4.9040707@gmail.com> References: <4F2CB79B.6000307@gmail.com> <4F2EAFF4.9040707@gmail.com> Message-ID: On Sun, Feb 5, 2012 at 5:36 PM, Qianqian Fang wrote: > On 02/04/2012 05:27 PM, luigi scarso wrote: >> >> What about svg export ? > > > excellent suggestion! I tried an eps2svg script found > online, and the result is exactly what I need. > > The "stroke-expand-to-contour" issue I mentioned > in the first post was indeed a pstoedit/fontforge issue. > > thanks for the input you can also use metapost to output svg with outputformat:="svg"; outputtemplate:="%j-%c.svg"; beginfig(1); pickup pencircle scaled 2pt; draw (100,0) .. (0,100) .. (-100,0) .. (0,-100) ..cycle shifted (100,100); endfig; end -- luigi From varphi625-x at yahoo.com.mx Tue Feb 7 17:33:15 2012 From: varphi625-x at yahoo.com.mx (Carlos Mallen) Date: Tue, 7 Feb 2012 08:33:15 -0800 (PST) Subject: [metapost] Problem using LaTeX in MetaPost Message-ID: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> Hi, I'm using MiKTeX version 2.9 and MetaPost version 1.504. I'm no longer able to use LaTeX in MetaPost. The file verbatimtex %&latex \documentclass{article} \begin{document} etex input latexMP; filenametemplate "%j-%3c.mps"; beginfig(1); ? draw (0, 0)--(150, 150); ? label(btex $A$ etex, (0, 0)); ? show mpversion; endfig; verbatimtex \end{document} etex end fails because LaTeX commands aren't recognized. The error file is This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex 2012.2.7)? 7 FEB 2012 10:28 **mp632087.tex (C:\Personal\MetaPost-Manual\1.005\Graphics\mp632087.tex ! Undefined control sequence. l.2 \documentclass ????????????????? {article} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. l.3 \begin ????????? {document} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. [1] [1] ) Output written on mp632087.dvi (2 pages, 340 bytes). What should I do? ? Carlos Mall?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From akk64 at quick.cz Tue Feb 7 19:06:12 2012 From: akk64 at quick.cz (Karel) Date: Tue, 07 Feb 2012 19:06:12 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> Message-ID: <4F316814.9090301@quick.cz> Carlos Mallen napsal(a): > Hi, > > I'm using MiKTeX version 2.9 and MetaPost version 1.504. I'm no longer > able to use LaTeX in MetaPost. The file > > verbatimtex > %&latex > \documentclass{article} > \begin{document} > etex > > input latexMP; > > filenametemplate "%j-%3c.mps"; > > beginfig(1); > > draw (0, 0)--(150, 150); > label(btex $A$ etex, (0, 0)); > show mpversion; > > endfig; > > verbatimtex > \end{document} > etex > > end > > fails because LaTeX commands aren't recognized. The error file is > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex > 2012.2.7) 7 FEB 2012 10:28 > **mp632087.tex > (C:\Personal\MetaPost-Manual\1.005\Graphics\mp632087.tex > ! Undefined control sequence. > l.2 \documentclass > {article} > The control sequence at the end of the top line > of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type `I' and the correct > spelling (e.g., `I\hbox'). Otherwise just continue, > and I'll forget about whatever was undefined. > > ! Undefined control sequence. > l.3 \begin > {document} > The control sequence at the end of the top line > of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type `I' and the correct > spelling (e.g., `I\hbox'). Otherwise just continue, > and I'll forget about whatever was undefined. > > [1] [1] ) > Output written on mp632087.dvi (2 pages, 340 bytes). > > What should I do? > Maybe version 1.504 of MP does not write the texfile correctly. Try to look in the corresponding file (you will find its name in the log file), if %&latex would not be at the first line, then perhaps try to find older MikTeX version of MP (1.212 works fine, I hope). Karel Horak From yogeshwarsing.calleecharan at ltu.se Tue Feb 7 20:14:02 2012 From: yogeshwarsing.calleecharan at ltu.se (Yogeshwarsing Calleecharan) Date: Tue, 07 Feb 2012 20:14:02 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <4F316814.9090301@quick.cz> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> Message-ID: <4F3177FA.6040004@ltu.se> You can always switch to TeXLive which works very well on Windows. Best Regards, Y.Calleecharan On 2/7/2012 7:06 PM, Karel wrote: > Carlos Mallen napsal(a): >> Hi, >> >> I'm using MiKTeX version 2.9 and MetaPost version 1.504. I'm no longer >> able to use LaTeX in MetaPost. The file >> >> verbatimtex >> %&latex >> \documentclass{article} >> \begin{document} >> etex >> >> input latexMP; >> >> filenametemplate "%j-%3c.mps"; >> >> beginfig(1); >> >> draw (0, 0)--(150, 150); >> label(btex $A$ etex, (0, 0)); >> show mpversion; >> >> endfig; >> >> verbatimtex >> \end{document} >> etex >> >> end >> >> fails because LaTeX commands aren't recognized. The error file is >> >> This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex >> 2012.2.7) 7 FEB 2012 10:28 >> **mp632087.tex >> (C:\Personal\MetaPost-Manual\1.005\Graphics\mp632087.tex >> ! Undefined control sequence. >> l.2 \documentclass >> {article} >> The control sequence at the end of the top line >> of your error message was never \def'ed. If you have >> misspelled it (e.g., `\hobx'), type `I' and the correct >> spelling (e.g., `I\hbox'). Otherwise just continue, >> and I'll forget about whatever was undefined. >> >> ! Undefined control sequence. >> l.3 \begin >> {document} >> The control sequence at the end of the top line >> of your error message was never \def'ed. If you have >> misspelled it (e.g., `\hobx'), type `I' and the correct >> spelling (e.g., `I\hbox'). Otherwise just continue, >> and I'll forget about whatever was undefined. >> >> [1] [1] ) >> Output written on mp632087.dvi (2 pages, 340 bytes). >> >> What should I do? >> > Maybe version 1.504 of MP does not write the texfile correctly. > Try to look in the corresponding file (you will find its name in > the log file), if %&latex would not be at the first line, then > perhaps try to find older MikTeX version of MP (1.212 works fine, > I hope). > Karel Horak > > > -- > http://tug.org/metapost/ From reinhard.kotucha at web.de Tue Feb 7 20:44:21 2012 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Tue, 7 Feb 2012 20:44:21 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <4F316814.9090301@quick.cz> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> Message-ID: <20273.32533.436217.147082@zaphod.ms25.net> On 2012-02-07 at 19:06:12 +0100, Karel wrote: > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex > > 2012.2.7) 7 FEB 2012 10:28 > > **mp632087.tex > Maybe version 1.504 of MP does not write the texfile correctly. > Try to look in the corresponding file (you will find its name in > the log file), if %&latex would not be at the first line, then > perhaps try to find older MikTeX version of MP (1.212 works fine, > I hope). Which program actually evaluates the %&latex line? > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex > > 2012.2.7) 7 FEB 2012 10:28 > > **mp632087.tex This is obviously Knuth's TeX but the LaTeX format requires pdftex. I don't think the %&latex line can work here. A better solution is to make etex the default engine. It's built upon pdftex too. In TeX Live etex is the default engine indeed. When I remove the %&latex line, I get This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=etex 2012.1.16) 7 FEB 2012 20:39 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **mpyty8eE.tex (./mpyty8eE.tex ! Undefined control sequence. l.1 \documentclass {article} So it's a bug in MiKTeX. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From varphi625-x at yahoo.com.mx Tue Feb 7 20:53:10 2012 From: varphi625-x at yahoo.com.mx (Carlos Mallen) Date: Tue, 7 Feb 2012 11:53:10 -0800 (PST) Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <20273.32533.436217.147082@zaphod.ms25.net> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> <20273.32533.436217.147082@zaphod.ms25.net> Message-ID: <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> Hi, If I understand correctly, this means that I won't be able to use LaTeX in MetaPost, right? At least not with MiKTeX 2.9. Kind regards, ? Carlos Mall?n ________________________________ From: Reinhard Kotucha To: Karel Cc: Carlos Mallen ; "metapost at tug.org" Sent: Tuesday, February 7, 2012 1:44 PM Subject: Re: [metapost] Problem using LaTeX in MetaPost On 2012-02-07 at 19:06:12 +0100, Karel wrote: > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex > > 2012.2.7)? 7 FEB 2012 10:28 > > **mp632087.tex > Maybe version 1.504 of MP does not write the texfile correctly. > Try to look in the corresponding file (you will find its name in > the log file), if %&latex would not be at the first line, then > perhaps try to find older MikTeX version of MP (1.212 works fine, > I hope). Which program actually evaluates the %&latex line? > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex > > 2012.2.7)? 7 FEB 2012 10:28 > > **mp632087.tex This is obviously Knuth's TeX but the LaTeX format requires pdftex.? I don't think the %&latex line can work here.? A better solution is to make etex the default engine.? It's built upon pdftex too. In TeX Live etex is the default engine indeed.? When I remove the %&latex line, I get This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=etex 2012.1.16)? 7 FEB 2012 20:39 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **mpyty8eE.tex (./mpyty8eE.tex ! Undefined control sequence. l.1 \documentclass ? ? ? ? ? ? ? ? ? {article} So it's a bug in MiKTeX. Regards, ? Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover? ? ? ? ? ? ? ? ? ? ? ? ? ? ? mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinhard.kotucha at web.de Tue Feb 7 21:19:37 2012 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Tue, 7 Feb 2012 21:19:37 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> <20273.32533.436217.147082@zaphod.ms25.net> <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> Message-ID: <20273.34649.924439.689599@zaphod.ms25.net> On 2012-02-07 at 11:53:10 -0800, Carlos Mallen wrote: > Hi, > > If I understand correctly, this means that I won't be able to use > LaTeX in MetaPost, right? At least not with MiKTeX 2.9. You can probably use it with the command line option --tex=latex. This tells mpost which engine to use _before_ it reads its input file. If this works, it might be worthwhile to file a bug report to the MiKTeX maintaner(s). Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From varphi625-x at yahoo.com.mx Tue Feb 7 22:09:21 2012 From: varphi625-x at yahoo.com.mx (Carlos Mallen) Date: Tue, 7 Feb 2012 13:09:21 -0800 (PST) Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <20273.34649.924439.689599@zaphod.ms25.net> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> <20273.32533.436217.147082@zaphod.ms25.net> <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> <20273.34649.924439.689599@zaphod.ms25.net> Message-ID: <1328648961.24444.YahooMailNeo@web30406.mail.mud.yahoo.com> Using this option, the file compiles OK, but YAP fails to display the picture after using TeX mproof. The error message is this: MiKTeX Problem Report Message: Some PostScript specials could not be rendered. Data: Error: /undefined in cmmi10 Operand stack: ?? --nostringval--?? PermitFileReading?? --nostringval--?? PermitFileWriting?? --nostringval--?? (A) Execution stack: ?? %interp_exit?? .runexec2?? --nostringval--?? --nostringval--?? --nostringval--?? 2?? %stopped_push?? --nostringval--?? --nostringval--?? --nostringval--?? false?? 1?? %stopped_push?? 1914?? 1?? 3?? %oparray_pop?? 1913?? 1?? 3?? %oparray_pop?? 1897?? 1?? 3?? %oparray_pop?? 1787?? 1?? 3?? %oparray_pop?? --nostringval--?? %errorexec_pop?? .runexec2?? --nostringval--?? --nostringval--?? --nostringval--?? 2?? %stopped_push?? --nostringval-- Dictionary stack: ?? --dict:1166/1684(ro)(G)--?? --dict:0/20(G)--?? --dict:78/200(L)--?? --dict:95/300(L)--?? --dict:42/200(L)-- Current allocation mode is local MiKTeX GPL Ghostscript? 9.00: Unrecoverable error, exit code 1 Source: Libraries\MiKTeX\Dvi\Ghostscript.cpp Line: 372 MiKTeX: 2.9 OS: Microsoft Windows XP Professional Service Pack 3 (build 2600) Invokers: explorer/cmd SystemAdmin: yes PowerUser: no Root0: C:\Documents and Settings\OSY98\Application Data\MiKTeX\2.9 Root1: C:\Documents and Settings\OSY98\Local Settings\Application Data\MiKTeX\2.9 Root2: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.9 Root3: C:\Program Files\MiKTeX 2.9 UserInstall: C:\Documents and Settings\OSY98\Application Data\MiKTeX\2.9 UserConfig: C:\Documents and Settings\OSY98\Application Data\MiKTeX\2.9 UserData: C:\Documents and Settings\OSY98\Local Settings\Application Data\MiKTeX\2.9 CommonInstall: C:\Program Files\MiKTeX 2.9 CommonConfig: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.9 CommonData: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.9 Thanks a lot for your time. Carlos Mall?n ________________________________ From: Reinhard Kotucha To: Carlos Mallen Cc: "reinhard.kotucha at web.de" ; Karel ; "metapost at tug.org" Sent: Tuesday, February 7, 2012 2:19 PM Subject: Re: [metapost] Problem using LaTeX in MetaPost On 2012-02-07 at 11:53:10 -0800, Carlos Mallen wrote: > Hi, > > If I understand correctly, this means that I won't be able to use > LaTeX in MetaPost, right? At least not with MiKTeX 2.9. You can probably use it with the command line option --tex=latex. This tells mpost which engine to use _before_ it reads its input file. If this works, it might be worthwhile to file a bug report to the MiKTeX maintaner(s). Regards, ? Reinhard? -- ---------------------------------------------------------------------------- Reinhard Kotucha? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover? ? ? ? ? ? ? ? ? ? ? ? ? ? ? mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinhard.kotucha at web.de Tue Feb 7 22:50:31 2012 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Tue, 7 Feb 2012 22:50:31 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <1328648961.24444.YahooMailNeo@web30406.mail.mud.yahoo.com> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> <20273.32533.436217.147082@zaphod.ms25.net> <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> <20273.34649.924439.689599@zaphod.ms25.net> <1328648961.24444.YahooMailNeo@web30406.mail.mud.yahoo.com> Message-ID: <20273.40103.914749.515085@zaphod.ms25.net> On 2012-02-07 at 13:09:21 -0800, Carlos Mallen wrote: > Using this option, the file compiles OK, but YAP fails to display > the picture after using TeX mproof. The error message is this: > > MiKTeX Problem Report > Message: Some PostScript specials could not be rendered. > Data: Error: /undefined in cmmi10 It means that Ghostcript can't find the font cmmi10. I suspect that you have to set the prologues variable appropriately in your .mp file so that dvips can find and insert the fonts from the texmf tree. Ghostscript itself isn't aware of them. > MiKTeX GPL Ghostscript 9.00: Unrecoverable error, exit code 1 BTW, TeX Live skipped version 9.00 due to a bug in color handling which was fixed in version 9.04. Maybe TeX Live is the better choice indeed, as Yogeshwarsing proposed. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From petiard.francois at free.fr Thu Feb 9 08:45:14 2012 From: petiard.francois at free.fr (=?ISO-8859-1?Q?P=E9tiard_Fran=E7ois?=) Date: Thu, 09 Feb 2012 08:45:14 +0100 Subject: [metapost] Problem using LaTeX in MetaPost In-Reply-To: <1328648961.24444.YahooMailNeo@web30406.mail.mud.yahoo.com> References: <1328632395.57703.YahooMailNeo@web30407.mail.mud.yahoo.com> <4F316814.9090301@quick.cz> <20273.32533.436217.147082@zaphod.ms25.net> <1328644390.37812.YahooMailNeo@web30404.mail.mud.yahoo.com> <20273.34649.924439.689599@zaphod.ms25.net> <1328648961.24444.YahooMailNeo@web30406.mail.mud.yahoo.com> Message-ID: <4F33798A.3030102@free.fr> Le 07/02/2012 22:09, Carlos Mallen a ?crit : > Using this option, the file compiles OK, but YAP fails to display the > picture after using TeX mproof. The error message is this: > > In Yap, menu View, Render method: choose Dvips Fran?ois From luigi.scarso at gmail.com Mon Feb 27 15:19:28 2012 From: luigi.scarso at gmail.com (luigi scarso) Date: Mon, 27 Feb 2012 15:19:28 +0100 Subject: [metapost] Metafont ligatures/kerning Message-ID: Is there anybody that knows one (or more) font(s) that exhibit(s) the full capability of the MetaFont ligatures/kerning language ? Just the tfm is ok. -- luigi