当前位置:网站首页>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}
边栏推荐
- First Decentralized Heist?Loss of nearly 200 million US dollars: analysis of the attack on the cross-chain bridge Nomad
- How does the official account operate and maintain?Public account operation and maintenance professional team
- 教你本地编译运行一个IDEA插件,在IDEA里聊天、下棋、斗地主!
- Ali's new launch: Microservices Assault Manual, all operations are written out in PDF
- 字节一面:TCP 和 UDP 可以使用同一个端口吗?
- FPGA:基础入门按键控制LED灯
- 七夕来袭!还要做CDH数据迁移怎么办?来看看DistCp
- uniapp connect ibeacon
- 60行从零开始自己动手写FutureTask是什么体验?
- 企业的数字化转型到底是否可以买来?
猜你喜欢
随机推荐
语音社交软件开发——充分发挥其价值
【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
SD NAND Flash简介!
用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
第七章,activiti个人任务分配,动态指定和监听器指定任务委派人「建议收藏」
The query that the user's test score is greater than the average score of a single subject
产品太多了,如何实现一次登录多产品互通?
项目成本控制如何帮助项目成功?
导火索:OAuth 2.0四种授权登录方式必读
[Android] How to use RecycleView in Kotlin project
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
Use KUSTO query statement (KQL) to query LOG on Azure Data Explorer Database
MySQL事务
第六章:activiti流程分流判断之排它网关和并行网关
Chapter 4: activiti RuntimeService settings get and get process variables, and the difference from taskService, set process variables when starting and completing tasks [easy to understand]
上位机开发C#语言:模拟STC串口助手接收单片机发送数据
【翻译】混沌网+SkyWalking:为混沌工程提供更好的可观察性
Go编译原理系列6(类型检查)
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
JS逆向入门学习之回收商网,手机号码简易加密解析









