Latex 小技巧

1. 缩小reference行距:

\usepackage[numbers,sort&compress]{natbib}

\addtolength{\bibsep}{-1.0 em}
\setlength{\bibhang}{2em}

字体:\footnotesize

2. 缩小 item间的距离:

\usepackage{paralist}
\let\itemize\compactitem
\let\enditemize\endcompactitem
\let\enumerate\compactenum
\let\endenumerate\endcompactenum
\let\description\compactdesc
\let\enddescription\endcompactdesc

\setlength{\pltopsep}{7pt}
\setlength{\pltopsep}{10pt}

3. Table, Figure 引用序号不对

\label 应该 紧接着 放在 \caption 之后

 

4. Table 内部 换行

\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\begin{table}[!b]
\begin{tabular}{|c|c|c|c|c|}
\hline
WAKE\_LOCK & CPU & Screen & Keyboard & Description \\
\hline
FULL\_WAKE\_LOCK & On & Bright & On & {\tabincell{c}{ Ensures the screen and key- \\board are on at full brightness.}} \\                                                                                                \hline                                                                                                                                       \end{tabular}                                                                                                                              \caption{}                                                                                                                                         \label{}                                                                                                                                \end{table}

5. Subfigure

\begin{figure}
\centering
\subfigure{
\label{fig:} %% label for first subfigure
\includegraphics[width=0.25\columnwidth]{Figures/1.eps}}
\hspace{8pt}
\subfigure{
\label{fig:} %% label for second subfigure
\includegraphics[width=0.25\columnwidth]{Figures/2.eps}}
\hspace{8pt}
\subfigure{
\label{fig:a} %% label for second subfigure
\includegraphics[width=0.25\columnwidth]{Figures/3.eps}}\\
\subfigure{
\label{fig:} %% label for first subfigure
\includegraphics[width=0.45\columnwidth]{Figures/4.eps}}
\hspace{8pt}
\subfigure{
\label{} %% label for second subfigure
\includegraphics[width=0.45\columnwidth]{Figures/5.eps}}
\caption{caption for entire figure}
\label{label for entire figure}
\end{figure}

 

6. 数学公式:

http://www.cfsm.cn/info/symbols/symbols.htm

http://blog.sina.com.cn/s/blog_5e16f1770100fs38.html

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s