ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Is the chart module broken?
@ 2010-11-03 13:52 Cecil Westerhof
  2010-11-03 18:41 ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-03 13:52 UTC (permalink / raw)
  To: NTG ConTeXt mailing list

In the past I have used the chart module for a little flow chart in a
presentation. I wanted to make again flow charts. But I did not get it
working. I just compiled my old version again, but this does not work
also. The chart is drawn, but the boxes and lines are invisible. That
is not very usefull. What could be the problem?

When executing 'texexec --check' I get:
    MTXrun | kpse fallback with progname 'context' initialized in 0.03 seconds
    TeXExec | current distribution: web2c
    TeXExec | context source date: 2009.08.19 17:10
    TeXExec | format path: . /home/cecil/texmf//home/cecil/texmf/web2c /etc/texmf//home/cecil/texmf/web2c /var/lib/texmf//home/cecil/texmf/web2c /usr/lib/texmf//home/cecil/texmf/web2c /usr/local/share/texmf//home/cecil/texmf/web2c /usr/share/texmf//home/cecil/texmf/web2c /etc/texmf/web2c /var/lib/texmf/web2c /home/cecil/texmf/web2c/unsetengine /etc/texmf/web2c/unsetengine /var/lib/texmf/web2c/unsetengine /usr/lib/texmf/web2c/unsetengine /usr/local/share/texmf/web2c/unsetengine /usr/share/texmf/web2c/unsetengine /home/cecil/texmf/web2c /etc/texmf/web2c /var/lib/texmf/web2c /usr/lib/texmf/web2c /usr/local/share/texmf/web2c /usr/share/texmf/web2c
    TeXExec | start of analysis
    TeXExec | end of analysis
    TeXExec | 
    TeXExec | TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD
    TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
    TeXExec | CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE

As a side note: is it possible to generate a JPG file instead of a PDF
file?

-- 
Cecil Westerhof
M CLDWesterhof@gmail.com

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___________________________________________________________________________________
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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-03 13:52 Is the chart module broken? Cecil Westerhof
@ 2010-11-03 18:41 ` Hans Hagen
  2010-11-19  6:57   ` Cecil Westerhof
  2010-11-19  7:43   ` Cecil Westerhof
  0 siblings, 2 replies; 18+ messages in thread
From: Hans Hagen @ 2010-11-03 18:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3-11-2010 2:52, Cecil Westerhof wrote:
> In the past I have used the chart module for a little flow chart in a
> presentation. I wanted to make again flow charts. But I did not get it
> working. I just compiled my old version again, but this does not work
> also. The chart is drawn, but the boxes and lines are invisible. That
> is not very usefull. What could be the problem?
>
> When executing 'texexec --check' I get:
>      MTXrun | kpse fallback with progname 'context' initialized in 0.03 seconds
>      TeXExec | current distribution: web2c
>      TeXExec | context source date: 2009.08.19 17:10
>      TeXExec | format path: . /home/cecil/texmf//home/cecil/texmf/web2c /etc/texmf//home/cecil/texmf/web2c /var/lib/texmf//home/cecil/texmf/web2c /usr/lib/texmf//home/cecil/texmf/web2c /usr/local/share/texmf//home/cecil/texmf/web2c /usr/share/texmf//home/cecil/texmf/web2c /etc/texmf/web2c /var/lib/texmf/web2c /home/cecil/texmf/web2c/unsetengine /etc/texmf/web2c/unsetengine /var/lib/texmf/web2c/unsetengine /usr/lib/texmf/web2c/unsetengine /usr/local/share/texmf/web2c/unsetengine /usr/share/texmf/web2c/unsetengine /home/cecil/texmf/web2c /etc/texmf/web2c /var/lib/texmf/web2c /usr/lib/texmf/web2c /usr/local/share/texmf/web2c /usr/share/texmf/web2c
>      TeXExec | start of analysis
>      TeXExec | end of analysis
>      TeXExec |
>      TeXExec | TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD
>      TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
>      TeXExec | CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE
>
> As a side note: is it possible to generate a JPG file instead of a PDF
> file?

no clue as no test file ... is write 18 enabled on your system?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-03 18:41 ` Hans Hagen
@ 2010-11-19  6:57   ` Cecil Westerhof
  2010-11-19  7:43   ` Cecil Westerhof
  1 sibling, 0 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-19  6:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2956 bytes --]

