From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97686 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Line numbering broken somehow? Date: Thu, 30 Mar 2017 13:08:16 +0200 Message-ID: <58DCE720.8060606@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1792260437713307027==" X-Trace: blaine.gmane.org 1490872135 12614 195.159.176.226 (30 Mar 2017 11:08:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Mar 2017 11:08:55 +0000 (UTC) User-Agent: Postbox 5.0.11 (Macintosh/20170302) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 30 13:08:50 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctXwZ-00028F-Lv for gctc-ntg-context-518@m.gmane.org; Thu, 30 Mar 2017 13:08:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7785584BAA; Thu, 30 Mar 2017 13:08:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gx5CBZM-3fKJ; Thu, 30 Mar 2017 13:08:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id AF9AB84BAB; Thu, 30 Mar 2017 13:08:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2669F84BA9 for ; Thu, 30 Mar 2017 13:08:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5RGlxQmXdHE4 for ; Thu, 30 Mar 2017 13:08:30 +0200 (CEST) Original-Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9E14984BA8 for ; Thu, 30 Mar 2017 13:08:20 +0200 (CEST) Original-Received: by mail-wr0-f179.google.com with SMTP id w11so54372854wrc.3 for ; Thu, 30 Mar 2017 04:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=A/M2GrxEvYWYFF5WGQpJVKj8RcJoVy4iqxwRl027Uec=; b=WcD6Apjr85avNb+vtCuVc83KTSsfaBMVGU323GuaEBHY8K8mWz4Dy3Hrbrh42QL9pU i30w88zKknaMW1nW6jSxi9TfpDnsdYNzTYDbcdoYyfyVexTsF+z8rqhsR3M1fzPfmZlm IpWyeWl8H6LGewiKesefI4XMqmy7MkIbCGJ4hLoTQe3ZsGbXQ7oL7PkokMV5qs9+f8np 97nAOMc5oPNNkS5rVGJUMBZQVOB+0z/IW8q1kx/h699N0E5d5Al9DD8+P7EAieYpBLYC jxtD1+PBnI4F6qKlzw/qvRGgHHLeATWuNJgL6VPpiN3HtJIDucY22+/w+6TSxtN27jCH G3Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=A/M2GrxEvYWYFF5WGQpJVKj8RcJoVy4iqxwRl027Uec=; b=KEoH9IvzBfh+1gm9Qu9MuadYQ+78brVAyTuYuWFFvI/XZsaGvi+5+D/+EmCcVBMD0f bwE4ye7JosmhSU9WFv+6XLrtWB9t/dR8jsqqimmfUD8vaYW96iGNie0wLtMnfuPEVpSa lp6wIfFENRbTqmP7yFottr52chOkFX/0IB/SKcVHNWZ784L1t3BdY/vMiPCR1SJE0j3D CN1MF6LuwOsIOCCf897ro1i7kSkejhpmj/BGjzOwDDDrpTCR3AM/MQRgOngwybMxZl/5 +R0iMm5iuvkFEyIrq5tUbgm8IiOJdsstyVLOMS89UVQAHIUNjW33oCHZgy6hDDcG0IPt gruw== X-Gm-Message-State: AFeK/H1x8ljGZmV6s4VanhU8/K/ThuwUBe48Y9Q79fFas82YxrxF6V6Y433zK0W5kMTKig== X-Received: by 10.223.169.210 with SMTP id b76mr5243075wrd.197.1490872099852; Thu, 30 Mar 2017 04:08:19 -0700 (PDT) Original-Received: from keima.localdomain (x2f25b0b.dyn.telefonica.de. [2.242.91.11]) by smtp.gmail.com with ESMTPSA id 134sm11823730wmj.6.2017.03.30.04.08.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2017 04:08:19 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:97686 Archived-At: This is a multi-part message in MIME format. --===============1792260437713307027== Content-Type: multipart/alternative; boundary="------------030101050103010709010601" This is a multi-part message in MIME format. --------------030101050103010709010601 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Procházka Lukáš Ing. > 30. März 2017 um 12:28via Postbox > > Hello, > > could anyone confirm that line numbering on the last page is somehow > broken, i.e. it ignores the style assigned by \setuplinenumbering (but > works OK on other pages)? It’s a side effect of the way how line numbering works. To get the correct style for the last page you need global setups. %%%% begin example \setuplinenumbering [TEX] [location=inmargin, style=\tt\tfx, color=darkgreen] \setuptyping [TEX] [numbering=line] \starttext \typefile[TEX]{\inputfilename} \stoptext Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text %%%% end example Wolfgang --------------030101050103010709010601 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

30. März 2017 um 12:28 via Postbox
Hello,

could anyone confirm that line numbering on the last page is somehow broken, i.e. it ignores the style assigned by \setuplinenumbering (but works OK on other pages)?
It’s a side effect of the way how line numbering works. To get the correct style for the last page you need global setups.

%%%% begin example
\setuplinenumbering
  [TEX]
  [location=inmargin,
   style=\tt\tfx,
   color=darkgreen]

\setuptyping
  [TEX]
  [numbering=line]

\starttext
\typefile[TEX]{\inputfilename}
\stoptext

Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
%%%% end example

Wolfgang
--------------030101050103010709010601-- --===============1792260437713307027== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1792260437713307027==--