ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: margin displacement when using backgrounds?
Date: Tue, 29 Nov 2005 17:33:43 +0100	[thread overview]
Message-ID: <438C82E7.3010408@elvenkind.com> (raw)
In-Reply-To: <438C7D6D.5000300@wxs.nl>



Hans Hagen wrote:
> probably some interaction, best use
> 
> \definetextbackground[taco][location=paragraph,frame=off]
> 
> A\inleft{test1} b
> 
> \starttextbackground[taco]
> A\inleft{test2} b
> \stoptextbackground

No problem since \startbackground has a number of other problems
as well (esp. regarding float placements) that I'd be happy to get
away from, but (never having used textbackgrounds seriously before)
is there a simple way to get the equivalent of

   \setupbackground[frame=off,leftframe=on]

using textbackgrounds?

My previous set of definitions was:

%D how examples look

\defineenumeration
	[Example]
	[style={\switchtobodyfont[9pt]},
          headstyle={\ss\bf},
          before=,
	 after=,
          inbetween=\noindent,
          text=Voorbeeld,
          indentnext=no,
          indenting=yes,
          chapternumber=yes]

\def\startexample%
   {\blank
    \start
    \setupbackground
       [frame=off,
        leftframe=on,
        offset=0pt,
        width=broad,
        background=,
        rulethickness=2pt,
        framecolor=examplecolor]
    \startbackground
    \startnarrower[left]
    \startExample  }

\def\stopexample%
   {\stopExample
    \stopnarrower
    \stopbackground
    \stop
    \blank }

  reply	other threads:[~2005-11-29 16:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 15:28 Taco Hoekwater
2005-11-29 16:10 ` Hans Hagen
2005-11-29 16:33   ` Taco Hoekwater [this message]
2005-11-29 16:59     ` Hans Hagen
2005-11-29 17:57       ` Taco Hoekwater

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=438C82E7.3010408@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).