Re: [NTG-context] overlay problem (beta 31.12.2019)

2020-01-02 Thread Hans Hagen

On 1/2/2020 5:00 PM, Peter Rolf wrote:

Hi Hans

There is a small problem with overlays.

%-
\starttext
\defineoverlay[foo][{\blackrule[color=black,width=20mm,height=20mm]}]%
\framed[background=foo,strut=no,offset=overlay]%{\blackrule[color=white,width=16mm,height=16mm]}
\stoptext
%-


put this in cont-new.mkiv :

\ifcase\contextlmtxmode \else

\unexpanded\def\executedefinedoverlay#1#2%
  {\bgroup
   \setlayoutcomponentattribute{\v!overlay:#1}%
   \setbox\scratchbox\hbox 
\layoutcomponentboxattribute{\the\everyoverlay#2}%


\boxxoffset\scratchbox-.5\dimexpr\wd\scratchbox-\d_framed_target_wd\relax

\boxyoffset\scratchbox-.5\dimexpr\ht\scratchbox-\d_framed_target_ht+\d_framed_target_dp\relax
   \wd\scratchbox\d_framed_target_wd
   \ht\scratchbox\d_framed_target_ht
   \dp\scratchbox\d_framed_target_dp
   \box\scratchbox
   \egroup}

\fi

no updates today and tomorrow

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Otared Kavian
Hi,

Maybe you need to say state=repeat in the definition of your layer:

\definelayer[chapterbackground][state=repeat]

Best regards: OK

 
 On 02 Apr 2015, at 13:15, robin.kirk...@csiro.au wrote:
 
 From: John Culleton j...@wexfordpress.com
 Subject: [NTG-context] overlay or layer for chapter head.
 Date: 2 April 2015 1:19:03 AEDT
 
 I am redoing a book for a client. Each chapter
 head has a fancy design. I want to reproduce that
 fancy page but still have the \chapter
 statement for running heads, TOC etc. 
 
 Is there a way that I can overlay the entire
 chapter first page with a graphic, ideally a one
 page pdf file. 
 
 I have tried workarounds with
 \startstandardmakeup,\writetolist,
 \definemarking etc. but the whole thing is
 getting too complicated. I just want to overlay a
 the entire page with a graphic yet have
 the real content of the page still available for
 TOC, running head, indexing terms etc.
 
 Any suggestions?
 
 -- 
 John Culleton
 Wexford Press
 
 Hi John,
 
 I did this recently by defining a layer and putting an image in it using 
 \setlayer, in a macro called just before chapters are started:
 
 \definelayer[chapterbackground]
 \setupexternalfigures[location=default]
 
 \unexpanded\def\chapterbefore{
\setlayer[chapterbackground]{%
\externalfigure[mill.png]
[width=\paperwidth,height=\paperheight]
}
\setupbackgrounds[page]
[background=chapterbackground]
 }
 
 \setuphead[chapter][before=\chapterbefore]
 
 \starttext
 \chapter{Knuth}
 \dorecurse{5}{
\input knuth
\par
 }
 
 \chapter{Dawkins}
 \input dawkins
 \stoptext
 
 No doubt there is a neater/better way to do it than that. In fact I tried to 
 set up the background only once, like this:
 
 \definelayer[chapterbackground]
 \setupexternalfigures[location=default]
 \setlayer[chapterbackground]{%
\externalfigure[mill.png]
[width=\paperwidth,height=\paperheight]
 }
 
 \setuphead[chapter]
[before={
\setupbackgrounds[page]
[background=chapterbackground]
}]
 
 \starttext
 \chapter{Knuth}
 \dorecurse{5}{
\input knuth
\par
 }
 
 \chapter{Dawkins}
 \input dawkins
 \stoptext
 
 But it looks like the layer “forgets” the image each time it is used, and the 
 second chapter does not have the image. I’d be pleased to know the “right 
 way” to do this too ...
 
 Robin
 
 
 
 ___
 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
 ___

___
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] overlay or layer for chapter head.

2015-04-02 Thread Robin.Kirkham
 From: John Culleton j...@wexfordpress.com
 Subject: [NTG-context] overlay or layer for chapter head.
 Date: 2 April 2015 1:19:03 AEDT
 
 I am redoing a book for a client. Each chapter
 head has a fancy design. I want to reproduce that
 fancy page but still have the \chapter
 statement for running heads, TOC etc. 
 
 Is there a way that I can overlay the entire
 chapter first page with a graphic, ideally a one
 page pdf file. 
 
 I have tried workarounds with
 \startstandardmakeup,\writetolist,
 \definemarking etc. but the whole thing is
 getting too complicated. I just want to overlay a
 the entire page with a graphic yet have
 the real content of the page still available for
 TOC, running head, indexing terms etc.
 
 Any suggestions?
 
 -- 
 John Culleton
 Wexford Press

Hi John,

I did this recently by defining a layer and putting an image in it using 
\setlayer, in a macro called just before chapters are started:

\definelayer[chapterbackground]
\setupexternalfigures[location=default]

\unexpanded\def\chapterbefore{
\setlayer[chapterbackground]{%
\externalfigure[mill.png]
[width=\paperwidth,height=\paperheight]
}
\setupbackgrounds[page]
[background=chapterbackground]
}

\setuphead[chapter][before=\chapterbefore]

\starttext
\chapter{Knuth}
\dorecurse{5}{
\input knuth
\par
}

\chapter{Dawkins}
\input dawkins
\stoptext

No doubt there is a neater/better way to do it than that. In fact I tried to 
set up the background only once, like this:

\definelayer[chapterbackground]
\setupexternalfigures[location=default]
\setlayer[chapterbackground]{%
\externalfigure[mill.png]
[width=\paperwidth,height=\paperheight]
}

\setuphead[chapter]
[before={
\setupbackgrounds[page]
[background=chapterbackground]
}]

\starttext
\chapter{Knuth}
\dorecurse{5}{
\input knuth
\par
}

\chapter{Dawkins}
\input dawkins
\stoptext

But it looks like the layer “forgets” the image each time it is used, and the 
second chapter does not have the image. I’d be pleased to know the “right way” 
to do this too ...

Robin



___
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] overlay or layer for chapter head.

