excel自動生成latex表格:https://blog.csdn.net/Jiajikang_jjk/article/details/80788501
生成的latex表格斷斷續續問題:https://blog.csdn.net/LynnShawn4/article/details/102677630
四處查閱後發現問題在其中的 toprule midrule bottomrule ,該指令將表格的每一行都截斷了。
於是將這些全部修改爲 hline.
表格內換行
https://www.jianshu.com/p/b6b45402d8b2
宏包:\usepackage{makecell}
環境:tabular
命令:\makecell[居中情況]{第1行內容 \\ 第2行內容 \\ 第3行內容 ...}
\makecell[c]{a \\ b \\ b}
\begin{table}[h] %開始一個表格environment,表格的位置是h,here。
\caption{改變表格任一列寬} %顯示錶格的標題
\begin{tabular}{p{3cm}|p{3cm}|p{3cm}} %設置了每一列的寬度,強制轉換。
\hline
\hline
\makecell[c]{ECSSD\\b b b} & \makecell[c]{ECSSD\\b b b} & \makecell[c]{ECSSD\\b b b} \\ %用&來分隔單元格的內容 \\表示進入下一行
\hline %畫一個橫線,下面的就都是一樣了,這裏一共有4行內容
Bitmap & .bmp & Bitmap images are recommended because they offer the most control over the exact image and colors.\\
\hline
\makecell[c]{a\\a} & .gif & Compressed image format used for Web pages. Animated GIFs are supported.\\
\hline
\multirow{2}{*}{Method}&
\multicolumn{3}{c|}{C}&\multicolumn{3}{c|}{ D}\cr\cline{2-7}
&Precision&Recall&F1-Measure&Precision&Recall&F1-Measure\cr
Joint Photographic Experts Group (JPEG) & .jpeg, .jpg & Compressed image format used for Web pages.\\
\hline
Portable Network Graphics (PNG) & .png & Compressed image format used for Web pages.\\
\hline
\hline
\end{tabular}
\end{table}
第一列一行,第二列多行
https://blog.csdn.net/ruthywei/article/details/82532878
\multirow{2}{*}{Method}&
\multicolumn{3}{c|}{C}&\multicolumn{3}{c|}{ D}\cr\cline{2-7}
&Precision&Recall&F1-Measure&Precision&Recall&F1-Measure\cr
Excel生成latex代碼
https://blog.csdn.net/Jiajikang_jjk/article/details/80788501