latex笔记

2020-04-20  本文已影响0人  铭小狮子酱

插入算法

首先引入相应的package

\usepackage{algorithm}
\usepackage{algorithmic}

插入表格

\begin{table}
  \caption{Sample table title}
  \label{sample-table}
  \centering
  \begin{tabular}{lll}
    \toprule
    \multicolumn{2}{c}{Part}                   \\
    \cmidrule(r){1-2}
    Name     & Description     & Size ($\mu$m) \\
    \midrule
    Dendrite & Input terminal  & $\sim$100     \\
    Axon     & Output terminal & $\sim$10      \\
    Soma     & Cell body       & up to $10^6$  \\
    \bottomrule
  \end{tabular}
\end{table}

2. 插入图片

\begin{figure}
  \centering
  \fbox{\rule[-.5cm]{0cm}{4cm} \rule[-.5cm]{4cm}{0cm}}
  \caption{Sample figure caption.}
\end{figure}

3. 插入引用

\citet{hasselmo} investigated\dots

效果

Hasselmo, et al. (1995) investigated...

使用插入的图片、表格、引用等

\ref{sample-table}

使用\ref和要引用的object的label即可。

一些格式

\textit{}: 斜体
\textbf{}: 粗体

数学符号

\dots: 三点省略号
\times: 乘号
\underbrace_{1+2+\dots+n}^{n个}: 下面的大括号 
\overbrace_{}^{}: 上面的大括号

上一篇 下一篇

猜你喜欢

热点阅读