码迷,mamicode.com
首页 > 其他好文 > 详细

LaTex随笔

时间:2014-10-26 22:46:31      阅读:269      评论:0      收藏:0      [点我收藏+]

标签:io   ar   sp   on   art   cti   代码   amp   bs   

  最近简单接触了LaTex排版,留下一些笔记供日后参考。

  1.基本格式

\documentclass{article}
\title{……}
\begin{document}
\maketitle
\section{……}

……\\……
\subsection{……}

……
\subsubsection{……}
……
\subsection{Hello Guangzhou}

……
\end{document}

 

  2.{\it ……}斜体

     {\bf ……}粗体

   另外,$…$间的内容将被当做公式,而文字为斜体。

 

  3.插入图片

\begin{figure}[!htbp]
\centering
\includegraphics[width=3.0in]{fig1.jpg}
\DeclareGraphicsExtensions.

\caption{Sequential constraints}
\label{fig1}
\end{figure}

 

  4.代码段的一种方式

\fbox{\shortstack[l]{
……
}}

 

  5.表格

\caption{Results of four systems under test with sequential constraints}
\label{tab1}
\centering
\begin{tabular}{|c|c|c|c|} %c的数量表示有几列,“|”来表示网格线
\hline   %表示全行
VCAP & {\bf Strategy} & {\ bf Size of test suite} & {\bf Time} \\ 

\hline
\multirow{2}{*}{$VCAP_1$} & Existing strategy & 1444 & 0.281s \\ %合并行
\cline{2-4} %表示选定区域
& Our strategy & 1444 & 0.281s \\

\hline
\end{tabular}
\end{table}

LaTex随笔

标签:io   ar   sp   on   art   cti   代码   amp   bs   

原文地址:http://www.cnblogs.com/libcan/p/4052767.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!