Site

Latex

Compile

latex sample.tex
dvipdf sample.dvi

subfigure

  • add * to cross column
  • width=0.3\linewidth to resize
  • angle=270 to rotate
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{subfigure}

\begin{figure*}
\centering
\subfigure[CW=0, 1 STA, round 1] % caption for subfigure a
{
    \includegraphics[width=0.3\linewidth, angle=270]{a.eps}
}
\subfigure[CW=1, 1 STA, round 1] % caption for subfigure b
{
    \includegraphics[width=0.3\linewidth, angle=270]{b.eps}
}
\vspace{0.5cm}
\subfigure[CW=0, 1 STA, round 2] % caption for subfigure c
{
    \includegraphics[width=0.3\linewidth, angle=270]{c.eps}
}
\subfigure[CW=1, 1 STA, round 2] % caption for subfigure d
{
    \includegraphics[width=0.3\linewidth, angle=270]{d.eps}
}
\vspace{0.5cm}
\caption{caption of the pic}
\label{piclabel} % caption for the whole figure
\end{figure*}

table

\usepackage{multirow}

\vspace{4ex}
\textbf{Table: Statistics}\\[1ex]
\begin{tabular}{|l|l||l||l|l|}
\hline
&&& \multicolumn{2}{c}{CW} \\
\hline
&&& 0 & 1 \\
\hline\hline
\multirow{8}{*}{STA} & \multirow{4}{*}{1} & Success Rate & 0.958 & 0.918 \\
&& Continuous Successful TX & 48.890 & 40.528 \\
&& Continuous Collisions & 1.030 & 1.310 \\
&& Interspace & 0.321 & 0.336 \\
\cline{2-5}
& \multirow{4}{*}{2} & Success Rate & 0.597 & 0.802 \\
&& Continuous Successful TX & 12.284 & 11.123 \\
&& Continuous Collisions & 2.594 & 1.272 \\
&& Interspace & 0.329 & 0.311 \\
\hline
\end{tabular}

Equation

\begin{equation}
\begin{aligned}
B'&=-\partial\times E,\\
E'&=\partial\times B - 4\pi j,
\end{aligned}
\end{equation}
\begin{align}
&f_1(x) = 83.82 \times e^{3.3\times 10^{-5}x} - 7.104\times e^{4.1\times10^{-3}x}\\
&f_2(x) = -0.3428 \times e^{1.215\times 10^{-2}x} + 74.28\times e^{4.06\times10^{-5}x}\\
&f(x) =  f_1(x) -  f_2(x)
\end{align}

Template

\documentclass{report}
%\documentclass[letterpaper, twosided, twocolumn]{book}
\usepackage{amsmath}
\begin{document}
here.
\end{document}