Latex 学习笔记

最近,写论文捏,用latex编辑出的文本真的是灰常漂亮啊。
记录一些小技巧,造福后来人(包括自己)~

1.引用文章

bibtex.bib中

@article{1,
author = {Teh Y W and Jordan M I and Beal M J and et al},
title = {Hierarchical dirichlet processes[J]},
journal = {Journal of the american statistical association},
volume = {101},
number = {476},
year = {2006},
%abstract = {摘要, 这个主要是引用的时候自己参考的, 这一行不是必须的}
}

文章.tex中:

\begin{document}后加\bibliographystyle{plain}

引用格式:\cite{1}

end{document}前加:\bibliography{bibtexFileName}

引用效果:

 Bonchi F, Morales G D F, and Gionis A. Activity preserving graph simplification[j].
Data Mining and Knowledge Discovery, 27(3), 2013.


2.  插入算法

网上有介绍 algorithm2e的具体文章:

http://blog.csdn.net/lsg32/article/details/7987912

具体使用:

a.加包

\usepackage{algorithm}
\usepackage{algpseudocode}

b.将其中的一些名字换为input,output

\renewcommand{\algorithmicrequire}{\textbf{Input:}}  % Use Input in the format of Algorithm
\renewcommand{\algorithmicensure}{\textbf{Output:}}

3.加入列表:

\begin{itemize}

\item blablabla....

\end{itemize}

4.插入图片

\begin{figure}

\centering
\includegraphics[height=2.0cm]{图片文件名}
\caption{图片标题}
\label{fig:example}
\end{figure}

5. 公式放在同一行,中间加入 \hspace{1em} 为空格

6. 公式中加入文字说明:\qquad \mbox{if $k$ previously used}

7. 文本变斜体:\emph{...}  粗体:\textbf{Sampling} $\bm{\beta}$(注:后面括号里为将公式中符号(\beta)变粗体)

8.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值