From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80289 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Vim module - different settings for inline and block code Date: Wed, 16 Jan 2013 16:58:38 +0100 Message-ID: References: <20130116145139.GB29592@homerow> <20130116153906.GC29592@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358351928 22207 80.91.229.3 (16 Jan 2013 15:58:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2013 15:58:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 16 16:59:07 2013 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 1TvVOM-0005Sv-0e for gctc-ntg-context-518@m.gmane.org; Wed, 16 Jan 2013 16:59:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C870101E2; Wed, 16 Jan 2013 16:58:49 +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 YsvWB8nAoKba; Wed, 16 Jan 2013 16:58:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6787D101E5; Wed, 16 Jan 2013 16:58:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2D2D101E5 for ; Wed, 16 Jan 2013 16:58:45 +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 e-RJbtYHG6k5 for ; Wed, 16 Jan 2013 16:58:44 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id D0B7E101E2 for ; Wed, 16 Jan 2013 16:58:44 +0100 (CET) Original-Received: from mail-bk0-f43.google.com (mail-bk0-f43.google.com [209.85.214.43]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0GFwfZu005939 for ; Wed, 16 Jan 2013 16:58:41 +0100 Original-Received: by mail-bk0-f43.google.com with SMTP id jf20so799954bkc.30 for ; Wed, 16 Jan 2013 07:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=NUZUOP04cyUIFG+DW/yKt53x/xYuAWabhSWvkEfIK6A=; b=R0lv5KPU3nUxjL5thYP5iW7a/bzDm4PwU0My4bhtvD77BkcZsHQ5zRriacCYdErjYf 6cI0VDvlgSHi2BbWEs/LhB2l2cY34zvBkapflxeKd7X1YHba49/5pop1IA2Kxh5InX8E 9wwOIV/thMf74PM/AfWGQO3VDdU4hk3ZOwFv7Fvj234oOZdDct+4asaNsbcHJq/FSD22 UNS+e+cT568WaqN7r3T32swTtqnyIXhH7k/Nu1id0HAY0ITk+AZ8qO0wJ/rUFmKqg8O5 VxiqiQJ0umsj/H5dT77R+cdKc0w0eJxV8MLxO2JLBvL05znAGb3kBng8Rx1PWQgn866h AKNg== X-Received: by 10.204.146.6 with SMTP id f6mr512953bkv.69.1358351921236; Wed, 16 Jan 2013 07:58:41 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe4ec1.pool.mediaWays.net. [77.190.78.193]) by mx.google.com with ESMTPS id u3sm15979036bkw.9.2013.01.16.07.58.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jan 2013 07:58:40 -0800 (PST) In-Reply-To: <20130116153906.GC29592@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.43; 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: 03IMDWFj5 - 3c80b1704e36 - 20130116 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80289 Archived-At: Am 16.01.2013 um 16:39 schrieb Marco Patzer : > On 2013=9601=9616 Wolfgang Schuster wrote: > = >> \definevimytping >> [C] >> [=85, >> before=3D{\ifhmode\startInlineBackground\else\startDisplayBackground\f= i}, >> after=3D{\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, >> =85] > = > That's a good idea and it seems to work. > = >> You could also ask Aditya to use different keys for display (e.g. before= /aftter) >> and inline (e.g. left/right) code blocks. > = > That's not necessary. I think your solution is clean enough. The test doesn=92t work when you use \inlineC at the beginning of a paragra= ph because TeX it at this moment still in vertical mode and you have to add a \dontlea= vehmode to force horizontal mode. \def\TestMode {\ifhmode \bold{Horizontal Mode}% \else \bold{Vertical Mode}% \fi} \starttext \TestMode\ Inline \TestMode \dontleavehmode\TestMode\ Inline \TestMode \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________