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 代码 #622

Closed
SteveWang1007 opened this issue Jan 22, 2016 · 7 comments
Closed

不能高亮 LaTeX 代码 #622

SteveWang1007 opened this issue Jan 22, 2016 · 7 comments
Milestone

Comments

@SteveWang1007
Copy link

作者你好,我在尝试写一些LaTeX代码

\usepackage{enumerate}
\begin{document}
This is a latex example
    \begin{enumerate}[(a)]
    \item this is a item example
        \item this is another item example
    \end{enumerate}
\end{document}

highlight.js 应该是支持TeX 的, 但是好像并不识别指定的语言。

iissnan added a commit that referenced this issue Mar 15, 2016
@iissnan
Copy link
Owner

iissnan commented Mar 15, 2016

highlight.js 支持,Theme 的主题没有加上 Tex 的相关 class。我把几个可能用到的 class 都加上去了。

@iissnan
Copy link
Owner

iissnan commented Mar 15, 2016

tex-hl
tex-hl-night

@ruiqiangJiao
Copy link

加载宏包之后还是显示代码,未能在文中调用宏包的功能。这个不可实现吗?

@SteveWang1007
Copy link
Author

测试成功了 感谢 @iissnan@ruiqiangJiao 你是想问关于 enumerate 这个宏包的问题还是关于 next 这个主题的问题? 我不是很理解你的问题。

@ruiqiangJiao
Copy link

如果我在markdown中需要某个宏包的功能,比如
\usepackage{mhchem}
\begin{equation}
\ce{2H2 + O2 ->[\text{燃烧}] 2H2O2}
\end{equation}
可以实现吗?

在2016-03-17 08:53:31,[email protected]写道:

测试成功了 感谢 @iissnan@ruiqiangJiao 你是想问关于 enumerate 这个宏包的问题还是关于 next 这个主题的问题? 我不是很理解你的问题。


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@ruiqiangJiao
Copy link

还有一个问题,0.5版本在打开用mathjax时,刚开始显示的是latex代码,反映一会之后,才显示公式的,以前的版本直接显示公式,这是怎么回事?

@iissnan
Copy link
Owner

iissnan commented Mar 17, 2016

@ruiqiangJiao NexT 并未解析你的 Latex 代码,只是单纯的展示。MathJax 的问题应该跟网络速度有关联。

@iissnan iissnan closed this as completed Mar 17, 2016
flashlab pushed a commit to flashlab/hexo-theme-next that referenced this issue Mar 18, 2016
@iissnan iissnan added this to the v5.0.0 milestone Mar 21, 2016
habren pushed a commit to habren/hexo-theme-next that referenced this issue Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants