* [NTG-context] textbackground spacing offset
@ 2023-11-16 12:52 Marco Patzer
2024-01-31 18:15 ` [NTG-context] " Marco Patzer
0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2023-11-16 12:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi!
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? The
textbackground has a small gap between the inner and outer frame at
the top and a larger gab at the bottom. I'm not concerned with
horizontal spacing here.
Marco
LMTX 2023.09.04 19:15
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: textbackground spacing offset
2023-11-16 12:52 [NTG-context] textbackground spacing offset Marco Patzer
@ 2024-01-31 18:15 ` Marco Patzer
2024-01-31 18:41 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2024-01-31 18:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
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?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: textbackground spacing offset
2024-01-31 18:15 ` [NTG-context] " Marco Patzer
@ 2024-01-31 18:41 ` Hans Hagen
2024-01-31 19:42 ` Marco Patzer
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2024-01-31 18:41 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-31 19:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 12:52 [NTG-context] textbackground spacing offset Marco Patzer
2024-01-31 18:15 ` [NTG-context] " Marco Patzer
2024-01-31 18:41 ` Hans Hagen
2024-01-31 19:42 ` Marco Patzer
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).