latex:用minipage并排放置两个表格、两个图片
- 并排放置表格
%---------------------------------------
\begin{minipage}{\textwidth}
\centering
\begin{minipage}[t]{0.48 \textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother
\caption{The choice of $h_{i}$ }
\label{practical-h} \footnotesize
\renewcommand{\arraystretch}{1.4}
\begin{tabular}{ |c | c| c| c| c| }
\hline
&$h_{1}$&$h_{2}$&$h_{3}$ & $h_{4}$ \\
\hline
& 2 & 3 & 4 & 1 \\
\hline
& 4 & 5 & 6 & 3 \\
\hline
& 8 & 9 & 10 & 7 \\
\hline
\end{tabular}
\end{minipage}
\begin{minipage}[t]{0.48 \textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother \caption{$\textbf{S}_{i}$ and its corresponding $rs$, $l_{rs}$ }
\label{lrs-practical}
\renewcommand{\arraystretch}{1.1}
\begin{tabular}{ |c | c| c| c| c| c| }
\hline
$i$ & 0 & 1 & 2 & 3 &4 \\
\hline
$\textbf{S}_{i}$ & 0& 1& -1&2&-2 \\
\hline
$rs$ & 01 & 001 & 10 & 000 & 11\\
\hline
$l_{rs}$ &2 &3& 2 &3& 2 \\
\hline
\end{tabular}
\end{minipage}
\end{minipage}
%---------------------------------------
- 并排放置图片
- \usepackage{graphicx}
- \usepackage{subfigure}
%---------------------------------------
\begin{figure}
\begin{minipage}[t]{0.5\linewidth}
\centering \includegraphics[width=2.2in]{fig1.eps}
\caption{fig1} \label{fig:side:a}
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=2.2in]{fig2.eps}
\caption{fig2} \label{fig:side:b}
\end{minipage}
\end{figure}