栗子 1.1、插入2行2列的表格
parameter values era given in Table \ref{tab:tab2}.
\begin{table}[h]
\centering
\caption{table}\label{tab:tab2}
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\
\hline
\end{tabular}
\end{table}
编译效果:
栗子 1.2、插入3行2列的表格
\begin{table}[h]
\centering
\caption{table}\label{tab:tab2}
\begin{tabular}{|c|c|}
\hline
a & b \\\hline
c & d\\\hline
e & f\\
\hline
\end{tabular}
\end{table}
编译效果:
栗子 1.3、表格中的内容,居中对齐
\begin{table}[h]
\centering
\caption{con}\label{tab:tab2}
\begin{tabular}{|c|c|}
\hline
Controller (\ref{out1}) & $K_1=diag\{10, 10, 10\}, K_2=diag\{8, 8, 8\}, \alpha_1=0.45, \alpha_2=0.6207$ \\\hline
Observer (\ref{ob1}) & $L_1=I_{3\times3}, L_2=diag\{0.5, 0.5, 0.5\}, \beta_1=0.45, \beta_2=0.6207$ \\\hline
Controller (\ref{at1}) (\ref{at2}) & $K_3=diag\{15, 15, 15\}, K_4=diag\{10, 10, 10\}, \alpha_1=0.45, \alpha_2=0.6207$\\\hline
Tracking differentiator (\ref{linear}) & $H=diag\{10, 10, 10\}$\\
\hline
\end{tabular}
\end{table}
注:语句 \begin{tabular}{|c|c|} (使用该语句设置表格内容的对齐方式)
这一行最后一个参数c改成l,还可以改成r。
c:center
r:right
l:left
注意事项:(http://www.cnblogs.com/mmer/p/3762173.html)
栗子 2.1、插入2行1列的图形列表
\begin{figure} %%%旋转子系统姿态角
\centering
\subfigure{
\label{fig:subfig:a} % label for first subfigure
\includegraphics[width=7cm,height=4cm]{ftattitude.eps}}
\hspace{1in}
\subfigure{
\label{fig:subfig:b} % label for second subfigure
\includegraphics[width=7cm,height=4cm]{pdattitude.eps}}
\caption{Response curves of Euler angles for the translational subsystem in the presence of external disturbances. (a) Euler angles $\bm{\Theta}$ under the finite - time control scheme. (b) Euler angles $\bm{\Theta}$ under the PD control scheme}
\label{fig:attitude} % label for entire figure
\end{figure}
编译效果:
栗子 2.2、插入3行3列的图形列表
\begin{figure} %%%%%%%% 观测干扰的结果
\begin{minipage}{0.2\textwidth} %% {0.18\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_11.eps}}
\centerline{(a)}
\end{minipage}
\hfill
\begin{minipage}{0.2\textwidth} %% {0.18\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_12.eps}}
\centerline{(b)}
\end{minipage}
\vfill
\begin{minipage}{0.2\textwidth} %% {0.18\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_13.eps}}
\centerline{(c)}
\end{minipage}
\hfill
\begin{minipage}{0.2\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_21.eps}}
\centerline{(d)}
\end{minipage}
\vfill
\begin{minipage}{0.2\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_22.eps}}
\centerline{(e)}
\end{minipage}
\hfill
\begin{minipage}{0.2\textwidth}
\centerline{\includegraphics[width=1\textwidth]{e_23.eps}}
\centerline{(f)}
\end{minipage}
\caption{Response curves of disturbance estimation error under FTDO, with $\bm{e}_1=[e_{11}, e_{12}, e_{13}]^T$ in (a), (b) and (c). $\bm{e}_2=[e_{21}, e_{22}, e_{23}]^T$ in (d), (e) and (f).}
\label{fig:ob}
\end{figure}
编译效果:
上图缺陷:标注部分想显示“\bar{l}”, 但是显示效果上来看符号“\bar”和表格的横线重合了。
调整表格的行间距:
\begin{table*}[ht]
\caption{Control Parameters for Finite-Time Tracking Control Scheme}\label{tab:tab2}
\centering % 表居中
\begin{tabular}{|l|l|}
\hline
Observer (\ref{ftdo1}) & $\lambda_0=3, \lambda_1=1.5, \lambda_3=1.1, L_1=diag\left(50, 50, 50\right)$ \\\hline
Controller under FTDRC (\ref{w-drc-1}) & $ p_1=\left. 15\middle/13 \right.,k_1=4.0968, k_2= 1.0375, l= 3$ \\\hline
Controller under ASC (\ref{asc-w1}) & $ k_1=4.0968, k_2= 1.0375, l= 3$ \\\hline
Observer (\ref{ftdo2}) & $\lambda_3=3, \lambda_4=1.5, \lambda_5=1.1, L_2=diag\left(30, 30, 30\right)$\\\hline
Controller under FTDRC (\ref{drc-att1}) &$ p_2= \left. 11\middle/9 \right.$, $k_3= 6.1343,$ $k_4= 422.1910,$ $\bar{l}= 5$ \\\hline
Controller under ASC (\ref{asc-att1}) &$k_3= 6.1343, k_4= 422.1910, \bar{l}= 5$ \\\hline
\end{tabular}
\end{table*}
编译效果:
代码变动:
只需要添加两行代码: