* Metapost and MPlib @ 2009-11-02 21:45 batela 2009-11-03 8:43 ` Taco Hoekwater 0 siblings, 1 reply; 7+ messages in thread From: batela @ 2009-11-02 21:45 UTC (permalink / raw) To: mailing list for ConTeXt users Dear Sirs I would like to include some macros from http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. Every time i try to include a new example (from papier.mp, par example) i found this old error message:; texnum.mp Unable to make mpx file. init_numbers(btex $-$ etex, btex$$etex, btex ${\times}$10etex in the google i found a old solution for this kind of error, but for LaTeX not for mplib or LuaTeX. Is there a fresh solution for that? Syracuse provide to us a nice solutions for writing maths and physics with metapost. Thanks a lot. Jorge ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-02 21:45 Metapost and MPlib batela @ 2009-11-03 8:43 ` Taco Hoekwater 2009-11-03 18:14 ` batela 0 siblings, 1 reply; 7+ messages in thread From: Taco Hoekwater @ 2009-11-03 8:43 UTC (permalink / raw) To: mailing list for ConTeXt users batela wrote: > Dear Sirs > > I would like to include some macros from > http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. > Every time i try to include a new example (from papier.mp, par example) > i found this old error message:; texnum.mp Unable to make mpx file. > > init_numbers(btex $-$ etex, btex$$etex, btex ${\times}$10etex The mplib core (and luatex, by extension) does not have support for btex ... etex constructs, but I think there is special code in context mkiv to handle such cases? Best wishes, Taco ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-03 8:43 ` Taco Hoekwater @ 2009-11-03 18:14 ` batela 2009-11-03 18:24 ` Hans Hagen 0 siblings, 1 reply; 7+ messages in thread From: batela @ 2009-11-03 18:14 UTC (permalink / raw) To: mailing list for ConTeXt users Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: > > > batela wrote: >> Dear Sirs >> >> I would like to include some macros from >> http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. >> Every time i try to include a new example (from papier.mp, par >> example) >> i found this old error message:; texnum.mp Unable to make mpx file. >> >> init_numbers(btex $-$ etex, btex$$etex, btex ${\times}$10etex > > The mplib core (and luatex, by extension) does not have support > for btex ... etex constructs, but I think there is special code > in context mkiv to handle such cases? thanks, but i'm afraid that I'm not able to find the solution. Perhaps some day anybody will be able to play with syrasuse macros in luatex documents. ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-03 18:14 ` batela @ 2009-11-03 18:24 ` Hans Hagen 2009-11-03 19:08 ` batela 0 siblings, 1 reply; 7+ messages in thread From: Hans Hagen @ 2009-11-03 18:24 UTC (permalink / raw) To: mailing list for ConTeXt users batela wrote: > > Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: > >> >> >> batela wrote: >>> Dear Sirs >>> >>> I would like to include some macros from >>> http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. >>> Every time i try to include a new example (from papier.mp, par example) >>> i found this old error message:; texnum.mp Unable to make mpx file. >>> >>> init_numbers(btex $-$ etex, btex$$etex, btex ${\times}$10etex >> >> The mplib core (and luatex, by extension) does not have support >> for btex ... etex constructs, but I think there is special code >> in context mkiv to handle such cases? > > > thanks, but i'm afraid that I'm not able to find the solution. Perhaps > some day anybody will be able to play with syrasuse macros in luatex > documents. as the whole site is a mix of french and latex and i'm not fluent in either of them ... can you give a small example? what happens if you don't load the mpnum package (or whatever it's called) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-03 18:24 ` Hans Hagen @ 2009-11-03 19:08 ` batela 2009-11-04 16:28 ` batela 0 siblings, 1 reply; 7+ messages in thread From: batela @ 2009-11-03 19:08 UTC (permalink / raw) To: mailing list for ConTeXt users Em 03/11/2009, às 6:24, Hans Hagen escreveu: > batela wrote: >> Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: >>> >>> >>> batela wrote: >>>> Dear Sirs >>>> >>>> I would like to include some macros from >>>> http://melusine.eu.org/syracuse/poulecl/macros in my luatex >>>> documents. >>>> Every time i try to include a new example (from papier.mp, par >>>> example) >>>> i found this old error message:; texnum.mp Unable to make mpx file. >>>> >>>> init_numbers(btex $-$ etex, btex$$etex, btex ${\times}$10etex >>> >>> The mplib core (and luatex, by extension) does not have support >>> for btex ... etex constructs, but I think there is special code >>> in context mkiv to handle such cases? >> thanks, but i'm afraid that I'm not able to find the solution. >> Perhaps some day anybody will be able to play with syrasuse macros in >> luatex documents. > > as the whole site is a mix of french and latex and i'm not fluent in > either of them ... can you give a small example? > > what happens if you don't load the mpnum package (or whatever it's > called) In the file papiers2.mp I have deactivated input format (changed to %input format) In the modules donymodule.mp and geometriesyr16.mp I changed all the btex something etex constructs to " something ". In the modules papiers2.mp and donymodule.mp I have deactivated the init_numbers function (init_numbers changed to %init_numbers ) Now all seems to work. thanks Jorge ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-03 19:08 ` batela @ 2009-11-04 16:28 ` batela 2009-11-04 16:39 ` Aditya Mahajan 0 siblings, 1 reply; 7+ messages in thread From: batela @ 2009-11-04 16:28 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 205 bytes --] Another incompatibility between metapost and mkiv. I try to run this code but i found a error with some garbage. Please try to run the file in attach. The error coming from the curvelabel function. [-- Attachment #2: teste2.tex --] [-- Type: application/x-tex, Size: 1378 bytes --] [-- Attachment #3: Type: text/plain, Size: 486 bytes --] ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Metapost and MPlib 2009-11-04 16:28 ` batela @ 2009-11-04 16:39 ` Aditya Mahajan 0 siblings, 0 replies; 7+ messages in thread From: Aditya Mahajan @ 2009-11-04 16:39 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 319 bytes --] On Wed, 4 Nov 2009, batela wrote: > Another incompatibility between metapost and mkiv. > > I try to run this code but i found a error with some garbage. > > Please try to run the file in attach. The error coming from the curvelabel > function. * Change # to \#. * Don't redefine pt! See the attached file. Aditya [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: Type: TEXT/x-tex; name=teste2.tex, Size: 1558 bytes --] \starttext \startMPcode path Cb[]; vardef courbe[](expr a,b,nb)(text texte)= path $; for i:=0 upto nb : x@[i]:=(a+i*(b-a)/nb); x:=x@[i]; y@[i]:=texte; endfor ; Cb@:=(x@.0*x.u,y@.0*y.u) for i:=1 upto nb : ..(x@[i]*x.u,y@[i]*y.u) endfor; Cb@:=Cb@ shifted (z.origine*cm); $=Cb@; $ enddef; vardef cadre(expr q,r)= z.so=q; z.ne=r; path limite; limite:=z.so*cm--(x.ne*cm,y.so*cm)--z.ne*cm--(x.so*cm,y.ne*cm)--cycle; extra_endfig := "clip currentpicture to limite;" & extra_endfig; enddef; vardef origine(expr p)= x.origine=xpart(p); y.origine=ypart(p); enddef; vardef unites(expr q,r)= x.u:=q*cm; y.u:=r*cm; enddef; vardef depart(expr q,r,p,s,t)= cadre(q,r); origine(p); unites(s,t); enddef; vardef origine(expr p)= x.origine=xpart(p); y.origine=ypart(p); enddef; vardef unites(expr q,r)= x.u:=q*cm; y.u:=r*cm; enddef; vardef curvelabel@\#(expr a)(suffix pos)= save se; picture se; numeric t; %show a; pair pp,tangent; if str pos ="" : t:=0.5*length Cb@\# else : t:=pos*length Cb@\#; %show t; fi; pp:=point t of Cb@\#; tangent:=unitvector(direction t of Cb@\#); se=image( label(a rotated angle(tangent), pp+2mm*(tangent rotated 90)); ); se enddef; depart((-3,-3.5),(2.5,3.5),(0,0),2,2); draw courbe1(-1,1,100,x*x) withcolor blue; draw curvelabel1(btex $x^2$ etex, 0.9); \stopMPcode \stoptext [-- Attachment #3: Type: text/plain, Size: 486 bytes --] ___________________________________________________________________________________ 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 / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-04 16:39 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-11-02 21:45 Metapost and MPlib batela 2009-11-03 8:43 ` Taco Hoekwater 2009-11-03 18:14 ` batela 2009-11-03 18:24 ` Hans Hagen 2009-11-03 19:08 ` batela 2009-11-04 16:28 ` batela 2009-11-04 16:39 ` Aditya Mahajan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).