latex

1.插入子图:

/usepackage{graphicx,subfigure}    %使用包
/begin{figure}
/centering
/subfigure[First caption]
{
      /includegraphics[width=1.0in]{imagefile2}
      /label{fig_firstsub}
}
/ /
/subfigure[Second caption]
{
      /includegraphics[width=1.0in]{imagefile2}
      /label{fig_secondsub}
}
/subfigure[Third caption]
{
      /includegraphics[width=1.0in]{imagefile2}
      /label{fig_thirdsub}
}
/caption{Common figure caption.}
/label{fig_subfigures}
/end{figure}


2.表格

/begin{table}
/renewcommand{/arraystretch}{1.3}
/caption{Simple table} /label{table_example} /centering
/begin{tabular}{c|c}
    /hline
    Heading One  &  Heading Two/ /
    /hline
    /hline

    Three   &   Four/ /
    /hline

    Five    &   Six/ /
    /hline
/end{tabular}
/end{table}
 
3.分栏
 
/usepackage{multicol}
/begin{multicols}{2}
    ……
/end{multicols}
 
4.跨栏的图片或者表格
 
 /begin{figure*}.../end{figure*} 
 /begin{table*}.../end{table*}.
 
5.算法
 
/usepackage{algorithm}
/usepackage{algorithmic}
/begin{algorithm}[H]
/KwIn{sane people and photos}
/KwOut{bebo addicts}

/ForEach{bebo user}{
/If{on the internet}{
waste time on bebo/;
}
}
/end{algorithm}
 

 

5.将算法写到FIGURE中的方法
/documentclass[times, 10pt,twocolumn]{article} 
/usepackage{latex8}
/usepackage{times}
/usepackage{CJK}
/usepackage{epsfig}
/usepackage{algorithm}
/usepackage[noend]{algpseudocode}
/pagestyle{empty}
/begin{document}
/begin{figure}

/begin{algorithmic}[1]
/Statex /textbf{Input}: some input var

/Statex /textbf{Output}: some outputvar

/State the content
/end{algorithmic}
/caption{the algorithm caption}

/end{figure}

你可能感兴趣的:(latex)