没错,iPython notebook 非常适合用来做可复现的报告。而 Knuth 所实践的文学编程(Literate programming)则稍有不同。程序的输出、图表、表格等并不像在 Jupyter notebook 里那样与文本混杂在一起。文学编程实际上是在一个 web 文件中将文档和源代码混合在一起。可以在这个 literate co 上运行两个不同的程序(tangle 和 weave)
Yes, the iPython notebooks are great for reproducible reports. Literate programming, as practiced by Knuth, is a little bit different. The program's output, graphs, tables, etc. isn't intermixed with the text as it is in a Jupyer notebook. A literate program is actually documentation and source mixed together in a web file. Two different programs (tangle and weave) can be run over this literate co
TeX 源代码并不是给读者直接阅读的形式。这就好比你把某篇文章当前的 HTML 和 JavaScript 源码拿出来,然后抱怨内容太难读一样。
你展示的所谓 TeX 源代码,同时也正是这本书的源码表示形式:
Computers & Typesetting, Volume B: TeX: The Program (Reading, Massachusetts: Addison-Wesley, 1986), ISBN 0
The TeX source is not in the form in which it is intended to be read. It's like you showing the current HTML and JavaScript source code of some article and complain that the message is hard to read.
What you showed as the TeX source is at the same time a source representation for this book:
Computers & Typesetting, Volume B: TeX: The Program (Reading, Massachusetts: Addison-Wesley, 1986), ISBN 0
我通读了高德纳(Donald Knuth)写的整本《TeX: The Program》(《Computers and Typesetting》Volume B)。
I read the entire book "TeX: The Program" by Donald Knuth, Computers and Typesetting, Volume B.
没错,iPython notebook 非常适合用来做可复现的报告。而 Knuth 所实践的文学编程(Literate programming)则稍有不同。程序的输出、图表、表格等并不像在 Jupyter notebook 里那样与文本混杂在一起。文学编程实际上是在一个 web 文件中将文档和源代码混合在一起。可以在这个 literate co 上运行两个不同的程序(tangle 和 weave)
Yes, the iPython notebooks are great for reproducible reports. Literate programming, as practiced by Knuth, is a little bit different. The program's output, graphs, tables, etc. isn't intermixed with the text as it is in a Jupyer notebook. A literate program is actually documentation and source mixed together in a web file. Two different programs (tangle and weave) can be run over this literate co
TeX 源代码并不是给读者直接阅读的形式。这就好比你把某篇文章当前的 HTML 和 JavaScript 源码拿出来,然后抱怨内容太难读一样。 你展示的所谓 TeX 源代码,同时也正是这本书的源码表示形式: Computers & Typesetting, Volume B: TeX: The Program (Reading, Massachusetts: Addison-Wesley, 1986), ISBN 0
The TeX source is not in the form in which it is intended to be read. It's like you showing the current HTML and JavaScript source code of some article and complain that the message is hard to read. What you showed as the TeX source is at the same time a source representation for this book: Computers & Typesetting, Volume B: TeX: The Program (Reading, Massachusetts: Addison-Wesley, 1986), ISBN 0