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
On Thu, 16 Nov 2023 13:52:05 +0100
Marco Patzer
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
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?
On 1/31/2024 7:15 PM, Marco Patzer wrote: 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 -----------------------------------------------------------------
On Wed, 31 Jan 2024 19:41:02 +0100
Hans Hagen
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
participants (2)
-
Hans Hagen
-
Marco Patzer