24小时热门版块排行榜    

查看: 1679  |  回复: 9

duyang2012

铜虫 (小有名气)

[求助] latex表格制作求助 已有1人参与

大神们,这个表格怎么破呀,求解!!!谢谢

latex表格制作求助
表格.png
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

book2005593

主管区长 (文坛精英)

优秀区长优秀区长优秀区长优秀版主优秀版主优秀版主

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ...
感谢参与,应助指数 +1
duyang2012: 金币+66, ★★★★★最佳答案, 大神威武!!! 2015-01-25 16:58:25
用表格环境嵌套即可。Latex代码:

\begin{center}
\begin{table}[htbp]\label{tab:test}
\caption{Table}
\begin{tabular}{cc}
\toprule
\begin{tabular}{c}
{\bf PN code}\\
{\bf parameter}
\end{tabular}
&
\hspace{-2 cm}
\begin{tabular}{cc}
\begin{tabular}{c}
Type \\
N \\
Period  Generator Polynomial \\
Initial states \\
\end{tabular}
& \;\;\;\;\;\;
\begin{tabular}{c}
m sequence\\
1023 chips\\
$[$10 8 3 1 0$]$ \\
$-1$\\
\end{tabular}
\end{tabular}
\\
\midrule
\begin{tabular}{c}
{\bf Decision}\\
{\bf parameter}
\end{tabular}
&
\begin{tabular}{cc}
$K$ & $3$ \\
Threshold decision method & CFAR algorithm \\
\midrule
& Perfect estimation ($=0$ dB)\\
$\sigma^2_n$ mismatch & Overestimation ($>0$ dB) \\
& Underestimation ($<0$ dB)\\
\midrule
The proposed algorithm & $L=2$\\
decision 1 &  \\
The proposed algorithm & $L=3$\\
decision 2 & \\
\end{tabular}
\\
\bottomrule
\end{tabular}
\end{table}
\end{center}

编译效果,如图:
latex表格制作求助-1
Latex编译效果

» 本帖已获得的红花(最新10朵)

2楼2015-01-24 12:09:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

引用回帖:
2楼: Originally posted by book2005593 at 2015-01-24 12:09:42
用表格环境嵌套即可。Latex代码:

\begin{center}
\begin{table}\label{tab:test}
\caption{Table}
\begin{tabular}{cc}
\toprule
\begin{tabular}{c}
{\bf PN code}\\
{\bf parameter}
\end{tabular}
...

谢谢大神的帮助!!!
3楼2015-01-25 16:58:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

送红花一朵
引用回帖:
2楼: Originally posted by book2005593 at 2015-01-24 12:09:42
用表格环境嵌套即可。Latex代码:

\begin{center}
\begin{table}\label{tab:test}
\caption{Table}
\begin{tabular}{cc}
\toprule
\begin{tabular}{c}
{\bf PN code}\\
{\bf parameter}
\end{tabular}
...

大神,还有一个问题,就是其中一个位置可以这样变动,见附图,如何解决?求大神指导,谢谢!!!
latex表格制作求助-2
表1.png

4楼2015-01-25 17:00:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

book2005593

主管区长 (文坛精英)

优秀区长优秀区长优秀区长优秀版主优秀版主优秀版主

引用回帖:
4楼: Originally posted by duyang2012 at 2015-01-25 17:00:53
大神,还有一个问题,就是其中一个位置可以这样变动,见附图,如何解决?求大神指导,谢谢!!!

表1.png
...

这个需要用换行命令,把左边两行看成一个整体跟右边的L=2并列即可。
需要在latex序言区加入如下命令,定义新命令\tabincell:
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
然后将表格命令换为如下:
\begin{center}
\begin{table}[htbp]\label{tab:test}
\caption{Table}
\begin{tabular}{cc}
\toprule
\begin{tabular}{c}
{\bf PN code}\\
{\bf parameter}
\end{tabular}
&
\hspace{-2 cm}
\begin{tabular}{cc}
\begin{tabular}{c}
Type \\
N \\
Period  Generator Polynomial \\
Initial states \\
\end{tabular}
& \;\;\;\;\;\;
\begin{tabular}{c}
m sequence\\
1023 chips\\
$[$10 8 3 1 0$]$ \\
$-1$\\
\end{tabular}
\end{tabular}
\\
\midrule
\begin{tabular}{c}
{\bf Decision}\\
{\bf parameter}
\end{tabular}
&
\begin{tabular}{cc}
$K$ & $3$ \\
Threshold decision method & CFAR algorithm \\
\midrule
& Perfect estimation ($=0$ dB)\\
$\sigma^2_n$ mismatch & Overestimation ($>0$ dB) \\
& Underestimation ($<0$ dB)\\
\midrule
\tabincell{c}{The proposed algorithm \\ decision 1 } & $L=2$\\
\tabincell{c}{The proposed algorithm \\decision 2} & $L=3$\\
\end{tabular}
\\
\bottomrule
\end{tabular}
\end{table}
\end{center}

编译效果如下:
latex表格制作求助-3
编译效果

» 本帖已获得的红花(最新10朵)

5楼2015-01-26 14:46:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