2015-04-02 Thread John Culleton
On Thu, 02 Apr 2015 15:10:19 +0200
Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz wrote:

 Hello,
 
 On Thu, 02 Apr 2015 14:46:11 +0200, Otared
 Kavian ota...@gmail.com wrote:
 
  Hi,
 
  Maybe you need to say state=repeat in the
  definition of your layer:
 
  \definelayer[chapterbackground][state=repeat]
 
 '[state=repeat]' causes all pages have the
 'mill' background.
 
 Best regards,
 
 Lukas
 
 

I am not seeking a background but rather a
foreground. And I only need this for 7 chapter
heads. Here is how I put the page image into my
context file now:
-
\startstandardmakeup[doublesided=no]
\vskip -0.15in
 \hskip -0.7in
\hbox{\externalfigure[chaphead2.pdf][width=\paperwidth,
height=\paperheight]} \stopstandardmakeup
\writetolist[chapter]{2}{Chapter 2: Understanding
the Food Industry}%

This works but I want a less fiddly-more
reliable method.  



-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: Create Book Covers with
Scribus 1.4.5 coming soon at
http://www.booklocker.com/!
___
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] overlay or layer for chapter head.

2015-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 02 Apr 2015 14:46:11 +0200, Otared Kavian ota...@gmail.com wrote:


Hi,

Maybe you need to say state=repeat in the definition of your layer:

\definelayer[chapterbackground][state=repeat]


'[state=repeat]' causes all pages have the 'mill' background.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] overlay or layer for chapter head.

2015-04-02 Thread Wolfgang Schuster

 Am 02.04.2015 um 17:12 schrieb John Culleton j...@wexfordpress.com:
 
 On Thu, 02 Apr 2015 15:10:19 +0200
 Procházka Lukáš Ing. - Pontex s. r. o.
 l...@pontex.cz mailto:l...@pontex.cz wrote:
 
 Hello,
 
 On Thu, 02 Apr 2015 14:46:11 +0200, Otared
 Kavian ota...@gmail.com wrote:
 
 Hi,
 
 Maybe you need to say state=repeat in the
 definition of your layer:
 
 \definelayer[chapterbackground][state=repeat]
 
 '[state=repeat]' causes all pages have the
 'mill' background.
 
 Best regards,
 
 Lukas
 
 
 
 I am not seeking a background but rather a
 foreground. And I only need this for 7 chapter
 heads. Here is how I put the page image into my
 context file now:
 -
 \startstandardmakeup[doublesided=no]
 \vskip -0.15in
 \hskip -0.7in
 \hbox{\externalfigure[chaphead2.pdf][width=\paperwidth,
 height=\paperheight]} \stopstandardmakeup
 \writetolist[chapter]{2}{Chapter 2: Understanding
 the Food Industry}%
 
 This works but I want a less fiddly-more
 reliable method.  

\setupexternalfigures[location=default]

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

