From: Andreas Harder <andreas.harder@rz-online.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Textbackgrounds
Date: Thu, 22 Jul 2010 15:50:42 +0200 [thread overview]
Message-ID: <C3CF0ECC-E93C-4868-827B-98053C596A52@rz-online.de> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2010-07-22 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 13:50 Andreas Harder [this message]
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
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=C3CF0ECC-E93C-4868-827B-98053C596A52@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).