Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}] \setupbackgrounds [page] [background=backgroundimage] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Double-sided layer

2021-05-06 Thread Wolfgang Schuster
[directory=images_bearbeitet_png] \definelayer [backgroundimage] [width=\paperwidth, height=\paperheight, state=repeat, doublesided=yes] \setupbackgrounds [page] [background=backgroundimage] \setlayer [backgroundimage] [right] [x=\backspace, y=\dimexpr\topspace+\headerheight+\head

Re: [NTG-context] Watermark is behind \externalfigure

2019-12-27 Thread Wolfgang Schuster
Jon Wong schrieb am 27.12.2019 um 04:13: Any way to put the watermark in front? You can use the foreground to flush the content in a frame and place then your layer on top of it. \definecolor [Watermark] [s=1,a=1,t=0.5] % \defineoverlay %   [watermark] % [{\backgroundimage{1

Re: [NTG-context] German letter style

2017-12-05 Thread Floris van Manen
NU General Public License 24 %C along with this program. If not, see <http://www.gnu.org/licenses/>. 25 26 \unprotect 27 28 % Lua functions for the core and also for the frontend modules 29 30 >> \ctxloadluafile{s-cor-00} 31 32 % Constants and variables 33 34 \starti

Re: [NTG-context] texture as background?

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 01:01 schrieb Aditya Mahajan <adit...@umich.edu>: > On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: > >> Ahoi, >> >> is there are way to use a texture (i.e. a repeated pixel image) as a >> background of a frame? > > Use \backgroundim

Re: [NTG-context] texture as background?

2017-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Use \backgroundimage See https://tex.stackexchange.com/a/69138/323 Aditya

[NTG-context] Lost in letter module

2016-02-09 Thread Jan U. Hasecke
\setupletteroptions [%backgroundimage=/home/juh/Bilder/Diverses/Hintergrund.png, language=german] \defineletterelement[layer][reference][rechnung] {Kundennummer: \correspondenceparameter{kd} \| Rechnungnummer: \correspondenceparameter{id}} \setupletterlayer[reference] [

Re: [NTG-context] Trying to emulate CSS

2014-10-18 Thread Hans Hagen
\framed[offset=overlay,width=6cm,height=3cm]{\backgroundimage {1}{\hsize}{\vsize}{\externalfigure[cow][width=1cm]}} \blank \framed[offset=overlay,width=6cm,height=3cm]{\backgroundimage {2}{\hsize}{\vsize}{\externalfigure[cow][width=1cm]}} \blank \framed[offset=overlay,width=6cm,height=3cm

[NTG-context] Letter module

2014-06-26 Thread Mo Abrahams
containing my letterheading as the page background, and how to add a horizontal line between the backaddress and the toaddress? For the page background I currently have: \setupletter[ backgroundimage={letterhead} ] but it doesn't seem to do anything. I've tried adding the file extension. Thanks

Re: [NTG-context] Letter module

2014-06-26 Thread Mo Abrahams
background, and how to add a horizontal line between the backaddress and the toaddress? For the page background I currently have: \setupletter[ backgroundimage={letterhead} ] but it doesn't seem to do anything. I've tried adding the file extension. Thanks, Mo. -- Mo

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Hans Hagen
, \paperheight]} % the actual contents of the layer % Regular background image... \definelayer [BackgroundImage] [x=0mm, y=0mm, \paperwidth, \paperheight, repeat=yes] \setlayer [BackgroundImage] % name of the layer

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Wolfgang Schuster
, \paperheight]} % the actual contents of the layer % Regular background image... \definelayer [BackgroundImage] [x=0mm, y=0mm, \paperwidth, \paperheight, repeat=yes] \setlayer [BackgroundImage] % name of the layer

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Kip Warner
On Mon, 2012-07-09 at 10:06 +0200, Wolfgang Schuster wrote: \setupexternalfigures[directory=Makeup/Images] \defineoverlay [backgroundimage] [{\ifnum\rawcountervalue[userpage]=1\relax \overlayfigure{Cover}% \else \overlayfigure{Background}% \fi

[NTG-context] Page Backgrounds

2012-07-08 Thread Kip Warner
of the layer % Regular background image... \definelayer [BackgroundImage] [x=0mm, y=0mm, \paperwidth, \paperheight, repeat=yes] \setlayer [BackgroundImage] % name of the layer {\externalfigure [Makeup/Images

Re: [NTG-context] new beta

2008-10-22 Thread Wolfgang Schuster
}% \hbox} \newbox\layerbox 3. \backgroundimage (suppress \lineskip) --- core-box-orig.tex 2008-04-11 10:44:36.0 +0200 +++ core-box.tex2008-10-21 21:42:52.0 +0200 @@ -931,16 +931,16 @@ % to be considered, probably methods \ifcase#1\or % x and y

Re: [NTG-context] new beta

2008-10-22 Thread Hans Hagen
]% ok done - \egroup} + \egroup}% done, but not needed + \setbox\nextbox\vbox{\offinterlineskip\dorecurse{\count2}{\copy\nextbox\endgraf}}% i added \offinterlineskip higher up \def\backgroundimage#1#2#3% repeat hsize vsize {\bgroup \forgetall \dowithnextbox

Re: [NTG-context] Feature request for backgrounds

2007-10-12 Thread Hans Hagen
horizontal and vertical and not streched in both directions. \defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}] \framed[width=15cm,height=25cm,backgroundimage=cow.pdf,background=image]{test} Wow, I never thought of this before

Re: [NTG-context] Feature request for backgrounds

2007-10-12 Thread Wolfgang Schuster
and vertical and not streched in both directions. \defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}] \framed[width=15cm,height=25cm,backgroundimage=cow.pdf ,background=image]{test} Hi Hans, nearly perfect but can I also test

[NTG-context] Feature request for backgrounds

2007-10-11 Thread Wolfgang Schuster
Hi Hans, can you provide a backgroundimage key for localframed (ot use it in framed) and fastlocalframed (to use it in \setupbackgrounds) to create something like: \setupexternalfigures[location=global] \setupcolors[state=start] \starttext \defineoverlay [Wallpaper] [\backgroundimage{1

Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Hans Hagen
Wolfgang Schuster wrote: Hi Hans, can you provide a backgroundimage key for localframed (ot use it in framed) and fastlocalframed (to use it in \setupbackgrounds) to create something like: \setupexternalfigures[location=global] \setupcolors[state=start] \starttext \defineoverlay

Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Wolfgang Schuster
2007/10/11, Hans Hagen [EMAIL PROTECTED]: Wolfgang Schuster wrote: Hi Hans, can you provide a backgroundimage key for localframed (ot use it in framed) and fastlocalframed (to use it in \setupbackgrounds) to create something like: \setupexternalfigures[location=global] \setupcolors

Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Hans Hagen
. \defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}] \framed[width=15cm,height=25cm,backgroundimage=cow.pdf,background=image]{test

Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Aditya Mahajan
and not streched in both directions. \defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}] \framed[width=15cm,height=25cm,backgroundimage=cow.pdf,background=image]{test} Wow, I never thought of this before. This is a really nice

Re: [NTG-context] Step repeat pdf in overlay

2005-04-27 Thread Hans Hagen
[cover][repeat=yes]}] \starttext \setupbackgrounds[page][background=cover] \startstandardmakeup My title goes here \stopstandardmakeup \stoptext As one might expect, I get a tiny tile in the centre of the page. Any ideas? undocumented (needed for x-fo): \backgroundimage{1}{\hsize}{\vsize