我正在尝试使用 emacs 作为编辑器在乳胶中编写文档,并且我喜欢能够使用 orgtbl-mode 来插入和编辑表格“ascii 艺术风格”,但我对不得不手动更改表格格式从{lll} 到 {|l|l|l|} 更改表和编译时。
有没有办法让水平线成为默认值?
示例表:
|-------+-------+-------|
| | test1 | test2 |
|-------+-------+-------|
| test3 | | |
|-------+-------+-------|
| test4 | | |
|-------+-------+-------|
我希望它输出下表。
\begin{tabular}{|l|l|l|}
\hline
& test1 & test2 \\
\hline
test3 & & \\
\hline
test4 & & \\
\hline
\end{tabular}
而不是这张表:
\begin{tabular}{lll}
\hline
& test1 & test2 \\
\hline
test3 & & \\
\hline
test4 & & \\
\hline
\end{tabular}