Op woensdag 3 nov 2010 19:41 CET schreef Hans Hagen:

>> In the past I have used the chart module for a little flow chart in a
>> presentation. I wanted to make again flow charts. But I did not get it
>> working. I just compiled my old version again, but this does not work
>> also. The chart is drawn, but the boxes and lines are invisible. That
>> is not very usefull. What could be the problem?
>>
>> When executing 'texexec --check' I get:
>> MTXrun | kpse fallback with progname 'context' initialized in 0.03
seconds
>> TeXExec | current distribution: web2c
>> TeXExec | context source date: 2009.08.19 17:10
>> TeXExec | format path: . /home/cecil/texmf//home/cecil/texmf/web2c
/etc/texmf//home/cecil/texmf/web2c /var/lib/texmf//home/cecil/texmf/web2c
/usr/lib/texmf//home/cecil/texmf/web2c
/usr/local/share/texmf//home/cecil/texmf/web2c
/usr/share/texmf//home/cecil/texmf/web2c /etc/texmf/web2c
/var/lib/texmf/web2c /home/cecil/texmf/web2c/unsetengine
/etc/texmf/web2c/unsetengine /var/lib/texmf/web2c/unsetengine
/usr/lib/texmf/web2c/unsetengine /usr/local/share/texmf/web2c/unsetengine
/usr/share/texmf/web2c/unsetengine /home/cecil/texmf/web2c /etc/texmf/web2c
/var/lib/texmf/web2c /usr/lib/texmf/web2c /usr/local/share/texmf/web2c
/usr/share/texmf/web2c
>> TeXExec | start of analysis
>> TeXExec | end of analysis
>> TeXExec |
>> TeXExec | TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD
>> TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
>> TeXExec | CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE
>>
>> As a side note: is it possible to generate a JPG file instead of a PDF
>> file?
>
> no clue as no test file ... is write 18 enabled on your system?

Below the stripped down version of the code.

Write 18 was not enabled. I enabled it, but still I do not see the
boxes and the lines.

\usemodule[chart]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%
% This is where the document starts.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\starttext

\setupFLOWcharts
[
dx=2\bodyfontsize,
dy=2\bodyfontsize,
height=2.1\lineheight,
maxwidth=\textwidth,
nx=3,
ny=5,
]
\setupFLOWshapes
[
background=color,
backgroundcolor=darkblue,
]
\startFLOWchart[SPICE]
\startFLOWcell
 \name{source}
 \location{2,1}
 \text{{\tfc S}ource}
 \connection[bt]{PICTURE}
\stopFLOWcell
\startFLOWcell
 \name{PICTURE}
 \location{2,2}
 \text{{\tfc P}icture}
 \connection[bt]{IMPLEMENTATION}
\stopFLOWcell
\startFLOWcell
 \name{IMPLEMENTATION}
 \location{2,3}
 \text{{\tfc I}mplementation}
 \connection[bt]{CONSEQUENCE}
\stopFLOWcell
\startFLOWcell
 \name{CONSEQUENCE}
 \location{2,4}
 \text{{\tfc C}onsequence}
 \connection[bt]{ENRICHEMENT}
\stopFLOWcell
\startFLOWcell
 \name{ENRICHEMENT}
 \location{2,5}
 \text{{\tfc E}nrichement}
 \connection[bt]{SOURCE}
 \connection[bt]{PICTURE}
 \connection[bt]{IMPLEMENTATION}
\stopFLOWcell
\stopFLOWchart

\FLOWchart[SPICE]

\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 3645 bytes --]

