From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31835 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: How to get a PhD with ConTeXt (+ hard work ;) ) Date: Tue, 14 Nov 2006 01:00:46 +0100 Message-ID: <6faad9f00611131600g4bfb5532i30e305f32a24bf5b@mail.gmail.com> References: <45412D90.9040203@nibua-r.org> <6faad9f00611112133k428d62a1tfc1bdc2a48f21ade@mail.gmail.com> <4558B863.8030905@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1163462462 17585 80.91.229.2 (14 Nov 2006 00:01:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 00:01:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 14 01:01:01 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjljW-0001Oi-V3 for gctc-ntg-context-518@m.gmane.org; Tue, 14 Nov 2006 01:00:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 405BF1FD8D; Tue, 14 Nov 2006 01:00:53 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03664-01; Tue, 14 Nov 2006 01:00:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DFE2D1FCD3; Tue, 14 Nov 2006 01:00:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECBDE1FD26 for ; Tue, 14 Nov 2006 01:00:46 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03561-06-2 for ; Tue, 14 Nov 2006 01:00:42 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by ronja.ntg.nl (Postfix) with SMTP id 4785B1FCC6 for ; Tue, 14 Nov 2006 01:00:42 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so52804nfc for ; Mon, 13 Nov 2006 16:00:46 -0800 (PST) Original-Received: by 10.48.210.20 with SMTP id i20mr272107nfg.1163462446376; Mon, 13 Nov 2006 16:00:46 -0800 (PST) Original-Received: by 10.48.209.2 with HTTP; Mon, 13 Nov 2006 16:00:46 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <4558B863.8030905@nibua-r.org> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31835 Archived-At: On 11/13/06, Renaud AUBIN wrote: > > Mojca Miklavec a =E9crit : > > Nice work! I can't read French, but the figures are very nice and > content is probably interesting as well ;) > > Thanks! > > I didn't know that people were indeed using the module already (I > started using it more regularly only recently). > > dunno (but hope so because of the result...) > > Now one question: how exactly did you create/include the plots? With > "which version of the module"? I don't mind if some of my plots break > if I slightly change the interface before officially releasing it, but > I don't want other people to have problems with that. > You're right. I've used the latest darcs' release (up to the "points add= ed, > some options, etc..." patch). For the inclusion, it's better to have an > example in mind: > > %%%% file curves.gp > set terminal context input textext linewidth .3 size 1.2 textext? Did it work? On my computer it hangs after approximately 13 plots. The suggested option is to use "sometxt" now. input is the default anyway > set output "curves.tex" > > set xlabel "$x$ (m)" > set ylabel "$z$ (m)" > > set notitle > plot sin(x) with lines lw 2 notitle > > set xlabel "$t$ (s)" > set ylabel "a label" > > set notitle > plot cos(x) > > %%%% file gpsample.tex: > \usemodule[t-gnuplot] > > \setupcolors[state=3Dstart] > > \starttext > \processGNUPLOTfile[mybeautifulcurves][curves] > > \placefigure[here]{none}{ > \startcombination[1*2] > {\useMPgraphic{gpg:mybeautifulcurves:1}}{$\sin$} > {\useMPgraphic{gpg:mybeautifulcurves:2}}{$\cos$} > \stopcombination > } \useGNUPLOTgraphic[mybeautifulcurves][1] should work (I have to check - perhaps I forgot to prevent from loading the file once more). Looks as if \useGPgraphic shortcuts would be needed ;) > \stoptext > > The output is processed using: > gnuplot curves.gp > texexec gpsample > > With this method, the gnuplot call delivers a curves.tex file one could > keep as long as the plot doesn't change... Can be usefull when you have a > big document! ;) Sure. With md5 checksums new gnuplot runs should be prevented ... (if I ever come so far to know how to implement it or if Hans kindl offers a solution ;) Even better (faster) if you have a compiled version of plots and only include PDF ;) > I'll write a paper entitled "How to get a PhD with... ConTeXt" asap (I h= ave > the summary and the ideas but time is missing these days, as always and, > moreover because of my new job...). It'll mainly be a paper about > integration (m-bib, gnuplot, mp, etc...) Great! > Renaud > > PS: what will you do to manage your gnuplot module for ConTeXt ? Include= it > into official gnuplot ? It's maybe the time to keep it "well managed", wi= th > supelec foundry for example... What your opinion ? I just finished dummy parsing of font switches (terminals should implement set font "fontname,fontsize"), I have to implement palettes and then the first phase of the terminal will be ready (still missing are the binary images and more clever handling of palettes) The only thing I would like to sort out before officially releaing it: some new things come and will come to the gnuplot core (like transparency). I'm thinking about replacing the syntax from something like gp_put_text(x, y, gp_align_left, \sometxt{...}, ...) to something more general: gp_put_text("align=3Dleft,x=3D...,y=3D...") which basically means any number of optional parameters and consequently no problems with backward compatibility later if additional options will be added (such as transparency, ...). That should go to gnuplot CVS then. And t-gnuplot is/will be on modules.contextgarden.net (Hans might add it to distribution once it's ready/stable etc.) That one is not so clean yet. I need to implement changing the color & similar with \setupGNUPLOT[colorset=3D...,pointset=3D...,size=3D...,linewid= th=3D..., ...] Mojca