From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59768 Path: news.gmane.org!not-for-mail From: Gery Debongnie Newsgroups: gmane.comp.tex.context Subject: typefile behaviour Date: Mon, 21 Jun 2010 14:44:37 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277186504 5150 80.91.229.12 (22 Jun 2010 06:01:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2010 06:01:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 22 08:01:43 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 1OQwYJ-0004nc-Cc for gctc-ntg-context-518@m.gmane.org; Tue, 22 Jun 2010 08:01:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42266C9C3E; Tue, 22 Jun 2010 08:01:42 +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 bFAZVXCYYcT2; Tue, 22 Jun 2010 08:01:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12177C9C22; Tue, 22 Jun 2010 08:01:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A48EC9BF1 for ; Mon, 21 Jun 2010 15:44: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 (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kt0+aDAeZt5b for ; Mon, 21 Jun 2010 15:44:39 +0200 (CEST) Original-Received: from mail-gx0-f169.google.com (mail-gx0-f169.google.com [209.85.161.169]) by balder.ntg.nl (Postfix) with ESMTP id DE18EC9AB7 for ; Mon, 21 Jun 2010 15:44:38 +0200 (CEST) Original-Received: by gxk2 with SMTP id 2so400013gxk.14 for ; Mon, 21 Jun 2010 06:44:37 -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:content-transfer-encoding; bh=3EmHvTXvyxK4eqdq0r821xYBlaeSxKXpMy/C8RpI/S8=; b=eXENwdnyHoGWIDHxyfzdHydRSJUeJ5TgKEX/F0A9+cKoBd814NeI6oikU6xl3n1WHM xCvippo7y6pYmSLZmS0YFQNZTwhT1qrT82E+BICbo8+wstbIswJzDvxrjyPIDGrsobCP uLcHCOXXjz2rR+BjUgK2D61CNhbqO6VMOrW/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=F+bAaRDcmVRq/y+2ZPIzNrHoPQg0+V4Q7gHwp64/cMDeWeug/ka5a64d9XO3BiDdES 3hKdczGou2RPNErQg0YFuv3ZzfY0+9zrHdv+25k0xCuZgqzKPF+wjnT2l5LPtRneT9A/ hwL65c8k2tVL3OSe0CdRVzXRIbK0lxC6xjsec= Original-Received: by 10.150.175.21 with SMTP id x21mr4297609ybe.290.1277127877519; Mon, 21 Jun 2010 06:44:37 -0700 (PDT) Original-Received: by 10.150.148.1 with HTTP; Mon, 21 Jun 2010 06:44:37 -0700 (PDT) X-Mailman-Approved-At: Tue, 22 Jun 2010 08:01:38 +0200 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:59768 Archived-At: Dear ConTeXt list, I encountered a weird behaviour while using typefile. Here is a minimal example, to illustrate what I am saying. We have two files, test.txt and test.tex, respectively (between the ---------). ----------------- 1 2 3 4 5 ------------------- \setuptyping [before=3D{\startframedtext}, after=3D{\stopframedtext}] \starttext \typefile[start=3D2,stop=3D4]{test.txt} \typefile[start=3D2,stop=3D5]{test.txt} \stoptext ------------------- Now, if you save those lines into test.txt and test.tex, and if you compile the tex file, you get the exact same boxes. As far as I understand it, ConTeXt works as I expect when there is no empty line, meaning that it typeset the lines between start and stop. However, when there is an empty line right after the last line, ConTeXt also includes it. I don't really understand that behaviour. Perhaps it is something to do with different paragraphs, I don't know. However, what I do know is that it is annoying. It adds an empty line at an unwanted place, and it looks unprofessional in my text. So, my question is the following : 1. Why does it behave like that? Is that a bug? 2. What should I do to solve that problem? Regards, G=E9ry D. ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________