\define[2]\ChapterCommand
  {\setlayerframed
 [chaptertext]
 [x=3cm,
  y=8cm]
 [frame=off]
 {#1 – #2}}

\definemakeup[chapterpage][page]

\setupmakeup
  [chapterpage]
  [pagestate=start,
  before={\setupbackgrounds[page][background=chapterimage]},
  bottom={\placelayer[chaptertext]}]

\defineoverlay[chapterimage][\overlayfigure{\structureuservariable{image}}]

\setuphead
  [chapter]
  [   before={\startmakeup[chapterpage]},
%command=\ChapterCommand,
   placehead=empty,
   after={\stopmakeup}]

\setuphead
  [title]
  [ before={\blank[big]},
 after={\blank[2*big]},
   command=]

\starttext

\completecontent

\startchapter[title={Understanding the Food Industry}][image=mill.png]

\input knuth

\stopchapter

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
___

Re: [NTG-context] overlay or layer for chapter head.

2015-04-01 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi John,

Per Hans' Fwd: I can confirm that this latest post of yours made it to the  
list.


Best wishes
Idris

On Wed, 01 Apr 2015 08:19:03 -0600, John Culleton j...@wexfordpress.com  
wrote:



I am redoing a book for a client. Each chapter
head has a fancy design. I want to reproduce that
fancy page but still have the \chapter
statement for running heads, TOC etc.

Is there a way that I can overlay the entire
chapter first page with a graphic, ideally a one
page pdf file.

I have tried workarounds with
\startstandardmakeup,\writetolist,
\definemarking etc. but the whole thing is
getting too complicated. I just want to overlay a
the entire page with a graphic yet have
the real content of the page still available for
TOC, running head, indexing terms etc.

Any suggestions?





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] overlay or layer for chapter head.

2015-04-01 Thread Alan BRASLAU
John,

Do you mean this post?
(It appeared on the mailing list)

Alan


On Wed, 1 Apr 2015 10:19:03 -0400
John Culleton j...@wexfordpress.com wrote:

 I am redoing a book for a client. Each chapter
 head has a fancy design. I want to reproduce that
 fancy page but still have the \chapter
 statement for running heads, TOC etc. 
 
 Is there a way that I can overlay the entire
 chapter first page with a graphic, ideally a one
 page pdf file. 
 
 I have tried workarounds with
 \startstandardmakeup,\writetolist,
 \definemarking etc. but the whole thing is
 getting too complicated. I just want to overlay a
 the entire page with a graphic yet have
 the real content of the page still available for
 TOC, running head, indexing terms etc.
 
 Any suggestions?




On Wed, 1 Apr 2015 21:13:49 +0200
Hans Hagen pra...@wxs.nl wrote:

  Forwarded Message 
 Subject: My posts.
 Date: Wed, 1 Apr 2015 14:21:41 -0400
 From: John Culleton j...@wexfordpress.com
 Organization: WexfordPress
 To: Hans Hagen pra...@wxs.nl
 
 Recently my posts don't appear on the list. If I
 send you a cc you are kind enough to answer. But
 is there a reason why my recent posts don't
 appear on the mailing list?
 
 Here is the text of my most recent post:
 


___
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] overlay

2014-11-24 Thread Peter Rolf
Am 22.11.2014 um 21:32 schrieb John Kitzmiller:
 Given rectangles with text:
 
 \starttext
 Before:\\
 \startMPcode
   draw unitsquare xscaled 2cm yscaled 1cm;  
 \stopMPcode
 \\
 After:\\
 \startMPcode
   for i=0 upto 1:
 draw unitsquare scaled 1cm xshifted i*cm;
   endfor;
 \stopMPcode
 \stoptext
 
 
 How can a line be drawn connecting the right edges of the rectangles? I
 have played with:
 
 \startuniqueMPgraphic{line}
   path a;
   a:=(0,0)--(0,3cm);
   draw a withpen pencircle scaled 3pt withcolor green;
 \stopuniqueMPgraphic
 
 \defineoverlay[line][{\uniqueMPgraphic{line}}]
 
 
 and using it in \framed, but placing the line correctly is elusive.
 
 
Just a quick and dirty solution. The trick is to draw the extra line as
part of the graphic and then fake the boundingbox. This is also limited
to a few centimeter, objects are cut off after you reach that
'invisible' border around the boundingbox.

I would use uniqueMPgraphic with proper parameters for the graphics.
Using overlays is also possible (urcorner OverlayBox), but I see no real
need or benefit to do so.


HTH,  Peter
\startMPinclusions
  numeric lw; lw:= 1;
  numeric n; n:= 8;
  numeric u; u:= 1cm;
\stopMPinclusions

\starttext
Before:\\
\startMPcode
  pickup pencircle scaled lw;
  draw unitsquare xyscaled (n*u,u);  
\stopMPcode
\\
After:\\
\startMPcode
  path p,q;
  pickup pencircle scaled lw;
  p:= unitsquare scaled u;
  for i=0 upto n-1:
  draw p xshifted i*u;
  endfor;
  q:= boundingbox currentpicture;
  draw (urcorner(q) shifted(-.5lw,-.5lw)) -- (urcorner(q) shifted(-.5lw,-.5lw +1.5u));
  setbounds currentpicture to q;
