Re: [NTG-context] Setting background for entire header

2007-06-26 Thread Wolfgang Schuster
2007/6/26, Aditya Mahajan [EMAIL PROTECTED]:
 Hi,

 I want to set the background of the entire header (from left edge of
 the paper to the right edge). As far as I could tell, there is no way
 to coax setupbackgrounds to do this. I can do this using layers or
 abuse the margin and offset keys of framed to make it cover the
 remaining area, but is there really no direct way to do this? Here is
 my attempt so far.

 \setupbodyfont[14pt]

 \setuppapersize  [S6] [S6]

 \setuplayout
[topspace=0cm,
 top=0cm,
 topdistance=0cm,
 header=3\lineheight,
 headerdistance=0.5\lineheight,
 height=middle,
 footerdistance=0.5\lineheight,
 footer=2\lineheight,
 bottomspace=0cm,
 bottom=0cm,
 bottomdistance=0cm,
 backspace=1cm,
 leftmargin=.5cm,
 leftmargindistance=.15cm,
 width=middle,
 cutspace=.5cm,
 rightmargin=.25cm,
 rightmargindistance=.15cm,
 grid=yes,
   ]

 \setupcolors[state=start]

  What should go here???
 \setupbackgrounds[header][background=color,backgroundcolor=blue]
 

 \starttext test \stoptext


 Aditya

Hi Aditya,

Variant 1:

\setuplayout
  [leftedgedistance=0pt,
   rightedgedistance=0pt,
   leftmargindistance=0pt,
   rightmargindistance=0pt,
   leftedge=2cm,
   rightedge=2cm]

\showframe

\setupcolors[state=start]

\setupbackgrounds
  [header]
  [leftedge,leftmargin,text,rightmargin,rightedge]
  [background=color,backgroundcolor=blue]

\starttext test \stoptext


Variant 2:

\setupcolors[state=start]

\defineoverlay
 [colorrule]
 [{\color[blue]{\vrule width2\hsize height\headerheight\relax}}]

\setupbackgrounds
 [header]
 [background=colorrule]

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


Re: [NTG-context] preventing page break in verses

2007-06-26 Thread Hans Hagen
Wolfgang Schuster wrote:
 2007/6/26, Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
 Hello,

 I have a simple question about verses. How can I prevent a verse to be 
 breaked across pages?

 Now I use:

 \definestartstop[verse][before=\startlines,
 after=\stoplines]

 --
 Best,
  Vyatcheslav
 
 \definestartstop
   [verse]
   [before=\vbox\bgroup\startlines,
%before={\page[preference]\vbox\bgroup\startlines},
after=\stoplines\egroup]

\testpage[4]


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] intdenting a chorus

2007-06-26 Thread Hans Hagen
Wolfgang Schuster wrote:
 2007/6/26, Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
 Hello,

 And how to indent a chorus block?

 My naive
 \definestartstop[chorus][before={\startlines[indenting=2em]},
 after=\stoplines]
 doesn't work.

 --
 Best,
  Vyatcheslav  mailto:[EMAIL PROTECTED]
 
 \definestartstop
   [chorus]
   [before=\startnarrower\startlines,
after=\stoplines\stopnarrower]

or interlinepenlty 1 within a verse

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] intdenting a chorus and making verse

2007-06-26 Thread Vyatcheslav Yatskovsky
Hello,

Thank you all. 

Wolfgang, your variant is simply the best. :)

-- 
Best regards,
Vyatcheslav Yatskovsky___
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] Notepad++ format files

2007-06-26 Thread Vyatcheslav Yatskovsky
Hello,

Someone promised to provide ConTeXt formats for Notepad++ some time ago. Is 
this affort alive?

I use the app a lot but it is tailored for LaTeX. It is unjust.

BTW, Notepad++ is based on the SciTE editor.

-- 
Best regards,
Vyatcheslav Yatskovsky

___
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] Setting background for entire header

2007-06-26 Thread Aditya Mahajan
On Tue, 26 Jun 2007, Wolfgang Schuster wrote:

 2007/6/26, Aditya Mahajan [EMAIL PROTECTED]:
 Hi,

 I want to set the background of the entire header (from left edge of
 the paper to the right edge). As far as I could tell, there is no way
 to coax setupbackgrounds to do this. I can do this using layers or
 abuse the margin and offset keys of framed to make it cover the
 remaining area, but is there really no direct way to do this? Here is
 my attempt so far.

 \setupbodyfont[14pt]

 \setuppapersize  [S6] [S6]


  What should go here???
 \setupbackgrounds[header][background=color,backgroundcolor=blue]
 

 \starttext test \stoptext


 Aditya

 Hi Aditya,

 Variant 1:

 \setuplayout
  [leftedgedistance=0pt,
   rightedgedistance=0pt,
   leftmargindistance=0pt,
   rightmargindistance=0pt,
   leftedge=2cm,
   rightedge=2cm]

