[NTG-context] extra spacing between verse and chorus

2007-07-14 Thread Vyatcheslav Yatskovsky
Hello,

Please, help me with the following. The \vbox and \bgroup\egroup tags are 
intend to keep a verse on a page, but they also add extra spacing (an extra 
line?) between the verse and chorus. How to get rid of it?

\definestartstop
  [verse]
  [before=\vbox\bgroup\startlines,
   after=\stoplines\egroup]

\definestartstop
  [chorus]
  [before=\startnarrower\startlines,
   after=\stoplines\stopnarrower]
   
\starttext

\startverse
We all came out to Montreux,
On the Lake Geneva shoreline.
To make records with a mobile,
We didn't have much time.
But Frank Zappa and the Mothers,
Were at the best place around,
But some stupid with a flare gun,
Burned the place to the ground.
\stopverse
\startchorus
Smoke on the water, a fire in the sky.
Smoke on the water...
\stopchorus

\stoptext  

-- 
Best,
 Vyatcheslav   

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] endnotes

2007-07-14 Thread Horacio Suarez

hello:

i´m using endnotes at the end of each chapter and I have 2 problems:

1. I want some space between a note and the next one. How can I do that?

2. When the last page of a chapter is half filled o more -or somethig like 
that- the endnotes jumps to a new page, but if the last page of a chapter is 
less than a half filled, then the endnotes keeps in the same page, as I 
want.


Thankyou in advance.







Horacio Suarez
Editotrial Antropofagia
www.eantropofagia.com.ar

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layers in ConTeXt

2007-07-14 Thread Aditya Mahajan
On Fri, 13 Jul 2007, Giuseppe Bilotta wrote:

> Hello all,

Welcome back Giuseppe. I had benifitted a lot from your efforts of 
improving the math support in ConTeXt. Had it not been for the amsl 
module, I might have never switched to ConTeXt and would have missed a 
lot of fun.

> I have a couple of questions concerning the use of layers in
> ConTeXt. I'm working with Luigi Scarso on a layout which is
> characterized by some fixed-position elements surrounding
> the actual main body of text.
>
> For the fixed-position elements, I'm using layers. However,
> my ConTeXt is a little rusty[*], so there are a couple of
> things which I need hints for.
>
> The first one is very simple: is there a way to 'fix' the
> layer's content "until they change"? I've currently set them
> as page backgrounds, but their content gets reset on each
> new page.
>
> The second question is slightly more complex: is there a way
> to add contents to a layer, rather than replacing the
> current layer content? Something like a macro
>
> \addtolayer[layername][hoffset=whatever(optional)]{additional content}

This is how I would do it. Not sure if this is the best way. Use 
tokens to keep track of the current information that should go to the 
layer, and repeat the layer on each page.

\newtoks\testtoks

\definelayer[test]
 [ width=\paperwidth,
  height=\paperheight,
 ]

\startsetups make:test
\setlayer[test][x=5cm,y=3cm]{\framed[align=normal,width=5cm]{\the\testtoks}}
\stopsetups

\setupbackgrounds[page][setups=make:test,background=test]

\starttext

\testtoks{This is a test}

Let's see

\page

Now add something to the layer

\input knuth

\appendtoks \endgraf \input tufte \to \testtoks

\page

Let's start all over again

\testtoks {Testing again}

\stoptext


HTH,
Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Section marking forgotten on next even page?

2007-07-14 Thread Giuseppe Bilotta
Hello all,

why does \page[even] reset the section marks? Shouldn't this
feature be configurable by the user?

-- 
Giuseppe "Oblomov" Bilotta

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Linetables ROW alignment

2007-07-14 Thread Giuseppe Bilotta
Hello all again,

I'm using linetables, because despite their lack of
documentation they've been rather easy to set up to achieve
the effects I needed (colors, alignment, etc).

I have a small problem with the title row though, because I
would like its entries to be all typeset centered (whereas
the rest of columns has them partly left and partly right
aligned) but apparently there is no (easy) way to override
alignment in a single row. In particular,

\setuplinetable[r][1][align=middle]

doesn't work, even though all other specifications (color,
background, style) work as expected.

I think that if a row alignment is required, it should be
applied and take precedente over column alignment. Any
suggestions?

-- 
Giuseppe "Oblomov" Bilotta

P.S. Looking at core-ltb.tex I've found that \BH and \EH are
mapped to \linetableBR and \linetableER. Is this
intentional, or a cut-n-paste error? The way it is now,
\linetableBH and \linetableEH are never triggered ...

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___