\stopMPcode
\stoptext
___
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] overlay

2014-11-24 Thread John Kitzmiller
Am 22.11.2014 um 21:32 schrieb John Kitzmiller:
 Given rectangles with text:
 
 \starttext
 Before:\\
 \startMPcode
   draw unitsquare xscaled 2cm yscaled 1cm;  
 \stopMPcode
 \\
 After:\\
 \startMPcode
   for i=0 upto 1:
 draw unitsquare scaled 1cm xshifted i*cm;
   endfor;
 \stopMPcode
 \stoptext
 
 
 How can a line be drawn connecting the right edges of the rectangles? I
 have played with:
 
 \startuniqueMPgraphic{line}
   path a;
   a:=(0,0)--(0,3cm);
   draw a withpen pencircle scaled 3pt withcolor green;
 \stopuniqueMPgraphic
 
 \defineoverlay[line][{\uniqueMPgraphic{line}}]
 
 
 and using it in \framed, but placing the line correctly is elusive.
 
 
Just a quick and dirty solution. The trick is to draw the extra line as
part of the graphic and then fake the boundingbox. This is also limited
to a few centimeter, objects are cut off after you reach that
'invisible' border around the boundingbox.

I would use uniqueMPgraphic with proper parameters for the graphics.
Using overlays is also possible (urcorner OverlayBox), but I see no real
need or benefit to do so.


HTH,  Peter

Yes it helped Peter, thank you. Interesting moves with the mpost bounding box.

I thought I might need more flexibility—overlays—but it has turned out that 
single mp graphic with labels for the commentary will work for the task.

Thanks again, John
___
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] overlay

2014-11-24 Thread Wolfgang Schuster

 Am 22.11.2014 um 21:32 schrieb John Kitzmiller k...@inradius.net:
 
 Given rectangles with text:
 
 \starttext
 Before:\\
 \startMPcode
   draw unitsquare xscaled 2cm yscaled 1cm;  
 \stopMPcode
 \\
 After:\\
 \startMPcode
   for i=0 upto 1:
 draw unitsquare scaled 1cm xshifted i*cm;
   endfor;
 \stopMPcode
 \stoptext
 
 How can a line be drawn connecting the right edges of the rectangles? I have 
 played with:
 
 \startuniqueMPgraphic{line}
   path a;
   a:=(0,0)--(0,3cm);
   draw a withpen pencircle scaled 3pt withcolor green;
 \stopuniqueMPgraphic
 
 \defineoverlay[line][{\uniqueMPgraphic{line}}]
 
 and using it in \framed, but placing the line correctly is elusive.

Look at chapter 5 in the metafun manual.

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
___

Re: [NTG-context] overlay lifts image slightly

2013-07-21 Thread Wolfgang Schuster

Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 I have the following sample code (http://www.ousia.tk/overlay.pdf):
 
\setuppapersize[S6]
\usemodule[simplefonts][size=30pt]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext
 
\startstandardmakeup
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup
 
\startstandardmakeup
\dontleavehmode\startoverlay
  {\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup
 
\stoptext
 
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.
 
 Is there any way to avoid this image lift?

You have to increase the size of the image to mage it bigger than the ✘, you 
can do this
by wrapping it into a frame, e.g. 
\framed[frame=off,offset=1cm]{\externalfigure[…]}.

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
___

Re: [NTG-context] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
On 21/07/13 19:24, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.

 Is there any way to avoid this image lift?
 
 You have to increase the size of the image to mage it bigger than the ✘, you 
 can do this
 by wrapping it into a frame, e.g. 
 \framed[frame=off,offset=1cm]{\externalfigure[…]}.

Many thanks for your gast reply, Wolfgang.

I‘m afraid that the frame itself lifts the image. Frame and overlay lift
the image also. PDF at http://ousia.tk/overlay.pdf.

I must be doing something wrong. Here is my code:

\setuppapersize[S6]
\setupinteraction[state=start]
\setupinteractionscreen[option=max]
\usemodule[simplefonts][size=30pt]
\setmainfont[KerkisSans]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext

\startstandardmakeup
\dontleavehmode\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf]
[scale=5000]
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\startoverlay{\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup

\stoptext

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] overlay lifts image slightly

2013-07-21 Thread Wolfgang Schuster

Am 21.07.2013 um 19:55 schrieb Pablo Rodríguez oi...@web.de:

 On 21/07/13 19:24, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.
 
 Is there any way to avoid this image lift?
 
 You have to increase the size of the image to mage it bigger than the ✘, you 
 can do this
 by wrapping it into a frame, e.g. 
 \framed[frame=off,offset=1cm]{\externalfigure[…]}.
 
 Many thanks for your gast reply, Wolfgang.
 
 I‘m afraid that the frame itself lifts the image. Frame and overlay lift
 the image also. PDF at http://ousia.tk/overlay.pdf.

You have to write \smash[d]{\startoverlay …\stopoverlay} to get the same output 
with the overlay.

The \framed command isn’t necessary here.

You should also try to make minimal examples when possible only with default 
images and fonts.

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
___

Re: [NTG-context] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
On 21/07/13 20:29, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:55 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 I‘m afraid that the frame itself lifts the image. Frame and overlay lift
 the image also. PDF at http://ousia.tk/overlay.pdf.
 
 You have to write \smash[d]{\startoverlay …\stopoverlay} to get the same 
 output with the overlay.
 
 The \framed command isn’t necessary here.
 
 You should also try to make minimal examples when possible only with default 
 images and fonts.

Many thanks for your help, Wolfgang.

I works right now.


Pablo
-- 
http://www.ousia.tk
___
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] overlay at given position: help needed

