当前位置:网站首页>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}
边栏推荐
- 数据可视化(一)
- Ali's new launch: Microservices Assault Manual, all operations are written out in PDF
- uniapp connect ibeacon
- 第八章:activiti多用户任务分配
- The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
- 2022 Huashu Cup Mathematical Modeling Ideas Analysis and Exchange
- Our Web3 Entrepreneurship Project, Yellow
- 产品太多了,如何实现一次登录多产品互通?
- 用户考试分数大于单科科目平均分的查询
- 字节一面:TCP 和 UDP 可以使用同一个端口吗?
猜你喜欢
60行从零开始自己动手写FutureTask是什么体验?
Introduction to SD NAND Flash!
MySQL transactions
2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
linux下oracle常见操作以及日常积累知识点(函数、定时任务)
Jenkins使用手册(2) —— 软件配置
Opencv图像缩放和平移
What is SPL?
产品太多了,如何实现一次登录多产品互通?
随机推荐
[Strong Net Cup 2022] WP-UM
多线程(进阶) - 2.5w字总结
什么是 DevOps?看这一篇就够了!
首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析
R语言使用yardstick包的pr_curve函数评估多分类(Multiclass)模型的性能、查看模型在多分类每个分类上的ROC曲线(precision(精准率),R代表的是recall(召回率)
用户考试分数大于单科科目平均分的查询
浅析WSGI协议
Jenkins manual (2) - software configuration
[Android]如何使用RecycleView in Kotlin project
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
企业的数字化转型到底是否可以买来?
FPGA: Basic Getting Started Button Controlling LED Lights
如何修改管理工具client_encoding
Introduction to SD NAND Flash!
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
js hijacks the array push method
阿里全新推出:微服务突击手册,把所有操作都写出来了PDF
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
How does the official account operate and maintain?Public account operation and maintenance professional team
第九章:activit内置用户组设计与组任务分配和IdentityService接口的使用