Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #931
Closed
Open
Issue created Oct 12, 2014 by Administrator@rootContributor

Inline MathJax is misaligned with surrounding text on Safari in OS X Yosemite

Created by: mattrajca

I am working with the following file and using MathJax 2.4:

<!DOCTYPE html>
<html>
<head>
    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({showProcessingMessages: false,
                           showMathMenu: false,
                           messageStyle: "none",
                           tex2jax: { inlineMath: [['$$','$$']], displayMath: [] },
                           TeX: {}});
    </script>
    <script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS_HTML"></script>
</head>

<body>
<p>By definition $$ corr(\{x,y\}) = mean(\{\hat{x}\hat{y}\}) = \frac{\sum_{i}^{} \hat{x}_i \hat{y}_i}{N} $$<br/>
Similarly, $$ corr(\{y,x\}) = mean(\{\hat{y}\hat{x}\}) = \frac{\sum_{i}^{} \hat{y}_i \hat{x}_i}{N} $$<br/>
Since multiplication is commutative $$ \hat{x}_i \hat{y}_i = \hat{y}_i \hat{x}_i $$ and the equations above are equivalent<br/>
We have shown that $$ corr(\{x,y\}) = corr(\{y,x\}) $$</p>
</body>
</html>

On Safari in Yosemite, most of the inline math is misaligned with surrounding text:

screen shot 2014-10-12 at 2 16 34 pm

This is not a problem when displaying the same file in Chrome.

Assignee
Assign to
Time tracking