James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.62k stars 529 forks source link

Mathpreviewpanel of long equation with \tag{} #4287

Closed qmphys closed 3 months ago

qmphys commented 3 months ago

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [x] The issue has not been reported in this repository.
  • [x] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [x] The FAQ cannot address the issue.
  • [x] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: Windows 10, WIndows 11
  • Visual Studio Code Version: 1.90.1
  • LaTeX Workshop Version: 9.20.1
  • TeX Distribution Version: [e.g. TeX Live 2019 / MiKTeX 2.9.7250]

The Issue*

Please briefly describe the issue you come across.

  • When I use the math preview panel to preview a long equation with \tag{} label, the panel displays a narrow result with overlapped tag.

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.

  1. Type a long equation in equation or align environment and use \tag{} to label it.
  2. Call out the math preview panel or use hover preview, the displayed region is narrow with overlapped tag.
  3. Delete \tag{}, there is no problem.

Expected Behavior

What were you expecting to see? Include any relevant examples or documentation links.

  • Preview equation normally with \tag{} command.
James-Yu commented 3 months ago

This is a MathJax issue. You may post the issue at https://github.com/mathjax/MathJax .