<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear list members, <br>
    </p>
    <p>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?</p>
    <p>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. </p>
    <p>For illustration, I give a minimal example:</p>
    <p><br>
    </p>
    <pre class="lang-tex prettyprint prettyprinted" style=""><code><span class="kwd"><code><span class="kwd">\setuppapersize</span><span class="pun">[</span><span class="pln">A4</span><span class="pun">][</span><span class="pln">A4</span><span class="pun">]</span><span class="pln">
</span><span class="kwd">\setupbodyfont</span><span class="pun">[</span><span class="lit">9pt</span><span class="pun">]</span><span class="pln">
</span></code></span></code>
<code><span class="kwd"><code><span class="pln"></span></code>\setupcolumns</span><span class="pun">[</span><span class="pln">
    n</span><span class="pun">=</span><span class="pln">2,
    distance</span><span class="pun">=</span><span class="lit">1cm</span><span class="pln">,
</span><span class="pun">]</span><span class="pln">

</span><span class="kwd">\setuplinenumbering</span><span class="pun">[</span><span class="pln">
    step</span><span class="pun">=</span><span class="pln">5,
    method</span><span class="pun">=</span><span class="pln">page,
    location</span><span class="pun">=</span><span class="pln">right,
    align</span><span class="pun">=</span><span class="pln">flushright,
    width</span><span class="pun">=</span><span class="lit">.25cm</span><span class="pln">
</span><span class="pun">]</span><span class="pln">

</span><span class="kwd">\starttext</span><span class="pln">

</span><span class="kwd">\startcolumns</span><span class="pln">
</span><span class="kwd">\startlinenumbering</span><span class="pln">
</span><span class="kwd">\dorecurse</span><span class="pun">{</span><span class="pln">10</span><span class="pun">}{</span><span class="kwd">\input</span><span class="pln"> lorem</span><span class="pun">}</span><span class="kwd">\par</span><span class="pln">
</span><span class="kwd">\stoplinenumbering</span><span class="pln">
</span><span class="kwd">\stopcolumns</span><span class="pln">

</span><span class="kwd">\stoptext</span></code><code><span class="kwd">
</span></code></pre>
    <p><br>
    </p>
    <p>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? <br>
    </p>
    <p>(For the pdf result see also:
<a class="moz-txt-link-freetext" href="https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only">https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only</a>).
      <br>
    </p>
    <p>Best regards, <br>
      Oliver.</p>
    <p><br>
    </p>
    <pre class="lang-tex prettyprint prettyprinted" style=""><code><span class="kwd"></span></code></pre>
  </body>
</html>