求一份关于表格的详细说明 #97
Unanswered
dreistein543
asked this question in
Q&A
Replies: 1 comment 6 replies
-
上周比较忙,回复迟了点。我的解决方法是换用功能更全的 \documentclass{njuthesis}
\usepackage{tabularray,zhlipsum}
\UseTblrLibrary{booktabs}
\begin{document}
\mainmatter
\chapter{表格}
\section{长表}
\zhlipsum[1]
\input{longtable}
\end{document} 更新后的
\begin{longtblr}[
caption = {regResults},
label = {tab:long},
remark{Note} = {Exponentiated coefficients; $t$ statistics in parentheses},
note{a} = {\(p<0.05\)},
note{b} = {\(p<0.01\)},
note{c} = {\(p<0.001\)},
note{d} = {\(p<0.1\)}
]{colspec = {ccccccccc}, rows = {font= \small}, rowsep = 0pt}
\toprule
& \SetCell[c=4]{c} main & & &
& \SetCell[c=4]{c} interaction \\
\cmidrule[lr]{2-5} \cmidrule[lr]{6-9}
& \SetCell[c=2]{c} (1) & & \SetCell[c=2]{c} (2) &
& \SetCell[c=2]{c} (3) & & \SetCell[c=2]{c}(4) \\
\midrule
OveSeaEdu & 1.193\TblrNote{c} & (3.583) & 1.186\TblrNote{c} & (3.459)
& 1.142\TblrNote{a} & (2.429) & 1.186\TblrNote{c} & (3.459) \\
FemalePost80 & 1.218 & (1.600) & 1.104 & (0.779)
& 1.094 & (0.713) & 1.010 & (0.046) \\
Lev & 1.859\TblrNote{c} & (4.049) & 1.884\TblrNote{c} & (4.131)
& 1.892\TblrNote{c} & (4.153) & 1.880\TblrNote{c} & (4.114) \\
Cash & 0.969\TblrNote{d} & (-1.869) & 0.970\TblrNote{d} & (-1.812)
& 0.970\TblrNote{d} & (-1.786) & 0.970\TblrNote{d} & (-1.825) \\
\bottomrule
\end{longtblr} 编译出来就是图中这个效果。我斗胆提一点建议:
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前
njuthesis-v0.15.0.pdf
文档中关于表格的描述过于简单,实际使用中,一般面临如下种情况:就我目前遇到的情况来看,没有办法简单解决,因为即使大小合适的表格,也可能存在一些问题(在单独页面不顶格而是上下居中显示),希望能针对该情况出一份比较详细的说明。(曾经尝试过 resizebox 但是玩不转 TAT)
使用配置:
代码如下:
使用的表格tex文件附上(需修改后缀)
longtable.txt
widetable.txt
mytable1.txt
Beta Was this translation helpful? Give feedback.
All reactions