about math accents \ddot
Dear all, I am trying to put three dots over "X" in math mode. In LaTeX, \dddot gives what I wanted by using amsmath packages. In ConTeXt, $\ddot X$ gives two dots over X, but \dddot yields a "undefined control sequence" error. "newmath" module doesn't support this accent. Please give me a good way to do that. Thank you. Best regards, Dalyoung
On Thu, 5 Nov 2009, Dalyoung wrote:
Dear all,
I am trying to put three dots over "X" in math mode. In LaTeX, \dddot gives what I wanted by using amsmath packages.
In ConTeXt, $\ddot X$ gives two dots over X, but \dddot yields a "undefined control sequence" error. "newmath" module doesn't support this accent.
Please give me a good way to do that.
For opentype fonts use the attached patch for char-def and regenreate formats. (Hans, can you apply this). For fonts that do not have the glyph, just translating the amsmath definition works \def\dddot#1% {{\mathop{#1}\limits^{\vbox to-1.4\points{\kern-\plustwo\points \hbox{...}\vss}}}} amsmath actually uses \ex@ instead of \points, but that is an obfuscated macro that I don't understand \newdimen\ex@ \addto@hook\every@math@size{\compute@ex@} \def\compute@ex@{% \begingroup \dimen@-\f@size\p@ \ifdim\dimen@<-20\p@ \global\ex@ 1.5\p@ \else \advance\dimen@10\p@ \multiply\dimen@\tw@ \edef\@tempa{\ifdim\dimen@>\z@ -\fi}% \dimen@ \ifdim\dimen@<\z@ -\fi \dimen@ \advance\dimen@-\@m sp % fudge factor \vfuzz\p@ \def\do{\ifdim\dimen@>\z@ \vfuzz=.97\vfuzz \advance\dimen@ -\p@ \@xp\do \fi}% \do \dimen@\p@ \advance\dimen@-\vfuzz \global\ex@\p@ \global\advance\ex@ \@tempa\dimen@ \fi \endgroup } Aditya
participants (2)
-
Aditya Mahajan
-
Dalyoung