On Mon, 13 Oct 2008, Mojca Miklavec wrote:
On Fri, Oct 10, 2008 at 7:24 PM, Aditya Mahajan wrote:
On Fri, 10 Oct 2008, Hans Hagen wrote:
Aditya Mahajan wrote:
Hi,
Another difference in mkii and mkiv handling of sometxt. If there is a line break in \sometxt{ ... } then it fails in mkii, but runs in mkiv. For example,
\starttext
\startMPcode
draw \sometxt{A very long string} ;
\stopMPcode
\stoptext
I vaguely understand why this is happening, but I do not know if it can be corrected.
in mkii we obey lines because it gives better tracing etc etc given that we use external files; this will work:
draw \sometxt{A very % long string} ;
Ah, thanks.
indeed mkiv is different but let's consider it an improvement; i don't want to waste time on mkii fixes that are not that important
I understand that. We need to document all these differences between mkii and mkiv with regards to mp interaction for those who want to write code that works in both. Mojca, any plans to update your MyWay?
If you want to do changes, just go ahead (you might be more competitive to describe them).
Otherwise: I'm not sure what all the differences are. 1.) withcolor doesn't work 2.) \startTeXtexsts cannot be used 3.) the example above fails in mkii
In MKIV certain commands inside \sometxt should be unexpandable. I do not really understand which ones, but I occasionally get errors which can be fixed by making the command unexpandable. Aditya