2008/03/25

latex中如何添加附录,术语,符号

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

没有评论: