LATEX various forms & excel automatically generate a table

excel automatically generated latex form: https://blog.csdn.net/Jiajikang_jjk/article/details/80788501

https://www.cnblogs.com/Hand-Head/articles/5196340.html

Resulting latex form intermittent problem: https://blog.csdn.net/LynnShawn4/article/details/102677630

 

After four inspection found problems in which toprule midrule bottomrule, the directive will form each row truncated.

So all of these modifications is hline.

 

Wrap table inside

https://www.jianshu.com/p/b6b45402d8b2

Packages: \ usepackage {makecell}
environment: tabular
command: \ makecell [centering case] {\\ line 1. Line 2 Line 3 content of content \\ ...}

\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}

 

Row first column, the second column a plurality of rows

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 generates code for latex

https://blog.csdn.net/Jiajikang_jjk/article/details/80788501

Published 458 original articles · won praise 138 · views 240 000 +

Guess you like

Origin blog.csdn.net/zjc910997316/article/details/104377482