当前位置:网站首页>Latex如何控制表格的宽度和高度
Latex如何控制表格的宽度和高度
2022-08-05 10:26:00 【weiweiweimengting】
原始的表格这样
\begin{table}[htbp]
\centering
\caption{Effect of Uncertainty Estimation.}
\label{uncertain}
\begin{tabular}{lccccccc}
\toprule
\multirow{2}{*}{~} &\multicolumn{3}{c}{Acc(\%)} &~ &\multicolumn{3}{c}{F1-score(\%)}\\
\cline{2-4} \cline{6-8} & CASME II & SAMM & SMIC-HS &~ & CASME II & SAMM & SMIC-HS \\
\midrule
Deterministic &1 &1 &1 &~ &1 &1 &1\\
Uncertainty-Aware &\textbf{1} &\textbf{1} &\textbf{1} &~ &\textbf{1} &\textbf{7} &\textbf{78.64}\\
\bottomrule
\end{tabular}
\end{table}
可以手动输入设置自定义的表格宽度和高度:
\resizebox{10mm}{12mm}
其中第一个括号表示的表格的宽度(或者也可以直接写为\textwidth,表示与文字宽度一致),第二个括号表示表格的高度。
整理后为:
\begin{table}[htbp]
\centering
\caption{Effect of Uncertainty Estimation.}
\label{uncertain}
\resizebox{10mm}{12mm}{
\begin{tabular}{lccccccc}
\toprule
\multirow{2}{*}{~} &\multicolumn{3}{c}{Acc(\%)} &~ &\multicolumn{3}{c}{F1-score(\%)}\\
\cline{2-4} \cline{6-8} & CASME II & SAMM & SMIC-HS &~ & CASME II & SAMM & SMIC-HS \\
\midrule
Deterministic &1 &1 &1 &~ &1 &1 &1\\
Uncertainty-Aware &\textbf{1} &\textbf{1} &\textbf{1} &~ &\textbf{1} &\textbf{7} &\textbf{78.64}\\
\bottomrule
\end{tabular}}
\end{table}
边栏推荐
- 数分面试(一)----与业务相关
- three物体围绕一周呈球形排列
- Leetcode刷题——623. 在二叉树中增加一行
- uniapp connect ibeacon
- STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
- 【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
- The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
- [强网杯2022]WP-UM
- Introduction to SD NAND Flash!
- [Android]如何使用RecycleView in Kotlin project
猜你喜欢

Login function and logout function (St. Regis Takeaway)

FPGA:开发环境Vivado的使用

three.js调试工具dat.gui使用

高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer

深入理解 Istio 流量管理的超时时间设置

如何选币与确定对应策略研究

three.js debugging tool dat.gui use

Create a Dapp, why choose Polkadot?

RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)

多线程(进阶) - 2.5w字总结
随机推荐
Huawei's lightweight neural network architecture GhostNet has been upgraded again, and G-GhostNet (IJCV22) has shown its talents on the GPU
如何修改管理工具client_encoding
一个栈的输入序列为1 2 3 4 5 的出站顺序的理解
poj2935 Basic Wall Maze (2016xynu暑期集训检测 -----D题)
uniapp connect ibeacon
一文道清什么是SPL
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
2022 Hangzhou Electric Power Multi-School Session 6 1008.Shinobu Loves Segment Tree Regular Questions
如何选币与确定对应策略研究
第九章:activit内置用户组设计与组任务分配和IdentityService接口的使用
A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02
How to choose coins and determine the corresponding strategy research
Score interview (1)----related to business
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
单片机:温度控制DS18B20
用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
使用工具类把对象中的null值转换为空字符串(集合也可以使用)
Header file search rules when compiling with GCC
七夕来袭!还要做CDH数据迁移怎么办?来看看DistCp
uniapp 连接ibeacon