ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: textbackground spacing offset
Date: Wed, 31 Jan 2024 19:41:02 +0100	[thread overview]
Message-ID: <4946d34a-c055-423c-9919-afa9fa09608b@xs4all.nl> (raw)
In-Reply-To: <20240131191549.5d8140f4@homerow>

On 1/31/2024 7:15 PM, Marco Patzer wrote:
> On Thu, 16 Nov 2023 13:52:05 +0100
> Marco Patzer <lists@homerow.info> wrote:
> 
>> I'm having problems getting the textbackground spacing offset to work.
>> Example:
>>
>> \setupframedtext
>>    [offset=overlay,
>>     width=max,
>>     depthcorrection=off]
>>
>> \setuptextbackground
>>    [location=paragraph,
>>     %% offset=overlay,           %% does nothing
>>     %% backgroundoffset=overlay, %% does nothing
>>     %% depthcorrection=off,      %% does nothing
>>     %% topoffset=3mm,            %% works, but only for positive values
>>     background=,
>>     frame=on]
>>
>> \starttext
>>    \startframedtext
>>      \framed{Foo}
>>    \stopframedtext
>>    \starttextbackground
>>      \framed{Foo}
>>    \stoptextbackground
>> \stoptext
>>
>> How do it get the same spacing as in the framedtext case?
> 
> Is there a solution to this? Or an explanation why the spacing
> differs?
these are fundamentally different mechanisms .. you can play with 
\inframed in the second case

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-01-31 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 12:52 [NTG-context] " Marco Patzer
2024-01-31 18:15 ` [NTG-context] " Marco Patzer
2024-01-31 18:41   ` Hans Hagen [this message]
2024-01-31 19:42     ` Marco Patzer

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=4946d34a-c055-423c-9919-afa9fa09608b@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --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).