\centerdot does not render as in Latex

151 views
Skip to first unread message

agarw...@gmail.com

unread,
Oct 18, 2012, 2:33:44 PM10/18/12
to mathja...@googlegroups.com
I find that \centerdot does not render as in Latex. An example is on my website here, in the equation under Errata, the dot after the R is a \centerdot. In Latex, the dot is square and flush on the bottom of the line. MathJax is rendering a circular dot that is vertically centered. Any way to fix this? Thanks.

Peter Krautzberger

unread,
Oct 18, 2012, 3:22:01 PM10/18/12
to mathja...@googlegroups.com
Your page renders fine for me using Chrome 18 and 23, Firefox 16 on Linux. 

Before trying to hunt down any bugs, you should consider upgrading -- you're still using MathJax v1.0 which we don't advise (the v2.1 release is coming up).

Peter.

Davide P. Cervone

unread,
Oct 20, 2012, 2:56:29 PM10/20/12
to mathja...@googlegroups.com
Interesting; \centerdot does seem to be a misnomer, doesn't it?  The MathJax fonts contains the proper character, but I don't see an appropriate version in the STIX fonts.  So while you could get it to work with the MathJax web fonts, it would fail with people using STIX.

So perhaps the following would work for you:

\def\centerdot{\mathbin{\Rule{.2em}{.2em}{0px}}}

which makes a binary operator from a small black square.  You can include this in your configuration as follows:

<script type="text/x-mathjax-config">
MathJax.Hub.Config){
  TeX: {
    Macros: {
      centerdot: "\\mathbin{\\Rule{.2em}{.2em}{0px}}"
    }
  }
});
</script>

Place this BEFORE the script that loads MathJax.js itself.

Davide
Reply all
Reply to author
Forward
0 new messages