ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \intertext{\ccaron} fails
@ 2009-02-23 16:27 Mojca Miklavec
  2009-02-23 23:06 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2009-02-23 16:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-02-23 16:27 \intertext{\ccaron} fails Mojca Miklavec
@ 2009-02-23 23:06 ` Wolfgang Schuster
  2009-02-28 17:14   ` Mojca Miklavec
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-02-23 23:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-02-23 23:06 ` Wolfgang Schuster
@ 2009-02-28 17:14   ` Mojca Miklavec
  2009-03-01 10:53     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2009-02-28 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-02-28 17:14   ` Mojca Miklavec
@ 2009-03-01 10:53     ` Wolfgang Schuster
  2009-03-01 18:34       ` Mojca Miklavec
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-01 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-03-01 10:53     ` Wolfgang Schuster
@ 2009-03-01 18:34       ` Mojca Miklavec
  2009-03-01 18:43         ` Hans Hagen
  2009-03-02 10:12         ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Mojca Miklavec @ 2009-03-01 18:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-03-01 18:34       ` Mojca Miklavec
@ 2009-03-01 18:43         ` Hans Hagen
  2009-03-02 14:01           ` Mojca Miklavec
  2009-03-02 10:12         ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2009-03-01 18:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-03-01 18:34       ` Mojca Miklavec
  2009-03-01 18:43         ` Hans Hagen
@ 2009-03-02 10:12         ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-02 10:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Mar 1, 2009 at 7:34 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> 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 is not my patch, it's from Hans and I found it in the thread above
you mentioned (and started ;-).

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \intertext{\ccaron} fails
  2009-03-01 18:43         ` Hans Hagen
@ 2009-03-02 14:01           ` Mojca Miklavec
  0 siblings, 0 replies; 8+ messages in thread
From: Mojca Miklavec @ 2009-03-02 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-02 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23 16:27 \intertext{\ccaron} fails Mojca Miklavec
2009-02-23 23:06 ` Wolfgang Schuster
2009-02-28 17:14   ` Mojca Miklavec
2009-03-01 10:53     ` Wolfgang Schuster
2009-03-01 18:34       ` Mojca Miklavec
2009-03-01 18:43         ` Hans Hagen
2009-03-02 14:01           ` Mojca Miklavec
2009-03-02 10:12         ` Wolfgang Schuster

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