1. 插入的一般方法
%檔案開始加入巨集包\usepackage
\includegraphics[width=3in] //3英吋
\includegraphics[width=\textwidth]將所插入圖形縮放到和文字行的寬度一樣寬
\includegraphics[width=0.80\textwidth]使得插入圖形的寬度為文字行寬的 80%。
\includegraphics[width=8cm]\\ 在image資料夾下面
\begin[htbp] //htbp指定位置
h 當前位置
t 頂部
b 底部
p 浮動頁
\begin
\setlength
\setlength
\centering
\caption
\includegraphics[width=2in]
\end 得到圖 18.2。其中標題的上方沒有額外的空白,與圖形之間則有 10pt 的距離。
\begin
\centering
\includegraphics[width=2in]
\renewcommand
\caption
\end //將figure 改為了fig
%檔案開始加入巨集包:\usepackage
\begin[htbp]
\centering
\subfigure[green]
\centering
\includegraphics[width=8cm]
%hspace(2cm)
\end
}% 有%橫排,沒有豎排
\subfigure[red]
\centering
\includegraphics[width=8cm]
%hspace(2cm)
\end
\caption
\end
%插入2*2的格式
\begin[htbp]
\centering
\subfigure[subfigure 1-1]
\includegraphics[width=0.45\linewidth]}
\hspace
\subfigure[subfigure 1-2]
\includegraphics[width=0.45\linewidth]}
\vfill
\subfigure[subfigure 2-1]
\includegraphics[width=0.45\linewidth]}
\hspace
\subfigure[subfigure 2-2]
\includegraphics[width=0.45\linewidth]}
\caption
\label
\end
2.基本公式的使用與編輯
//處於段內的數學文字要放在\( 與\) 之間, $ 與$ 之間, 或者\begin與\end 之間。
$c^=a^+b^$
// 使得編輯的公式單獨一行,不編號
\begin
c^=a^+b^
\end
or you can type less with:
\[a+b=c\]
\frac-- 表示1/2
c=\left|a+b\right| --c=abs
演示**:
\documentclass
\setlength\textwidth
\usepackage
\usepackage
\usepackage
\begin
\begin
方法一:
$$ f(x)=\left\
x & = & \cos(t) \\
y & = & \sin(t) \\
z & = & \frac xy
\end
\right.
方法二:
$$ f^=\left\
f_l & & \\
f^*_l & & \\
f^*_r & & \\
f_r & &
\end \right. $$
方法三:
$$f(x)=
\begin
0& \text\\
1& \text
\end$$
\end
\end
3. algorithm pseudo-code
%%%巨集包%%%
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]
\usepackage
\usepackage
\usepackage
\usepackage
%%%%algorithm 1%%%
\renewcommand} % use input in the format of algorithm
\renewcommand} % use output in the format of algorithm
\begin[htb]
\caption
\label
\begin[1]
\require
the set of positive samples for current batch, $p_n$;
the set of unlabelled samples for current batch, $u_n$;
ensemble of classifiers on former batches, $e_$;
\ensure
ensemble of classifiers on the current batch, $e_n$;
\state extracting the set of reliable negative and/or positive samples $t_n$ from $u_n$ with help of $p_n$;
\label
\state training ensemble of classifiers $e$ on $t_n \cup p_n$, with help of data in former batches;
\label
\state $e_n=e_cup e$;
\label
\state classifying samples in $u_n-t_n$ by $e_n$;
\label
\state deleting some weak classifiers in $e_n$ so as to keep the capacity of $e_n$;
\label \\
\return $e_n$;
\end
\end
%%%%%%algorithm 2%%%if else for while function %%%
\renewcommand} % use input in the format of algorithm
\renewcommand} % use output in the format of algorithm
\begin
\caption
\begin[1] %每行顯示行號
\require he set of positive sampl
\ensure he set of positive sampl
\function
\state $result \gets 0$
\if
\state $middle \gets (left + right) / 2$
\state $result \gets result +$ \call{}
\state $result \gets result +$ \call{}
\state $result \gets result +$ \call{}
\endif
\state \return
\endfunction
\state
\function
\state $i\gets left$
\state $j\gets middle$
\state $k\gets 0$
\state $result \gets 0$
\while
\state $array[left + i] \gets b[i]$
\endfor
\state \return
\endfunction
\end
\end
Vim 使用筆記
set hlsearch set nohlsearch 搜尋後清除上次的加亮 nohl nohlsearch 拷貝 很有用的一句話,規定了格式選項,讓它換行不自動空格 set formatoptions tcrqn set fo r set noautoindent 再 shift insert 正...
xemacs使用筆記
xemacs使用筆記 xemacs emacs的下一代,由lucid原創 from debian參考手冊.由於不知道什麼時候刪掉了emacs的乙個重要檔案.每次都沒法安裝好.突然發現了xemacs,於是決定使用看看.本人還是菜鳥,僅供交流 我使用的ubuntu系統,所以就直接apt get inst...
TreeView使用筆記
treeview由節點構成,建樹通過對treeview.items屬性進行操作。items是乙個ttreenodes物件,這是乙個ttreenode集。一 針對ttreenodes,也就是 treeview.items,有這些屬性 1 count,節點個數。2 item index 通過index得...