Possible bug: definetextbackground and grid layout
The following example fails to compile, complaining "Missing { inserted." It compiles cleanly if one or more of the three marked lines are removed. This is the case with TL2013 and with recent standalone beta versions. I do not know if it ever worked. \setuplayout [grid=yes]% line one \definetextbackground[TB][ topoffset=.25em,bottomoffset=.25em,% line two location=paragraph,% line three ] \starttext \startTB prisca iuvent alios ego me nunc denique natum gratulor: haec aetas moribus apta meis. \stopTB \stoptext -- Rik
On 2014-04-04 17:17, Rik Kabel wrote:
The following example fails to compile, complaining "Missing { inserted."
It compiles cleanly if one or more of the three marked lines are removed.
This is the case with TL2013 and with recent standalone beta versions. I do not know if it ever worked.
\setuplayout [grid=yes]% line one \definetextbackground[TB][ topoffset=.25em,bottomoffset=.25em,% line two location=paragraph,% line three ] \starttext \startTB prisca iuvent alios ego me nunc denique natum gratulor: haec aetas moribus apta meis. \stopTB \stoptext
-- Rik
Sorry for the noise. It needs alternative= instead of location= in the textbackground definition. Where can we find the command description? -- Rik
On 2014-04-04 17:22, Rik Kabel wrote:
On 2014-04-04 17:17, Rik Kabel wrote:
The following example fails to compile, complaining "Missing { inserted."
It compiles cleanly if one or more of the three marked lines are removed.
This is the case with TL2013 and with recent standalone beta versions. I do not know if it ever worked.
\setuplayout [grid=yes]% line one \definetextbackground[TB][ topoffset=.25em,bottomoffset=.25em,% line two location=paragraph,% line three ] \starttext \startTB prisca iuvent alios ego me nunc denique natum gratulor: haec aetas moribus apta meis. \stopTB \stoptext
-- Rik
Sorry for the noise. It needs alternative= instead of location= in the textbackground definition.
Where can we find the command description? Perhaps I retracted too quickly. The background is not placed with alternative=paragraph. It looks like all I did using that was to remove one of the three problem lines.
To be clear, this is an issue with MKIV. -- Rik
On 2014-04-04 17:22, Rik Kabel wrote:
On 2014-04-04 17:17, Rik Kabel wrote:
The following example fails to compile, complaining "Missing { inserted."
It compiles cleanly if one or more of the three marked lines are removed.
This is the case with TL2013 and with recent standalone beta versions. I do not know if it ever worked.
\setuplayout [grid=yes]% line one \definetextbackground[TB][ topoffset=.25em,bottomoffset=.25em,% line two location=paragraph,% line three ] \starttext \startTB prisca iuvent alios ego me nunc denique natum gratulor: haec aetas moribus apta meis. \stopTB \stoptext
-- Rik
Sorry for the noise. It needs alternative= instead of location= in the textbackground definition.
Where can we find the command description?
Perhaps I retracted too quickly. The background is not placed with alternative=paragraph. It looks like all I did using that was to remove one of the three problem lines. To be clear, this is an issue with MKIV.
On 2014-04-05 17:11, Thangalin wrote:
http://wiki.contextgarden.net/TextBackground
The first example works. ___________________________________________________________________________________
First, thank you for pointing to the documentation. Second, the first example works as presented, but fails when the line \setuplayout[grid=yes] is added and it is run (with MKIV). It can be made to work by removing either that line or one of the following two lines. location=paragraph, topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize, That is my complaint. -- Rik Kabel
participants (3)
-
Rik
-
Rik Kabel
-
Thangalin