ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* presets for setlayerframed
@ 2015-04-05 23:29 Aditya Mahajan
  2015-04-06  9:05 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2015-04-05 23:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Is it possible to set 'presets' for the framed settings of 
\setlayerframed?

For example:

\definelayer[text]
\definelayer[annotate]
\setupbackgrounds[text][background={text,foreground,annotate}]

\starttext

Testing layers:

\setlayerframed[annotate][x=1cm,y=1cm][frame=off, align=middle]
     {\input ward \par}

\setlayerframed[annotate][x=1cm,y=4cm][frame=off, align=middle]
     {\input tufte \par}

\stoptext

I don't want to repeat the `frame=off, align=middle` setting everytime (in 
may actual usecase, these are much more complicated settings). How can I 
do that?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-06 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-05 23:29 presets for setlayerframed Aditya Mahajan
2015-04-06  9:05 ` Wolfgang Schuster
2015-04-06 16:34   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).