ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Textbackgrounds
@ 2010-07-22 13:50 Andreas Harder
  2010-07-22 14:37 ` Textbackgrounds Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Harder @ 2010-07-22 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I've played with text backgrounds. Please have a look at the following example.

\definetextbackground
  [test]
  [location=paragraph,
   % frame=off,  % -> no round corners anymore
   corner=round, % -> corner=1|2|3… would be nice
   leftoffset=.5\bodyfontsize,
   rightoffset=.5\bodyfontsize,
   topoffset=.5\bodyfontsize,
   bottomoffset=.5\bodyfontsize]

\setuphead
  [subject]
  [after=,
   command=\MyHead]

\def\MyHead#1#2%
  {\framed
    [background=color,
     backgroundcolor=gray,
     frame=off,
     offset=.5\bodyfontsize,
     corner=3]{#1#2}}

\starttext
\subject{Test}
\starttest
  \input tufte
\stoptest
\stoptext

There is a nasty little space between the two backgrounds. How can I avoid it? Further the left borders of the frame are not aligned.

I appreciate your help.

	Andreas
___________________________________________________________________________________
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] 9+ messages in thread
* textbackgrounds
@ 2003-03-27 11:33 Patrick Gundlach
  2003-03-27 17:51 ` textbackgrounds Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Patrick Gundlach @ 2003-03-27 11:33 UTC (permalink / raw)


Dear ConTeXt users,

i have a question about textbackgrounds. Is there 

a) something like \setuptextbackground[all][frame=on,...]
   that sets frame=on for all the textbackgrounds out there? 

Or better:

b) is there any way to inherit parameters?
   \definetextbackground[A][frame=off]
    \definetextbackground[B][A] 

    so that B also has frame=off set?

Patrick

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

end of thread, other threads:[~2011-11-17  8:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-22 13:50 Textbackgrounds Andreas Harder
2010-07-22 14:37 ` Textbackgrounds Hans Hagen
2010-07-22 18:34   ` Textbackgrounds Andreas Harder
2011-11-07 13:59     ` Textbackgrounds Alan Braslau
2011-11-07 15:58       ` Textbackgrounds Hans Hagen
2011-11-15 14:40         ` Textbackgrounds Alan Braslau
2011-11-17  8:20           ` Textbackgrounds Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2003-03-27 11:33 textbackgrounds Patrick Gundlach
2003-03-27 17:51 ` textbackgrounds Hans Hagen

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