Solve the problem of latex table width overflow

Reprint link: https://blog.csdn.net/qq_33435825/article/details/106454300

I have been looking for a long time on the Internet, using
\setlength{\tabcolsep}{7mm}{XXXX}
\resizebox{\textwidth}{15mm}{XXXX}
these two methods, but neither solved my problem, and
finally used \scalebox to solve the problem

Because there are two columns in the paper, and then the table occupies only one column, other methods have not been able to work. In the end it works this way.

\begin{table}  
  \centering
  % scalebox{0.6}代表缩小到0.6,可以手动调节
  \scalebox{0.6}{       \begin{tabular}{|c|c|c|}         \toprule         \cmidrule(r){1-2}         Name     & Description     & Size () \\         \midrule         Dendrite & Input terminal  & 2    \\         Axon     & Output terminal &3     \\         Soma     & Cell body       & 4\\         \bottomrule       \end{tabular}       }     \caption{hello world}}   \label{tabel\begin{table}   \centering













Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324356338&siteId=291194637