[-- 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-03 18:41 ` Hans Hagen
  2010-11-19  6:57   ` Cecil Westerhof
@ 2010-11-19  7:43   ` Cecil Westerhof
  2010-11-19 17:29     ` Hans Hagen
  1 sibling, 1 reply; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-19  7:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Op woensdag 3 nov 2010 19:41 CET schreef Hans Hagen:

>> In the past I have used the chart module for a little flow chart in a
>> presentation. I wanted to make again flow charts. But I did not get it
>> working. I just compiled my old version again, but this does not work
>> also. The chart is drawn, but the boxes and lines are invisible. That
>> is not very usefull. What could be the problem?

[CUT]

> no clue as no test file ... is write 18 enabled on your system?

I took this code from the internet. So I suppose this should work.
    \usemodule[chart]

    \starttext

    \startFLOWchart[cells]
         \startFLOWcell
             \name       {first}
             \location        {1,1}
             \shape      {singledocument}
             \text       {not really a document}
         \stopFLOWcell

    \stopFLOWchart

    \FLOWchart[cells]

    \stoptext

But it gives:
    http://www.decebal.nl/ConTeXt/flowchart.pdf

The log file created is at:
    http://www.decebal.nl/ConTeXt/flowchart.log

The only things I see that could mean something are:
    systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
    pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!

But I do not know if that is a problem.

The pfd is made with:
    texexec --automp flowchart

Without the --automp I get a message about mpost.

-- 
Cecil Westerhof
M CLDWesterhof@gmail.com

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___________________________________________________________________________________
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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19  7:43   ` Cecil Westerhof
@ 2010-11-19 17:29     ` Hans Hagen
  2010-11-19 18:12       ` Cecil Westerhof
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2010-11-19 17:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 19-11-2010 8:43, Cecil Westerhof wrote:

> The only things I see that could mean something are:
>      systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead

this is harmless but you can copy the file cont-sys.rme to cont-sys.tex 
and tweak its content

>      pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!
>
> But I do not know if that is a problem.
>
> The pfd is made with:
>      texexec --automp flowchart
>
> Without the --automp I get a message about mpost.

Is mpost run or not? Your code looks ok and generates an image here, so 
it looks like mpost is not run on your system.

For the moment forget about --automp as it only makes sense as speed 
optimization.

- double check if write18 is enabled in the used texmf.cnf file
- make sure that there is a metafun format (texexec --make metafun)

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 17:29     ` Hans Hagen
@ 2010-11-19 18:12       ` Cecil Westerhof
  2010-11-19 18:21         ` Aditya Mahajan
  2010-11-19 18:47         ` Hans Hagen
  0 siblings, 2 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-19 18:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2569 bytes --]

2010/11/19 Hans Hagen <pragma@wxs.nl>

> On 19-11-2010 8:43, Cecil Westerhof wrote:
>
>  The only things I see that could mean something are:
>>     systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
>>
>
> this is harmless but you can copy the file cont-sys.rme to cont-sys.tex and
> tweak its content


I did not think so, but better safe as sorry.



     pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!
>
> But I do not know if that is a problem.
>
> The pfd is made with:
>     texexec --automp flowchart
>
> Without the --automp I get a message about mpost.
>

Is mpost run or not? Your code looks ok and generates an image here, so it
> looks like mpost is not run on your system.
>

I tried to make it after running 'texexec --make metafun'.
It is still not run. I get:
systems         : begin file flowchart at line 3
(./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp)sh:
mpost: opdracht niet gevonden

locate mpost gives:
/home/cecil/ConTeXt/tex/texmf-linux/bin/mpost
/home/cecil/ConTeXt/tex/texmf/metapost/base/mpost.mp
/usr/lib/texmf/doc/man/man1/mpost.man1.pdf
/usr/share/doc/packages/libSDL-devel/html/sdlsempost.html
/usr/share/pstoedit/mpost.fmp

Trying alias mpost=/home/cecil/ConTeXt/tex/texmf-linux/bin/mpost does not
make a difference.


For the moment forget about --automp as it only makes sense as speed
> optimization.
>

I read somewhere to use it when having a problem with mpost. And I do not
get a message when using it. But I forget about it.


- double check if write18 is enabled in the used texmf.cnf file
>

When trying to make the pdf I get:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE)
 \write18 enabled.
 (/usr/lib/texmf/web2c/natural.tcx)
entering extended mode
(./flowchart.tex

So it should be enabled.



> - make sure that there is a metafun format (texexec --make metafun)


Gives:
MTXrun | kpse fallback with progname 'context' initialized in 0.04 seconds
TeXExec | using search method 'kpsewhich'
TeXExec | updating file database
mktexlsr: Updating /etc/texmf/ls-R...
mktexlsr: Updating /var/lib/texmf/main/ls-R...
mktexlsr: Updating /usr/share/texmf/../../../var/lib/texmf/dist/ls-R...
mktexlsr: Updating /var/cache/texmf/fonts/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
TeXExec | using mp engine mpost
TeXExec | using mps format path /etc/texmf/web2c
TeXExec | generating mps format metafun
TeXExec |
TeXExec | mps engine path: /etc/texmf/web2c
TeXExec |
TeXExec |
TeXExec | runtime: 0.675681

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 4091 bytes --]

[-- 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 18:12       ` Cecil Westerhof
@ 2010-11-19 18:21         ` Aditya Mahajan
  2010-11-19 20:19           ` Cecil Westerhof
  2010-11-19 18:47         ` Hans Hagen
  1 sibling, 1 reply; 18+ messages in thread
From: Aditya Mahajan @ 2010-11-19 18:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 19 Nov 2010, Cecil Westerhof wrote:

> 2010/11/19 Hans Hagen <pragma@wxs.nl>
>
>> On 19-11-2010 8:43, Cecil Westerhof wrote:
>>
>>  The only things I see that could mean something are:
>>>     systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
>>>
>>
>> this is harmless but you can copy the file cont-sys.rme to cont-sys.tex and
>> tweak its content
>
>
> I did not think so, but better safe as sorry.
>
>
>
>     pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!
>>
>> But I do not know if that is a problem.
>>
>> The pfd is made with:
>>     texexec --automp flowchart
>>
>> Without the --automp I get a message about mpost.
>>
>
> Is mpost run or not? Your code looks ok and generates an image here, so it
>> looks like mpost is not run on your system.
>>
>
> I tried to make it after running 'texexec --make metafun'.
> It is still not run. I get:
> systems         : begin file flowchart at line 3
> (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp)sh:
> mpost: opdracht niet gevonden
>
> locate mpost gives:
> /home/cecil/ConTeXt/tex/texmf-linux/bin/mpost
> /home/cecil/ConTeXt/tex/texmf/metapost/base/mpost.mp
> /usr/lib/texmf/doc/man/man1/mpost.man1.pdf
> /usr/share/doc/packages/libSDL-devel/html/sdlsempost.html
> /usr/share/pstoedit/mpost.fmp

You pdftex is from texlive, but you do not have a metapost executable from 
texlive. Either install metapost in texlive or use minimals (You already 
seem to have the minimals installed. You need to run "source 
~/ConTeXt/tex/setuptex" to add the minimals' binaries to the path).

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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 18:12       ` Cecil Westerhof
  2010-11-19 18:21         ` Aditya Mahajan
@ 2010-11-19 18:47         ` Hans Hagen
  2010-11-19 20:23           ` Cecil Westerhof
  1 sibling, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2010-11-19 18:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 19-11-2010 7:12, Cecil Westerhof wrote:

> mpost: opdracht niet gevonden

so mpost is not your system


> locate mpost gives:
> /home/cecil/ConTeXt/tex/texmf-linux/bin/mpost
> /home/cecil/ConTeXt/tex/texmf/metapost/base/mpost.mp
> /usr/lib/texmf/doc/man/man1/mpost.man1.pdf
> /usr/share/doc/packages/libSDL-devel/html/sdlsempost.html
> /usr/share/pstoedit/mpost.fmp
>
> Trying alias mpost=/home/cecil/ConTeXt/tex/texmf-linux/bin/mpost does not
> make a difference.

are the permissions right?

can you run mpost from the prompt

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 18:21         ` Aditya Mahajan
@ 2010-11-19 20:19           ` Cecil Westerhof
  0 siblings, 0 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-19 20:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 382 bytes --]

2010/11/19 Aditya Mahajan <adityam@umich.edu>

> You pdftex is from texlive, but you do not have a metapost executable from
> texlive. Either install metapost in texlive or use minimals (You already
> seem to have the minimals installed. You need to run "source
> ~/ConTeXt/tex/setuptex" to add the minimals' binaries to the path).
>

Mpost is still not found.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 687 bytes --]

[-- 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 18:47         ` Hans Hagen
@ 2010-11-19 20:23           ` Cecil Westerhof
  2010-11-19 20:38             ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-19 20:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 199 bytes --]

2010/11/19 Hans Hagen <pragma@wxs.nl>

> can you run mpost from the prompt


Yes, that gives:
Sorry, I can't find that mem file; will try PLAIN.
I can't find the PLAIN mem file!

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 479 bytes --]

[-- 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 20:23           ` Cecil Westerhof
@ 2010-11-19 20:38             ` Hans Hagen
  2010-11-20  5:04               ` Cecil Westerhof
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2010-11-19 20:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 19-11-2010 9:23, Cecil Westerhof wrote:
> 2010/11/19 Hans Hagen<pragma@wxs.nl>
>
>> can you run mpost from the prompt
>
>
> Yes, that gives:
> Sorry, I can't find that mem file; will try PLAIN.
> I can't find the PLAIN mem file!

that's real weird

in the tex live cnf file I see

shell_escape_commands = \
bibtex,bibtex8,\
kpsewhich,\
makeindex,\
repstopdf,\

and for some reason mpost is not in there, can you check that?

(or set shell_escape = t instead of p)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-19 20:38             ` Hans Hagen
@ 2010-11-20  5:04               ` Cecil Westerhof
  2010-11-20 11:56                 ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-20  5:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 892 bytes --]

