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
  • #3004
Closed
Open
Issue created Feb 19, 2023 by cjohn001@cjohn001

Broken text layout on IOS devices when using \textbf{} in math environment

Issue Summary

The problem occurs on IOS devices, default Safari browser/webview. Problem can be seen from image below. The bold black texts were set in math environments. It looks like the relative height of the characters to each other get messed up for some words. See image below. "Tägl. Bewegung" looks correct, but "Aktiv" looks wrong.

Bildschirm­foto 2023-02-19 um 11 01 18

I am trying to set bold text in a math mode environment. On the desktop computer this looks ok but not on iPhone. Maybe in issue with the font?

Steps to Reproduce:


$$ \textbf{E} = \textbf{BMR} + \textbf{Anpassung} + \textbf{Aktiv} $$

Beide zusammengefasst bilden die \(\textbf{Aktiv}\)-Kalorien.

\(\textbf{T\"agl. Bewegung}\): 

\(\textbf{Aktivit\"at}\):

Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?

Technical details:

  • MathJax Version:
    "mathjax-full": "4.0.0-alpha.1", "mathjax-modern-font": "^1.0.0-alpha.1"

I am using the following MathJax configuration:

		<script type='text/javascript'>
			MathJax = {
				loader: { load: ['[tex]/textmacros'] },
				tex: {
					packages: { '[+]': ['textmacros'] }
				},
				output: {
					linebreaks: {
						inline: true,
					}
				},
				options: {
					menuOptions: {
						settings: {
							assistiveMml: false,
							collapsible: false,
							explorer: false
						}
					}
				}
			};
		</script>

and loading MathJax via

<script type='text/javascript' src='../mathjax/tex-mml-chtml.js' async></script>

Supporting information:

The attached file shows the generate HTML from the debug console of the webview (iOS Simulator):

test.txt

Woud be great if someone could comment on a workaround if one exists. Maybe using different latex package for text in math environment?

Assignee
Assign to
Time tracking