How to set table column width and center format in LaTex

When writing a paper in LaTex, I was troubled by a table for a long time, but finally found a solution, the code is here for future inquiries:

\begin{
    
    table}[h]
	\caption{
    
    符号说明}
	\centering
	\begin{
    
    tabular}{
    
     p{
    
    3cm}<{
    
    \centering} p{
    
    7cm}<{
    
    \centering} p{
    
    3cm}<{
    
    \centering} }
		\toprule
		{
    
    \heiti 符号} & {
    
    \heiti 意义}& {
    
    \heiti 单位}\\
		\hline
		Format & Extension& Description\\
		Format & Extension& Description\\
		Format & Extension& Description\\
		\bottomrule
	\end{
    
    tabular}
\end{
    
    table}

Guess you like

Origin blog.csdn.net/BWQ2019/article/details/115743204