一些常用常忘的LaTeX命令备份

来源:互联网 发布:算法的乐趣 下载 编辑:程序博客网 时间:2024/05/23 16:25

LaTeX用的熟练以后十分方便,并且其实常用的命令也并不算多。不过每次使用LaTeX写论文时候总是会有一两个命令想不起来,结果不得不每次都在Google里翻江倒海。于是今天就把常用的命令备份在这里,希望以后不用每次都重新搜索…


另外有几年没发文了,借机表存在。


{a \brack b}{a \choose a_1,a_2} 
or    \binom {a} {a_1,a_2}{a \brace b}{a \bangle b} with  
\def \bangle{ \atopwithdelims \langle \rangle}.
Figure\begin{figure}[!ht]
  \centering
    \includegraphics[scale=0.5]{img/pf.png}
  \caption{Sub-soutions represented as points in coordinate system}
  \begin{flushleft}
  \end{flushleft}
  \label{fig:pf}
\end{figure}

Multiline underneath subscript
多行下限\usepackage amsmath

\underset{ \substack{ k\in S;\\ 
                                       m\in [1,n]
                                      } 
                 }{MinMax}Predefined symbols
复杂度理论


\usepackage{amssymb}
\newcommand{\nph}{\mathcal{NP-}hard}
\newcommand{\ostar}[1]{\mathcal{O}^*(#1)}
\newcommand{\bigo}[1]{\mathcal{O}(#1)}Bibtex\bibliographystyle{spmpsci}     
\bibliography{ref}   % The file name is ref.bib

Use \cite{} to cite待办事项 todonotes\usepqckage{todonotes}

\todo{...}批注 \margepar{。。。}
陆续更新。


注:前四个来自http://www.combinatorics.net/weblib/commands/command.html

0 0
原创粉丝点击