From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76755 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: frame and numbering of code snippets using vim-module Date: Wed, 6 Jun 2012 20:54:32 -0400 (EDT) Message-ID: References: <4FCFEF2C.2030207@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339030485 31836 80.91.229.3 (7 Jun 2012 00:54:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jun 2012 00:54:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 07 02:54:44 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 1ScQzs-0003ey-AP for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jun 2012 02:54:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 05F87101E3; Thu, 7 Jun 2012 02:54:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c38JLLmTYDM7; Thu, 7 Jun 2012 02:54:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2539A101E0; Thu, 7 Jun 2012 02:54:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5F7A101E0 for ; Thu, 7 Jun 2012 02:54:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c9i77So6msf7 for ; Thu, 7 Jun 2012 02:54:37 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id C3028101DD for ; Thu, 7 Jun 2012 02:54:37 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q570sY80015791 for ; Thu, 7 Jun 2012 02:54:36 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 4FCFFBC9.80AF4.1891 ; Authuser adityam; 6 Jun 2012 20:54:33 EDT In-Reply-To: <4FCFEF2C.2030207@googlemail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NHjcSzMQ - ac51df37d837 - 20120607 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76755 Archived-At: On Thu, 7 Jun 2012, Xenia wrote: > Hi context folks, > > using the vim module for including MATLAB-code, I noticed some annoying > behavior: > > The frame, that I produced with your help using `\definetextbackground`, > is not wide enough for the text inside, or rather the line wraps are > done too late (see the attached examples!). For the time being, use this version of t-syntax-highlighting.mkiv (add it to your project directory) https://github.com/adityam/filter/blob/75d95dc587f5246d336bd2dc3efe840b0fcb3f3c/t-syntax-highlight.mkiv I'll check later why the new version is failing. > Additionally the frame has a bottom line at the end of the page although > the code snippet did not end yet. It looks as if a new box begins. That is the default behaviour of backgrounds. You can use the examples given in this thread http://archive.contextgarden.net/message/20110803.150829.6127cbc9.en.html > Besides there should not be a new line number after a line break. I am not sure how to prevent line number from appearing on split lines. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________