2010/11/19 Hans Hagen <pragma@wxs.nl>

> can you run mpost from the prompt
>>>
>>
>>
>> Yes, that gives:
>> Sorry, I can't find that mem file; will try PLAIN.
>> I can't find the PLAIN mem file!
>>
>
>
> that's real weird
>
> in the tex live cnf file I see
>
> shell_escape_commands = \
> bibtex,bibtex8,\
> kpsewhich,\
> makeindex,\
> repstopdf,\
>
> and for some reason mpost is not in there, can you check that?
>
> (or set shell_escape = t instead of p)


I only find the following .cnf files:
    ConTeXt/tex/texmf-context/web2c/context.cnf
    ConTeXt/tex/texmf/web2c/texmf.cnf

Both do not contain shell_escape_commands.

They have:
    shell_escape            = t
    %openout_any            = a
    openout_any             = p
    openin_any              = a
    parse_first_line        = f
    allow_multiple_suffixes = f

Do I need to make a texlive.cnf file?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1597 bytes --]

[-- 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20  5:04               ` Cecil Westerhof
@ 2010-11-20 11:56                 ` Hans Hagen
  2010-11-20 16:08                   ` Cecil Westerhof
  2010-11-21  6:19                   ` Cecil Westerhof
  0 siblings, 2 replies; 18+ messages in thread
From: Hans Hagen @ 2010-11-20 11:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 20-11-2010 6:04, Cecil Westerhof wrote:
> 2010/11/19 Hans Hagen<pragma@wxs.nl>
>
>> can you run mpost from the prompt
>>>>
>>>
>>>
>>> Yes, that gives:
>>> Sorry, I can't find that mem file; will try PLAIN.
>>> I can't find the PLAIN mem file!
>>>
>>
>>
>> that's real weird
>>
>> in the tex live cnf file I see
>>
>> shell_escape_commands = \
>> bibtex,bibtex8,\
>> kpsewhich,\
>> makeindex,\
>> repstopdf,\
>>
>> and for some reason mpost is not in there, can you check that?
>>
>> (or set shell_escape = t instead of p)
>
>
> I only find the following .cnf files:
>      ConTeXt/tex/texmf-context/web2c/context.cnf
>      ConTeXt/tex/texmf/web2c/texmf.cnf

so you have only minimals ... and there all is set up to run mp runtime

strange that no one else has this problem of not finding mpost in the 
binpath then

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20 11:56                 ` Hans Hagen
@ 2010-11-20 16:08                   ` Cecil Westerhof
  2010-11-20 16:12                     ` Aditya Mahajan
  2010-11-20 20:26                     ` Willi Egger
  2010-11-21  6:19                   ` Cecil Westerhof
  1 sibling, 2 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-20 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/11/20 Hans Hagen <pragma@wxs.nl>
>
> so you have only minimals ... and there all is set up to run mp runtime

Should I install more?


> strange that no one else has this problem of not finding mpost in the binpath then

Proberly something wrong with my installation, but that is only part
of the problem. I installed ConTeXt on another computer.  Here
metapost is found, but still when trying to create a flowchart, only
the text is generated. It is reproducable. When giving:
 \usemodule[chart]

   \starttext

   \startFLOWchart[cells]
        \startFLOWcell
            \name       {first}
            \location        {1,1}
            \shape      {singledocument}
            \text       {not really a document}
        \stopFLOWcell

   \stopFLOWchart

   \FLOWchart[cells]

   \stoptext

To http://live.contextgarden.net/, then there is also only text.

And when I take from http://wiki.contextgarden.net/Flow_Charts:

\usemodule[chart]
\setupFLOWcharts[height=3\lineheight]

\startFLOWchart[example]
\startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [rl] {chart}
\stopFLOWcell
\startFLOWcell
  \name {chart}
  \location{2,1}
  \text {Charts}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[example]

And feed it to http://live.contextgarden.net/, I also only see text
and not the flowchart itself.

--
Cecil Westerhof
___________________________________________________________________________________
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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20 16:08                   ` Cecil Westerhof
@ 2010-11-20 16:12                     ` Aditya Mahajan
  2010-11-20 20:26                     ` Willi Egger
  1 sibling, 0 replies; 18+ messages in thread
From: Aditya Mahajan @ 2010-11-20 16:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 20 Nov 2010, Cecil Westerhof wrote:

> To http://live.contextgarden.net/, then there is also only text.

contextgarden does not have write18 enabled. So, to get MP graphics, you 
need to add

\runMPgraphicsfalse

on the top of your file.

In the minimals, write18 is enabled, so you do not need that line. I do 
not know why metapost is not part of your minimals installation.

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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20 16:08                   ` Cecil Westerhof
  2010-11-20 16:12                     ` Aditya Mahajan
@ 2010-11-20 20:26                     ` Willi Egger
  2010-11-20 20:41                       ` Otared Kavian
  1 sibling, 1 reply; 18+ messages in thread
From: Willi Egger @ 2010-11-20 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I do not know what happens. With your sample code I get:

With ConTeXt  ver: 2010.11.20 12:51 MKII  fmt: 2010.11.20  int: english/english


.../lua64/tex/texmf-context/tex/context/base/m-chart.mkii
XML             : loading flowchart support
))

