From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104705 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Oliver von Criegern Newsgroups: gmane.comp.tex.context Subject: In a two column layout, activate line numbering for one column only Date: Tue, 30 Jul 2019 16:29:05 +0200 Message-ID: <1775583a-67b5-76b6-4f23-5924793b6ae0@badw-muenchen.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2927799602103830816==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159604"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 30 16:35:39 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsTE3-000fOG-8C for gctc-ntg-context-518@m.gmane.org; Tue, 30 Jul 2019 16:35:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48FFD152F8A; Tue, 30 Jul 2019 16:35:19 +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 jJYJyj3zkxqe; Tue, 30 Jul 2019 16:35:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5B7BA152F8D; Tue, 30 Jul 2019 16:35:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 158FF152F8A for ; Tue, 30 Jul 2019 16:35:17 +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 IFF2CPPktbm1 for ; Tue, 30 Jul 2019 16:35:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=129.187.255.137; helo=postout1.mail.lrz.de; envelope-from=oliver.v.criegern@badw-muenchen.de; receiver= X-Greylist: delayed 369 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 30 Jul 2019 16:35:15 CEST Original-Received: from postout1.mail.lrz.de (postout1.mail.lrz.de [129.187.255.137]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 66AA6152D95 for ; Tue, 30 Jul 2019 16:35:15 +0200 (CEST) Original-Received: from lxmhs51.srv.lrz.de (localhost [127.0.0.1]) by postout1.mail.lrz.de (Postfix) with ESMTP id 45yf7j6hqczyWB for ; Tue, 30 Jul 2019 16:29:05 +0200 (CEST) X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs51.srv.lrz.de Original-Received: from postout1.mail.lrz.de ([127.0.0.1]) by lxmhs51.srv.lrz.de (lxmhs51.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id DxjrILKGu0wF for ; Tue, 30 Jul 2019 16:29:05 +0200 (CEST) Original-Received: from [IPv6:2001:4ca0:1:0:1488:34d6:8350:3a4] (unknown [IPv6:2001:4ca0:1:0:1488:34d6:8350:3a4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by postout1.mail.lrz.de (Postfix) with ESMTPSA id 45yf7j2ZFgzyVh for ; Tue, 30 Jul 2019 16:29:05 +0200 (CEST) Content-Language: en-US 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.org gmane.comp.tex.context:104705 Archived-At: This is a multi-part message in MIME format. --===============2927799602103830816== Content-Type: multipart/alternative; boundary="------------7365E61F0106A79B816BA07B" Content-Language: en-US This is a multi-part message in MIME format. --------------7365E61F0106A79B816BA07B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear list members, I am trying to recreate a layout for some dictionary with ConTeXt. It is a two column layout with line numbering between the columns, that is, there is only one numbering for both columns. How can I do this with ConTeXt? I would need either an option to activate line numbering only for one column, which, as far as I can see, does not exist; or I could use the "command" option for "\setuplinenumbering" to make the line numbers dissappear for one column, but then I would need some way to decide whether a line number belongs to the first or to the second column, some command that returns to me the number of the actual column, which I can't find, too. For illustration, I give a minimal example: ||\setuppapersize[A4][A4]\setupbodyfont[9pt]|| |||\setupcolumns[n=2, distance=1cm, ]\setuplinenumbering[step=5, method=page, location=right, align=flushright, width=.25cm]\starttext\startcolumns\startlinenumbering\dorecurse{10}{\inputlorem}\par\stoplinenumbering\stopcolumns\stoptext||| In the result, there are (as is to be expected) line numbers between both columns and also to the right of the second column. How can I get rid of the latter ones? (For the pdf result see also: https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only). Best regards, Oliver. || --------------7365E61F0106A79B816BA07B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Dear list members,

I am trying to recreate a layout for some dictionary with ConTeXt. It is a two column layout with line numbering between the columns, that is, there is only one numbering for both columns. How can I do this with ConTeXt?

I would need either an option to activate line numbering only for one column, which, as far as I can see, does not exist; or I could use the "command" option for "\setuplinenumbering" to make the line numbers dissappear for one column, but then I would need some way to decide whether a line number belongs to the first or to the second column, some command that returns to me the number of the actual column, which I can't find, too.

For illustration, I give a minimal example:


\setuppapersize[A4][A4]
\setupbodyfont[9pt]

\setupcolumns[
    n=2,
    distance=1cm,
]

\setuplinenumbering[
    step=5,
    method=page,
    location=right,
    align=flushright,
    width=.25cm
]

\starttext

\startcolumns
\startlinenumbering
\dorecurse{10}{\input lorem}\par
\stoplinenumbering
\stopcolumns

\stoptext


In the result, there are (as is to be expected) line numbers between both columns and also to the right of the second column. How can I get rid of the latter ones?

(For the pdf result see also: https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only).

Best regards,
Oliver.


--------------7365E61F0106A79B816BA07B-- --===============2927799602103830816== 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== --===============2927799602103830816==--