表格排版问题 #80
Answered
by
note286
lei1320719647
asked this question in
Q&A
表格排版问题
#80
Replies: 3 comments 8 replies
-
用 |
Beta Was this translation helpful? Give feedback.
1 reply
-
\begin{table}[h]
\caption{\mbox{HBM物理地址含义表}} %标题
\centering %居中
\begin{tabular}{ccc}%c代表列。几个c表示有几列,内容居中
\toprule %第一道横线
\textbf{HBM地址比特含义} & \textbf{4H设备(4G/stack)} & \textbf{8H设备(8G/stack)} \\ %首行
\midrule %第二道横线
\mbox{总地址位宽} & 33bit ([32:0]) & 34bit ([33:0]) \\
\mbox{Stack(0=left;1=right)} & [32] & [33] \\
\mbox{AXI端口选择} & [31:28] & [31:29] \\
\mbox{有效访存地址} & [27:5] & [28:5] \\
\mbox{保留地址} & [4:0] & [4:0] \\
\bottomrule %第三道横线
\end{tabular}
\label{tab3.2}
\end{table} 麻烦了,谢谢 |
Beta Was this translation helpful? Give feedback.
0 replies
-
\documentclass{xdupgthesis}
\usepackage{tabularray}
\begin{document}
\begin{table}[h]
\caption{HBM物理地址含义表}
\label{tab3.2}
\begin{tblr}
{
colspec = {X[c,m]X[c,m]X[c,m]},
hline{1,Z} = {wd=.08em},
hline{2} = {wd=.05em},
row{1} = {font=\bfseries},
}
HBM地址比特含义 & 4H设备(4G/stack) & 8H设备(8G/stack) \\
总地址位宽 & 33bit ([32:0]) & 34bit ([33:0]) \\
Stack(0=left;1=right) & [32] & [33] \\
AXI端口选择 & [31:28] & [31:29] \\
有效访存地址 & [27:5] & [28:5] \\
保留地址 & [4:0] & [4:0] \\
\end{tblr}
\end{table}
\end{document} |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
note286
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
您好想请教一下,如何设置表格的宽度跟页面保持一致呢,现在绘制的表格与内容宽度一致,宽度小于页面宽度,或者甚至会超出页面。
Beta Was this translation helpful? Give feedback.
All reactions