From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: [Fwd: Line numbering]
Date: Thu, 7 Sep 2006 01:48:52 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0609070146280.188@nqvgln> (raw)
In-Reply-To: <1157604236.2206.437.camel@danube.river-valley.com>
Hi CVR,
> From: CV Radhakrishnan <cvr@river-valley.org>
> Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Line numbering
> Date: Sat, 02 Sep 2006 10:13:31 +0530
>
> Dear all,
>
> Forgive me if I sound naive. I searched the archives, but could not
> find the solution for my following problem:
>
> I need to have line numbers for the text formatted in two columns. The
> numbers for left column shall appear in the left side and that for right
> column shall appear in the right side of the page. location=inmargin
> option to the \setuplinenumbering doesn't help much. Please take a look
> at the following image:
>
> http://www.river-valley.com/cvr/one.png
>
> which will give you an idea of my requirement. Any help in this matter
> will be highly apprecaited and thanks in advance.
I do not know how to automate what you want. An ugly solution is to
specify the column breaks yourself, something like
\unprotect
\def\dosetuplinenumbering[#1]%
{\getparameters[\??rn][\c!start=1,\c!step=1,#1]%
% \global\linenumber\plusone
% Do not reset linenumber. Why is this here?
}
\protect
\starttext
\startcolumns
\setuplinenumbering[location=inleft]
\startlinenumbering
\input knuth
\stoplinenumbering
\column
\setuplinenumbering[location=inright]
\startlinenumbering[continue]
\input knuth
\stoplinenumbering
\stopcolumns
\stoptext
Aditya
next prev parent reply other threads:[~2006-09-07 5:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-07 4:43 CV Radhakrishnan
2006-09-07 5:48 ` Aditya Mahajan [this message]
2006-09-07 16:22 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.WNT.4.63.0609070146280.188@nqvgln \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).