« Return to Thread: Context terminal

Re: Context terminal

by Mojca Miklavec :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Context terminal