LaTeX中圖形表格等格式代碼

one-column wide figures

\begin{figure}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
  \includegraphics{example.eps}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:1}       % Give a unique label
\end{figure}

two-column wide figures

\begin{figure*}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
  \includegraphics[width=0.75\textwidth]{example.pdf}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:2}       % Give a unique label
\end{figure*}

tables

\begin{table}
% table caption is above the table
\caption{Please write your table caption here}
\label{tab:1}       % Give a unique label
% For LaTeX tables use
\begin{tabular}{lll}
\hline\noalign{\smallskip}
first & second & third  \\
\noalign{\smallskip}\hline\noalign{\smallskip}
number & number & number \\
number & number & number \\
\noalign{\smallskip}\hline
\end{tabular}
\end{table}

Algorithms

\begin{algorithm}[t]
\caption{}
\label{}
\begin{algorithmic}[1]
\REQUIRE \begin{tabbing}
\hspace*{32bp}\=article \kill
\> $I_i$: an index file \\
\> \hspace*{19bp} $P_\theta$ in $I_i$;
\end{tabbing}
\ENSURE \begin{tabbing}
\hspace*{32bp}\=article \kill
\>$\phi$
\end{tabbing}
\STATE 
\FOR { $i=1$ to $L$ }
\IF {$P_l$ is full}
\STATE Split $P_l$ according to Algorithm \ref{alg:split};
\ENDIF
\ENDFOR
\REPEAT
\STATE
\UNTIL{$|\Phi| \geq N_{p}$}
\end{algorithmic}
\end{algorithm}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章