From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88395 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug with vimtyping: no line numbers Date: Wed, 13 Aug 2014 10:39:46 -0400 (EDT) Message-ID: References: <20140811173743.16f55a23@google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-191106652-1407940787=:29684" X-Trace: ger.gmane.org 1407940821 19204 80.91.229.3 (13 Aug 2014 14:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 14:40:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 13 16:40:13 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHZim-0006pm-VZ for gctc-ntg-context-518@m.gmane.org; Wed, 13 Aug 2014 16:40:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62C95102A2 for ; Wed, 13 Aug 2014 16:40:11 +0200 (CEST) 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 3vVzDQbZtvIx for ; Wed, 13 Aug 2014 16:40:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9B95C10225 for ; Wed, 13 Aug 2014 16:40:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 173DC101EF for ; Wed, 13 Aug 2014 16:40:00 +0200 (CEST) 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 HkCXgRK39Rjs for ; Wed, 13 Aug 2014 16:39:57 +0200 (CEST) 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 3A07F101EE for ; Wed, 13 Aug 2014 16:39:52 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7DEd3uo011037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 13 Aug 2014 16:39:05 +0200 Original-Received: FROM adi-thinkpad.local ((null) [135.0.226.162]) By hellskitchen.mr.itd.umich.edu ID 53EB78B3.C0189.28538 ; Authuser adityam; 13 Aug 2014 10:39:47 EDT In-Reply-To: <20140811173743.16f55a23@google.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=Michigan; city=Ann Arbor; latitude=42.2734; longitude=-83.7133; http://maps.google.com/maps?q=42.2734,-83.7133&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WMCeD4Bp - 6f789d60d532 - 20140813 (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.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:88395 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-191106652-1407940787=:29684 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 11 Aug 2014, G=C3=BCnter Kolousek wrote: > > I think there is a bug in the (latest) beta that was not there earlier > this year. In particular, it worked (and still works) in the version > > current version: 2014.03.19 23:11 > > but it show *no* line numbers at all in the (latest) beta: > > current version: 2014.07.30 10:31 > > A minimal example follows: > > \usemodule[vim] > > \setupvimtyping[% > numbering=3Dyes,% > numberdistance=3D2em] > \definevimtyping[cpp][syntax=3Dcpp] > > \starttext > \startcpp > #include > > int main() { > std::cout << "Hello, world!" << std::endl; > } > \stopcpp > \stoptext > > Sadly, I'm not a ConTeXt nor a lua expert so maybe anybody can help? A quick work around is to add numberlocation=3Dleft in your setup. For example: \usemodule[vim] \setupvimtyping [ numbering=3Dyes, numberdistance=3D1em, numberlocation=3Dleft, ] \definevimtyping[cpp][syntax=3Dcpp] \starttext \startcpp #include int main() { std::cout << "Hello, world!" << std::endl; } \stopcpp \stoptext numberlocation=3Dleft is the default anyways, so I don't know why the bug= =20 occurs. Aditya --8323329-191106652-1407940787=:29684 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323329-191106652-1407940787=:29684--