ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typing+framedtext: different behaviour between TL2017 and 2019
@ 2020-01-17 14:18 Tomas Hala
  2020-01-17 18:40 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Tomas Hala @ 2020-01-17 14:18 UTC (permalink / raw)
  To: Mailing list ConTeXt

Hi all,

if I compile the following (minimised) code with ConTeXt from TL2017,
I receive expected result -- one framed gray box with correct width.

\starttext\showframe
\defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth,frame=on,offset=1cc,]
\setuptyping[MP][before={\startMPT},after={\stopMPT},]
\startMP bla \stopMP
\stoptext

Now I tried it with ConTeXt from TL2019 (TL2018 produces the same result as TL2019)
and I have got _two_ boxes -- the outer one is correct and frames the typing environment
as in the past whereas the new box frames the text inside the typing.

Unfortunately, both boxes seems to be controlled by the \defineframedtext[MPT]
which caused that the inner box runs outside the typesetting area, i.e. the
left offset value is applied twice.

I found out that it is related with the given name MP.
Therefore, I renamed it to another name (it was ok) but after adding
"option=mp" I came across the same problem.

Is there any way how to define behaviour of both boxes in the existing \startMP
environment apart? Or is it not possible?

Best wishes,

Tomáš
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2020-01-17 22:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 14:18 typing+framedtext: different behaviour between TL2017 and 2019 Tomas Hala
2020-01-17 18:40 ` Wolfgang Schuster
2020-01-17 19:02   ` Otared Kavian
2020-01-17 19:32   ` Tomas Hala
2020-01-17 19:48     ` Wolfgang Schuster
2020-01-17 20:15       ` Tomas Hala
2020-01-17 22:04         ` Tomas Hala

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