\setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] \definelayer[testlayer] \setlayer[testlayer][x=1cm,y=3cm]{% \startInfoText \stopInfoText } \flushlayer[testlayer] \stoptext Doesn’t work. Only works if I put text inside the layer.
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
participants (2)
-
Jon Wong
-
Wolfgang Schuster