[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100
Hans Hagen  wrote:

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

\inframed did make a difference, indeed. I'll check if I can obtain
the spacing I need. Thanks.

Marco
___
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
___


[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen

On 1/31/2024 7:15 PM, Marco Patzer wrote:

On Thu, 16 Nov 2023 13:52:05 +0100
Marco Patzer  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
___


[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100
Marco Patzer  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?

Marco
___
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
___