1. latex中怎样加附录
在开头加入
\usepackage[page,title,titletoc,header]{appendix}
在末尾加入
%%%%%%%%% Appendices
\begin{appendices}
\input{appa}
\input{appb}
\end{appendices}
%\appendix
%\include{appa} % doc for gps+cell scheme
%\include{appb} % tables for GPS
2. add glossary 创建术语表
\usepackage{glossary}
\makeglossary
\storeglosentry{pdf}{name=pdf, description=probability density function}
%%% storeglosentry必须放在引用的前面
\begin{document}
... \gls{pdf} is named ...
\printglossary
\addcontentsline{toc}{chapter}{Glossary}
\end{document}
完整的编译过程 How to generate PDF:
* use latex to generate PDF once. An *.ist file as well as a glossary file (*.glo) are generated. The glossary-file contains all the glossary entries found in the document in plain text.
* Next you type the following command in the command-line:
makeindex -s mydoc.ist -t mydoc.glg -o mydoc.gls mydoc.glo
generating the two files with the extensions *.gls and *.glg.
* You now need to re-generate the PDF, using latex.
3. add notations 创建符号表
\usepackage{nomencl}
\makenomenclature
...
...
\nomenclature{$\mathbb{R}^2$}{two-dimensional space}
\addcontentsline{toc}{chapter}{List of Notations}
\printnomenclature
完整编译过程为:
* latex
* makeindex mydoc.nlo -s nomencl.ist -o mydoc.nls
* latex
源文件在第一次编译后,自动生成一个同名术语条目文件.nlo,运行 makeindex 工具程序和术语样式文件 nomencl.ist 对其编译,再生成一个同名术语排序文件.nls,当再次编译源文件时,\printnomenclature 命令将被这个文件的内容所取代。
refer to:
http://texblog.wordpress.com/2007/11/01/glossary-in-latex/
http://zzg34b.w3.c361.com/package/note-2.htm
2008/03/25
2008/03/24
latex中的表格
\begin{table}[h]
\small % change the font size
\begin{tabular*}{1.0\textwidth}{ lll }
%\begin{tabular} {lll}
%\begin{tabular*}{0.75\textwidth}{ @{\extracolsep{\fill}} lll}
\hline
Name & Example Data & Description \\
\hline
Sentence Identifier & \$GPGGA & GPS Fix Data \\
Time & 031145.999 & 03:11:45.999 UTC \\
Latitude & 0120.3055, N & 1 degree 20.3055 minutes North \\
Longitude & 10346.6611, E & 103 degree 46.6611 minutes East \\
Fix Quality &1& Data is from a GPS fix \\
Number of Satellites &05& 5 Satellites are in view \\
Horizontal Dilution of Precision &00.0& Relative accuracy of horizontal position \\
Altitude &163.3, M& 163.3 meters above mean sea level \\
Height above WGS84 ellipsoid & 156.2, M& 156.2 meters \\
Time since last DGPS update &blank& No last update \\
DGPS reference station id &blank& No station id \\
Checksum &*6F& Checksum for transmission errors \\
\hline
\end{tabular*}
\end{table}
\small % change the font size
\begin{tabular*}{1.0\textwidth}{ lll }
%\begin{tabular} {lll}
%\begin{tabular*}{0.75\textwidth}{ @{\extracolsep{\fill}} lll}
\hline
Name & Example Data & Description \\
\hline
Sentence Identifier & \$GPGGA & GPS Fix Data \\
Time & 031145.999 & 03:11:45.999 UTC \\
Latitude & 0120.3055, N & 1 degree 20.3055 minutes North \\
Longitude & 10346.6611, E & 103 degree 46.6611 minutes East \\
Fix Quality &1& Data is from a GPS fix \\
Number of Satellites &05& 5 Satellites are in view \\
Horizontal Dilution of Precision &00.0& Relative accuracy of horizontal position \\
Altitude &163.3, M& 163.3 meters above mean sea level \\
Height above WGS84 ellipsoid & 156.2, M& 156.2 meters \\
Time since last DGPS update &blank& No last update \\
DGPS reference station id &blank& No station id \\
Checksum &*6F& Checksum for transmission errors \\
\hline
\end{tabular*}
\end{table}
2008/03/22
latex 文献(bib)管理软件
Kbibtex (首选)
Ubuntu下bib 文件管理。在kile -> settings -> Tools->build中 view bib file by kbibtex.
安装 Applications->add/remove 或者 sudo apt-get install kbibtex
JabRef
一个用java写的文献管理器。可在ubuntu menu: Applications->add/remove下直接安装,但是restricted software (not open source)。或下载从
http://jabref.sourceforge.net/index.php
Referencer
一个GNOME 应用程序,它支持最终生成 BibTeX 格式的文献文件。 主要功能包括:
* 可自动检索元数据
* 智能化的 Web 链接处理方式
* 支持从 BibTeX、Reference Manager、EndNote 等软件导入文献文件
* 支持 Tagging
Referencer 的最新版本为 1.0.2,有源码包和 deb 包可用。
Bibus
BiBus基于Python,Windows和Linux版本都有,Ubuntu下安装Bibus只要敲 sudo apt-get install bibus,就OK(JabRef同理)。
第一次使用前要选择数据库,MySQL或SQLite任选其一。
Note:
windows下有EndNote, Biblioscape, NoteExpress,Reference Manager,ProCite.
在线版或者以浏览器插件形式存在的有EndNote Web和Zotero.
Ubuntu下bib 文件管理。在kile -> settings -> Tools->build中 view bib file by kbibtex.
安装 Applications->add/remove 或者 sudo apt-get install kbibtex
JabRef
一个用java写的文献管理器。可在ubuntu menu: Applications->add/remove下直接安装,但是restricted software (not open source)。或下载从
http://jabref.sourceforge.net/index.php
Referencer
一个GNOME 应用程序,它支持最终生成 BibTeX 格式的文献文件。 主要功能包括:
* 可自动检索元数据
* 智能化的 Web 链接处理方式
* 支持从 BibTeX、Reference Manager、EndNote 等软件导入文献文件
* 支持 Tagging
Referencer 的最新版本为 1.0.2,有源码包和 deb 包可用。
Bibus
BiBus基于Python,Windows和Linux版本都有,Ubuntu下安装Bibus只要敲 sudo apt-get install bibus,就OK(JabRef同理)。
第一次使用前要选择数据库,MySQL或SQLite任选其一。
Note:
windows下有EndNote, Biblioscape, NoteExpress,Reference Manager,ProCite.
在线版或者以浏览器插件形式存在的有EndNote Web和Zotero.
2008/03/21
latex文件头定义冲突
在latex中使用ACM proceedings格式文件(acm_proc_article-sp.cls)时,如果用到了algorithm2e的包,编译时会出现:
! Too many }'s.
该冲突可直接在文件开头加入下面5句话解决:
\makeatletter
\newif\if@restonecol
\makeatother
\let\algorithm\relax
\let\endalgorithm\relax
! Too many }'s.
该冲突可直接在文件开头加入下面5句话解决:
\makeatletter
\newif\if@restonecol
\makeatother
\let\algorithm\relax
\let\endalgorithm\relax
2008/03/19
latex的图片排版: subfigure
目的: 使用latex的subfigure并排放置两张图.
注意要使用宏包\usepackage{graphicx}和\usepackage{subfigure}
Note:
如果前图漏掉 \caption{},后图的编号可能不会从(a)算起。改变编号用
\setcounter{subfigure}{0};
引用子编号\subref{fig:subfig};
改变间距用 \vspace{.3in} 和\hspace{.1in},置于两subfigure间.
注意要使用宏包\usepackage{graphicx}和\usepackage{subfigure}
\begin{figure} \centering
\subfigure[figure 1 title.] { \label{fig:a}
\includegraphics[width=0.8\columnwidth]{fig1.eps}
}
\subfigure[figure 2 title.] { \label{fig:b}
\includegraphics[width=0.8\columnwidth]{fig2.eps}
}
\caption{ general title. }
\label{fig}
\end{figure}
Note:
如果前图漏掉 \caption{},后图的编号可能不会从(a)算起。改变编号用
\setcounter{subfigure}{0};
引用子编号\subref{fig:subfig};
改变间距用 \vspace{.3in} 和\hspace{.1in},置于两subfigure间.
订阅:
博文 (Atom)