ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \bar missing in euler
@ 2006-07-06 13:54 Aditya Mahajan
  2006-07-06 15:35 ` Adam Lindsay
  2006-07-11  8:34 ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Aditya Mahajan @ 2006-07-06 13:54 UTC (permalink / raw)


Hi,

%-----------------------------------------------------
\usetypescript[palatino] [ec]
\definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03]
\setupbodyfont[palatino,11pt]

\starttext
$\bar a$
\stoptext
%------------------------------------------------------------

gives just "a". I do not get any bar over "a".

math-eul.tex says

%D This used to be very hackish; it brought in text
%D accents from the well-matched Bitstream Charter.

%D But now, these characters don't exist. I would prefer to pull
%D them from the text font, but  I don't know how.
%D Instead, I'm just pointing to null characters!

:-(

This is how eulervm.sty defines these characters for T1 encoding.

   \DeclareMathAccent{\acute}{\mathalpha}{operators}{1}
   \DeclareMathAccent{\grave}{\mathalpha}{operators}{0}
   \DeclareMathAccent{\ddot}{\mathalpha}{operators}{4}
   \DeclareMathAccent{\tilde}{\mathalpha}{operators}{3}
   \DeclareMathAccent{\bar}{\mathalpha}{operators}{9}
   \DeclareMathAccent{\breve}{\mathalpha}{operators}{8}
   \DeclareMathAccent{\check}{\mathalpha}{operators}{7}
   \DeclareMathAccent{\hat}{\mathalpha}{operators}{2}
   \DeclareMathAccent{\dot}{\mathalpha}{operators}{10}

I do not know what is the equivalent of 'operators' family in context. 
Any idea how to pull them out of the text fonts?

Aditya

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

* Re: \bar missing in euler
  2006-07-06 13:54 \bar missing in euler Aditya Mahajan
@ 2006-07-06 15:35 ` Adam Lindsay
  2006-07-06 15:53   ` Aditya Mahajan
  2006-07-11  8:34 ` Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: Adam Lindsay @ 2006-07-06 15:35 UTC (permalink / raw)


Aditya Mahajan wrote:

> gives just "a". I do not get any bar over "a".

Yup. You seem to be the first to have noticed (or complained), as well.

> This is how eulervm.sty defines these characters for T1 encoding.
> ...

That's the key, though, it apparently pulls in the text accents as well, 
and changes the math definitions depending on the text encoding. That 
seems rather opposite to how ConTeXt *should* work.

> I do not know what is the equivalent of 'operators' family in context. 
> Any idea how to pull them out of the text fonts?

Let's open this up to Hans and Taco: any idea? Much of the finer points 
of \definemathsymbol et al are voodoo to me.

The fourth/sixth arguments of \definemathsymbol insist on a (hex) number 
to be in that slot. Anything else (like \textmacron) is a no-go.

So right now, Euler is limited by the math mechanisms/the encoding of 
the font. I can imagine two "solutions" of differing hack-ish natures:

1) Allow further expansion in \definemathsymbol:
  \definemathsymbol [breve] [accent] [tf] [\textbreve]