Ah, edgedistance. Somehow I had missed this.

 \showframe

 \setupcolors[state=start]

 \setupbackgrounds
  [header]
  [leftedge,leftmargin,text,rightmargin,rightedge]
  [background=color,backgroundcolor=blue]

 \starttext test \stoptext

This works, but I need a non-zero margin distance.


 Variant 2:

 \setupcolors[state=start]

 \defineoverlay
 [colorrule]
 [{\color[blue]{\vrule width2\hsize height\headerheight\relax}}]

 \setupbackgrounds
 [header]
 [background=colorrule]

This is easier than what I was doing. Thanks.

But, it would have been nicer if something like this could be achieved 
by

\setupbackgrounds
[header]
[page]
[background=color,backgroundcolor=blue]

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] List of figures

2007-06-26 Thread Horacio Suarez

Hello all:

I have a chapter with 36 images this way:

\placefigure[here][1]{Mapa de la provincia de Corrientes y de localización 
de la

 escuela.}{\externalfigure[gandulfo][width=11.9cm]}

At the beggining of the chapter I have:

\completelistoffigures[alternative=c,criterium=chapter,interaction=all]

But only the head is shown (Ilustraciones)

If I use

\placelistoffigures[alternative=c,criterium=chapter,interaction=all]

not even the head is shown.

What is wrong?

Thankyou in advance.

_
Don’t miss your chance to WIN $10,000 and other great prizes from Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/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] referencing figures with \in

2007-06-26 Thread Hans van der Meer
Thanks, this completely satisfies my curiosity.


On Jun 26, 2007, at 7:39, Wolfgang Schuster wrote:

 2007/6/25, Hans van der Meer [EMAIL PROTECTED]:

 On Jun 25, 2007, at 9:24, Taco Hoekwater wrote:

 Hans van der Meer wrote:
 Taco and Wolfgang,

 Here is your counterexample:

 \setupcaptions[number=no] %  the culprit
 \starttext

 Since you are referencing a non-existing number, I cannot say I am
 very surprised get weird output.

 You are right and I should not expect something sensible from
 number=no, but for my curiosity one question remains: why does \at
 gives a number that should not exist?

 Anyway, it is not a problem anymore!

 \in [key] gives the running number of float, this means 1 for the
 first figure,
 2 for the second ... This did only work with numbered figures, you  
 disabled
 the number in your figure and got only the dummy sign (the bullet)  
 because
 there was no number to be shown.

 \at [key] give you the pagenumber, where your figure was placed  
 and this
 was in your example the first page.

Hans van der Meer


___
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] metafont suffix problem

2007-06-26 Thread Hans van der Meer
My knowledge of MetaPost falls short. I hope someone will be able to  
help me with the following problem:


This is a macro along the line of the mode_def definition (see the  
MetaFont book, Appendix B).


def count_ suffix $ =
$ := incr counter_;
countnames_[$] := str$;
enddef;

called from some other macro, abbreviated:

def defineCount(expr xyz) suffix name =
begingroup
% among other statements
count_ name;
endgroup;

The problem is that I would like to modify the contents of 'name'  
before it is used in 'count'.

I tried several solutions as for example:
save name; string newname; newname := str name  extension;
count_ newname;
but then newname is not accepted. The error message is:
 unknown string newname
! Equation cannot be performed (unknown string=numeric).
and occurs
count_-(SUFFIX0):=incr.counter_;
countnames_[(SUFFIX0)]:=str 
(SUFFI...


Directly changing name (because assignment to a suffix is possible):
name := str name  extension;
gives a similar error.

Nor did encapsulating of 'defineCount' with an outer calling macro  
where the extension as added work for me.


Hans van der Meer


___
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] beta 06-25

2007-06-26 Thread Thomas A. Schmitz
Hi Hans,

did you maybe forget to include some files in the current beta? I  
only see the pattern files and some documentation, but nothing in tex/ 
context/base. Or am I missing something?

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


Re: [NTG-context] beta 06-25

2007-06-26 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi Hans,
 
 did you maybe forget to include some files in the current beta? I  
 only see the pattern files and some documentation, but nothing in tex/ 
 context/base. Or am I missing something?

i guess that there is some problem with zip on my machine (not sure if 
installed the same one on my vista box as on my old laptop)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta 06-25

2007-06-26 Thread Patrick Gundlach
Hello Thomas,

 did you maybe forget to include some files in the current beta? I  
 only see the pattern files and some documentation, but nothing in tex/ 
 context/base. Or am I missing something?

The current zip is really incomplete. 

Patrick
___
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] beta 06-25

2007-06-26 Thread Patrick Gundlach
Hi Thomas, Hans,

 did you maybe forget to include some files in the current beta? I  
 only see the pattern files and some documentation, but nothing in tex/ 
 context/base. Or am I missing something?

 i guess that there is some problem with zip on my machine (not sure if 
 installed the same one on my vista box as on my old laptop)

2007.06.26 is back to normal :-)

Patrick
(my last answer was just one minute too fast)
___
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
___