Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering issue with \mathit in math role #544

Closed
2 tasks done
ansbmartin opened this issue Oct 11, 2024 · 1 comment · Fixed by #568
Closed
2 tasks done

Rendering issue with \mathit in math role #544

ansbmartin opened this issue Oct 11, 2024 · 1 comment · Fixed by #568
Assignees
Labels
bug Defects or glitches reported by users or developers css Requires or modifies cascading style sheets
Milestone

Comments

@ansbmartin
Copy link

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

When using \mathit{} in a :math: role, the content of mathit is truncated on the right.

Example:

- Example 1: :math:`\mathit{f}`.
- Example 2: :math:`\mathit{H}` test.

image

The same file is rendered correctly with the alabaster theme:
image

📝 Steps to reproduce

  1. unzip ansys-theme-math.zip
  2. run sphinx-build -M html . _build

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Ansys Sphinx theme 1.1.2

🐍 Which Python version are you using?

3.11

📦 Installed packages

accessible-pygments==0.0.5
alabaster==1.0.0
ansys-sphinx-theme==1.1.2
babel==2.16.0
beautifulsoup4==4.12.3
certifi==2024.8.30
charset-normalizer==3.4.0
colorama==0.4.6
docutils==0.21.2
idna==3.10
imagesize==1.4.1
importlib_metadata==8.5.0
Jinja2==3.1.4
MarkupSafe==3.0.1
packaging==24.1
pdf2image==1.17.0
pillow==10.4.0
pydata-sphinx-theme==0.15.4
Pygments==2.18.0
requests==2.32.3
snowballstemmer==2.2.0
soupsieve==2.6
Sphinx==8.1.0
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
typing_extensions==4.12.2
urllib3==2.2.3
zipp==3.20.2
@ansbmartin ansbmartin added the bug Defects or glitches reported by users or developers label Oct 11, 2024
@jorgepiloto
Copy link
Member

jorgepiloto commented Oct 14, 2024

Thanks for reporting this @ansbmartin. Looks like this may be caused by the font we are using in our theme.

@jorgepiloto jorgepiloto added the css Requires or modifies cascading style sheets label Oct 15, 2024
@jorgepiloto jorgepiloto added this to the v1.2 milestone Oct 23, 2024
@Revathyvenugopal162 Revathyvenugopal162 self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects or glitches reported by users or developers css Requires or modifies cascading style sheets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants