让 LaTeX 在表格中的每一行之间绘制一个 hline 而不使用 hline? [英] make LaTeX draw a hline between each line in tabular without using hline?
本文介绍了让 LaTeX 在表格中的每一行之间绘制一个 hline 而不使用 hline?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何明显或漂亮的方法可以让 LaTeX 自动在表格的每一行之间放置一个 hline 而不必在每行之间放置一个 hline?
Is there any obvious or pretty way to have LaTeX automatically put a hline between each line in a table without having to put a hline between each line?
我想过创建一个类似的命令:
I thought about creating a command like:
ewcommand{EOL}{\ hline}
但是我会得到这样的非标准表:
But then I will get non-standard looking tables like this:
3 & 2 & 1 EOL
1 & 2 & 3 EOL
有没有办法让我的表体看起来像:
Is there a way such that my table bodies could look like:
3 & 2 & 1 \
1 & 2 & 3 \
但仍然得到 hlines?
And yet still get the hlines?
推荐答案
catcode`@=11
let savecr @tabularcr
def@tabularcr{savecrhline}
catcode`@=12
egin{tabular}{ccc}
1 & 2 & 3\
4 & 5 & 6\
end{tabular}
这篇关于让 LaTeX 在表格中的每一行之间绘制一个 hline 而不使用 hline?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文