送红花一朵
引用回帖:
5楼: Originally posted by book2005593 at 2015-01-26 14:46:37
这个需要用换行命令,把左边两行看成一个整体跟右边的L=2并列即可。
需要在latex序言区加入如下命令,定义新命令\tabincell:
\newcommand{\tabincell}{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
然后将表格命 ...

大谢!
6楼2015-01-27 23:04:01
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

引用回帖:
5楼: Originally posted by book2005593 at 2015-01-26 14:46:37
这个需要用换行命令,把左边两行看成一个整体跟右边的L=2并列即可。
需要在latex序言区加入如下命令,定义新命令\tabincell:
\newcommand{\tabincell}{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
然后将表格命 ...

大神,请问上表的表名格式怎能像下表格一样:去掉冒号(:);而且”TBBLE II”居中;第二行是表名;字的大小和表二一样(我的太大了)。谢谢!!!
我表格的代码如下:
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{CJK}
\usepackage{booktabs}
\usepackage{array}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{caption2}
\usepackage{makecell}
\usepackage{threeparttable}
\begin{table}[!htbp]
\begin{center}
\label{tab:test}
\caption{THE GAIN OF ACQUISITION PERFORMANCE}
\begin{tabular}{ccc}
\toprule
  &${{\gamma }_{0}}(dB)$& ${{P}_{fa}}$\\
\midrule
Conventional & 9 & $1e-6$ \\
MCPP with $L=2$ & 1 & $<6.2e-7$ \\
MCPP with $L=3$ & 9& $<4.7e-14$ \\
\bottomrule
\end{tabular}
\end{center}
\begin{tablenotes}
        \footnotesize
        \item[1] Note: ${{\gamma }_{0}}$is the minimum SNR per chip corresponding to ${{P}_{d}}=99\%$ here. The false alarm probability for various algorithms are corresponding to the ${{\gamma }_{0}}$ above.
\end{tablenotes}
\end{table}

董立君 2015/1/29 19:09:26
\begin{table}[!htbp]
\begin{center}
\caption{THE PARAMETERS FOR THE NUMERICAL AND SIMULATION ANALYSIS}
\end{center}
\begin{center}
\label{tab:test}
\begin{tabular}{cc}
\toprule
& ~~~~~~~~~~~~~~~~~Perfect estimation($=$ 0dB)\\
$\Delta \gamma$  &~~~~~~~~~~~~~~~~~Overestimation($>$ 0dB)\\
& ~~~~~~~~~~~~~~~~~Underestimation($<$ 0dB)\\
\midrule
$K$ &~~~~~~~~~~~~~~~~~$3$ \\
${{V}_{T}}$  & ~~~~~~~~~~~~~~~~~CFAR\\
$L$&~~~~~~~~~~~~~~~~~2 or 3\\
\bottomrule
\end{tabular}
\end{center}
\begin{tablenotes}
        \footnotesize
        \item[1] ~~~~~~~~~~~Note:$\Delta \gamma$ denotes an offset for   estimate..
\end{tablenotes}
\end{table}
latex表格制作求助-4
表格格式.png

7楼2015-01-29 19:29:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

引用回帖:
5楼: Originally posted by book2005593 at 2015-01-26 14:46:37
这个需要用换行命令,把左边两行看成一个整体跟右边的L=2并列即可。
需要在latex序言区加入如下命令,定义新命令\tabincell:
\newcommand{\tabincell}{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
然后将表格命 ...

大神,请问上表的表名格式怎能像下表格一样(附图后面):去掉冒号(:);而且”TBBLE II”居中;第二行是表名;字的大小和表二一样(我的太大了)。谢谢!!!
我表格的代码如下:
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{CJK}
\usepackage{booktabs}
\usepackage{array}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{caption2}
\usepackage{makecell}
\usepackage{threeparttable}
\begin{table}[!htbp]
\begin{center}
\label{tab:test}
\caption{THE GAIN OF ACQUISITION PERFORMANCE}
\begin{tabular}{ccc}
\toprule
  &${{\gamma }_{0}}(dB)$& ${{P}_{fa}}$\\
\midrule
Conventional & 9 & $1e-6$ \\
MCPP with $L=2$ & 1 & $<6.2e-7$ \\
MCPP with $L=3$ & 9& $<4.7e-14$ \\
\bottomrule
\end{tabular}
\end{center}
\begin{tablenotes}
        \footnotesize
        \item[1] Note: ${{\gamma }_{0}}$is the minimum SNR per chip corresponding to ${{P}_{d}}=99\%$ here. The false alarm probability for various algorithms are corresponding to the ${{\gamma }_{0}}$ above.
\end{tablenotes}
\end{table}

董立君 2015/1/29 19:09:26
\begin{table}[!htbp]
\begin{center}
\caption{THE PARAMETERS FOR THE NUMERICAL AND SIMULATION ANALYSIS}
\end{center}
\begin{center}
\label{tab:test}
\begin{tabular}{cc}
\toprule
& ~~~~~~~~~~~~~~~~~Perfect estimation($=$ 0dB)\\
$\Delta \gamma$  &~~~~~~~~~~~~~~~~~Overestimation($>$ 0dB)\\
& ~~~~~~~~~~~~~~~~~Underestimation($<$ 0dB)\\
\midrule
$K$ &~~~~~~~~~~~~~~~~~$3$ \\
${{V}_{T}}$  & ~~~~~~~~~~~~~~~~~CFAR\\
$L$&~~~~~~~~~~~~~~~~~2 or 3\\
\bottomrule
\end{tabular}
\end{center}
\begin{tablenotes}
        \footnotesize
        \item[1] ~~~~~~~~~~~Note:$\Delta \gamma$ denotes an offset for   estimate..
\end{tablenotes}
\end{table}
latex表格制作求助-5
表格格式.png

8楼2015-01-29 19:31:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

book2005593

主管区长 (文坛精英)

优秀区长优秀区长优秀区长优秀版主优秀版主优秀版主

引用回帖:
8楼: Originally posted by duyang2012 at 2015-01-29 19:31:49
大神,请问上表的表名格式怎能像下表格一样(附图后面):去掉冒号(:);而且”TBBLE II”居中;第二行是表名;字的大小和表二一样(我的太大了)。谢谢!!!
我表格的代码如下:
\usepackage{amsmath}
\usepac ...

去掉冒号,表格标题大写和编号用罗马数字,在序言区加上如下命令:
\usepackage{caption}
\DeclareCaptionLabelFormat{table}{TABLE~#2}
\captionsetup[table]{labelformat=table}
\makeatletter % "@" is now a normal letter for TeX
\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1: #2}%
\centering{#1 #2}\par
  \vskip\belowcaptionskip}
\makeatother

表格编号后换行写表名,在\caption里加个换行即可,命令如下:
\caption{\protect \\Here is the table name}
9楼2015-02-01 11:03:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

duyang2012

铜虫 (小有名气)

引用回帖:
9楼: Originally posted by book2005593 at 2015-02-01 11:03:38
去掉冒号,表格标题大写和编号用罗马数字,在序言区加上如下命令:
\usepackage{caption}
\DeclareCaptionLabelFormat{table}{TABLE~#2}
\captionsetup{labelformat=table}
\makeatletter % "@" is  ...

谢谢大神!!!
10楼2015-02-02 10:47:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 duyang2012 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 欢迎采矿、地质、岩土、计算机、人工智能等专业的同学报考 +3 pin8023 2026-02-28 5/250 2026-03-02 00:24 by 花YOU重开日
[考研] 279求调剂 +3 dua1 2026-03-01 4/200 2026-03-02 00:23 by 大脸蛋子
[考研] 材料复试调剂 +3 学材料的点 2026-03-01 4/200 2026-03-02 00:07 by ccp273206157
[考研] 材料学硕318求调剂 +11 February_Feb 2026-03-01 13/650 2026-03-01 23:53 by ccp273206157
[考研] 一志愿郑大材料学硕298分,求调剂 +5 wsl111 2026-03-01 5/250 2026-03-01 23:45 by 暮雨星晴
[考研] 江苏省农科院招调剂1名 +3 Qwertyuop 2026-03-01 3/150 2026-03-01 23:18 by aaadim
[考研] 材料类求调剂 +10 wana_kiko 2026-02-28 12/600 2026-03-01 22:10 by 海嵙Y
[考研] 高分子化学与物理调剂 +6 好好好1233 2026-02-28 12/600 2026-03-01 19:48 by 好好好1233
[考研] 化工299分求调剂 一志愿985落榜 +5 嘻嘻(*^ω^*) 2026-03-01 5/250 2026-03-01 19:47 by 无际的草原
[考研] 0856化工专硕求调剂 +12 董boxing 2026-03-01 12/600 2026-03-01 19:45 by 材子momo
[考研] 298求调剂 +6 axyz3 2026-02-28 6/300 2026-03-01 19:00 by 18137688336
[考研] 一志愿中南大学理学化学 +4 15779376950 2026-03-01 5/250 2026-03-01 19:00 by Fff-1
[考研] 290求调剂 +9 材料专硕调剂; 2026-02-28 11/550 2026-03-01 17:21 by sunny81
[考研] 281求调剂 +4 2026计算机_诚心 2026-03-01 7/350 2026-03-01 17:20 by 2026计算机_诚心
[考研] 化工专硕342,一志愿大连理工大学,求调剂 +3 kyf化工 2026-02-28 4/200 2026-03-01 16:49 by yywzz
[考研] 311求调剂 +6 亭亭亭01 2026-03-01 6/300 2026-03-01 15:41 by 324616
[考研] 304求调剂 +6 曼殊2266 2026-02-28 7/350 2026-03-01 15:14 by wjLi2017
[考研] 材料工程274求调剂 +3 Lilithan 2026-03-01 3/150 2026-03-01 14:58 by ms629
[考研] 材料284求调剂,一志愿郑州大学英一数二专硕 +10 想上岸的土拨鼠 2026-02-28 10/500 2026-03-01 14:12 by yc258
[考研] 寻找调剂 +4 LYidhsjabdj 2026-02-28 4/200 2026-03-01 10:56 by sunny81
信息提示
请填处理意见