发布时间:2009-11-05 19:24:15
文章类别:TeX资源
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100fwk9.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
Email:latexstudio@hotmail.com
常见数学公式问题集下载

TeX 5

+----------------------------------------------------+
| 本节内容: 以一个article例子看看文章的一般排版格 |
| 式. title信息详解. 以下仅就例讲解, 详情后续: 章 |
| 节, 留空(LaTeX的长度表示), 参考文献. |
+----------------------------------------------------+

有了那么多准备知识,我想现在可以开始深入展开一篇文章的排版了.大家可以把以下内容从\documentstyle行开始, 直到\end{document}行存在一个文本文件中, 如111.tex, 然后编译: latex 111(因为用到交叉引用, 需要编译两次), 然后用view 111来浏览此例, view中, 回车翻下页, <ESC>退出(具体view的使用参看CCT的man.dvi)

\documentstyle{article} %使用article格式
\topmargin=0pt %以下页面设置
\oddsidemargin=0pt \evensidemargin=0pt %
\textwidth=14cm %
\textheight=21cm %
%
\title{This is a sample of \LaTeX} %文章题目
\author{Bigeyes(\tt{chencs@263.net})\\ %作者. 多行用\\
Department of Mathematics\\ %
USTC, Anhui, Hefei, 230026 %
%
\and %如有多作者, 用\and
A\_A %
\thanks{Supported by ...} %致谢, 在author里
\\ %
BBS of USTC\\ %
bbs.ustc.edu.cn[202.38.64.3]} %
\date{Mar. 1, 1999} %日期, 如果没有此项,
%则以当前日期代替, 若
%不要日期, 则用空{}
%
\begin{document} %document开始.
%以上定义标题各项内容,
\maketitle %此句产生标题, 不可缺少,
%一般都是正文第一句
\begin{abstract} %套用abstract格式
This is mini-page defined for abstract, %自动形成小页
you only write your abstract in it. If %
you want to shows keywords, maybe you %
should use: %

{\bf Keywords: }\LaTeX, example %LaTeX没有keywords环境
\end{abstract} %自己手工来做吧
%
\section{The very beginning} %一个节, 节的使用后详
This is the first section of your %
article. You may find every first %一节的第一段缺省情况
paragraph of your section, subsection, %为段首不自动缩进
chapter or ... always has no %
``parindent'' at the beginning. %

This is the second paragrph, you can %但是以后的段段首
find this has parindent at the % 自动缩进
beginning. If you want to show %
parindent at first paragraph too, %
do as the first paragraph I showed %
in the next section. %
%
\section{The 2nd step} %第二节,使用自动标号
\hskip \parindent %横向空出\parindent
This is the second section. In this %从这里大家看到
first paragraph, I use `hskip' to %\parindent其实是
get the first parindent. Maybe you %一个长度单位, 长
can get this effect by another way. %度单位后详
%
\subsection{Sub-sect of 2} %小节
this %
%
\subsection*{\S 2.2 Another sub of 2} %节,小节可以不使用
this %自动标号, 这时有关
%的计数器不增加
\section{Conclusion} %
I think you have know \TeX well now. %又是一节
I want to show you how to use %
bibliography. In the article, you %参考文献的
can use as ``see \cite{texbook}''. %引用方法\cite{标识}
%
\begin{thebibliography}{0} %参考文献列在这里
%{0}表示最长文献序号
% 为一位数
%\bibitem{标识}
%参考文献使用后详
\bibitem{texbook} Donald~E.~Knouth, ``The \TeX book'',
Addison-Wesley, 1984
\bibitem{lamport} L.\ Lamport, ``\LaTeX:
A Document Preparation System'',
Addison-Wesley, 1994
\bibitem{companion} M.~Goossens, F.~Millelbach,
and A.~Samarin, ``The \LaTeX\ Companion'',
Addison--Wesley, 1994
\end{thebibliography}

\end{document} %document结束


点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部