如何指定大(多行)表?

发布于 2024-10-11 16:30:05 字数 191 浏览 3 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幼儿园老大 2024-10-18 16:30:05

您可能想查看table-mode。这支持您所说的“大表”。它成为 emacs 发行版的一部分已经有一段时间了。 开始

(require 'table)

~/.emacs 中的某个位置 。创建一个空文件或缓冲区,

M-x table-insert RET

明智地回答最初的问题,然后玩一下。您可以通过以下方式获取一些文档:

C-h f table-insert RET

要查找更多文档,您需要找到源代码。 Start with

M-x locate-library RET table RET

This 将显示 table-mode 的字节编译 lisp 文件的位置,并且在同一目录中,您应该使用 table.eltable .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 with

(require 'table)

somewhere in ~/.emacs. Create an empty file or buffer, type

M-x table-insert RET

answer the initial questions sensibly and then play around a bit. You can get some documentation with

C-h f table-insert RET

To find more documentation, you'll need to locate the source code. Start with

M-x locate-library RET table RET

This will show you the location of the byte-compiled lisp file for table-mode, and in that same directory you should fine table.el or table.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 parse table-mode tables and format them for you, but I can't seem to find that written down anywhere right now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文