2010-02-05 Thread Wolfgang Schuster

Am 04.02.10 23:11, schrieb Peter Münster:

Hello,

Below is a test file, to show a bit what I'm looking for: a
background-image behind a text-area at a given position relative to the
center of this area. I'm not yet satisfied with the result.
   

What is the expected output from your code with the left and top keys?

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
___


Re: [NTG-context] overlay at given position: help needed

2010-02-05 Thread Peter Münster
On Fri, Feb 05 2010, Wolfgang Schuster wrote:

 Below is a test file, to show a bit what I'm looking for: a
 background-image behind a text-area at a given position relative to the
 center of this area. I'm not yet satisfied with the result.

 What is the expected output from your code with the left and top keys?

Hello Wolfgang,

When top=0 and left=0, the image should be centred in the text area.
With top=0.5 it should be centred in the bottom half.
With top=0.5 and left=0.5 it should be centred in bottom right quarter.
And so on.
(top and left should be probably replaced by hoffset and voffset)



Another idea comes to my mind:

text text text
text text text text text text
text text text text text text text text text
text text text text text text
text \placeanchor[myanchorname][hoffset=2cm, voffset=-1cm] text text text
text text text text text
text text text text text text text text

\placeatanchor[myanchorname]{\externalfigure[...]}

That means: I would like to define a position somewhere in the text,
perhaps some distance away from the actual point (hoffset and voffset).

And afterwards, I place an image at exactly that position as background.
This way, I can probably use the \FlushStep command.

I've looked quickly into the details.pdf but it all seems to be related to
floats...

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Overlay caption placement

2008-04-04 Thread Dave
  I have a few pdf figures that I'm including in a large report that are
  essentially full page (portrait) diagrams.  However, they each have
  blank space in the lower right corner and I was thinking that it would
  be nice to put the caption in this spot.  Is there a way to overlay a
  caption on top of a floating figure?  Ideally, I'd like to be able to
  provide an x,y offset location for these captions in cm.  Is there
  something I'm missing in setupcaption?

  Cheers,
  Dave


Anyone have ideas on doing this?
___
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] Overlay caption placement

2008-04-04 Thread Hans Hagen
Dave wrote:
  I have a few pdf figures that I'm including in a large report that are
  essentially full page (portrait) diagrams.  However, they each have
  blank space in the lower right corner and I was thinking that it would
  be nice to put the caption in this spot.  Is there a way to overlay a
  caption on top of a floating figure?  Ideally, I'd like to be able to
  provide an x,y offset location for these captions in cm.  Is there
  something I'm missing in setupcaption?

see details.pdf for more fancy captions; technically you can call up the 
real captions too (undocumented of course)

at some point i want to reimplement (or provide an additional) figure 
composition mechsnism


-
   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] overlay problem with textext

2006-11-23 Thread Taco Hoekwater


Mojca Miklavec wrote:
 
 
 Not only textext ... here the whole \startMPcode ... \stopMPcode seems
 to be broken here (where's the old good tool ctxtools --install
 20061120 ?).

Yup, here too. And it is probably my fault, I forced Hans to change
the mpost commandline :-/

I have \runMPgraphics false, and I get two ruby remarks/errors:

