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

Problem rendering underbrace in equation #11989

Open
EinMaulwurf opened this issue Jan 30, 2025 · 3 comments
Open

Problem rendering underbrace in equation #11989

EinMaulwurf opened this issue Jan 30, 2025 · 3 comments
Assignees
Labels
bug Something isn't working math any issue related to math support in specific formats revealjs Issues with the revealjs format

Comments

@EinMaulwurf
Copy link

Bug description

In the following equation, the last underbrace is not rendered correctly:

$$
\underbrace{p}_{\substack{\text{Grenzerlös} \\ \text{MR}}} 
\leq 
\underbrace{ \frac{\partial c(y^*)}{\partial y} }_{\substack{\text{Grenzkosten} \\ \text{MC}}} 
\underbrace{=  \frac{\partial c_v(y^*)}{\partial y} }_{\text{kurzfristig}}
$$

Desired outcome (from RStudio inline view):

Image

Actual outcome (rendered):

Image

Steps to reproduce

Render the following quarto document:

---
format: revealjs
---

test

$$
\underbrace{p}_{\substack{\text{Grenzerlös} \\ \text{MR}}} 
\leq 
\underbrace{ \frac{\partial c(y^*)}{\partial y} }_{\substack{\text{Grenzkosten} \\ \text{MC}}} 
\underbrace{=  \frac{\partial c_v(y^*)}{\partial y} }_{\text{kurzfristig}}
$$

Expected behavior

No response

Actual behavior

No response

Your environment

  • RStudio 2024.12.0,467
  • Quarto 1.6.40
  • MacOS 15

Quarto check output

❯ quarto check
Quarto 1.6.40
[✓] Checking environment information...
      Quarto cache location: /Users/sebastiangeis/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.40
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.13.1
      Path: /opt/homebrew/opt/[email protected]/bin/python3.13
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /opt/homebrew/Cellar/r/4.4.2_2/lib/R
      LibPaths:
        - /opt/homebrew/lib/R/4.4/site-library
        - /opt/homebrew/Cellar/r/4.4.2_2/lib/R/library
      knitr: 1.49
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK
@EinMaulwurf EinMaulwurf added the bug Something isn't working label Jan 30, 2025
@mcanouil mcanouil added the math any issue related to math support in specific formats label Jan 30, 2025
@cderv
Copy link
Collaborator

cderv commented Jan 30, 2025

Please do have a look at

I believe this is a duplicate and related to

@cderv cderv self-assigned this Jan 30, 2025
@mcanouil mcanouil added the revealjs Issues with the revealjs format label Jan 30, 2025
@EinMaulwurf
Copy link
Author

Thank you. Especially this comment solved it.

However, I noticed that the rendering issue only seems to be the case when visiting the site with Chrome (or Chromium based browsers like Arc). With Firefox, it looked good. That's something I did not see mentioned in the other issues.

@mcanouil
Copy link
Collaborator

MathJax has some defaults settings change like accessibility display, etc. This is likely the reason.
Anyhow, that's not something related to Quarto or Reveal.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working math any issue related to math support in specific formats revealjs Issues with the revealjs format
Projects
None yet
Development

No branches or pull requests

3 participants