
Mi tabla se desborda hacia la derecha y no se ajusta al tamaño de las columnas. ¿Cómo puedo hacer que se ajuste a la columna sin disminuir el tamaño de fuente? No puedo disminuir el tamaño de la tabla ya que estoy enviando un artículo y tienen regulaciones contra la disminución del tamaño de fuente de las tablas para que se ajusten a los límites de páginas.
Aquí hay una captura de pantalla de cómo se ve mi tabla cuando ejecuto mi código.
Aquí está el código que estoy usando a continuación:
\documentclass[sigconf]{acmart}
\usepackage{booktabs} % For formal tables
\usepackage{algorithmic}
\usepackage{fixltx2e}
\usepackage{algorithm}
\usepackage{enumitem}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{amsmath}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\newcommand\vn[1]{\mathit{#1}} % or: \mathrm{#1}
\newcommand\Or{\mathrel{\big\Vert}}
\setcopyright{acmcopyright}
% DOI
\acmDOI{xx.xxx/xxx_x}
% ISBN
\acmISBN{978-1-4503-8104-8/21/03}
%Conference
\acmConference[SAC'21]{ACM SAC Conference}{March 22-March 26, 2021}{Gwangju, South Korea}
\acmYear{2021}
\copyrightyear{2021}
%\thispagestyle{plain}
\acmArticle{4}
\acmPrice{15.00}
\pagestyle{plain}
\settopmatter{printfolios=true}
\begin{document}
\title{test}
\author{Anonymous Author(s)}
\begin{abstract}
abstract
\end{abstract}
\maketitle
{NoCallers/NoCallees}$=$0\\
{LowCallers/LowCallees}$=$1\\
1$<${LowCallers/LowCallees}$<=$5\\
5$<${HighCallers/HighCallees}
\begin{table}
\setlength{\tabcolsep}{2.5pt}
\centering
\caption{Quantifying the requirement-to-method rtm\textsubscript{m} Input Gold Standard}
\label{GoldStandardInputCompleteness}
\tabcolsep=2.5pt
\begin{tabular}{|r|r|r|r|r|r|r|r|}
\hline \textbf{System}
& \textbf{T\textsubscript{m}(\#)} & \textbf{N\textsubscript{m}(\#)} &
\textbf{U\textsubscript{m}(\#)}&
\textbf{Total} & \textbf{T\textsubscript{m}(\%)} &
\textbf{N\textsubscript{m}(\%)} & \textbf{U\textsubscript{m}(\%)} \\ \hline
\textbf{Chess} & 563 & 2389 & 3064 & \textbf{6016} & 9.36 & 39.71 & 50.93 \\ \hline
\textbf{Gantt} & 343 & 23166 & 66725 & \textbf{90234} & 0.38 & 25.67 & 73.95 \\
\hline
\textbf{iTrust} & 307 & 7173 & 159562 & \textbf{167042} & 0.18 & 4.30 & 95.52 \\
\hline
\textbf{JHot.} & 439 & 12219 & 124262 & \textbf{136920} & 0.32 & 8.92 & 90.76 \\
\hline
\end{tabular}
\end{table}
\end{document}
Respuesta1
Puede hacer que su tabla encaje reduciendo el ancho de varias de las columnas.
% acmtableprob.tex SE 562055
\documentclass[sigconf]{acmart}
\usepackage{booktabs} % For formal tables
\usepackage{algorithmic}
\usepackage{fixltx2e}
\usepackage{algorithm}
\usepackage{enumitem}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{amsmath}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\newcommand\vn[1]{\mathit{#1}} % or: \mathrm{#1}
\newcommand\Or{\mathrel{\big\Vert}}
\setcopyright{acmcopyright}
% DOI
\acmDOI{xx.xxx/xxx_x}
% ISBN
\acmISBN{978-1-4503-8104-8/21/03}
%Conference
\acmConference[SAC'21]{ACM SAC Conference}{March 22-March 26, 2021}{Gwangju, South Korea}
\acmYear{2021}
\copyrightyear{2021}
%\thispagestyle{plain}
\acmArticle{4}
\acmPrice{15.00}
\pagestyle{plain}
\settopmatter{printfolios=true}
\begin{document}
\title{test}
\author{Anonymous Author(s)}
\begin{abstract}
abstract
\end{abstract}
\maketitle
{NoCallers/NoCallees}$=$0\\
{LowCallers/LowCallees}$=$1\\
1$<${LowCallers/LowCallees}$<=$5\\
5$<${HighCallers/HighCallees}
\begin{table}
\setlength{\tabcolsep}{2.5pt}
\centering
\caption{Quantifying the requirement-to-method rtm\textsubscript{m} Input Gold Standard}
\label{GoldStandardInputCompleteness}
\tabcolsep=2.5pt
\begin{tabular}{|r|p{2em}|p{3em}|p{3em}|r|p{2em}|p{2.5em}|p{2.5em}|}
\hline \textbf{System}
& \textbf{T\textsubscript{m} (\#)} & \textbf{N\textsubscript{m} (\#)} &
\textbf{U\textsubscript{m} (\#)}&
\textbf{Total} & \textbf{T\textsubscript{m} (\%)} &
\textbf{N\textsubscript{m} (\%)} & \textbf{U\textsubscript{m} (\%)} \\ \hline
\textbf{Chess} & 563 & 2389 & 3064 & \textbf{6016} & 9.36 & 39.71 & 50.93 \\ \hline
\textbf{Gantt} & 343 & 23166 & 66725 & \textbf{90234} & 0.38 & 25.67 & 73.95 \\
\hline
\textbf{iTrust} & 307 & 7173 & 159562 & \textbf{167042} & 0.18 & 4.30 & 95.52 \\
\hline
\textbf{JHot.} & 439 & 12219 & 124262 & \textbf{136920} & 0.32 & 8.92 & 90.76 \\
\hline
\end{tabular}
\end{table}
\end{document}
Encaja pero no me parece tan bien. Si está satisfecho con él, hágalo; de lo contrario, intente modificar los tabular
parámetros de la columna y los datos de la fila.