【发布时间】:2020-11-02 20:21:31
【问题描述】:
我已经看到了一些与这个问题相关的其他链接,如下所述:
- How to write LaTeX in IPython Notebook?
- https://towardsdatascience.com/write-markdown-latex-in-the-jupyter-notebook-10985edb91fd
- https://colab.research.google.com/drive/18_2yFdH8G-6NXY_7fTcshMoScgJ-SYac#scrollTo=go3imAWqE9au
但是,在 Jupyter notebook 中使用 Latex 代码时,我仍然遇到一些问题。
例如,
\begin{align*}
f(x) &= x^2\\
g(x) &= \frac{1}{x}\\
F(x) &= \int^a_b \frac{1}{3}x^3
\end{align*}
这可以像Markdown 一样正常工作,但是
\begin{equation*}
f(x) &= x^2\\
g(x) &= \frac{1}{x}\\
F(x) &= \int^a_b \frac{1}{3}x^3
\end{equation*}
没有。
在尝试使用以下内容创建有序列表时
\begin{enumerate}
\item The labels consists of sequential numbers.
\item The numbers starts at 1 with every call to the enumerate environment.
\end{enumerate}
但是,$\textbf{This is a bold text.}$ 有效。
这真的让我很困惑我可以使用什么以及什么。有什么方法可以让我在 Visual Studio 代码中只使用 Latex 代码(而不是 HTML 或其他代码)来格式化我的文本和方程式,而不用担心哪些会起作用,哪些不起作用?
【问题讨论】:
标签: visual-studio-code jupyter-notebook formatting latex markdown