2) Do a hack following LaTeX's imperfect lead:
  \definemathsymbol [breve] [accent] [tf] ["15] % for texnansi
   % or
  \definemathsymbol [breve] [accent] [tf] ["08] % for ec
  etc.

Advice?
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: \bar missing in euler
  2006-07-06 15:35 ` Adam Lindsay
@ 2006-07-06 15:53   ` Aditya Mahajan
  2006-07-11  8:32     ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2006-07-06 15:53 UTC (permalink / raw)


On Thu, 6 Jul 2006, Adam Lindsay wrote:

> Aditya Mahajan wrote:
>
>> gives just "a". I do not get any bar over "a".
>
> Yup. You seem to be the first to have noticed (or complained), as well.
>
>> This is how eulervm.sty defines these characters for T1 encoding.
>> ...
>
> That's the key, though, it apparently pulls in the text accents as well,
> and changes the math definitions depending on the text encoding. That
> seems rather opposite to how ConTeXt *should* work.
>
>> I do not know what is the equivalent of 'operators' family in context.
>> Any idea how to pull them out of the text fonts?
>
> Let's open this up to Hans and Taco: any idea? Much of the finer points
> of \definemathsymbol et al are voodoo to me.
>
> The fourth/sixth arguments of \definemathsymbol insist on a (hex) number
> to be in that slot. Anything else (like \textmacron) is a no-go.
>
> So right now, Euler is limited by the math mechanisms/the encoding of
> the font. I can imagine two "solutions" of differing hack-ish natures:
>
> 1) Allow further expansion in \definemathsymbol:
>  \definemathsymbol [breve] [accent] [tf] [\textbreve]
>
> 2) Do a hack following LaTeX's imperfect lead:
>  \definemathsymbol [breve] [accent] [tf] ["15] % for texnansi
>   % or
>  \definemathsymbol [breve] [accent] [tf] ["08] % for ec
>  etc.

I have no knowledge of how Context's font stuff works. The first 
definition looks better to me, as one would not need to worry about 
the encoding while defining symbols (one needs to worry about the 
encoding while defining \textbreve etc, anyway). Though the second 
does have the advantage that it works right away, so there is no need 
to change the definition of \definemathsymbol.

Right now I will use

\definemathsymbol [bar] [accent] [tf] ["09]

which seems to work with my present setup.

Thank you.

Aditya

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

* Re: \bar missing in euler
  2006-07-06 15:53   ` Aditya Mahajan
@ 2006-07-11  8:32     ` Hans Hagen
  0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2006-07-11  8:32 UTC (permalink / raw)


Aditya Mahajan wrote:
> I have no knowledge of how Context's font stuff works. The first 
> definition looks better to me, as one would not need to worry about 
> the encoding while defining symbols (one needs to worry about the 
> encoding while defining \textbreve etc, anyway). Though the second 
> does have the advantage that it works right away, so there is no need 
> to change the definition of \definemathsymbol.
>   
what a mess

\unprotect

\def\dohandlemathtoken#1%
  {\csname
     \ifmmode
       \ifcsname\@mt@\outerencoding#1\endcsname
         \@mt@\outerencoding
       \else\ifcsname\@mt@\mathcollection#1\endcsname
         \@mt@\mathcollection
       \else\ifcsname\@mt@\nomathcollection#1\endcsname
         \@mt@\nomathcollection
       \else\ifcsname\characterencoding#1\endcsname
         \characterencoding
       \else
         \nocharacterencoding
       \fi\fi\fi\fi
     \else
       \ifcsname\characterencoding#1\endcsname
         \characterencoding
       \else\ifcsname\nocharacterencoding#1\endcsname
         \nocharacterencoding
       \else\ifcsname\@mt@\outerencoding#1\endcsname
         \@mt@\outerencoding
       \else\ifcsname\@mt@\mathcollection#1\endcsname
         \strippedcsname\mathematics
\expandafter\endcsname\csname\@mt@\mathcollection
       \else\ifcsname\@mt@\nomathcollection#1\endcsname
         \strippedcsname\mathematics
\expandafter\endcsname\csname\@mt@\nomathcollection
       \else
         \nocharacterencoding
       \fi\fi\fi\fi\fi
     \fi
   #1\endcsname}

\let\dohandlecommand\dohandlemathtoken

\def\checkoutermathencoding
  {\ifx\outerencoding\empty
     \ifx\outerencoding\s!default\else
       \edef\outerencoding{\currentencoding}%
     \fi
   \fi}

\startmathcollection[texnansi]
    \definemathsymbol [breve] [accent] [tf] ["15]
\stopmathcollection
\startmathcollection[ec]
    \definemathsymbol [breve] [accent] [tf] ["08]
\stopmathcollection

\prependtoks
   \checkoutermathencoding
\to \everymathematics

\let\outerencoding\empty

$\breve e$

\end

so ... up to you to define the missing pieces (maybe we should use \startmathencoding for this stuff) 

Hans 


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

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

* Re: \bar missing in euler
  2006-07-06 13:54 \bar missing in euler Aditya Mahajan
  2006-07-06 15:35 ` Adam Lindsay
@ 2006-07-11  8:34 ` Hans Hagen
  2006-07-11 12:51   ` Adam Lindsay
  1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-07-11  8:34 UTC (permalink / raw)


Aditya Mahajan wrote:
> I do not know what is the equivalent of 'operators' family in context. 
> Any idea how to pull them out of the text fonts?
>   
if this is only euler, we may use something 

euler:ec

otherwise we end up with all other math encodings being messed up 

Hans  

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

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

* Re: \bar missing in euler
  2006-07-11  8:34 ` Hans Hagen
@ 2006-07-11 12:51   ` Adam Lindsay
  2006-07-11 13:03     ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Adam Lindsay @ 2006-07-11 12:51 UTC (permalink / raw)


Hans Hagen wrote:
> Aditya Mahajan wrote:
>> I do not know what is the equivalent of 'operators' family in context. 
>> Any idea how to pull them out of the text fonts?
>>   
> if this is only euler, we may use something 

I believe this is euler only. The other math fonts I have dug into have 
been "complete."

> euler:ec

Makes sense. I'll look at the new definitions you just sent.

On the "user" side, what do you imagine it would look like:
\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
   or
\definetypeface [e] [mm] [math] [euler] [euler] [encoding=euler:ec]
   or
\starttypescript [math,boldmath] [euler] [ec]   # with the first one
   \usemathcollection[euler:ec]
\stoptypescript

?

> otherwise we end up with all other math encodings being messed up 

Yes, and that's the last thing I'd want to happen because of euler support.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: \bar missing in euler
  2006-07-11 12:51   ` Adam Lindsay
@ 2006-07-11 13:03     ` Hans Hagen
  2006-07-21 21:59       ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-07-11 13:03 UTC (permalink / raw)


Adam Lindsay wrote:
> Makes sense. I'll look at the new definitions you just sent.
>
> On the "user" side, what do you imagine it would look like:
> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>   
>   
^^^ this one (actually it listens to the outer encoding)

Hans

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

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

* Re: \bar missing in euler
  2006-07-11 13:03     ` Hans Hagen
@ 2006-07-21 21:59       ` Aditya Mahajan
  2006-09-12 22:34         ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2006-07-21 21:59 UTC (permalink / raw)


On Tue, 11 Jul 2006, Hans Hagen wrote:

> Adam Lindsay wrote:
>> Makes sense. I'll look at the new definitions you just sent.
>>
>> On the "user" side, what do you imagine it would look like:
>> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>>
>>
> ^^^ this one (actually it listens to the outer encoding)

I am missing something. I tried the following (with the alpha, 
cont-new.tex contains the new definitions), but get not accent with 
the following code.

\startmathcollection[euler:texnansi]
     \definemathsymbol [breve] [accent] [tf] ["15]
\stopmathcollection
\startmathcollection[euler:ec]
     \definemathsymbol [breve] [accent] [tf] ["08]
\stopmathcollection


\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]

\starttext
$\breve e$
\stoptext

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

* Re: \bar missing in euler
  2006-07-21 21:59       ` Aditya Mahajan
@ 2006-09-12 22:34         ` Aditya Mahajan
  2006-09-13  0:00           ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2006-09-12 22:34 UTC (permalink / raw)


[-- Attachment #1: Type: TEXT/PLAIN, Size: 1729 bytes --]

On Fri, 21 Jul 2006, Aditya Mahajan wrote:

> On Tue, 11 Jul 2006, Hans Hagen wrote:
>
>> Adam Lindsay wrote:
>>> Makes sense. I'll look at the new definitions you just sent.
>>>
>>> On the "user" side, what do you imagine it would look like:
>>> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>>>
>>>
>> ^^^ this one (actually it listens to the outer encoding)
>
> I am missing something. I tried the following (with the alpha,
> cont-new.tex contains the new definitions), but get not accent with
> the following code.
>
> \startmathcollection[euler:texnansi]
>     \definemathsymbol [breve] [accent] [tf] ["15]
> \stopmathcollection
> \startmathcollection[euler:ec]
>     \definemathsymbol [breve] [accent] [tf] ["08]
> \stopmathcollection
>
>
> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
> \setupbodyfont[e,10pt]
>
> \starttext
> $\breve e$
> \stoptext

I am restarting one of my old threads, so please be patient.

To restate the problem, some accents are missing from euler font. Adam 
suggested using a hack along the lines of latex to pull those accents 
from the text font, later Hans posted some code that took care of 
encoding and stuff. Hans added the code to cont-new.tex with a example 
usage in the comments.

I could never get the example to work.

Hans, the code in cont-new.tex is slightly differnt from the code that 
you posted on the ML. The code on the ML works, while the code in 
cont-new.tex does not.

The attached file compares the output of the code in cont-new.tex with 
the code posted on the ML. Can you look into it to see what is going 
on. Since euler is the only incomplete math font, the definitions for 
all the accents can be added to math-eul.tex.

Aditya

[-- Attachment #2: Type: TEXT/PLAIN, Size: 2283 bytes --]

\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]
\starttext

\startbuffer
\startmathcollection[euler:texnansi]
    \definemathsymbol [breve] [accent] [tf] ["15]
\stopmathcollection
\startmathcollection[euler:ec]
    \definemathsymbol [breve] [accent] [tf] ["08]
\stopmathcollection

$\breve e$
\stopbuffer

Testing for code in \filename{cont-new.tex}
\start
  \getbuffer\typebuffer 
\stop

\startbuffer
\unprotect

 \def\dohandlemathtoken#1%
   {\csname
      \ifmmode
        \ifcsname\@mt@\outerencoding#1\endcsname
          \@mt@\outerencoding
        \else\ifcsname\@mt@\mathcollection#1\endcsname
          \@mt@\mathcollection
        \else\ifcsname\@mt@\nomathcollection#1\endcsname
          \@mt@\nomathcollection
        \else\ifcsname\characterencoding#1\endcsname
          \characterencoding
        \else
          \nocharacterencoding
        \fi\fi\fi\fi
      \else
        \ifcsname\characterencoding#1\endcsname
          \characterencoding
        \else\ifcsname\nocharacterencoding#1\endcsname
          \nocharacterencoding
        \else\ifcsname\@mt@\outerencoding#1\endcsname
          \@mt@\outerencoding
        \else\ifcsname\@mt@\mathcollection#1\endcsname
          \strippedcsname\mathematics
 \expandafter\endcsname\csname\@mt@\mathcollection
        \else\ifcsname\@mt@\nomathcollection#1\endcsname
          \strippedcsname\mathematics
 \expandafter\endcsname\csname\@mt@\nomathcollection
        \else
          \nocharacterencoding
        \fi\fi\fi\fi\fi
      \fi
    #1\endcsname}
 \let\dohandlecommand\dohandlemathtoken

 \def\checkoutermathencoding
   {\ifx\outerencoding\empty
      \ifx\outerencoding\s!default\else
        \edef\outerencoding{\currentencoding}%
      \fi
    \fi}

 \startmathcollection[texnansi]
     \definemathsymbol [breve] [accent] [tf] ["15]
 \stopmathcollection
 \startmathcollection[ec]
     \definemathsymbol [breve] [accent] [tf] ["08]
 \stopmathcollection

 \prependtoks
    \checkoutermathencoding
 \to \everymathematics

 \let\outerencoding\empty

 $\breve e$
\stopbuffer

\page

Testing for code sent by Hans on the mailing list
\start
  \getbuffer\typebuffer 
\stop



\stoptext


[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: \bar missing in euler
  2006-09-12 22:34         ` Aditya Mahajan
@ 2006-09-13  0:00           ` Hans Hagen
  2006-09-13  1:32             ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-09-13  0:00 UTC (permalink / raw)


Aditya Mahajan wrote:
> On Fri, 21 Jul 2006, Aditya Mahajan wrote:
>
it's eul


\startmathcollection[eul:texnansi]
    \definemathsymbol [breve] [accent] [tf] ["15]
\stopmathcollection
\startmathcollection[eul:ec]
    \definemathsymbol [breve] [accent] [tf] ["08]
\stopmathcollection

\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]

$\breve e$



>> On Tue, 11 Jul 2006, Hans Hagen wrote:
>>
>>> Adam Lindsay wrote:
>>>> Makes sense. I'll look at the new definitions you just sent.
>>>>
>>>> On the "user" side, what do you imagine it would look like:
>>>> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>>>>
>>>>
>>> ^^^ this one (actually it listens to the outer encoding)
>>
>> I am missing something. I tried the following (with the alpha,
>> cont-new.tex contains the new definitions), but get not accent with
>> the following code.
>>
>> \startmathcollection[euler:texnansi]
>>     \definemathsymbol [breve] [accent] [tf] ["15]
>> \stopmathcollection
>> \startmathcollection[euler:ec]
>>     \definemathsymbol [breve] [accent] [tf] ["08]
>> \stopmathcollection
>>
>>
>> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>> \setupbodyfont[e,10pt]
>>
>> \starttext
>> $\breve e$
>> \stoptext
>
> I am restarting one of my old threads, so please be patient.
>
> To restate the problem, some accents are missing from euler font. Adam 
> suggested using a hack along the lines of latex to pull those accents 
> from the text font, later Hans posted some code that took care of 
> encoding and stuff. Hans added the code to cont-new.tex with a example 
> usage in the comments.
>
> I could never get the example to work.
>
> Hans, the code in cont-new.tex is slightly differnt from the code that 
> you posted on the ML. The code on the ML works, while the code in 
> cont-new.tex does not.
>
> The attached file compares the output of the code in cont-new.tex with 
> the code posted on the ML. Can you look into it to see what is going 
> on. Since euler is the only incomplete math font, the definitions for 
> all the accents can be added to math-eul.tex.
>
> Aditya
> ------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

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

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

* Re: \bar missing in euler
  2006-09-13  0:00           ` Hans Hagen
@ 2006-09-13  1:32             ` Aditya Mahajan
  2006-09-14 19:59               ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2006-09-13  1:32 UTC (permalink / raw)


On Wed, 13 Sep 2006, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> On Fri, 21 Jul 2006, Aditya Mahajan wrote:
>>
> it's eul
>
>
> \startmathcollection[eul:texnansi]
>    \definemathsymbol [breve] [accent] [tf] ["15]
> \stopmathcollection
> \startmathcollection[eul:ec]
>    \definemathsymbol [breve] [accent] [tf] ["08]
> \stopmathcollection
>
> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
> \setupbodyfont[e,10pt]
>
> $\breve e$

Thanks... here is a list of all accents.

\startmathcollection[eul:texnansi]
   \definemathsymbol [acute]    [accent] [tf] ["13]
   \definemathsymbol [grave]    [accent] [tf] ["12]
   \definemathsymbol [ddot]     [accent] [tf] ["A8]
   \definemathsymbol [tilde]    [accent] [tf] ["98]
   \definemathsymbol [bar]      [accent] [tf] ["16]
   \definemathsymbol [breve]    [accent] [tf] ["15]
   \definemathsymbol [check]    [accent] [tf] ["14]
   \definemathsymbol [hat]      [accent] [tf] ["88]
   \definemathsymbol [dot]      [accent] [tf] ["5]
   % Why is mathring not defined??
   \definemathsymbol [mathring] [accent] [tf] ["17]
\stopmathcollection

\startmathcollection[eul:ec]
   \definemathsymbol [acute]    [accent] [tf] ["1]
   \definemathsymbol [grave]    [accent] [tf] ["0]
   \definemathsymbol [ddot]     [accent] [tf] ["4]
   \definemathsymbol [tilde]    [accent] [tf] ["3]
   \definemathsymbol [bar]      [accent] [tf] ["9]
   \definemathsymbol [breve]    [accent] [tf] ["8]
   \definemathsymbol [check]    [accent] [tf] ["7]
   \definemathsymbol [hat]      [accent] [tf] ["2]
   \definemathsymbol [dot]      [accent] [tf] ["A]
   % Why is mathring not defined??
   \definemathsymbol [mathring] [accent] [tf] ["6]
\stopmathcollection

Here I have replaced the \hat from the text fonts. math-eul.tex 
already redefines hat as

\definemathsymbol [hat]   [accent] [sy] ["DE]

which appears to be too wide.


This method works for most fonts that I tested with, but the result is 
UGLY (as expected). Check out the output of

\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]

$
     \acute b
     \grave b
     \ddot  b
     \tilde b
     \bar   b
     \breve b
     \check b
     \hat   b
     \dot   b
$

I wish Hermann Zapf had added these accents in Euler.

Hans, why is mathring accent missing from all collections except 
fourier?

Aditya

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

* Re: \bar missing in euler
  2006-09-13  1:32             ` Aditya Mahajan
@ 2006-09-14 19:59               ` Hans Hagen
  2006-09-15  6:40                 ` Taco Hoekwater
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-09-14 19:59 UTC (permalink / raw)


Aditya Mahajan wrote:
>
> I wish Hermann Zapf had added these accents in Euler.
>   
i'll pass the question when the occasion is there ...
> Hans, why is mathring accent missing from all collections except 
> fourier?
>   
dunno, and if taco does notknow it either, who knows -) 
 

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

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

* Re: \bar missing in euler
  2006-09-14 19:59               ` Hans Hagen
@ 2006-09-15  6:40                 ` Taco Hoekwater
  0 siblings, 0 replies; 13+ messages in thread
From: Taco Hoekwater @ 2006-09-15  6:40 UTC (permalink / raw)


Hans Hagen wrote:
> Aditya Mahajan wrote:
> 
>>I wish Hermann Zapf had added these accents in Euler.
>>  
> 
> i'll pass the question when the occasion is there ...
> 
>>Hans, why is mathring accent missing from all collections except 
>>fourier?
>>  
> 
> dunno, and if taco does notknow it either, who knows -) 

Probably an oversight, because it is not defined in plain.tex.

Traditional TeX math fonts need:

   \definemathsymbol [mathring]       [accent] [mr] ["17]

Cheers,
Taco

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

end of thread, other threads:[~2006-09-15  6:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 13:54 \bar missing in euler Aditya Mahajan
2006-07-06 15:35 ` Adam Lindsay
2006-07-06 15:53   ` Aditya Mahajan
2006-07-11  8:32     ` Hans Hagen
2006-07-11  8:34 ` Hans Hagen
2006-07-11 12:51   ` Adam Lindsay
2006-07-11 13:03     ` Hans Hagen
2006-07-21 21:59       ` Aditya Mahajan
2006-09-12 22:34         ` Aditya Mahajan
2006-09-13  0:00           ` Hans Hagen
2006-09-13  1:32             ` Aditya Mahajan
2006-09-14 19:59               ` Hans Hagen
2006-09-15  6:40                 ` Taco Hoekwater

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