latex表格實現文本自動換行


\begin{table*}[]
    \centering
    \begin{tabular}{cclll}
    \hline
  Method & Metric form  & Ideas & Solvers  & Reg.  \\
  \hline
   Global DML      & Complete PSD matrix                 & \parbox[c]{4cm}{Maximizing the sum of distances between dissimilar points while keeping the distances between similar examples small.}  & \parbox[c]{2cm}{Projected gradient descent; Eigenvalue decomposition.} & No  \\ 
   \hline
   LMNN & Complete PSD matrix& \parbox[c]{4cm}{Local large margin nearest neighborhood; \\ Slack constraints.} &\parbox[c]{2cm}{ Sub-gradient descent.}& No   \\ 
    \end{tabular}
    \caption{Caption}
    \label{tab:my_label}
\end{table*}

  采用\parbox命令,使用方法\parbox{c}{4cm}{text},   以上latex表格顯示結果如下:

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM