Jupyter笔记本中的方程式编号 [英] Equation numbering in Jupyter notebooks

查看:403
本文介绍了Jupyter笔记本中的方程式编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事实是,在官方文档中 Jupyter-启发性的例子站立架

The fact is, that in official documentation Jupyter - motivating examples stands

方程式编号和引用将在Jupyter笔记本的将来版本中提供.

Equation numbering and referencing will be available in a future version of the Jupyter notebook.

我知道有关此主题的讨论很多.有些人声称可以通过一些解决方法来解决此问题.

I know there is a lot of discussion about this topic. There are some people who claim to solve this issue with some workarounds.

但是对于普通用户而言,很难理解变通方法,或者这些黑客实际上是多么的肮脏/有用.

But for ordinary user it is hard to understand the workarounds, or how dirty/useful the hacks really are.

所以我的问题是:

  1. 将来版本可用"是什么意思?

  1. what means the "available in future version"? Does it mean something like "new month/year" or something like "probably never because it is too impossible"?

Internet上提供的任何变通办法都可以供人们安全使用吗?我的意思是值得的吗?因为可以使用Sphinx或其他方法来创建教程,所以要做更多的工作,但是实施一些技巧,安装插件等等会做更多的工作?

If any of the workarounds provided on the Internet safe for a human consumption? I mean is it worthy? Because it is possible to use Sphinx or something else for creation of tutorials, it will be more work, but it will be more work that implementing some hacks, installing plug-ins and so on?

注意:对于某些人来说,这似乎是一个需要基于意见的答案的问题,但我敢肯定它不是.任何建议都可以帮助我(或其他用户)做出好/坏决定.

Note: For somebody it could seems to be a question requiring opinion based answer, but I am pretty sure it is not. Any advice can help me (or others users) to make a good/bad decision.

推荐答案

我相信,与此问题相关的所有信息基本上都可以在Github长期发行的

I believe that essentially all information relevant to this question can be found in this long Github issue thread.

该对话已经进行了3.5年,目前仍在进行中.重要亮点:

The conversation there has been ongoing for (at this moment) 3.5 years and is still active. Important highlights:

  • 您可以通过执行具有以下内容的单元格来非常简单地打开编号:

  • You can very simply turn on numbering by executing a cell with the following content:

%%javascript
MathJax.Hub.Config({
    TeX: { equationNumbers: { autoNumber: "AMS" } }
});

  • 有一个扩展用于方程式编号.

  • There is an extension for equation numbering.

    要通过pip安装扩展程序:

    pip install jupyter_contrib_nbextensions
    

    要通过使用上面提供的一种安装方式后,启用扩展程序:

    After using one of the ways to install provided above, enable the extension:

    jupyter contrib nbextension install --user
    jupyter nbextension enable equation-numbering/main
    

    这篇关于Jupyter笔记本中的方程式编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