如何指定大(多行)表?
在 org-mode 中定义大型表格的最佳选择是什么(总的来说,我的意思是每个单元格可以有多行)? org-mode 的一个功能是它能够导出为 HTML 或 LaTeX(或其他),但在这种情况下,我必须先采用导出格式并用该语言(例如 HTML)对表进行硬编码?您将使用什么软件来创建主要包含文本字段的表格,每个单元格中首先包含段落(例如,您可以将其转换为 HTML)?
What's the best choice for defining a large table in org-mode
(by large, I mean that each cell can have multiple lines)? The one feature of org-mode is its ability to export to HTML or LaTeX (or other), but in this case would I have to commit to the export format a priori and hard-code the table in that language (e.g., HTML)? What software would you use to create table with mostly text fields with paragraphs in each cell in the first place (which you could convert to HTML, for instance)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看
table-mode
。这支持您所说的“大表”。它成为 emacs 发行版的一部分已经有一段时间了。 开始从
~/.emacs
中的某个位置 。创建一个空文件或缓冲区,明智地回答最初的问题,然后玩一下。您可以通过以下方式获取一些文档:
要查找更多文档,您需要找到源代码。 Start with
This 将显示
table-mode
的字节编译 lisp 文件的位置,并且在同一目录中,您应该使用table.el
或table .el.gz
,其中包含您至少需要浏览的文档。大多数 Linux 系统(愚蠢地)默认情况下不会安装 .el 文件,因此您必须使用包管理器来获取它们。我相当确定
org-mode
知道如何解析table-mode
表并为您格式化它们,但我现在似乎找不到在任何地方写下的内容。You might want to look at
table-mode
. This supports the sort of "large tables" you're talking about. It's been part of the emacs distribution for some time now. Start withsomewhere in
~/.emacs
. Create an empty file or buffer, typeanswer the initial questions sensibly and then play around a bit. You can get some documentation with
To find more documentation, you'll need to locate the source code. Start with
This will show you the location of the byte-compiled lisp file for
table-mode
, and in that same directory you should finetable.el
ortable.el.gz
, which will contain documentation you'll need to at least skim. Most linux systems (foolishly) do not install the .el files by default, so you'll have to go rooting around with the package manager to get them.I was fairly sure that
org-mode
knew how to parsetable-mode
tables and format them for you, but I can't seem to find that written down anywhere right now.