From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109148 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Felix Krause" Newsgroups: gmane.comp.tex.context Subject: Line numbering skips lines Date: Fri, 30 Oct 2020 15:43:38 +0100 Message-ID: <54B64A7F-3771-4AB7-AECE-E7A9D54988F7@flyx.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5783496402634673454==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33870"; mail-complaints-to="usenet@ciao.gmane.io" To: "Mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 30 15:49:32 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYVie-0008im-9W for gctc-ntg-context-518@m.gmane-mx.org; Fri, 30 Oct 2020 15:49:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B3B701A98A5; Fri, 30 Oct 2020 15:49:10 +0100 (CET) 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 a2O0to3DcESj; Fri, 30 Oct 2020 15:49:09 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA8EF1A9BE9; Fri, 30 Oct 2020 15:49:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4F97B1A98CC for ; Fri, 30 Oct 2020 15:49:08 +0100 (CET) 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 UE0577d_OVeC for ; Fri, 30 Oct 2020 15:49:07 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.244.195.95; helo=mail.flyx.org; envelope-from=contact@flyx.org; receiver= X-Greylist: delayed 328 seconds by postgrey-1.36 at zapf.ntg.nl; Fri, 30 Oct 2020 15:49:07 CET Original-Received: from mail.flyx.org (mail.flyx.org [185.244.195.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 986851A98A5 for ; Fri, 30 Oct 2020 15:49:07 +0100 (CET) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=37.24.200.174; helo=[10.0.7.10]; envelope-from=contact@flyx.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flyx.org; s=mail; t=1604069019; bh=pFBeJJKHPZRXaPWrdGpDt+sZTNS/Dn/y1q5gayHf6ks=; h=From:To:Subject:Date; b=lGfX3jodC4MjHmOl+evC+s44+iHI+PmyQ66apc/Xei93Sxv+MFdFe17fThe8B/ycF tRYF9OfkSHpXqcW1ka2kE6SFQCF9bGhZ/FDsVJ98EgY83HBti51XifM4DVjMb5cXtA CWWGBZE9glC4jq0i4339LUch1xCrcx5CtjoGEhxE= Original-Received: from [10.0.7.10] (b2b-37-24-200-174.unitymedia.biz [37.24.200.174]) by mail.flyx.org (Postfix) with ESMTPSA id 4A0D3285444 for ; Fri, 30 Oct 2020 15:43:39 +0100 (CET) X-Mailer: MailMate (1.13.2r5673) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:109148 Archived-At: --===============5783496402634673454== Content-Type: multipart/alternative; boundary="=_MailMate_BC681DEE-B346-4478-834E-E315E7FAE2C5_=" --=_MailMate_BC681DEE-B346-4478-834E-E315E7FAE2C5_= Content-Type: text/plain; format=flowed; markup=markdown Hi all, in a typing environment, I have the problem that not every line is numbered: \definetyping [code] [numbering=line, escape={@[,@]}] \setupcolors[state=start] \definecolor[nonsigpart][r=.7,g=.7,b=.7] \defineframed[nonsig] [location=low,frame=off,background=color,backgroundcolor=nonsigpart] \starttext \startcode lorem ipsum @[ @] @[foo@] @[\nonsig{bar}@] dolor sit amet \stopcode \stoptext This will number * the first and last lines, containing normal text * the third line containing nothing at all * the forth line containing `foo` inside an escape sequence It will skip * the second line containing a space character inside an escape sequence * the fifth line which produces text with a gray background Why does it skip those lines? This seems really strange as a completely empty line does get numbered. How can I number every line? Regards, Felix --=_MailMate_BC681DEE-B346-4478-834E-E315E7FAE2C5_= Content-Type: text/html Content-Transfer-Encoding: quoted-printable

Hi all,

in a typing environment, I have the problem that not ever= y line is numbered:

\definetyping
    [code]
    [numbering=3Dline,
     escape=3D{@[,@]}]

\setupcolors[state=3Dstart]
\definecolor[nonsigpart][r=3D.7,g=3D.7,b=3D.7]
\defineframed[nonsig]
    [location=3Dlow,frame=3Doff,background=3Dcolor,backgroundcolor=3Dnons=
igpart]

\starttext
  \startcode
lorem ipsum
@[ @]

@[foo@]
@[\nonsig{bar}@]
dolor sit amet
  \stopcode
\stoptext

This will number

  • the first and last lines, containing normal text
  • the third line containing nothing at all
  • the forth line containing foo inside an escape sequence

It will skip

  • the second line containing a space character inside an escape sequenc= e
  • the fifth line which produces text with a gray background

Why does it skip those lines? This seems really strange a= s a completely empty line does get numbered. How can I number every line?=

Regards,
Felix

--=_MailMate_BC681DEE-B346-4478-834E-E315E7FAE2C5_=-- --===============5783496402634673454== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5783496402634673454==--