由于本人最近正在学习如何用latex学习写实验报告以及其他的pdf文件
特此记录一下学习过程以及一些问题如何解决
- 如何插入多个并排图表,并且每个图标单独标号
这一问题网上有层出不穷的解决方案,如
1 \begin{tabular}{l} 2 \begin{tabular} 3 \end{tabular} 4 & 5 \begin{tabular} 6 \end{tabular} 7 \end{tabular}
插入两个tabular
或者是用subfigure宏包、subtabular宏包
此次使用的是minipage的方式
代码如下
1 \begin{table}[!h] 2 \centering 3 \begin{minipage}[t]{0.3\textwidth} 4 \centering 5 \small 6 \makeatletter\def\@captype{table}\makeatother 7 \caption{100构型1} 8 \begin{tabular}{|c|c|} 9 \hline 10 入射角/$deg$ & 接收器示数/$\mu A$\\ \hline 11 25 & 5 \\ \hline 12 30 & 11 \\ \hline 13 34 & 25 \\ \hline 14 35 & 23 \\ \hline 15 36 & 36 \\ \hline 16 36.5 & 33 \\ \hline 17 37 & 28 \\ \hline 18 38 & 21 \\ \hline 19 40 & 14 \\ \hline 20 45 & 1 \\ \hline 21 50 & 2 \\ \hline 22 55 & 0 \\ \hline 23 60 & 2 \\ \hline 24 65 & 33 \\ \hline 25 66 & 58 \\ \hline 26 66.5 & 71 \\ \hline 27 67 & 83 \\ \hline 28 67.5 & 92 \\ \hline 29 68 & 93 \\ \hline 30 70 & 14 \\ \hline 31 75 & 2 \\ \hline 32 80 & 3 \\ \hline 33 85 & 120 \\ \hline 34 \end{tabular} 35 \end{minipage}\quad 36 \begin{minipage}[t]{0.3\textwidth} 37 \centering 38 \small 39 \makeatletter\def\@captype{table}\makeatother 40 \caption{100构型2} 41 \begin{tabular}{|c|c|} 42 \hline 43 入射角/$deg$ & 接收器示数/$\mu A$\\ \hline 44 25 & 1 \\ \hline 45 30 & 0 \\ \hline 46 35 & 42 \\ \hline 47 36 & 50 \\ \hline 48 36.5 & 44 \\ \hline 49 37 & 43 \\ \hline 50 38 & 41 \\ \hline 51 40 & 14 \\ \hline 52 45 & 51 \\ \hline 53 47 & 1 \\ \hline 54 48 & 4 \\ \hline 55 49 & 40 \\ \hline 56 50 & 52 \\ \hline 57 51 & 27 \\ \hline 58 55 & 19 \\ \hline 59 60 & 10 \\ \hline 60 65 & 57 \\ \hline 61 66 & 81 \\ \hline 62 66.5 & 82 \\ \hline 63 67 & 77 \\ \hline 64 68 & 37 \\ \hline 65 70 & 2 \\ \hline 66 75 & 30 \\ \hline 67 80 & 48 \\ \hline 68 85 & 120 \\ \hline 69 \end{tabular} 70 \end{minipage}\quad 71 \begin{minipage}[t]{0.3\textwidth} 72 \centering 73 \small 74 \makeatletter\def\@captype{table}\makeatother 75 \caption{110构型} 76 \begin{tabular}{|c|c|} 77 \hline 78 入射角/$deg$ & 接收器示数/$\mu A$\\ \hline 79 25 & 1 \\ \hline 80 30 & 2 \\ \hline 81 35 & 1 \\ \hline 82 40 & 1 \\ \hline 83 45 & 2 \\ \hline 84 50 & 4 \\ \hline 85 55 & 42 \\ \hline 86 60 & 14 \\ \hline 87 53 & 38 \\ \hline 88 54 & 39 \\ \hline 89 56 & 43 \\ \hline 90 57 & 40 \\ \hline 91 65 & 0 \\ \hline 92 70 & 0 \\ \hline 93 75 & 4 \\ \hline 94 80 & 28 \\ \hline 95 85 & 65 \\ \hline 96 90 & 90 \\ \hline 97 \end{tabular} 98 \end{minipage} 99 \vspace{-15pt} 100 \end{table}minipage写法
效果如下,非常nice,其中minipage[t/b/p]表示多个子表之间顶部/底部/中间对齐
标签:LaTeX,begin,end,笔记,学习,tabular,hline,minipage,40 From: https://www.cnblogs.com/a-blog-of-taojiayi-2003/p/16911735.html