如何对齐超出表格范围的列

如何对齐超出表格范围的列

我有一张表,其中的列超出了表中的范围elsarticle。 MWE 如下:

\documentclass{elsarticle}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}\begin{table}[H]
\setlength{\extrarowheight}{3pt}
  \centering
  \caption{Evaluation Metrics}
    \begin{tabularx}{\textwidth}{>{\hsize=0.40\hsize}X>{\hsize=\hsize}X>{\hsize=\hsize}X>{\hsize=0.70\hsize}X}
    \toprule
    \textbf{Metric} &
    \textbf{Formula} &
    \textbf{Explanation} &
    \textbf{Symbols}  \\
    \midrule
    Response Time($q_{r}$) & $q_{r}(n) = \sum_{x=1}^{n}(p_{x}+a_{x})$ & The total time taken by the IVR system to respond to a query. &  $p\Rightarrow$Navigation Time, $a\Rightarrow $Access Time,$x\Rightarrow$Service,$n\Rightarrow$Total number of Services
    \\
    \bottomrule
    \end{tabularx}%
  \label{tab:servicelist}%
\end{table}%


\end{document} 

表格截图:

在此处输入图片描述

答案1

,在($a\Rightarrow $Access Time,$x\Rightarrow$Service,$n\Rightarrow$比如说之后)之间留一些空间

Response Time ($q_{r}$) & $q_{r}(n) = \sum_{x=1}^{n}(p_{x}+a_{x})$ & 
The total time taken by the IVR system to respond to a query. &  
$p\Rightarrow$ Navigation Time, $a\Rightarrow $ Access Time, 
$x\Rightarrow$ Service, $n\Rightarrow$ Total number of Services

并对宽度进行了一些调整:

\documentclass{elsarticle}
\usepackage{booktabs,showframe}
\usepackage{tabularx}
\begin{document}
\begin{table}[H]
\setlength{\extrarowheight}{3pt}
%\setlength{\tabcolsep}{3pt}
  \centering
  \caption{Evaluation Metrics}
    \begin{tabularx}{\textwidth}{>{\hsize=0.40\hsize\raggedright\arraybackslash}X
                                 >{\hsize=0.7\hsize\raggedright\arraybackslash}X
                                 >{\hsize=0.9\hsize\raggedright\arraybackslash}X
                                 >{\raggedright\arraybackslash}X}
    \toprule
    \textbf{Metric} &
    \textbf{Formula} &
    \textbf{Explanation} &
    \textbf{Symbols}  \\
    \midrule
    Response Time ($q_{r}$) & $q_{r}(n) = \sum_{x=1}^{n}(p_{x}+a_{x})$ & The total time taken by the IVR system to respond to a query. &  $p\Rightarrow$ Navigation Time, $a\Rightarrow $ Access Time, $x\Rightarrow$ Service, \newline $n\Rightarrow$ Total number of Services
\\
    \bottomrule
    \end{tabularx}%
  \label{tab:servicelist}%
\end{table}%


\end{document}

在此处输入图片描述

相关内容