ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: dev-context@ntg.nl, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [dev-context] Re: Bug in math accents (analyzed)
Date: Mon, 01 Nov 2004 16:59:13 +0100	[thread overview]
Message-ID: <41865D51.803@wxs.nl> (raw)
In-Reply-To: <418655A4.9060105@elvenkind.com>

Taco has found the reason why \mathaccents may get dislocated in slanted 
or italic fonts

> The problem is that your code does not set \skewchar for the \scriptfont
> and \scriptscriptfont of the relevant math families. You need to make sure
> you set all three of \textfont X, \scriptfont X and \scriptscriptfont X.
> 
> This requires some minor rewriting of a few macros in font-ini.tex.
> I could do that for you, but my coding style is not even remotely
> similar to yours so I wager you'd rather do it yourself. ;-)
> 

font-ini needs the following patch

\appendtoks
\dosetmathfamily\mrfam\textface\scriptface\scriptscriptface\c!mr\mrfallback
   \dosetmathfamily\mifam\textface\scriptface\scriptscriptface\c!mi\empty
   \dosetmathfamily\syfam\textface\scriptface\scriptscriptface\c!sy\empty
   \dosetmathfamily\exfam\textface\textface  \textface        \c!ex\empty
   \dosetmathfamily\mafam\textface\scriptface\scriptscriptface\c!ma\empty
   \dosetmathfamily\mbfam\textface\scriptface\scriptscriptface\c!mb\empty
   \dosetmathfamily\mcfam\textface\scriptface\scriptscriptface\c!mc\empty
   \dosetmathfamily\nnfam\textface\scriptface\scriptscriptface\c!nn\empty
\to \mathstrategies

\appendtoks
   \dosetskewchar\mifam\defaultskewcharmi % implemented later on
   \dosetskewchar\syfam\defaultskewcharsy % implemented later on
\to \mathstrategies

\def\dosetskewchar#1#2%
   {\ifx\@@fontskewchar\empty
      \skewchar\textfont        #1#2%
      \skewchar\scriptfont      #1#2%
      \skewchar\scriptscriptfont#1#2%
    \else
      \skewchar\textfont        #1\@@fontskewchar
      \skewchar\scriptfont      #1\@@fontskewchar
      \skewchar\scriptscriptfont#1\@@fontskewchar
    \fi}

i'll patch the distribution

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

      parent reply	other threads:[~2004-11-01 15:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-21 16:27 Bug in math accents Leif Albers
2004-09-23  9:12 ` Taco Hoekwater
2004-10-28 11:14 ` Hans Hagen
2004-10-28 17:01   ` Taco Hoekwater
     [not found]     ` <418655A4.9060105@elvenkind.com>
2004-11-01 15:59       ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41865D51.803@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=dev-context@ntg.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).