\intertext{\ccaron} fails
Hello (Hans, Aditya), I know that neither of you is interested in mkii at the moment, but there's a nasty bug that probably has a trivial fix in alignment environments. Unicode characters have some problems inside \intertext{...} \startformula\startalign \intertext{še če je že} \stopalign\stopformula I remember the same problem in \startcases in the past that got fixed. Thanks for considering, Mojca
Am 23.02.2009 um 17:27 schrieb Mojca Miklavec:
Hello (Hans, Aditya),
I know that neither of you is interested in mkii at the moment, but there's a nasty bug that probably has a trivial fix in alignment environments. Unicode characters have some problems inside \intertext{...}
\startformula\startalign \intertext{še če je že}
\intertext{\mbox{še če je že}}
\stopalign\stopformula
Wolfgang
On Tue, Feb 24, 2009 at 00:06, Wolfgang Schuster wrote:
Am 23.02.2009 um 17:27 schrieb Mojca Miklavec:
Hello (Hans, Aditya),
I know that neither of you is interested in mkii at the moment, but there's a nasty bug that probably has a trivial fix in alignment environments. Unicode characters have some problems inside \intertext{...}
\startformula\startalign \intertext{še če je že}
\intertext{\mbox{še če je že}}
But then it becomes a box, while \intertext can be a paragraph in general.
\stopalign\stopformula
I've digged out an old thread: http://thread.gmane.org/gmane.comp.tex.context/23043 Subject: [NTG-context] accents inside text mode inside math Date: 2005-10-20 On Wed, Nov 9, 2005 at 20:43, Hans Hagen wrote:
Taco Hoekwater wrote:
Hans Hagen wrote:
actually, \cases{&\tf \ccaron}$ works ok
Without the \tf, \characterencoding is '@default@' instead of '@ec@'. Does that help pinpoint the problem?
this seems to work, the problem is that there is no \everyfam
\starttext
\def\enableencodinginmath {\appendtoks \everyhbox{\mr\everyhbox\emptytoks}% \everyvbox{\mr\everyvbox\emptytoks}% \to \everymath}
\enableencodinginmath
$\cases{& \ccaron}$
$x=\hbox{\ccaron$x=\hbox{\ccaron}$}$
\stoptext
Using \intertext{\rm še če je že \dorecurse{100}{bla}} works OK, but it would be nice to fix it globally/automatically. I also found this: http://thread.gmane.org/gmane.comp.tex.context.devel/486 This solves the problem, but I'm not sure if it's the right fix and it also needs to be fixed for \startintertext: \def\intertext#1% {\noalign{\dointertext{\rm#1}}} Hans? Thanks a lot, Mojca
Am 28.02.2009 um 18:14 schrieb Mojca Miklavec:
I also found this: http://thread.gmane.org/gmane.comp.tex.context.devel/486
I'm not sure which fix you mean but this works: \def\dealwithmathtextencoding {\expanded{\everyhbox{\the\everyhbox\noexpand \fastenableencoding{\currentencoding}}}% \expanded{\everyvbox{\the\everyhbox\noexpand \fastenableencoding{\currentencoding}}}% \def\dealwithmathtextencoding{\let\characterencoding \nocharacterencoding}% \dealwithmathtextencoding}
This solves the problem, but I'm not sure if it's the right fix and it also needs to be fixed for \startintertext: \def\intertext#1% {\noalign{\dointertext{\rm#1}}}
Please don't introduce hard coded font switches. Wolfgang
On Sun, Mar 1, 2009 at 11:53, Wolfgang Schuster wrote:
Am 28.02.2009 um 18:14 schrieb Mojca Miklavec:
I also found this: http://thread.gmane.org/gmane.comp.tex.context.devel/486
I'm not sure which fix you mean but this works:
\def\dealwithmathtextencoding {\expanded{\everyhbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \expanded{\everyvbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \def\dealwithmathtextencoding{\let\characterencoding\nocharacterencoding}% \dealwithmathtextencoding}
Great! Thanks a lot for "filling the empty vboxes" :) Hans, may I request applying Wolfgang's patch?
This solves the problem, but I'm not sure if it's the right fix and it also needs to be fixed for \startintertext: \def\intertext#1% {\noalign{\dointertext{\rm#1}}}
Please don't introduce hard coded font switches.
You are totally right. Mea culpa. Mojca
Mojca Miklavec wrote:
On Sun, Mar 1, 2009 at 11:53, Wolfgang Schuster wrote:
Am 28.02.2009 um 18:14 schrieb Mojca Miklavec:
I also found this: http://thread.gmane.org/gmane.comp.tex.context.devel/486 I'm not sure which fix you mean but this works:
\def\dealwithmathtextencoding {\expanded{\everyhbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \expanded{\everyvbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \def\dealwithmathtextencoding{\let\characterencoding\nocharacterencoding}% \dealwithmathtextencoding}
Great! Thanks a lot for "filling the empty vboxes" :)
Hans, may I request applying Wolfgang's patch?
you may, but only for mkii ... i'v eremoved that code for mkic as we have no encodings there any longer
This solves the problem, but I'm not sure if it's the right fix and it also needs to be fixed for \startintertext: \def\intertext#1% {\noalign{\dointertext{\rm#1}}} Please don't introduce hard coded font switches.
You are totally right. Mea culpa.
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sun, Mar 1, 2009 at 19:43, Hans Hagen wrote:
Mojca Miklavec wrote:
Hans, may I request applying Wolfgang's patch?
you may, but only for mkii ... i'v eremoved that code for mkic as we have no encodings there any longer
Sure. In mkiv it already works OK. Thanks, Mojca
On Sun, Mar 1, 2009 at 7:34 PM, Mojca Miklavec
Am 28.02.2009 um 18:14 schrieb Mojca Miklavec:
I also found this: http://thread.gmane.org/gmane.comp.tex.context.devel/486
I'm not sure which fix you mean but this works:
\def\dealwithmathtextencoding {\expanded{\everyhbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \expanded{\everyvbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}% \def\dealwithmathtextencoding{\let\characterencoding\nocharacterencoding}% \dealwithmathtextencoding}
Great! Thanks a lot for "filling the empty vboxes" :)
Hans, may I request applying Wolfgang's patch?
This is not my patch, it's from Hans and I found it in the thread above you mentioned (and started ;-). Wolfgang
participants (3)
-
Hans Hagen
-
Mojca Miklavec
-
Wolfgang Schuster