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

The premise of using $$and $$is that there should be a space in front of them? #5

Open
zoushucai opened this issue Jan 15, 2021 · 4 comments

Comments

@zoushucai
Copy link

zoushucai commented Jan 15, 2021

eg:

XXXXXXXXX

$$
\begin{cases}
x = acos\theta,\\
y = bsin\theta
\end{cases}
$$

The first $$is preceded by a blank line,What's more, it can eliminate the influence of space

Similarly, when using in line formulas, can we eliminate the influence of spaces before and after the $sign

@maginapp
Copy link
Owner

不确定是不是这个问题:
插件是根据$标识符来确定和转化公式区域,标识符前后的空行是md语法用来确定是否是当前行的,不适合在插件中增加这个判断

内联样式可以这样写的

> inline

start
$\begin{cases} x = acos\theta,\\ y = bsin\theta \end{cases}$
end

start$\begin{cases} x = acos\theta,\\ y = bsin\theta \end{cases}$bend

> block

a

$$
\begin{cases}
x = acos\theta,\\
y = bsin\theta
\end{cases}
$$

b

image

@zoushucai
Copy link
Author

我的意思就是这个, 我本地用typora来编辑, 但是在vuepress中需要调整数学公式才能正常显示,不然不会显示,能否像latex(或typora)那样, 行间公式,自动换行居中,忽略空格或空行的存在, 只识别关键词$$结尾和开头

@maginapp
Copy link
Owner

vuepress中上下两行未加空格分离,会编译到一个p标签里的,是这个问题倒是无空格分割的block模式代码无法识别
katex是基于markdown-it-texmath开发的,也存在这个问题

暂时只能在书写时,前后加上空行做为分割标识

image

@foxdie987
Copy link

foxdie987 commented Oct 27, 2021

how to make text size in the math formula bigger? It's small somehow, I like it bigger for easier to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants