2012, June 21
春春在外面發現了一隻天牛
他馬上跑回家叫我一起去看那隻奇怪的小生物
我想他一定很愛我們
所以才會一直想跟我們一起玩
.
.
以下文件複製貼上就可以開始寫了~
\documentclass[11pt]{report}
\usepackage{graphics}
\usepackage{subfigure}
\usepackage[chapter]{algorithm}
\usepackage{algpseudocode}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{amsmath}
\usepackage{graphics}
\usepackage{epsfig}
\usepackage{booktabs,threeparttable}
\usepackage{amsmath,amsthm,amsfonts,amscd}
\usepackage{eucal} % Euler fonts
\usepackage{verbatim} % Allows quoting source with commands.
\usepackage{makeidx} % Package to make an index.
\usepackage{epsfig} % Allows inclusion of eps files.
\usepackage{url} % Allows good typesetting of web URLs.
\usepackage{color} % 允許文字上色
\usepackage{booktabs} % 三線表格
\renewcommand{\arraystretch}{1.3} %調整table間距
\makeatother %<--重新定義編號的樣式 (預設是 0.1 Section Title, 可改成 1. Section title)%\renewcommand{\thesection}{你所想要的Section編號樣式}%Ex以下範例\renewcommand{\thesection}{1}\renewcommand{\thechapter}{1}
\title{Optical Communication HW3}
\author{Sih-Ying Wu} % Required
\date{Ver \today}
\begin{document}
\maketitle %<-----記得這個要寫在裡面(in Texmaker)
\section{Introduction}
Start to write
\end{document}
\newcommand{\wbalsup}[1] {This is the Wikibook about LaTeX supported by #1} \newcommand{\wbalTwo}[2] {This is the Wikibook about LaTeX supported by #1 #2} % in the document body: \begin{itemize} \item \wbalsup{Wikimedia} \item \wbalsup{lots of users!} \item \wbalTwo{John}{Doe} \end{itemize}
需要引用宏包 \usepackage{booktabs,threeparttable}
Note: 用 \tnote{標號} 在需要的地方做記號
Note: 用以下語法在\end{tabular} 之後 \end{threeparttable}之前作注解文字
\begin{tablenotes}
\item[標號1.] : 註解內容
\item[標號2.] : 註解內容
\begin{tablenotes}
% $Id: example21.tex,v 1.2 2004/01/31 15:02:08 edt1023 Exp $
% This example borrows from Donald Arseneau's threeparttable.sty,
% and modified it to fit booktabs package.
% example21.tex
\documentclass{article}
\usepackage{booktabs,threeparttable}
\parindent=0pt
\begin{document}
\centering
\begin{threeparttable}
\caption{The Skewing Angles ($\beta$) for $\fam0 Mu(H)+X_2$ and
$\fam0 Mu(H)+HX$~\tnote{a}} % ? \tnote{} ????????
\begin{tabular}{rlcc}
\toprule
& & $\fam0 H(Mu)+F_2$ & $\fam0 H(Mu)+Cl_2$ \\
\midrule
&$\beta$(H) & $80.9^\circ\tnote{b}$ & $83.2^\circ$ \\
&$\beta$(Mu) & $86.7^\circ$ & $87.7^\circ$ \\
\bottomrule
\end{tabular}
\begin{tablenotes} % ? tablenotes ????????
\footnotesize
\item[a] for the abstraction reaction, $\fam0 Mu+HX \rightarrow MuH+X$.
\item[b] 1 degree${} = \pi/180$ radians.
\end{tablenotes}
\end{threeparttable}
\end{document}
原文參考:http://edt1023.sayya.org/tex/latex123/node9.html
內有表格圖形範例連結
\begin{table}[htbp] \caption{\label{tab:test}示例表格} \begin{tabular}{lcl} \toprule 姓名 & 年龄 & 地址\\ \midrule 张三 & 32 & 中华人民共和国\\ 李四 & 12 & 中华人民共和国\\ 王五 & 24 & 中华人民共和国\\ \bottomrule \end{tabular} \end{table}