Latex table is centered as a whole (including examples)

Method 1:
Use \begin{center}and \end(center}to center the table as a whole, but its centering is only centered\begin{table} —— \end{table|

If \begin{table} —— \end{table|it is nested inside, the table will still not be centered.

Method 2:
To center the table, you need to \begin{table}append it to \centeringthe center of the table as a whole.

example:

\begin{
    
    table}[]
\centering
\begin{
    
    tabular}{
    
    @{
    
    }|c|c|@{
    
    }}
\toprule
min\_region & max\_region \\ \midrule
0.2         & 0.37        \\ \midrule
10          & 35          \\ \midrule
2.35        & 2.7         \\ \midrule
600         & 1000        \\ \midrule
410         & 435         \\ \bottomrule
\end{
    
    tabular}
\end{
    
    table}


The form is centered!

Guess you like

Origin blog.csdn.net/wzk4869/article/details/126345276