How to add metapost 3rd party modules
Hi All, I would like to use metauml modules with context, but context can not find it from ~/texmf/metapost/metauml directory. What the context search path for the 3rd party metapost modules? Thanks in advance. Br/JL -- Joshua Lee
On Tue, Apr 19, 2011 at 15:12, Joshua Lee wrote:
Hi All, I would like to use metauml modules with context, but context can not find it from ~/texmf/metapost/metauml directory. What the context search path for the 3rd party metapost modules?
The search path is defined inside texmf/web2c/texmfcnf.lua (variable MPINPUTS). Did you run luatools --generate or mktexlsr (depending on the mark you use)? It works here, but only after I regenerate the database (which should not be the case - files in ~/texmf should be searched automatically without being present in the database). Mojca
Hi Mojca, Thanks for you reply. It can found the metauml module after regenerating the database with luatools --generate But it run into compiling error. For you convenience, append the sources for mpost and context. joshua@josh-dev ~/tmp $ cat activity.tex \startMPinclusions input metauml; \stopMPinclusions \startMPpage Activity.A("Learn MetaUML -", "the MetaPost UML library"); drawObject(A); \stopMPpage \stoptext joshua@josh-dev ~/tmp $ cat activity.mp input metauml; beginfig(1); Activity.A("Learn MetaUML -", "the MetaPost UML library"); drawObject(A); endfig; end activity.mp works with mpost, but activity.tex failed to compile with context. Any suggestions? Best regards, Joshua On Tue, 19 Apr 2011, Mojca Miklavec wrote:
On Tue, Apr 19, 2011 at 15:12, Joshua Lee wrote:
Hi All, I would like to use metauml modules with context, but context can not find it from ~/texmf/metapost/metauml directory. What the context search path for the 3rd party metapost modules?
The search path is defined inside texmf/web2c/texmfcnf.lua (variable MPINPUTS).
Did you run luatools --generate or mktexlsr (depending on the mark you use)?
It works here, but only after I regenerate the database (which should not be the case - files in ~/texmf should be searched automatically without being present in the database).
Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204
On Wed, 20 Apr 2011, Joshua Lee wrote:
Hi Mojca, Thanks for you reply.
It can found the metauml module after regenerating the database with luatools --generate But it run into compiling error. For you convenience, append the sources for mpost and context.
joshua@josh-dev ~/tmp $ cat activity.tex \startMPinclusions input metauml; \stopMPinclusions
\startMPpage Activity.A("Learn MetaUML -", "the MetaPost UML library"); drawObject(A); \stopMPpage
\stoptext
I don't know the internal details of metaUML, but it could be the same problem as with MetaObj. See: http://wiki.contextgarden.net/MetaObj_and_Labels Aditya
Hi Aditya, Thanks for your reply, I just tested the sample from http://wiki.contextgarden.net/MetaObj_and_Labels It can not work as well. Best regards, Joshua On Tue, 19 Apr 2011, Aditya Mahajan wrote:
On Wed, 20 Apr 2011, Joshua Lee wrote:
Hi Mojca, Thanks for you reply.
It can found the metauml module after regenerating the database with luatools --generate But it run into compiling error. For you convenience, append the sources for mpost and context.
joshua@josh-dev ~/tmp $ cat activity.tex \startMPinclusions input metauml; \stopMPinclusions
\startMPpage Activity.A("Learn MetaUML -", "the MetaPost UML library"); drawObject(A); \stopMPpage
\stoptext
I don't know the internal details of metaUML, but it could be the same problem as with MetaObj. See: http://wiki.contextgarden.net/MetaObj_and_Labels
Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204
Hi Aditya/All, Please ignore previous mail, it can works. Thanks a lot. BTW, i made the silly mistake. My emacs convert "" into `` in previous email. Best regards, Joshua On Wed, 20 Apr 2011, Joshua Lee wrote:
Hi Aditya, Thanks for your reply, I just tested the sample from http://wiki.contextgarden.net/MetaObj_and_Labels It can not work as well.
Best regards, Joshua
On Tue, 19 Apr 2011, Aditya Mahajan wrote:
On Wed, 20 Apr 2011, Joshua Lee wrote:
Hi Mojca, Thanks for you reply.
It can found the metauml module after regenerating the database with luatools --generate But it run into compiling error. For you convenience, append the sources for mpost and context.
joshua@josh-dev ~/tmp $ cat activity.tex \startMPinclusions input metauml; \stopMPinclusions
\startMPpage Activity.A("Learn MetaUML -", "the MetaPost UML library"); drawObject(A); \stopMPpage
\stoptext
I don't know the internal details of metaUML, but it could be the same problem as with MetaObj. See: http://wiki.contextgarden.net/MetaObj_and_Labels
Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Aditya Mahajan
-
Joshua Lee
-
Mojca Miklavec