2 这个表格过长,如何自动换行?

发布于 2024-12-29 09:46:44
\begin{table}[H] 
        \centering 
        \begin{tabular}{ll} 
            \hline 
            \hline 
            \multicolumn{1}{c}{\textbf{Notations}} & \textbf{Definition}\\ \hline 
            $ W_{0} $                      &   A matrix whose i,j elements are the length of the historical path from i to j, and no is 0             \\ 
            $ W $                      & A matrix whose i,j elements are the weight of the historical path from i to j, and no is 0          \\ 
            $ I_{0}$                      & A matrix whose i,j elements are from $W_{n}$, changing the no-zero element to 1        \\ 
            $ f(W,n) $               &A function of$W$, details can be seen later \\    
            $ \mathbf{e_{i}}$            &  Represents a column vector with only the i-th element being 1 \\ 
            $ \tr{e_{i}} $  &  A converted column of $e_{i}$  \\ 
            $n_{0}(i,j) $      &  Representing the number of edges passed by the corresponding historical path that $W_{0,i,j}$ presenting\\ 
            \hline 
            \hline 
        \end{tabular} 
        \caption{Notations Table} 
    \end{table} 

查看更多

关注者
0
被浏览
177
啸行
啸行 2024-12-29
这家伙很懒,什么也没写!

做得极端点
cdba9937d13dc785a743dcce2e3a9aa8.png

\documentclass{article}
\usepackage{mathtools}
\begin{document}
  \begin{table}
    \centering 
    \begin{tabular}{lp{0.4\linewidth}}
      \hline\hline
      \multicolumn{1}{c}{\textbf{Notations}} & \textbf{Definition}                                                                                      \\ \hline
      $ W_{0} $                              & A matrix whose i,j elements are the length of the historical path from i to j, and no is 0               \\
      $ W $                                  & A matrix whose i,j elements are the weight of the historical path from i to j, and no is 0               \\
      $ I_{0}$                               & A matrix whose i,j elements are from $W_{n}$, changing the no-zero element to 1                          \\
      $ f(W,n) $                             & A function of $W$, details can be seen later                                                              \\
      $ \mathbf{e_{i}}$                      & Represents a column vector with only the i-th element being 1                                            \\
      $ \operatorname{tr}{e_{i}} $           & A converted column of $e_{i}$                                                                            \\
      $n_{0}(i,j) $                          & Representing the number of edges passed by the corresponding historical path that $W_{0,i,j}$ presenting \\ \hline\hline
    \end{tabular} 
    \caption{Notations Table} 
  \end{table} 
\end{document}
2 个回答
Swit
Swit 2024-12-29
LaTeX nubility!

将第二个列格式换为 p 格式,例如:\begin{tabular}{lp{0.8\textwidth}}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览