From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74158 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Gnuplot and the dollar sign Date: Sat, 28 Jan 2012 11:23:17 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327771752 11980 80.91.229.3 (28 Jan 2012 17:29:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2012 17:29:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 28 18:29:10 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrC5N-0001vg-0C for gctc-ntg-context-518@m.gmane.org; Sat, 28 Jan 2012 18:29:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1FDACCB20F; Sat, 28 Jan 2012 11:23:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M6LEkc-ywiGe; Sat, 28 Jan 2012 11:23:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3ABACB208; Sat, 28 Jan 2012 11:23:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 403B4CB208 for ; Sat, 28 Jan 2012 11:23:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zNvfnQSBItzm for ; Sat, 28 Jan 2012 11:23:20 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 31389CB207 for ; Sat, 28 Jan 2012 11:23:20 +0100 (CET) Original-Received: from mail-qy0-f169.google.com (mail-qy0-f169.google.com [209.85.216.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0SANIEs023450 for ; Sat, 28 Jan 2012 11:23:19 +0100 Original-Received: by qcsg1 with SMTP id g1so1636594qcs.14 for ; Sat, 28 Jan 2012 02:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KUQpJuFoNgJawz00le2OSO4c7sSezC5cbGYqbAQVhyY=; b=e8IYbAzxjx8wqBVvL+62GxkrOkadSmvfG5MfIOMtQnYUpm0+pH5AruMN1+0suBVlmf 4ZrcnpCgWFqzxF1X3LCICYaGE01DojNQFyEFuAIElI5kp1COiPUroYXeu9OQVtHtJsif vypqfEVX+Xk/TMfcdFlhcUE/U+6GUJhchS+lU= Original-Received: by 10.229.106.6 with SMTP id v6mr3846369qco.54.1327746198040; Sat, 28 Jan 2012 02:23:18 -0800 (PST) Original-Received: by 10.229.181.209 with HTTP; Sat, 28 Jan 2012 02:23:17 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGqWnjar - 4e5b6139f2d6 - 20120128 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74158 Archived-At: On Sat, Jan 28, 2012 at 09:16, Janne Junnila wrote: > Hi! > > I'm having trouble while trying to make the following work: > > \usemodule[gnuplot] > > \startGNUPLOTscript[distr_simple_1] > > plot "2_simple_1.out" using > (0.01*floor($1/0.01)):(0.870456/100000/0.01) smooth frequency with > boxes, (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x) > \stopGNUPLOTscript > > \useGNUPLOTgraphic[distr_simple_1] > > The problem seems to be that the single dollar sign gets interpreted > as the start of a math environment. On one hand that is the intended default behaviour. It is very handy to be able to use plot (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x) title '$\left(\cos(2x) \cdot \sin(0.5x)\right+1) e^{-0.4x}$' to get nice result. On the other hand I'm not exactly sure how to reliably print whatever gets passed to ConTeXt. The only option that comes to my mind is some modification of \sometxt{\starttyping floor($1/0.01) \stoptyping} where \starttyping would generate a single line. But one would need a special option for that. (The command \type{...} would not be reliable enough: in MKII it stops working at the second underscore and it is a problem if one has curly braces in text.) > I tried to look through the source > code to see how I could tell context to bypass checking for certain > characters, but I couldn't figure it out. Currently the only option is to provide an explicit title. But if there's a request to support literal output and if somebody can help me figure out how exactly I should output the given text into metapost, so that it will be reliably printed out literally. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________