windows 上的 org-mode 内置 table 编辑器
org-mode built-in table editor on windows
我在 Windows 7 上使用 org-mode 版本 8.2.2 和 Emacs 24.2.1,并且一直在努力调整 org-mode tables。使用内置编辑器在 org-mode 中创建一个简单的 table 给我一个未对齐的 table
- 未对齐 table 列
|第一栏 |第二列 |第三列 |
|一些文字 |一些其他的文字 |一些数字 333 |
|额外的文本行 |额外文字 | |
| | | |
根据我使用 ubuntu 的经验,我应该在点击 Tab 键时对齐列,如:
* unaligned table columns
| first col | second col | third col |
| some text | some other text | some numbers 333 |
| extra text row | extra text | |
| | | |
未对齐在议程视图中持续存在。
有人遇到同样的问题并找到了解决方案吗?
if I paste the "unaligned table columns" into notepad++ the columns align in a correct way automatically
听起来您在 Emacs 中使用的是比例(非等宽)字体。
org-mode
的 table 对齐是通过在必要时向单元格添加空格来实现的,并假定所有字符具有相同的宽度。如果您将 Emacs 配置为使用像 Consolas, Monaco, or Source Code Pro 这样的等宽字体,您的 table 应该正确对齐。
我在 Windows 7 上使用 org-mode 版本 8.2.2 和 Emacs 24.2.1,并且一直在努力调整 org-mode tables。使用内置编辑器在 org-mode 中创建一个简单的 table 给我一个未对齐的 table
- 未对齐 table 列
|第一栏 |第二列 |第三列 |
|一些文字 |一些其他的文字 |一些数字 333 |
|额外的文本行 |额外文字 | |
| | | |
根据我使用 ubuntu 的经验,我应该在点击 Tab 键时对齐列,如:
* unaligned table columns
| first col | second col | third col |
| some text | some other text | some numbers 333 |
| extra text row | extra text | |
| | | |
未对齐在议程视图中持续存在。
有人遇到同样的问题并找到了解决方案吗?
if I paste the "unaligned table columns" into notepad++ the columns align in a correct way automatically
听起来您在 Emacs 中使用的是比例(非等宽)字体。
org-mode
的 table 对齐是通过在必要时向单元格添加空格来实现的,并假定所有字符具有相同的宽度。如果您将 Emacs 配置为使用像 Consolas, Monaco, or Source Code Pro 这样的等宽字体,您的 table 应该正确对齐。