ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using TestBackground inside Offset
@ 2019-12-23  8:13 Jon Wong
  2019-12-23 10:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Wong @ 2019-12-23  8:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Is it possible? I get “missing endgroup inserted” error.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using TestBackground inside Offset
  2019-12-23  8:13 Using TestBackground inside Offset Jon Wong
@ 2019-12-23 10:42 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-12-23 10:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jon Wong schrieb am 23.12.2019 um 09:13:
> Is it possible?
Yes.
> I get “missing endgroup inserted” error.
Without a minimal example there is no way to tell why you get this error 
message.

As can be seen in the example below you can use textbackgrounds with the 
\offset command.

\definetextbackground [DisplayBackground] [location=paragraph]
\definetextbackground [InlineBackground]  [location=text]

\starttext

X\offset[x=1em]{\starttextbackground[InlineBackground]Text\stoptextbackground}

X\offset[x=1em]{\vtop{\starttextbackground[DisplayBackground]Text\crlf 
Text\stoptextbackground}}

X\offset[x=1em]{\framed[location=top,align=normal]{Text\crlf Text}}

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-23 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-23  8:13 Using TestBackground inside Offset Jon Wong
2019-12-23 10:42 ` Wolfgang Schuster

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