Open YetAnotherSimon opened 4 years ago
LaTeX-incompatible input and strict mode is set to 'warn': In LaTeX, \ or \newline does nothing in display mode [newLineInDisplayMode]
@CeroProgramming You can workaround by aligned
block:
\begin{aligned}
& \lim_{0}{\frac{\frac{123}{123}}{\frac{123}{123}}} \\
& \lim_{0}{\frac{\frac{123}{123}}{\frac{123}{123}}}
\end{aligned}
I met a case, which may be the same problem. Is it a problem with KaTeX or marktext?
$$
\begin{aligned}
T1 &= \left[\begin{array}{r}\cos{\left (\theta_{0} \right )} & - \sin{\left (\theta_{0} \right )} & 0\\\sin{\left (\theta_{0} \right )} & \cos{\left (\theta_{0} \right )} & 0\\0 & 0 & 1\end{array}\right]\\
&=\left[\begin{array}{r}\cos{\left (\dfrac{\pi}{6} + \dfrac{\pi}{2} \right )} & - \sin{\left (\dfrac{\pi}{6} + \dfrac{\pi}{2} \right )} & 0\\\sin{\left (\dfrac{\pi}{6} + \dfrac{\pi}{2} \right )} & \cos{\left (\dfrac{\pi}{6} + \dfrac{\pi}{2} \right )} & 0\\0 & 0 & 1\end{array}\right]\\
&=\left[\begin{array}{r}- \dfrac{1}{2} & - \dfrac{\sqrt{3}}{2} & 0\\\dfrac{\sqrt{3}}{2} & - \dfrac{1}{2} & 0\\0 & 0 & 1\end{array}\right]\\
&=\left[\begin{array}{r}-0.5 & -0.866025403784439 & 0\\0.866025403784439 & -0.5 & 0\\0 & 0 & 1.0\end{array}\right]
\end{aligned}
$$
as we may find that, the first and second line of element in the 2nd matrix overlaps in marktext, but does not in typora. So sorry I can't attach a picture to github and I don't why
保险起见,用中文说一下吧 在marktext中,第二个矩阵的第1、2行,间距太小,貌似重合;而typora渲染出来有间距,看着舒服。不清楚这是KaTeX的问题,还是marktext的问题
@retsyo It's a problem with KaTeX but we may be able to solve the issue via CSS. If you need more spacing, you could use a line break with height like \\[0.5em]
or \\[1.2em]
.
Description
Overlapping/touching lines in latex.
Steps to reproduce
Actual behavior:
The lines are overlapping a bit or at least touching.
Expected behavior:
In context of readability I think this isn't supposed.
Versions