Fatal error: catcode push/pop mismatch. Fix this!

\wait=
/Users/willi/Documents/TEXdata/TEST/test-flowchart.tex:23: Emergency stop.
<read *> 
         
\wait ->\begingroup \read 16 to \wait 
                                      \endgroup 
\showcatcodenestingerror ...atch. Fix this!}\wait 
                                                  \end \immediate \write 16{}
\popcatcodetable ...evel \showcatcodenestingerror 
                                                  \else \expandafter \catcod...

\stopreadingfile ->\endrestorecatcodes 
                                       \the \everystopreadingfile \global \a...
<argument> ...dousemodules \f!moduleprefix {chart}
                                                  \dododousemodules \f!priva...
...
l.23 \starttext ...


Willi
On 20 Nov 2010, at 17:08, Cecil Westerhof wrote:

> 2010/11/20 Hans Hagen <pragma@wxs.nl>
>> 
>> so you have only minimals ... and there all is set up to run mp runtime
> 
> Should I install more?
> 
> 
>> strange that no one else has this problem of not finding mpost in the binpath then
> 
> Proberly something wrong with my installation, but that is only part
> of the problem. I installed ConTeXt on another computer.  Here
> metapost is found, but still when trying to create a flowchart, only
> the text is generated. It is reproducable. When giving:
>  \usemodule[chart]
> 
>    \starttext
> 
>    \startFLOWchart[cells]
>         \startFLOWcell
>             \name       {first}
>             \location        {1,1}
>             \shape      {singledocument}
>             \text       {not really a document}
>         \stopFLOWcell
> 
>    \stopFLOWchart
> 
>    \FLOWchart[cells]
> 
>    \stoptext
> 
> To http://live.contextgarden.net/, then there is also only text.
> 
> And when I take from http://wiki.contextgarden.net/Flow_Charts:
> 
> \usemodule[chart]
> \setupFLOWcharts[height=3\lineheight]
> 
> \startFLOWchart[example]
> \startFLOWcell
>  \name {flow}
>  \location {1,1}
>  \text {Flow}
>  \connection [rl] {chart}
> \stopFLOWcell
> \startFLOWcell
>  \name {chart}
>  \location{2,1}
>  \text {Charts}
> \stopFLOWcell
> \stopFLOWchart
> \FLOWchart[example]
> 
> And feed it to http://live.contextgarden.net/, I also only see text
> and not the flowchart itself.
> 
> --
> Cecil Westerhof
> ___________________________________________________________________________________
> 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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20 20:26                     ` Willi Egger
@ 2010-11-20 20:41                       ` Otared Kavian
  0 siblings, 0 replies; 18+ messages in thread
