typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Request: Disable physics package in Mathjax #4989

Closed aokanat closed 2 years ago

aokanat commented 2 years ago

Hi,

I love this editor but there is one thing that really bugs me. Some latex macros are redefined by the physics package such as \tan, which changes the size of parentheses which come after it. This makes it so that if I use Typora to work on a file then the equations don't look the same as they do for my collaborators.

For this reason I would like to suggest that the physics package be removed because it breaks backwards compatibility with regular latex equations such as the rendering in other editors (e.g. visual studio code, obsidian, etc).

abnerlee commented 2 years ago

Could you provide a sample TeX code that renders different with or without physics package?

aokanat commented 2 years ago

Here is a simple example:

$$
\tan(\bigg|)
$$

Without physics:

Screen Shot 2022-01-09 at 6 51 28 PM

With physics:

Screen Shot 2022-01-09 at 6 52 00 PM

Not only are the parentheses made larger but there is also more horizontal space after the tan.

abnerlee commented 2 years ago

should be supported in 1.1