Some LaTeX usage examples (pictures side by side, side by side tables, algorithms, sample code, header too long, underline, etc.)

Two pictures side by side transverse

\begin{figure}

\begin{minipage}{0.49\linewidth}

  \centering

  \includegraphics[width=6.5cm]{Simulation_Figures/Fig1_eps}

  \caption{The average outage probability versus $\gamma$}

  \label{Fig1}

\end{minipage}

\begin{minipage}{0.49\linewidth}

  \centering

  \includegraphics[width=6.5cm]{Simulation_Figures/Fig2_eps}

  \caption{Resource allocation among CSBSs for different algorithms}

  \label{Fig2}

  \end{minipage}

\end{figure}

Wherein the 0.49\linewidthcontrol column of a double column width

Specify the size of the picture \includegraphics[width=4cm, height=3cm]{xxx.eps}

display effect:
20190120142842308.png

Vertical multiple images side by side

\begin{figure}

\centering

\subfigure[During the day]

{

\label{Fig8a}

\begin{minipage}[b]{0.5\textwidth}

\includegraphics[width=3.0in,height=3.0in]{Simulation_figures/Fig8a_pdf}

\end{minipage}

}

\subfigure[At night]

{

\label{Fig8a}

\begin{minipage}[b]{0.5\textwidth}

\includegraphics[width=3.0in,height=3.0in]{Simulation_figures/Fig8b_pdf}

\end{minipage}

}

\caption{Tidal effect} \label{Fig8}

\end{figure}

display effect:

20190120142842317.png

Two tables side by side

\begin{table}

\begin{minipage}{0.5\linewidth}

\center

\caption{CQET}

\begin{tabular}{|l|l|l|}

\hline

{SN} &  {Channel ID} & {Channel Quality}  \\

\hline

1 & $N$ & $Q_1^i$  \\

2 & $N-1$ & $Q_2^i$  \\

3 & $N-2$ & $Q_3^i$  \\

\dots & \dots & \dots  \\

$K_i$ & $N-K_i+1$ & $Q_{K_i}^i$  \\

\hline

\end{tabular}

\label{CQET}

\end{minipage}

\begin{minipage}{0.5\linewidth}

\center

\caption{SIT}

\begin{tabular}{|l|l|}

\hline

{Parameters} &  {Description}\\

\hline

$N_D^i$ & No. of total required channels\\

$N_{Init}^i$ & No. of initial service channels\\

$N_N^i$ & No. of still needed channels\\

$N_A^i$ & No. of available channels\\

$N_S^i$ & No. of current serving channels\\

$K_i$ & No. of current serving users\\

$PL_A^i$ & $N_D^i/N_S^i$\\

$PL_B^i$ & $N_D^i/K_i$\\

\hline

\end{tabular}

\label{SIT}

\end{minipage}

\end{table}

display effect:

20190120142842326.png

Enter underline, double underline, wave lines, deleted lines, oblique strikethrough

\usepackage{ulem}

....

\uline{我是一个兵}  下划线
\uuline{我是一个兵}  双下划线
\uwave{我是一个兵} 波浪线
\sout{我是一个兵} 删除线
\xout{我是一个兵} 斜删除线

Pseudo-code algorithm


Unfinished ......

Click here to visit the original (according to the right after entering the label, quickly navigate to this article)

Guess you like

Origin www.cnblogs.com/sinicheveen/p/12009352.html