* How to add metapost 3rd party modules
@ 2011-04-19 13:12 Joshua Lee
2011-04-19 21:32 ` Mojca Miklavec
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Lee @ 2011-04-19 13:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: How to add metapost 3rd party modules
2011-04-19 13:12 How to add metapost 3rd party modules Joshua Lee
@ 2011-04-19 21:32 ` Mojca Miklavec
2011-04-20 3:25 ` How to add metapost 3rd party modules?? Joshua Lee
0 siblings, 1 reply; 7+ messages in thread
From: Mojca Miklavec @ 2011-04-19 21:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to add metapost 3rd party modules??
2011-04-19 21:32 ` Mojca Miklavec
@ 2011-04-20 3:25 ` Joshua Lee
2011-04-20 3:48 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Lee @ 2011-04-20 3:25 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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: How to add metapost 3rd party modules??
2011-04-20 3:25 ` How to add metapost 3rd party modules?? Joshua Lee
@ 2011-04-20 3:48 ` Aditya Mahajan
2011-04-20 5:57 ` How to add metapost 3rd party modules???? Joshua Lee
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-04-20 3:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to add metapost 3rd party modules????
2011-04-20 3:48 ` Aditya Mahajan
@ 2011-04-20 5:57 ` Joshua Lee
2011-04-20 7:05 ` Joshua Lee
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Lee @ 2011-04-20 5:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: How to add metapost 3rd party modules????
2011-04-20 5:57 ` How to add metapost 3rd party modules???? Joshua Lee
@ 2011-04-20 7:05 ` Joshua Lee
0 siblings, 0 replies; 7+ messages in thread
From: Joshua Lee @ 2011-04-20 7:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
> > ___________________________________________________________________________________
>
___________________________________________________________________________________
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: How to add metapost 3rd party modules??
@ 2011-04-20 6:42 Reviczky, Adam
0 siblings, 0 replies; 7+ messages in thread
From: Reviczky, Adam @ 2011-04-20 6:42 UTC (permalink / raw)
To: ntg-context
> But it run into compiling error. For you convenience, append the
> sources for mpost and context.
As for metauml, have a look at this example:
http://www.ntg.nl/pipermail/ntg-context/2010/049511.html
This works for me with the latest beta.
For quick testing purposes just put the metauml (mp) files where your tex file is.
Adam
PS: The label offset problem is still present, so don't be surprised.
___________________________________________________________________________________
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:[~2011-04-20 7:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 13:12 How to add metapost 3rd party modules Joshua Lee
2011-04-19 21:32 ` Mojca Miklavec
2011-04-20 3:25 ` How to add metapost 3rd party modules?? Joshua Lee
2011-04-20 3:48 ` Aditya Mahajan
2011-04-20 5:57 ` How to add metapost 3rd party modules???? Joshua Lee
2011-04-20 7:05 ` Joshua Lee
2011-04-20 6:42 How to add metapost 3rd party modules?? Reviczky, Adam
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).