From: Otared Kavian @ 2010-11-20 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

As a matter of fact with any document using the chart module, mkii stops with
	\wait=
This happens with the following minimal test, for example:

%%% begin bug-chart.tex
\usemodule[chart]

\startFLOWchart[cells]
	\startFLOWcell
		\location {1,1}
		\text{This is just a test}
	\stopFLOWcell 
\stopFLOWchart

\starttext
\FLOWchart[cells]
\stoptext
%%% end bug-chart.tex

However with mkiv, everything is fine.
For you information, I tested the above with the Minimals, ConTeXt  ver: 2010.11.18 19:47 MKII  fmt: 2010.11.19  int: english/english, on MacOS X 10.6.5.

Best regards: OK

On 20 nov. 2010, at 21:26, Willi Egger wrote:

> I do not know what happens. With your sample code I get:
> 
> With ConTeXt  ver: 2010.11.20 12:51 MKII  fmt: 2010.11.20  int: english/english
> 
> 
> .../lua64/tex/texmf-context/tex/context/base/m-chart.mkii
> XML             : loading flowchart support
> ))
> 
> Fatal error: catcode push/pop mismatch. Fix this!
> 
> \wait=
> /Users/willi/Documents/TEXdata/TEST/test-flowchart.tex:23: Emergency stop.
> <read *> 
> 
> \wait ->\begingroup \read 16 to \wait 
>                                      \endgroup 
> \showcatcodenestingerror ...atch. Fix this!}\wait 
>                                                  \end \immediate \write 16{}
> \popcatcodetable ...evel \showcatcodenestingerror 
>                                                  \else \expandafter \catcod...
> 
> \stopreadingfile ->\endrestorecatcodes 
>                                       \the \everystopreadingfile \global \a...
> <argument> ...dousemodules \f!moduleprefix {chart}
>                                                  \dododousemodules \f!priva...
> ...
> l.23 \starttext ...
> 
> 
> Willi
> On 20 Nov 2010, at 17:08, Cecil Westerhof wrote:
> 
>> 2010/11/20 Hans Hagen <pragma@wxs.nl>
>>> 
>>> so you have only minimals ... and there all is set up to run mp runtime
>> 
>> Should I install more?
>> 
>> 
>>> strange that no one else has this problem of not finding mpost in the binpath then
>> 
>> Proberly something wrong with my installation, but that is only part
>> of the problem. I installed ConTeXt on another computer.  Here
>> metapost is found, but still when trying to create a flowchart, only
>> the text is generated. It is reproducable. When giving:
>> \usemodule[chart]
>> 
>>   \starttext
>> 
>>   \startFLOWchart[cells]
>>        \startFLOWcell
>>            \name       {first}
>>            \location        {1,1}
>>            \shape      {singledocument}
>>            \text       {not really a document}
>>        \stopFLOWcell
>> 
>>   \stopFLOWchart
>> 
>>   \FLOWchart[cells]
>> 
>>   \stoptext
>> 
>> To http://live.contextgarden.net/, then there is also only text.
>> 
>> And when I take from http://wiki.contextgarden.net/Flow_Charts:
>> 
>> \usemodule[chart]
>> \setupFLOWcharts[height=3\lineheight]
>> 
>> \startFLOWchart[example]
>> \startFLOWcell
>> \name {flow}
>> \location {1,1}
>> \text {Flow}
>> \connection [rl] {chart}
>> \stopFLOWcell
>> \startFLOWcell
>> \name {chart}
>> \location{2,1}
>> \text {Charts}
>> \stopFLOWcell
>> \stopFLOWchart
>> \FLOWchart[example]
>> 
>> And feed it to http://live.contextgarden.net/, I also only see text
>> and not the flowchart itself.
>> 
>> --
>> Cecil Westerhof
>> ___________________________________________________________________________________
>> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Is the chart module broken?
  2010-11-20 11:56                 ` Hans Hagen
  2010-11-20 16:08                   ` Cecil Westerhof
