Jon Wong schrieb am 06.12.2019 um 04:13:
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
You can't use "location=paragraph" because the argument of the \setlayer
command is a simple horizontal box which doesn't create a paragraph
unless you us additional command which create a paragraph.
\definelayer[testlayer]
\setlayer[testlayer][x=1cm,y=3cm]{%
\startInfoText
\stopInfoText
}
Simpler method:
\setlayer
[testlayer]
[x=1cm,
y=3cm]
{\framed[framecolor=red]{TEXT}}
or
\setlayerframed
[testlayer]
[x=1cm,
y=3cm]
[framecolor=red]
{TEXT}
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
___