From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62717 Path: news.gmane.org!not-for-mail From: Chen Shen Newsgroups: gmane.comp.tex.context Subject: problem with t-filter/t-vim Date: Tue, 19 Oct 2010 15:57:44 +0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1950509487==" X-Trace: dough.gmane.org 1287475078 27134 80.91.229.12 (19 Oct 2010 07:57:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2010 07:57:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 19 09:57:57 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8752-0006QG-HB for gctc-ntg-context-518@m.gmane.org; Tue, 19 Oct 2010 09:57:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 994C6CA760; Tue, 19 Oct 2010 09:57:55 +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 gpBlaxFynS4f; Tue, 19 Oct 2010 09:57:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B292CA6E1; Tue, 19 Oct 2010 09:57:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBDDECA6E1 for ; Tue, 19 Oct 2010 09:57:47 +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 DdGrHiM6m5CQ for ; Tue, 19 Oct 2010 09:57:45 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 3FB35CA6DF for ; Tue, 19 Oct 2010 09:57:45 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9J7viw3025426 for ; Tue, 19 Oct 2010 09:57:44 +0200 Original-Received: by wyf28 with SMTP id 28so2280924wyf.14 for ; Tue, 19 Oct 2010 00:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=nuuoUA401NoIfybA+rvbe+Wc6aai1GAOOi2qAQyz63E=; b=RV91hkfwJYpHpkz/WrhhaZpVjo9p2VetAfs/+wwRAJea0+t1s31CLgCg70Nf9tFMsN 86fR3o2lxrq48EZ3luBtgIkc1U/EbD/f+AWn1iuqrAGnx5Ys+dYBSuqLLE1J80UtCkDd WAYTVclRmfKj/zPCgV2oxiqxCe9YcYeMXDg9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rX7/xzoJeowSo5tTiK8ynYgIhhISD8b5jO3Ff4pUElns0VcZswhLLYAFAG67YrqWG3 LlG6LE99VGIn5OPJV+CcbjPiY8hmLhlIZ/kysSsweSQUNnrMmEs8UA6kzmXX7D+lSiuW w4EeOY66wqIiDe9v+mgKFS0eLBekt623/H2KQ= Original-Received: by 10.227.32.147 with SMTP id c19mr5694796wbd.43.1287475064157; Tue, 19 Oct 2010 00:57:44 -0700 (PDT) Original-Received: by 10.227.39.73 with HTTP; Tue, 19 Oct 2010 00:57:44 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.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: 08DkvVIHf - c08c2f23a092 - 20101019 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:62717 Archived-At: --===============1950509487== Content-Type: multipart/alternative; boundary=002215975146db38860492f3a57c --002215975146db38860492f3a57c Content-Type: text/plain; charset=UTF-8 Hi Adityam, I am using the t-filter/t-vim module, and got stuck with two problems with it. 1. everything works fine if there is only one \definevimtyping declaration. However, if i declare two of them, as in the following: %%%%%%% \definevimtyping[PythonCode][syntax=python] \definevimtyping[CPPCode][syntax=cpp] \startPythonCode ... % Code A \stopPythonCode \startPythonCode ... % Code B \stopPythonCode %%%%%%% The counter for the temporary files is never incremented. So there is only "jobname-externalfilter-PythonCode-0.tmp" in the directory. Consequently, Code B appears twice in the produced PDF, while Code A never appears. 2. Every line in the Python code becomes a new paragraph in ConTeXt. I wonder if this could be changed. I am using \setupwitespace[line], so the spacing between two lines of source is too large. I am using the dev/ branch in the github repository. Thank you very much. regards, shenchen --002215975146db38860492f3a57c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adityam,

I am using the t-filter/t-vim module, and go= t stuck with two problems with it.
1. everything works fine if th= ere is only one \definevimtyping declaration. However, if i declare two of = them, as in the following:

%%%%%%%
\definevimtyping[PythonCode][syntax= =3Dpython]
\definevimtyping[CPPCode][syntax=3Dcpp]

=
\startPythonCode
... % Code A
\stopPythonCod= e

\startPythonCode
... % Code B
\stop= PythonCode
%%%%%%%

The counter for the t= emporary files is never incremented. So there is only "jobname-externa= lfilter-PythonCode-0.tmp" in the directory.
Consequently, Code B appears twice in the produced PDF, while Code A n= ever appears.

2. Every line in the Python code bec= omes a new paragraph in ConTeXt. I wonder if this could be changed.
I am using \setupwitespace[line], so the spacing between two lines of = source is too large.

I am using the dev/ branch in= the github repository.
Thank you very much.

regards,
shenchen
--002215975146db38860492f3a57c-- --===============1950509487== 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 ___________________________________________________________________________________ --===============1950509487==--