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
  • #1837
Closed
Open
Issue created Sep 14, 2017 by Administrator@rootContributor

[CommonHTML] Inconsistent horizontal spacing when loading a new font

Created by: SuzanneSoy

In the example below, the spacing between the :: and the = is not the same on the first and fifth equations (it's more visible on the fifth). These equations load a new font, which might be the cause for the larger space. The equations 1–4 are strictly identical, and so are the equations 5–8. I wasn't able to build a smaller example, the problem disappears when removing one of the : or when removing the \raise.

The space between the :: and the = is a bit wider on the first line, and much wider on the fifth line

<!DOCTYPE html>
<html>
  <head>
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        extensions:["tex2jax.js"],
        tex2jax:{displayMath:[["\\[", "\\]"]]},
        jax: ["input/TeX", "output/CommonHTML"]
      });
    </script>
    <script type="text/javascript" src="MathJax/MathJax.js?config=default"></script>
  </head>
  <body>
    <!-- Loads bf font: -->
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathbf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathbf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathbf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathbf{\unicode{x03BB}}\]
    <!-- Loads sf font: -->
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathsf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathsf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathsf{\unicode{x03BB}}\]
    \[a \raise0.4mu{::}\hspace{-8mu}=\mathsf{\unicode{x03BB}}\]
  </body>
</html>
Assignee
Assign to
Time tracking