Context terminal

View: New views
4 Messages — Rating Filter:   Alert me  

Context terminal

by Willi Egger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

For an ongoing project I need to make quite special plots. The  
requests made by the customer make it necessary to use special tools.  
Until now the only tool providing the possibilities is GNUPLOT. The  
most convenient way to present the needed plots is for me by using  
CONTEXT. CONTEXT is my environment where I prepare almost everything  
from labels to letters and of course reports. It would be great if  
future releases would contain the CONTEXT terminal built in, so that  
its use would work out of the box.

I would like to thank Mojca Miklavec and Hans Hagen who invested into  
the development oft the terminal and the integration into CONTEXT.

Looking forward seeing the CONTEXT-terminal included in the  
distribution.

Kind regards

Willi Egger
 

------------------------------------------------------------------------------
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

Re: Context terminal

by Ethan Merritt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 02 July 2009 07:54:46 Willi Egger wrote:
>
> It would be great if future releases would contain the CONTEXT terminal
> built in, so that its use would work out of the box.
>
> I would like to thank Mojca Miklavec and Hans Hagen who invested into  
> the development oft the terminal and the integration into CONTEXT.

Thanks for your note.

I had another go at trying out the proposed terminal, but
I have failed miserably to get the texlive2007 version in current
Mandrive 9.1 to do anything at all with the output from Mojca's context.trm.
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
This texlive installation is working fine for all other uses I have needed.

Is there an actual working version of CONTEXT packaged for use with linux?


Run output from "texexec simple" after creating simple.tex using the
context terminal:

TeXExec | processing document 'simple'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file simple.top
TeXExec | using randomseed 717
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.5 (Web2C 7.5.6)
 %&-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
kpathsea: Running mktexfmt cont-en.fmt
I can't find the format file `cont-en.fmt'!



Some Googling indicated that this was a known problem, and suggested that
the fix was to run this command:
  texexec --make --all
That didn't do much of anything.

More Googling, this time finding the website
http://wiki.contextgarden.net/Linux_Installation
It suggests:
  cd /usr/share/texmf/context/data
  texfont type-tmf.dat --en=texnansi --fontroot=/usr/share/texmf --install --makepath
That produces the following error:

  TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004
        trying to locate : type-tmf.dat
      processing aborted : unknown batch file

At that point I gave up.

> Looking forward seeing the CONTEXT-terminal included in the distribution.

That would be greatly facilitated if you or someone else would provide
instructions for how to get context running.  Otherwise it is not
possible to test the new terminal.


> Kind regards
>
> Willi Egger

        Ethan

--
Ethan A Merritt

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

Re: Context terminal

by Mojca Miklavec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 7, 2009 at 22:32, Ethan Merritt<merritt@...> wrote:

> On Thursday 02 July 2009 07:54:46 Willi Egger wrote:
>>
>> It would be great if future releases would contain the CONTEXT terminal
>> built in, so that its use would work out of the box.
>>
>> I would like to thank Mojca Miklavec and Hans Hagen who invested into
>> the development oft the terminal and the integration into CONTEXT.
>
> Thanks for your note.
>
> I had another go at trying out the proposed terminal, but
> I have failed miserably to get the texlive2007 version in current
> Mandrive 9.1 to do anything at all with the output from Mojca's context.trm.
> TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
> This texlive installation is working fine for all other uses I have needed.
>
> Is there an actual working version of CONTEXT packaged for use with linux?

(Assuming that you are working on 32-bit machine; for 64-bit processor
PATH to binaries is a bit different: linux->linux-64.)

1.) You can install TeX Live 2008 with "ConTeXt scheme" under
arbitrary folder from http://www.tug.org/texlive/acquire.html, but I
would need to review the details of installation, though it should be
straightforward. I suggest 2.)

2.) For a standalone ConTeXt distribution (that you can use completely
independent of TeX Live; you may "install" it anywhere, uninstalling
means just "rm" that folder).

## Installation:

cd /path/to
rsync -p rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --extras=t-gnuplot
# then you may go for a coffee while fonts are being downloaded
# (about 200-250 MB in total)
# this only sets the PATH to binaries (one can set path manually as well)
. tex/setuptex

# should not be needed, but just to make sure
mktexlsr
texexec --make --all

## Usage:

Either
    . /path/to/tex/setuptex
Or
    export PATH=/path/to/tex/texmf-linux/bin:$PATH

## Module usage

If you have the right gnuplot binary in path, you can try

\enableregime[utf-8]
\setupcolors[state=start]
\usemodule[gnuplot]

\starttext
% write a script for gnuplot
\startGNUPLOTscript[sin]
   plot sin(x)
\stopGNUPLOTscript
% include the resulting graphic into the document
\placefigure{testing}{\useGNUPLOTgraphic[sin]}
\stoptext

and compile it with
    texexec filename

Else just start with
    set term context standalone
that should give you a ready-to-compile document (I have not been
using this feature for a long time; I have just realized that it
outputs empty between plots pages, but that's a minor bug in the
ConTeXt style file and is not related to gnuplot terminal; I mean -
trm file doesn't need to be fixed).

Mojca

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

Re: Context terminal

by Mojca Miklavec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 7, 2009 at 22:32, Ethan Merritt wrote:

> On Thursday 02 July 2009 07:54:46 Willi Egger wrote:
>
> Run output from "texexec simple" after creating simple.tex using the
> context terminal:
>
> TeXExec | processing document 'simple'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | TeX run 1
> TeXExec | writing option file simple.top
> TeXExec | using randomseed 717
> TeXExec | tex engine: pdftex
> TeXExec | tex format: cont-en
> This is pdfTeXk, Version 3.141592-1.40.5 (Web2C 7.5.6)
>  %&-line parsing enabled.
>  (/usr/share/texmf/web2c/natural.tcx)
> kpathsea: Running mktexfmt cont-en.fmt
> I can't find the format file `cont-en.fmt'!

This used to work in good old times on TeX Live to generate formats:
   sudo fmtutil-sys --byfmt cont-en
   sudo fmtutil-sys --byfmt metafun
   sudo fmtutil-sys --byfmt mptopdf
followed by
   sudo mktexlsr
to update file database.

After that texexec should work, though I'm not sure any more about
which version of ConTeXt is needed in order to be able to use gnuplot
module. For the module itself you need just two files, so that should
not be a problem.

The solution that you would usually find anywhere else would be
   texexec --make --all
   mktexlsr
but texexec --make --all puts format in most weird places.

(Sorry, I forgot to tell. Just in case, always run "mktexlsr" if it
complains about format file not found.)

Installation instructions on the wiki are a mess (I'm really sorry for
that). In particular, texfont is not being maintaned any more and you
don't need it in the first place.

Mojca

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta