[leTex]图表总结!——记太感动的一次
程序员文章站
2022-03-08 12:16:15
...
1、基础图表
\begin{table}[h] % h表示显示在当前位置,可以是t顶部, b底部,p浮动页
\centering % 居中显示
\caption{Notations}\label{tab-notations} %显示题注,并引用\label
\begin{tabular}{|c|c|}
\hline
Symbols & Explanations\\
\hline
X & Characters (x1, x2, …, x|t|)\\
\hline
T & Tag set (t1, t2, t|T|)\\
\hline
CE & Character embedding\\
\hline
CPE & Character Part-of-Speech embedding\\
\hline
PNE & People name embedding \\
\hline
CTE & Character Part-of-Speech People name embedding\\
\hline
\end{tabular}
\end{table}
2、特殊的表格需要多看看其他的表格和对应代码之间联系,弄清楚每个命令的作用是什么,然后就可以写自己了。说到这里,不得不说的有点想哭了,看到最后就知道为什么了。
不过加油!加油!!!
感谢下面两个例子:
\begin{tabular}{ |l|l| }
\hline
\multicolumn{2}{|c|}{Team sheet} \\
\hline
GK & Paul Robinson \\
LB & Lucas Radebe \\
DC & Michael Duberry \\
DC & Dominic Matteo \\
RB & Dider Domi \\
MC & David Batty \\
MC & Eirik Bakke \\
MC & Jody Morris \\
FW & Jamie McMaster \\
ST & Alan Smith \\
ST & Mark Viduka \\
\hline
\end{tabular}
...
\usepackage{multirow}
...
\begin{tabular}{cc|c|c|c|c|l}
\cline{3-6}
& & \multicolumn{4}{ c| }{Primes} \\ \cline{3-6}
& & 2 & 3 & 5 & 7 \\ \cline{1-6}
\multicolumn{1}{ |c }{\multirow{2}{*}{Powers} } &
\multicolumn{1}{ |c| }{504} & 3 & 2 & 0 & 1 & \\ \cline{2-6}
\multicolumn{1}{ |c }{} &
\multicolumn{1}{ |c| }{540} & 2 & 3 & 1 & 0 & \\ \cline{1-6}
\multicolumn{1}{ |c }{\multirow{2}{*}{Powers} } &
\multicolumn{1}{ |c| }{gcd} & 2 & 2 & 0 & 0 & min \\ \cline{2-6}
\multicolumn{1}{ |c }{} &
\multicolumn{1}{ |c| }{lcm} & 3 & 3 & 1 & 1 & max \\ \cline{1-6}
\end{tabular}
最后自己写出来这个了。 哈哈哈,其实有很多办法更快的学习,但是我也的确体会到了小白画出这个表格的欢快了!很感动,加油!最后看着,想想也简单的
\begin{table}
\centering
\caption{Performance of different model.}
\begin{tabular}{|cc|c|c|c|c|c|c|c|}
\cline{1-9}
\multicolumn{3}{ |c|}{Group 1} & \multicolumn{2}{ c|}{Group 2} & \multicolumn{2}{ c|}{Group 3} & \multicolumn{2}{ c|}{Group 4} \\ \cline{1-9}
& \multicolumn{1}{|c }{Model} & \multicolumn{1}{|c }{F1/\%} & \multicolumn{1}{|c }{Model} & \multicolumn{1}{|c }{F1/\%} &\multicolumn{1}{|c }{Model} & \multicolumn{1}{|c }{F1/\%} & \multicolumn{1}{|c }{Model} &\multicolumn{1}{|c| }{F1/\%} \\ \cline{1-9}
\multicolumn{1}{ |c }{\multirow{3}{*}{hah}} &
\multicolumn{1}{ |c| }{a} & a & a & 7a& a & a & a & a \\ \cline{2-9}
\multicolumn{1}{ |c }{} &
\multicolumn{1}{ |c| }{a} & a & Ca & a & a & a & a & a \\ \cline{2-9}
\multicolumn{1}{ |c }{} &
\multicolumn{1}{ |c| }{a} & 7a & a & 7a & a & a & Ca & a \\ \cline{1-9}
\multicolumn{1}{ |c }{\multirow{2}{*}{a}} &
\multicolumn{1}{ |c| }{a} & a & a & a & a & a & a & a \\ \cline{2-9}
\multicolumn{1}{ |c }{} &
\multicolumn{1}{ |c| }{a} & 8a & aT & a 1 & BaT & a & a & 80.42 \\ \cline{1-9}
\end{tabular}
\end{table}
最后附上不错的Letex表格总结,可以自己去看看!
上一篇: DevOps的几个概念
下一篇: 蓝桥杯 灵能传输