将组织模式表中的垂直线导出到LaTeX [英] exporting vertical lines in org mode table to LaTeX

查看:168
本文介绍了将组织模式表中的垂直线导出到LaTeX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用emacs作为我的编辑器,而且我正在使用组织模式来操作,这显然是非常有用的。我在org中生成表(电子表格)模式,并且它被正确导出到LaTeX,除了垂直线。有办法出口吗?我想有一种方法来定义一些垂直线是可见的。

解决方案

您可以使用#+ attr_latex:,说:

 #+ attr_latex:align = | c | c | c | 
| ------ + ----- + ----- |
| A | B | C |
| ------ + ----- + ----- |
| 2.34 | 2.7 | 8.9 |
| 3.67 | 4.5 | 8.9 |
| ------ + ----- + ----- |


I'm using emacs as my editor and I am toying with org-mode which looks rather useful.

I'm generating a table (spreadsheet) in org mode and it is exported correctly to LaTeX apart from the vertical lines. Is there a way to export them? I want to have a way to define some of the vertical lines as visible.

解决方案

You can give the format to the table for LaTeX with #+attr_latex:, say:

#+attr_latex: align=|c|c|c|
|------+-----+-----|
|    A |   B |   C |
|------+-----+-----|
| 2.34 | 2.7 | 8.9 |
| 3.67 | 4.5 | 8.9 |
|------+-----+-----|

这篇关于将组织模式表中的垂直线导出到LaTeX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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