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

建议增加行内LaTeX解析 #35

Open
yw981 opened this issue Sep 20, 2018 · 5 comments
Open

建议增加行内LaTeX解析 #35

yw981 opened this issue Sep 20, 2018 · 5 comments

Comments

@yw981
Copy link

yw981 commented Sep 20, 2018

建议增加行内LaTeX解析,解决行内公式显示
谢谢

@imLogM
Copy link

imLogM commented Jun 1, 2019

同求,没有行内公式很不方便

@imLogM
Copy link

imLogM commented Jun 1, 2019

回复似乎是支持行内公式的,但是自己写博客写文章不支持行内公式

@DerekGrant
Copy link

同求,希望加入支持,自己经常写论文总结,很希望有这个功能。

@Integ
Copy link

Integ commented Jun 12, 2019

If you write your own HTML (directly or via a template/theme engine), you can include MathJax by adding this snippet to your page:
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
Here's a pre-populated example you can re-use.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>MathJax example</title>
  <script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async>
</script>
</head>
<body>
<p>
  When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
  $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</p>
</body>
</html>

When (a \ne 0), there are two solutions to (ax^2 + bx + c = 0) and they are

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

And here is why GitHub's markdown does not support LaTex.

@DerekGrant
Copy link

If you write your own HTML (directly or via a template/theme engine), you can include MathJax by adding this snippet to your page:
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
Here's a pre-populated example you can re-use.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>MathJax example</title>
  <script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async>
</script>
</head>
<body>
<p>
  When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
  $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</p>
</body>
</html>

When (a \ne 0), there are two solutions to (ax^2 + bx + c = 0) and they are

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

And here is why GitHub's markdown does not support LaTex.

你这没用吧,我写markdown,这加一段java script算怎么一回事。

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

4 participants