TeXExec | processing graphic 'textext-mpgraph.mp'
TeXExec | processing graphic 'textext-mpgraph.mp'
/home/taco/texmf/scripts/context/ruby/base/tex.rb:1522:in `runmp'TeXExec 
| option 'nomprun' is set to 'true'
TeXExec | option 'nobackend' is set to 'true'
TeXExec | option 'output' is set to 'ps'
TeXExec | option 'randomseed' is set to '387'
TeXExec | option 'filename' is set to 'textext-mpgraph.mp'
TeXExec | option 'mainlanguage' is set to 'standard'
TeXExec | option 'bodyfont' is set to 'standard'
TeXExec | option 'language' is set to 'standard'
TeXExec | option 'engine' is set to 'standard'
TeXExec | option 'distribution' is set to 'web2c'
TeXExec | option 'texformats' is set to 'ennlmptopdf'
TeXExec | option 'mpsformats' is set to 'metafun'
TeXExec | option 'progname' is set to 'context'
TeXExec | option 'interface' is set to 'standard'
TeXExec | option 'runs' is set to '8'
TeXExec | option 'backend' is set to 'standard'
: undefined local variable or method `filename' for #TEX:0xb7a44d28 
(NameError)
 from /home/taco/texmf/scripts/context/ruby/base/tex.rb:2004:in 
`doruntexmp'
 from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1536:in 
`runtexmp'
 from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1097:in 
`processmptex'
 from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1094:in 
`each'
 from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1094:in 
