ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: linenumbering
Date: Mon, 09 Jul 2012 20:50:08 +0200	[thread overview]
Message-ID: <4FFB27E0.9060609@uni-bonn.de> (raw)

OK, here's another one. For the code, I must admit: 
http://www.alyssahiba.com/wp-content/uploads/2012/02/no-idea-what-im-doing-dog.jpg

I think it was the Wolfgang who helped me with this a couple of months 
ago. I want a start/stop pair that will take as an argument a key-value 
to set the beginning of the line numbering. So here's my example:

\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

This works with 2012.06.30 12:32, but not with 2012.07.07 15:04.

All best

Thomas
___________________________________________________________________________________
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 18:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 18:50 Thomas A. Schmitz [this message]
2012-07-09 20:46 ` linenumbering Hans Hagen
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=4FFB27E0.9060609@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).