ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: linenumbering
Date: Mon, 09 Jul 2012 22:46:47 +0200	[thread overview]
Message-ID: <4FFB4337.1050607@wxs.nl> (raw)
In-Reply-To: <4FFB27E0.9060609@uni-bonn.de>

On 9-7-2012 20:50, Thomas A. Schmitz wrote:
> \def\startnumberedblockquote
>    {\dosingleempty\dostartnumberedblockquote}
>
> \def\dostartnumberedblockquote[#1]%
>    {\getrawparameters[numberedblockquote][start=1,#1]%
>     \blank[line]%
>     \begingroup
>     \setupindenting[no]%
>     \setuplinenumbering[location=text]
>     \startlinenumbering[width=1cm][\numberedblockquotestart]}
>
> \def\stopnumberedblockquote
>    {\stoplinenumbering
>     \endgroup
>     \blank[line]}
>
> \starttext
>
> \startnumberedblockquote[start=3]
>
> \input knuth
>
> \stopnumberedblockquote
>
> \stoptext

fixed

% \startlinenumbering[<startvalue>|continue|settings|name]
% \startlinenumbering[name][<startvalue>|continue|settings]

btw, you can define linenumberings ...

\definelinenumbering
   [blocked]
   [width=1cm,
    location=text,
    before={\blank[line]},
    after={\blank[line]}]

\getrawparameters
   [numberedblockquote]
   [start=1]

\unexpanded\def\startnumberedblockquote
   {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
   {\begingroup
    \setupindenting[no]%
    \getrawparameters[numberedblockquote][#1]%
    \startlinenumbering[blocked][start=\numberedblockquotestart]}

\unexpanded\def\stopnumberedblockquote
   {\stoplinenumbering
    \endgroup}

-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-07-09 20:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 18:50 linenumbering Thomas A. Schmitz
2012-07-09 20:46 ` Hans Hagen [this message]
2012-07-10  5:43   ` linenumbering Thomas A. Schmitz
2012-07-12 13:57   ` linenumbering Thomas A. Schmitz
2012-07-12 20:34     ` linenumbering Wolfgang Schuster
2012-07-14 15:09       ` linenumbering Thomas A. Schmitz
  -- strict thread matches above, loose matches on Subject: below --
2014-04-09 22:46 Linenumbering MANUEL GONZALEZ SUAREZ
2014-04-15  6:58 ` Linenumbering Hans Hagen
2014-04-23  8:06   ` Linenumbering MANUEL GONZALEZ SUAREZ
2012-05-25  8:07 Linenumbering Willi Egger
2012-05-25  8:48 ` Linenumbering Hans Hagen
2012-05-25 10:30   ` Linenumbering Willi Egger
2012-05-25 10:33     ` Linenumbering Willi Egger
2012-05-25 11:59       ` Linenumbering Rogers, Michael K
2012-05-25 15:19         ` Linenumbering Willi Egger
2006-01-14 12:18 linenumbering Thomas A. Schmitz
2006-01-15 18:14 ` linenumbering 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=4FFB4337.1050607@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=thomas.schmitz@uni-bonn.de \
    /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).