From: Andreas Harder <andreas.harder@rz-online.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Textbackgrounds
Date: Thu, 22 Jul 2010 20:34:19 +0200 [thread overview]
Message-ID: <89749136-005F-4B77-AC1A-C89565A5FE47@rz-online.de> (raw)
In-Reply-To: <4C485795.5060809@wxs.nl>
Am 22.07.2010 um 16:37 schrieb Hans Hagen:
> On 22-7-2010 3:50, Andreas Harder wrote:
>> \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
>>
> \setuphead
> [subject]
> [after=\nointerlineskip,
> command=\MyHead]
Thank you Hans, that killed the space.
Greeting,
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-07-22 18:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 13:50 Textbackgrounds Andreas Harder
2010-07-22 14:37 ` Textbackgrounds Hans Hagen
2010-07-22 18:34 ` Andreas Harder [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=89749136-005F-4B77-AC1A-C89565A5FE47@rz-online.de \
--to=andreas.harder@rz-online.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).