@ 2010-11-21  6:19                   ` Cecil Westerhof
  1 sibling, 0 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-11-21  6:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/11/20 Hans Hagen <pragma@wxs.nl>:
> so you have only minimals ... and there all is set up to run mp runtime
>
> strange that no one else has this problem of not finding mpost in the
> binpath then

Found the problem. The first time I used ConTeXt it was not in the
repository and I downloaded it. Now it is and I installed it from the
repository (openSUSE). But when doing this metapost is not installed.
So I installed texlive-bin-metapost and texlive-metapost. Now it
works.

Are there any other packages that would be smart to install?

-- 
Cecil Westerhof
___________________________________________________________________________________
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] 18+ messages in thread

end of thread, other threads:[~2010-11-21  6:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-03 13:52 Is the chart module broken? Cecil Westerhof
2010-11-03 18:41 ` Hans Hagen
2010-11-19  6:57   ` Cecil Westerhof
2010-11-19  7:43   ` Cecil Westerhof
2010-11-19 17:29     ` Hans Hagen
2010-11-19 18:12       ` Cecil Westerhof
2010-11-19 18:21         ` Aditya Mahajan
2010-11-19 20:19           ` Cecil Westerhof
2010-11-19 18:47         ` Hans Hagen
2010-11-19 20:23           ` Cecil Westerhof
2010-11-19 20:38             ` Hans Hagen
2010-11-20  5:04               ` Cecil Westerhof
2010-11-20 11:56                 ` Hans Hagen
2010-11-20 16:08                   ` Cecil Westerhof
2010-11-20 16:12                     ` Aditya Mahajan
2010-11-20 20:26                     ` Willi Egger
2010-11-20 20:41                       ` Otared Kavian
2010-11-21  6:19                   ` Cecil Westerhof

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).