Re: [NTG-context] linenumbering

2012-07-12 Thread Thomas A. Schmitz

On 07/09/2012 10:46 PM, Hans Hagen wrote:

btw, you can define linenumberings ...


Hi Hans,

I finally had time to play a bit with your code, and AFAICS, the 
settings for before and after in \definelinenumbering are quietly 
ignored; at least, I get no blank lines:


\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}

\starttext

\input tufte

\startnumberedblockquote[start=3]

\input knuth

\stopnumberedblockquote

\input tufte

\stoptext

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
___


Re: [NTG-context] linenumbering

2012-07-12 Thread Wolfgang Schuster

Am 12.07.2012 um 15:57 schrieb Thomas A. Schmitz:

 On 07/09/2012 10:46 PM, Hans Hagen wrote:
 btw, you can define linenumberings ...
 
 Hi Hans,
 
 I finally had time to play a bit with your code, and AFAICS, the settings for 
 before and after in \definelinenumbering are quietly ignored; at least, I 
 get no blank lines:

The liner numbering environment has no before/after keys, you should always 
keep in mind that line numbers are added after the page is finished and the 
start/stop commands are mark the begin and end of the block where numbers are 
added. You can always use the annotation module which has space 
before/spaceafter keys to control the spacing around the environment.

\usemodule[annotation]

\definelinenumbering
  [blockquote]
  [width=1cm,
   location=text]

\define[2]\BlockquoteCommand
  {\startlinenumbering[blockquote][start=\annotationparameter{start}]%
   #2%
   \stoplinenumbering}

\defineannotation
  [numberedblockquote]
  [alternative=command,
   command=\BlockquoteCommand]

\starttext

\input tufte

\startnumberedblockquote[start=3]

\input knuth

\stopnumberedblockquote

\input tufte

\stoptext

Wolfgang
___
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
___


[NTG-context] Broken Nightly (2012.07.10)

2012-07-12 Thread Kip Warner
Hey Hans, Wolfgang, et al,

The nightly for 2012.07.10 appears to be broken. When attempting to
compile my book, I get the following.

! Argument of \PlaceSection has an extra }.
inserted text 
\par 
to be read again 
   }
\strc_rendering_inject_text ...ameter \c!command }
  \ifx \p_command \empty
\di...
\strc_rendering_place_head_text ...ng_inject_text 
  }\fi
\strc_rendering_stop_...
\strc_sectioning_handle ...dering_place_head_text 

\strc_sectioning_after_yes...
l.8 \title{Contents at a Glance}

E
? You want to edit file Makeup/Table_of_Contents.tex at line 8

https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Makeup/Table_of_Contents.tex

This is just a piece of advice from one programmer to another, but it
might be useful if you use some kind of unit testing framework with
ConTeXt since most of the nightlies it seems are usually broken for
somebody. You just need some test cases, e.g. people's documents that
draw on as many features as possible.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___