`processmptex'
 from /home/taco/texmf/scripts/context/ruby/texexec.rb:71:in `mptex'
 from /home/taco/texmf/scripts/context/ruby/texexec.rb:761:in `send'
 from /home/taco/texmf/scripts/context/ruby/texexec.rb:761
TeXUtil | parsing file textext.tui
TeXUtil | shortcuts : 169
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 20
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 2.346643



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay problem with textext

2006-11-23 Thread Hans Hagen
Taco Hoekwater wrote:
 Mojca Miklavec wrote:
   
 Not only textext ... here the whole \startMPcode ... \stopMPcode seems
 to be broken here (where's the old good tool ctxtools --install
 20061120 ?).
 

 Yup, here too. And it is probably my fault, I forced Hans to change
 the mpost commandline :-/
   
line 1522 in tex.rb should be:


runcommand([quoted(mpsengine),prognameflag(progname),formatflag(mpsengine,mpsformat),tcxflag,runoptions(mpsengine),mpname,mpsprocextras(mpsformat)])

filename - mpname 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay problem with textext

2006-11-22 Thread Mojca Miklavec
On 11/22/06, Peter Rolf wrote:
 Hi all,

 the attached example works with the version from 17.11.|20.11., but not
 with the current (22.11.06, 11:02) one. The problem seems to be in the
 use of textext, as it 'works' (background is visible) when I exchange

   p:= textext.rt(\MPstring{FunnyFrame}) ;

 with

   p:= nullpicture ;

 I couldn't test the current version on contextgarden (still 20.11.,
 which works ok), so I'm unsure, if it's my messy tex tree or a general
 problem.

 Greetings, Peter

Same problem here. It worked with 16.11. and fails with the current.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay problem with textext

2006-11-22 Thread Mojca Miklavec
On 11/23/06, Mojca Miklavec wrote:
 On 11/22/06, Peter Rolf wrote:
  Hi all,
 
  the attached example works with the version from 17.11.|20.11., but not
  with the current (22.11.06, 11:02) one. The problem seems to be in the
  use of textext, as it 'works' (background is visible) when I exchange

Not only textext ... here the whole \startMPcode ... \stopMPcode seems
to be broken here (where's the old good tool ctxtools --install
20061120 ?).

One of the problems that appeared with new files:

TeXExec | processing graphic '07-svd-mpgraph.mp'
sh: -c: line 1: syntax error near unexpected token `newline'
sh: -c: line 1:
`/usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb'

(And I have no idea what it's supposed to mean.)

I saw some changes in tex.rb renaming filename into mpname during mp
runs, but I'll test after I finish writing my report, not before.

I seem to be very grateful for Taco's archives on
https://foundry.supelec.fr/frs/?group_id=14 in such cases ;)

Mojca

PS: I might be using slightly unstandard way of launching texmfstart,
but that approach seems to work up to the 20061120.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-06 Thread Paul Jones
Thank you so much.  This is exactly what I needed.  I will add this to the wiki.

Thank you,
paul

On 11/5/06, Hans Hagen [EMAIL PROTECTED] wrote:
 Paul Jones wrote:
  can you send small test file?
 
  Here you go...
 
  In case the mail server strips attachments, the contents of the
  attached file are also in the original post of this thread.
 \setuppagenumbering
   [alternative=doublesided]

 \setupcolors
   [state=start]

 \setupbackgrounds
  [leftpage]
  [background=Watermark-Left]

 \setupbackgrounds
  [rightpage]
  [background=Watermark-Right]

 \definelayer
   [Watermark-Left]
   [repeat=yes,
width=\paperwidth,
height=\paperheight]

 \definelayer
   [Watermark-Right]
   [repeat=yes,
width=\paperwidth,
height=\paperheight]

 \setlayerframed
   [Watermark-Left]
   [preset=middle]
   [foregroundcolor=red]
   {\scale[sx=12,sy=12]{\rotate[rotation=20.0]{forever}}}

 \setlayerframed
   [Watermark-Right]
   [preset=middle]
   [foregroundcolor=red]
   {\scale[sx=12,sy=12]{\rotate[rotation=-20.0]{together}}}

 \starttext
 \chapter{first}  \dorecurse{30}{\input tufte  }
 \stoptext


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

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-04 Thread Paul Jones
  The overlay with a layer inside it displays fine when used in the
  framed background.
 
  \framed[height=\textheight,
  width=\textwidth,background={WatermarkOverlay}, frame=on]{overlay
  frame}
 
  But it does not display anything when used in the setupbackgrounds 
  background.
 
  \setupbackgrounds[page][background={WatermarkOverlay}]
 
  Any ideas why?
 
 hm, backgrounds should work ok; and page backgrounds are recalculated for 
 each page


Can you see any reason why it would not be working?  In the example
above, the overlay is displayed as the background of the frame, but
not as the background for the entire document?  Can you give any
directions on where to look for further documentation/ideas?  I
basically just need to be able to position a watermark on the back of
every page, possibley different ones for left and right pages.

Thank you,
paul
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-04 Thread Hans Hagen
Paul Jones wrote:
 The overlay with a layer inside it displays fine when used in the
 framed background.

 \framed[height=\textheight,
 width=\textwidth,background={WatermarkOverlay}, frame=on]{overlay
 frame}

 But it does not display anything when used in the setupbackgrounds 
 background.

 \setupbackgrounds[page][background={WatermarkOverlay}]

 Any ideas why?

   
 hm, backgrounds should work ok; and page backgrounds are recalculated for 
 each page

 

 Can you see any reason why it would not be working?  In the example
 above, the overlay is displayed as the background of the frame, but
 not as the background for the entire document?  Can you give any
 directions on where to look for further documentation/ideas?  I
 basically just need to be able to position a watermark on the back of
 every page, possibley different ones for left and right pages.
   
can you send small test file? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-04 Thread Paul Jones

can you send small test file?


Here you go...

In case the mail server strips attachments, the contents of the
attached file are also in the original post of this thread.

Thank you,
paul


overlay.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-03 Thread Mojca Miklavec
On 11/3/06, Aditya Mahajan wrote:
 On Thu, 2 Nov 2006, Paul Jones wrote:
 
  On 11/2/06, Mojca Miklavec wrote:
 
  % draw \sometxt{forever} withcolor red is broken at the moment,
  % but used to/should(?) work otherwise
 
 
  Thanks for the hint.  I don't know anything about mp.  Is there a
  replacement for the broken draw \sometxt?

Well ... I meant broken in the sense that draw \sometxt{this}
withcolor red is black instead of being red, but it should work
unless your ConTeXt distribution is too old.

 draw \sometxt{\red{forever}} ;

 should work.

True.

 Now on a question of my own, is it possible to redefine \sometxt so
 that

 \sometxt{abc}

 is equivalent to

 \sometxt{\mymacro{abc}}

 I find myself writing a lot of code like this

 label.top(\sometxt{\parbox{A long label}}, z1 ) ;

 This is really low priority, but something like this will be nice to
 have.

Here's my vote as well. I would also like to have a mechanism which
would enable easier definition of commands to be processed with
\sometxt at the end. (I used some very dirty macros which redefined
\sometxt temporary for that purpose, but that's far from ideal.)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-03 Thread Hans Hagen
Paul Jones wrote:
 So it looks like the problem boils down to this:

 The overlay with a layer inside it displays fine when used in the
 framed background.

 \framed[height=\textheight,
 width=\textwidth,background={WatermarkOverlay}, frame=on]{overlay
 frame}

 But it does not display anything when used in the setupbackgrounds background.

 \setupbackgrounds[page][background={WatermarkOverlay}]

 Any ideas why?
   
hm, backgrounds should work ok; and page backgrounds are recalculated for each 
page 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-03 Thread Hans Hagen
Mojca Miklavec wrote:
 On 11/3/06, Aditya Mahajan wrote:
   
 On Thu, 2 Nov 2006, Paul Jones wrote:
 
 On 11/2/06, Mojca Miklavec wrote:
   
 % draw \sometxt{forever} withcolor red is broken at the moment,
 % but used to/should(?) work otherwise

 
 Thanks for the hint.  I don't know anything about mp.  Is there a
 replacement for the broken draw \sometxt?
   

 Well ... I meant broken in the sense that draw \sometxt{this}
 withcolor red is black instead of being red, but it should work
 unless your ConTeXt distribution is too old.

   
 draw \sometxt{\red{forever}} ;

 should work.
 

 True.

   
 Now on a question of my own, is it possible to redefine \sometxt so
 that

 \sometxt{abc}

 is equivalent to

 \sometxt{\mymacro{abc}}

 I find myself writing a lot of code like this

 label.top(\sometxt{\parbox{A long label}}, z1 ) ;

 This is really low priority, but something like this will be nice to
 have.
 

 Here's my vote as well. I would also like to have a mechanism which
 would enable easier definition of commands to be processed with
 \sometxt at the end. (I used some very dirty macros which redefined
 \sometxt temporary for that purpose, but that's far from ideal.)


   
hm, always hungry for new features ... i assume that one of you then 
writes a nice myway about  \sometxt  cum suis  as well as a wiki entry

next beta:

% \definetextext[framed]{\framed}
%
% \startMPcode
% draw \sometxt[framed]{black} rotated 45 ;
% \stopMPcode

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-02 Thread Mojca Miklavec
On 11/2/06, Paul Jones wrote:
 Hello all,

 I am trying to put together a wedding book.  I would like a nice
 watermark behind the text on each page.  Left page containing the word
 'together', and right page containing the word 'forever'.  I can get
 this done with an overlay, but it is always centered in the page.  So
 after reading some threads about layers in overlays I thought this
 might work.  Putting a layer into an overlay does give me the ability
 to positiong the words, but I can no longer get them to show up on all
 of the pages.  Am I doing this in a resonable way?  Why did the
 setupbackgrounds stop working when I put the layer into the overlay?

 Much thanks,
 Paul

 %output=pdf
 \setuppagenumbering[alternative=doublesided]

 \setupcolors[state=start]

 \setupbackgrounds[page][background={WatermarkOverlay}]

 \startsetups WatermarkSetup
  \doifoddpageelse
 {\framed[frame=off,foregroundcolor=gray]
 {\scale[sx=12,sy=12]
 {\rotate[rotation=20.0]{forever

 {\framed[frame=off,foregroundcolor=gray]
 {\scale[sx=12,sy=12]
 {\rotate[rotation=20.0]{together
 \stopsetups

 \definelayer[WatermarkLayer]
 \setlayer[WatermarkLayer][hoffset=-4cm,voffset=12cm]{\setups{WatermarkSetup}}

 \defineoverlay[WatermarkOverlay][{\placelayer[WatermarkLayer]}]


 \starttext
 \framed[height=\textheight, width=\textwidth,
 background={WatermarkOverlay}, frame=on]{overlay frame}
 \chapter{first}  \dorecurse{10}{\input tufte  }
 \chapter{second} \dorecurse{10}{\input davis  }
 \chapter{third}  \dorecurse{10}{\input zapf   }
 \stoptext

Does \setupheadertexts[\setups{WatermarkSetup}] help?

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-02 Thread Paul Jones
On 11/2/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Does \setupheadertexts[\setups{WatermarkSetup}] help?

 Mojca

That did get the overlay to display on every page, but I am planning
on using the setupheadertexts to display other headers on the page.  I
also lose the ability to position the layer by placing the setup
directly in the header.  I was hoping that by placing a layer into an
overlay I would get the best of both commands.

This does give me some ideas for other alternatives as well...back to
the lab for more experiments.

Thanks,
paul
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-02 Thread Paul Jones
So it looks like the problem boils down to this:

The overlay with a layer inside it displays fine when used in the
framed background.

\framed[height=\textheight,
width=\textwidth,background={WatermarkOverlay}, frame=on]{overlay
frame}

But it does not display anything when used in the setupbackgrounds background.

\setupbackgrounds[page][background={WatermarkOverlay}]

Any ideas why?

paul

On 11/2/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 % draw \sometxt{forever} withcolor red is broken at the moment,
 % but used to/should(?) work otherwise


Thanks for the hint.  I don't know anything about mp.  Is there a
replacement for the broken draw \sometxt?

Thanks again.
paul
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] overlay page background missing

2006-11-02 Thread Aditya Mahajan
On Thu, 2 Nov 2006, Paul Jones wrote:

 On 11/2/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 % draw \sometxt{forever} withcolor red is broken at the moment,
 % but used to/should(?) work otherwise


 Thanks for the hint.  I don't know anything about mp.  Is there a
 replacement for the broken draw \sometxt?

draw \sometxt{\red{forever}} ;

should work.

Now on a question of my own, is it possible to redefine \sometxt so 
that

\sometxt{abc}

is equivalent to

\sometxt{\mymacro{abc}}

I find myself writing a lot of code like this

label.top(\sometxt{\parbox{A long label}}, z1 ) ;

This is really low priority, but something like this will be nice to 
have.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context