Am 2006-01-15 um 01:23 schrieb Mojca Miklavec:
I don't know if this works, but the only thing I can think of is setting \setupbackgrounds[rightpage][page][state=start, background={logolayer,sendlayer}]
I guess I must use that, but it's not flexible enough (e.g. you can't *add* some background).
and then alternatively using \defineoverlay[logolayer][whatever the content is] and \defineoverlay[logolayer][]
But that's an ugly solution. I always redefine \setupbackgrounds for my basic usage.
Perhaps you can ask Hans for implementing \setupoverlay[logolayer][state=start/stop]
Hm, Holger uses a complicated bunch of setups in his letter style. I hoped to get that easier... Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer)
On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:
I guess I must use that, but it's not flexible enough (e.g. you can't *add* some background).
Hello Henning, since some weeks, you *can* add some backgrounds: \setupcolors[state=start] \defineoverlay[layer1][{\color[red]{this is layer 1}}] \defineoverlay[layer2][{\rotate[rotation=30]{\color[blue]{this is layer 2}}}] \defineoverlay[layer3][{\rotate[rotation=60]{\color[green]{this is layer 3}}}] \setupbackgrounds[page][state=start,background=layer1] \doifmode{layer2}{% \expandparameters \setupbackgrounds[page][background={\currentvalue,layer2}]} \doifmode{layer3}{% \expandparameters \setupbackgrounds[page][background={\currentvalue,layer3}]} \starttext \input tufte \stoptext Then, you can use any combination of mode=layer2 and/or mode=layer3... Cheers, Peter -- http://pmrb.free.fr/contact/
Am 2006-01-15 um 09:03 schrieb Peter Münster:
I guess I must use that, but it's not flexible enough (e.g. you can't *add* some background). since some weeks, you *can* add some backgrounds:
Cool! :-) Now I must only find a way to *subtract* a layer, but I guess I can manage that with some "doifmode"s Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer)
On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:
Now I must only find a way to *subtract* a layer, but I guess I can manage that with some "doifmode"s
Hello TeX-experts, I tried to do the layer-subtraction, but it seems that I need more experience with expansion in TeX. Here is the error: ! Undefined control sequence. \GetList #1,#2;->\edef \ListHead And here my test file: \def\GetList#1,#2;{\edef\ListHead{#1}\edef\ListTail{#2}} \def\Remove#1#2{\doRemove{#1}{#2,\relax}} \def\doRemove#1#2{\expandafter\GetList#2;% \doifelse{\ListHead}{#1}{}{\ListHead,}% \doifelse{\ListTail}{\relax}{}{\doRemove{#1}{\ListTail}}% } \def\addBGbefore#1{\expandparameters \setupbackgrounds[page][background={#1,\currentvalue}]} \def\addBGafter#1{\expandparameters \setupbackgrounds[page][background={\currentvalue,#1}]} \def\removeBG#1{\expandparameters \setupbackgrounds[page][background={\Remove{#1}{\currentvalue}}]} \setupcolors[state=start] \defineoverlay[layer1][{\color[red]{this is layer 1}}] \defineoverlay[layer2][{\rotate[rotation=30]{\color[blue]{this is layer 2}}}] \defineoverlay[layer3][{\rotate[rotation=60]{\color[green]{this is layer 3}}}] \starttext \addBGafter{layer1} \input tufte \page \addBGafter{layer2} \input tufte \page \addBGbefore{layer3} \input tufte \page \removeBG{layer2} \Values \input tufte \page \removeBG{layer1} \input tufte \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/
� wrote:
On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:
Now I must only find a way to *subtract* a layer, but I guess I can manage that with some "doifmode"s
Hello TeX-experts,
I tried to do the layer-subtraction, but it seems that I need more experience with expansion in TeX. Here is the error: ! Undefined control sequence. \GetList #1,#2;->\edef \ListHead
And here my test file:
\def\GetList#1,#2;{\edef\ListHead{#1}\edef\ListTail{#2}} \def\Remove#1#2{\doRemove{#1}{#2,\relax}} \def\doRemove#1#2{\expandafter\GetList#2;% \doifelse{\ListHead}{#1}{}{\ListHead,}% \doifelse{\ListTail}{\relax}{}{\doRemove{#1}{\ListTail}}% }
\def\addBGbefore#1{\expandparameters \setupbackgrounds[page][background={#1,\currentvalue}]} \def\addBGafter#1{\expandparameters \setupbackgrounds[page][background={\currentvalue,#1}]} \def\removeBG#1{\expandparameters \setupbackgrounds[page][background={\Remove{#1}{\currentvalue}}]}
\setupcolors[state=start] \defineoverlay[layer1][{\color[red]{this is layer 1}}] \defineoverlay[layer2][{\rotate[rotation=30]{\color[blue]{this is layer 2}}}] \defineoverlay[layer3][{\rotate[rotation=60]{\color[green]{this is layer 3}}}]
\starttext \addBGafter{layer1} \input tufte \page \addBGafter{layer2} \input tufte \page \addBGbefore{layer3} \input tufte \page \removeBG{layer2} \Values \input tufte \page \removeBG{layer1} \input tufte \stoptext
i dunno what you want to to, but why not background={l-1,l-2,l-3,l-4} and simply set and reset layers, with \defineoverlay[l-1][] % gone \defineoverlay[l-1][present] \defineoverlay[l-1][] % gone again Hans
� wrote:
On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:
Now I must only find a way to *subtract* a layer, but I guess I can manage that with some "doifmode"s
Hello TeX-experts,
I tried to do the layer-subtraction, but it seems that I need more experience with expansion in TeX. Here is the error: ! Undefined control sequence. \GetList #1,#2;->\edef \ListHead
teaser: \def\ResetMyList{\lua{MyList = {} ;}} \def\FlushMyList{\lua{tex.print(table.concat(MyList,","))}} \def\AddToMyList#1#2{\lua{table.insert(MyList,#1,"#2")}} \def\RemoveFromMyList#1{\lua{table.remove(MyList,#1)}} \defineoverlay[mine-1][ONE] \defineoverlay[mine-2][TWO] \defineoverlay[mine-3][THREE] \startsetups [test] \framed[background={\FlushMyList}]{it works okay} \stopsetups \ResetMyList \AddToMyList{1}{mine-1} \setups[test] \AddToMyList{2}{mine-2} \setups[test] \AddToMyList{1}{mine-3} \setups[test] \RemoveFromMyList{1} \setups[test] \RemoveFromMyList{1} \setups[test] \RemoveFromMyList{1} \setups[test] but ... for at least half a year [we don't expect to have a stable user interface before eurotex] you have to fall back on list processing macros in syst-gen.tex and syst-ext.tex (you can add to lists, split lists and reconstruct them using those macros) Hans
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
Peter Münster