* missing metapost graphics
@ 2009-10-27 12:02 Matěj Týč
2009-10-27 12:58 ` luigi scarso
2009-10-27 14:45 ` Aditya Mahajan
0 siblings, 2 replies; 6+ messages in thread
From: Matěj Týč @ 2009-10-27 12:02 UTC (permalink / raw)
To: ntg-context
Hello,
when I try to use MP code in my file, I follow the instructions, but
when I compile the file, there is no result whatsoever.
Text parts of the document are OK, but there is no trace of the image
that should be there.
The following is taken directly from metafun manual (page 9) as the
minimal ConTeXt example:
\starttext
\startuseMPgraphic{dummy}
fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext
Well, I get nothing on my setup as well as if I use the online compiler.
Therefore I assume that something must be wrong.
Could you comment on that?
Regards,
Matej
___________________________________________________________________________________
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] 6+ messages in thread
* Re: missing metapost graphics
2009-10-27 12:02 missing metapost graphics Matěj Týč
@ 2009-10-27 12:58 ` luigi scarso
2009-10-27 14:28 ` Matěj Týč
2009-10-27 14:45 ` Aditya Mahajan
1 sibling, 1 reply; 6+ messages in thread
From: luigi scarso @ 2009-10-27 12:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Oct 27, 2009 at 1:02 PM, Matěj Týč <matej.tyc@gmail.com> wrote:
> Hello,
> when I try to use MP code in my file, I follow the instructions, but
> when I compile the file, there is no result whatsoever.
> Text parts of the document are OK, but there is no trace of the image
> that should be there.
>
> The following is taken directly from metafun manual (page 9) as the
> minimal ConTeXt example:
>
> \starttext
> \startuseMPgraphic{dummy}
> fill fullcircle scaled 5cm withcolor red ;
> \stopuseMPgraphic
> \useMPgraphic{dummy}
> \stoptext
>
> Well, I get nothing on my setup as well as if I use the online compiler.
> Therefore I assume that something must be wrong.
> Could you comment on that?
\setupcolors[state=start]
\starttext
\startuseMPgraphic{dummy}
fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext
No problem here with latest minimals and
$>texexec test.tex
and
$>context test.tex
--
luigi
___________________________________________________________________________________
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] 6+ messages in thread
* Re: missing metapost graphics
2009-10-27 12:58 ` luigi scarso
@ 2009-10-27 14:28 ` Matěj Týč
2009-10-27 14:33 ` luigi scarso
0 siblings, 1 reply; 6+ messages in thread
From: Matěj Týč @ 2009-10-27 14:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
2009/10/27 luigi scarso <luigi.scarso@gmail.com>:
> On Tue, Oct 27, 2009 at 1:02 PM, Matěj Týč <matej.tyc@gmail.com> wrote:
>> Hello,
>> when I try to use MP code in my file, I follow the instructions, but
>> when I compile the file, there is no result whatsoever.
>> Text parts of the document are OK, but there is no trace of the image
>> that should be there.
>>
>> The following is taken directly from metafun manual (page 9) as the
>> minimal ConTeXt example:
>>
>> \starttext
>> \startuseMPgraphic{dummy}
>> fill fullcircle scaled 5cm withcolor red ;
>> \stopuseMPgraphic
>> \useMPgraphic{dummy}
>> \stoptext
>>
>> Well, I get nothing on my setup as well as if I use the online compiler.
>> Therefore I assume that something must be wrong.
>> Could you comment on that?
>
> \setupcolors[state=start]
> \starttext
> \startuseMPgraphic{dummy}
> fill fullcircle scaled 5cm withcolor red ;
> \stopuseMPgraphic
> \useMPgraphic{dummy}
> \stoptext
>
>
> No problem here with latest minimals and
> $>texexec test.tex
> and
> $>context test.tex
>
Thank you for your reply,
1. I have completely missed that I have to run 'context' after
texexec. I actually have read only about running texexec.
Moreover the "contex online" ( http://live.contextgarden.net/ ) site
most likely doesn't do that either since they produce empty PDFs if
you paste those lines in the form.
2. I have TeXLive installed and when I run 'context', I get a
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
sortof error and exit code 1.
Any suggestions on what can be wrong?
Regards,
Matej
___________________________________________________________________________________
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] 6+ messages in thread
* Re: missing metapost graphics
2009-10-27 14:28 ` Matěj Týč
@ 2009-10-27 14:33 ` luigi scarso
0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2009-10-27 14:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Oct 27, 2009 at 3:28 PM, Matěj Týč <matej.tyc@gmail.com> wrote:
> 2009/10/27 luigi scarso <luigi.scarso@gmail.com>:
>> On Tue, Oct 27, 2009 at 1:02 PM, Matěj Týč <matej.tyc@gmail.com> wrote:
>>> Hello,
>>> when I try to use MP code in my file, I follow the instructions, but
>>> when I compile the file, there is no result whatsoever.
>>> Text parts of the document are OK, but there is no trace of the image
>>> that should be there.
>>>
>>> The following is taken directly from metafun manual (page 9) as the
>>> minimal ConTeXt example:
>>>
>>> \starttext
>>> \startuseMPgraphic{dummy}
>>> fill fullcircle scaled 5cm withcolor red ;
>>> \stopuseMPgraphic
>>> \useMPgraphic{dummy}
>>> \stoptext
>>>
>>> Well, I get nothing on my setup as well as if I use the online compiler.
>>> Therefore I assume that something must be wrong.
>>> Could you comment on that?
>>
>> \setupcolors[state=start]
>> \starttext
>> \startuseMPgraphic{dummy}
>> fill fullcircle scaled 5cm withcolor red ;
>> \stopuseMPgraphic
>> \useMPgraphic{dummy}
>> \stoptext
>>
>>
>> No problem here with latest minimals and
>> $>texexec test.tex
>> and
>> $>context test.tex
>>
>
> Thank you for your reply,
> 1. I have completely missed that I have to run 'context' after
> texexec.
No no no -- sorry .
texexec is context mkii,
context is context mkiv,
and I'm using minimals, not textlive .
So I'm saying that there are no problems with
latest minimals, context mkii and with context mkiv too.
I suggest to you to install minimals asap,
see
wiki.contextgarden.net
--
luigi
___________________________________________________________________________________
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] 6+ messages in thread
* Re: missing metapost graphics
2009-10-27 12:02 missing metapost graphics Matěj Týč
2009-10-27 12:58 ` luigi scarso
@ 2009-10-27 14:45 ` Aditya Mahajan
2009-10-27 18:01 ` Matěj Týč
1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2009-10-27 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 874 bytes --]
On Tue, 27 Oct 2009, Matěj Týč wrote:
> Hello,
> when I try to use MP code in my file, I follow the instructions, but
> when I compile the file, there is no result whatsoever.
> Text parts of the document are OK, but there is no trace of the image
> that should be there.
>
> The following is taken directly from metafun manual (page 9) as the
> minimal ConTeXt example:
>
> \starttext
> \startuseMPgraphic{dummy}
> fill fullcircle scaled 5cm withcolor red ;
> \stopuseMPgraphic
> \useMPgraphic{dummy}
> \stoptext
>
> Well, I get nothing on my setup as well as if I use the online compiler.
> Therefore I assume that something must be wrong.
> Could you comment on that?
This is because, by default, write18 is disabled in texlive. You can
either enable it (see the wiki for details) or add
\runMPgraphicsfalse
on top of your file.
Aditya
[-- Attachment #2: 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] 6+ messages in thread
* Re: missing metapost graphics
2009-10-27 14:45 ` Aditya Mahajan
@ 2009-10-27 18:01 ` Matěj Týč
0 siblings, 0 replies; 6+ messages in thread
From: Matěj Týč @ 2009-10-27 18:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
> > \starttext
> > \startuseMPgraphic{dummy}
> > fill fullcircle scaled 5cm withcolor red ;
> > \stopuseMPgraphic
> > \useMPgraphic{dummy}
> > \stoptext
> >
> > Well, I get nothing on my setup as well as if I use the online compiler.
> > Therefore I assume that something must be wrong.
> > Could you comment on that?
>
> This is because, by default, write18 is disabled in texlive. You can
> either enable it (see the wiki for details) or add
>
> \runMPgraphicsfalse
>
> on top of your file.
Thank you, Aditya, that was it.
I have added 'mpost' to 'shell_escape_commands' in texmf.conf file.
If it is possible, I would appreciate a warning that a shell command has
not been escaped.
I had no clue what might gone wrong.
And last but not least, do you think that metapost can be a security
threat? Because if not, I will write to TeXLive packagers to allow
escaping of the 'mpost' command.
Regards,
Matej
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2009-10-27 18:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-27 12:02 missing metapost graphics Matěj Týč
2009-10-27 12:58 ` luigi scarso
2009-10-27 14:28 ` Matěj Týč
2009-10-27 14:33 ` luigi scarso
2009-10-27 14:45 ` Aditya Mahajan
2009-10-27 18:01 ` Matěj Týč
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).