发布网友
共2个回答
懂视网
latex使用教程是什么呢?不知道的小伙伴来看看小编今天的分享吧!
1、latex定义:
LaTeX是一种基于ΤΕΧ的排版系统,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天、甚至几小时内生成很多具有书籍质量的印刷品。对于生成复杂表格和数学公式,这一点表现得尤为突出。因此它非常适用于生成高印刷质量的科技和数学类文档。这个系统同样适用于生成从简单的信件到完整书籍的所有其他种类的文档。
2、LaTeX文件的通常语法:
documentstyle{article}
egin{document}
This is a first example of a simple inputfile.
end{document}
如果是中文,将documentstyle{article}改为documentstyle{carticle}
3、规则:
(1)空格:Latex中空格不起作用。
(2)换行:用控制命令“\”,或“ ewline”.
(3)分段:用控制命令“par” 或空出一行。
(4)换页:用控制命令“ ewpage”或“clearpage”
(5)特殊控制字符:#,$, %, &, - ,{, }, ^, ~
4、西文字符转换表:
m 罗马字体 it 意大利字体
f 黑体 sl 倾斜体
sf 等线体 sc 小体大写字母
t 打字机字体 mit 数学斜体
纵向固定间距控制命令
smallskip medskip igskip
页面控制命令
extwidth=14.5cm
extheight=21.5cm
系统默认:字号10pt= 五号字;西文字体为罗马字体;textwidth=12.2cm,textheight=18.6cm。相当于美国标准信纸大小。
5、中英文LaTeX模板
中文LaTeX2e模板,此时文件的扩展名为.ctx。模板中%后面的中文是中文注解,读者可以阅读这些模板中的中文注解,以理解所涉及的LaTeX2e命令的含义。
documentclass[11pt]{ccart}%文件类说明
%还可以选择的类是cctbook
setlength{parindent}{12pt}%自然段第一行的缩进量为12pt
setlength{parskip}{10pt plus1ptminus1pt}
%自然段之间的距离为10pt,并可在8pt到11pt之间变化
setlength{aselineskip}{8pt plus2ptminus1pt}
%行间距为8pt,并可在7pt到10pt之间变化
setlength{ extheight}{21truecm}%版面高为21厘米
setlength{ extwidth}{14.5truecm}%版面宽为14.5厘米
egin{document}%正文开始
itle{Thesis}%文章标题,双反斜杠\表示换行
author{author\Dept. of Math.}
%作者名,单位,通信地址等,双反斜杠\表示换行
date{2003/8/5}
%文章写作日期,如果省略此行,计算机日期作为写作日期
maketitle%建立标题部分
%文章的正文输入
egin{center}%参考文献的书写
{heiti 参考文献}
end{center}
vskip 0.1cm
defhang{hangindentparindent}
def extindent#1{indentllap{#1enspace}ignorespaces}
def e{parhang extindent}
e{[1]} Nordhaus E,Stewart B,WhiteA.On theMaximum Genus of a Graph.{it J.combinatorial TheoryB},1971,11:258-267
e{[2]} Skoviera M.The Maximum Genus of Graphsof Diameter Two.{it Discrete Math}.1991, 87:175-180
end{document}%源文件的结束
英文LaTeX2e模板
documentclass[11pt]{article}%文件类说明
%还可以选择的类是book,report
setlength{parindent}{12pt}%自然段第一行的缩进量为12pt
setlength{parskip}{10pt plus1ptminus1pt}
%自然段之间的距离为10pt,并可在8pt到11pt之间变化
setlength{aselineskip}{8pt plus2ptminus1pt}
%行间距为8pt,并可在7pt到10pt之间变化
setlength{ extheight}{21truecm}%版面高为21厘米
setlength{ extwidth}{14.5truecm}%版面宽为14.5厘米
egin{document}%正文开始
itle{Thesis}%文章标题,双反斜杠\表示换行
author{author\Dept. of Math.}
%作者名,单位,通信地址等,双反斜杠\表示换行
date{2003/8/5}
%文章写作日期,如果省略此行,计算机日期作为写作日期
maketitle%建立标题部分
%文章的正文输入
section{Introduction}%第一节引言(机器自动编号)
{f Theorem 1.} {it For any fixed $ ho>0$,we have
$$||R(u, ho)||leq ||R_1(u, ho)||leq2||R(u, ho)||,~~~forall uin H.
eqno(10)$$ Hence, (2) and (3) are equivalent forany fixed$ ho>0$.}
%一般定理的写法
{f Proof.}
egin{thebibliography}{99}
ibitem{Kind} D. Kinderlehrer and G.Stampacchia, {it An Introduction to
Variational Inequalities and Their Applications},Academic Press,New York, (1980).
end{thebibliography}%参考文献
end{document}%源文件的结束
以上就是小编今天的分享了,希望可以帮助到大家。
热心网友
方法/步骤
1、\documentclass{...}这里是头文件,必须以这种命令开头指定文本类型,属性等
2、这个命令指定了你所写的文档的类别。在此之后,你可以加入控制文档式
样的命令,或者使用如下的命令来调入一些宏集
3、\usepackage{...}
当完成所有的设置后,你可利用如下的命令来开始你的文档:
\begin{document}
\end{document}
4、一下是一个简单的例子:
\documentclass[a4paper,11pt]{article}
%
define
the
title
\author{H.~Partl}
\title{Minimalism}
\begin{document}
%
generates
the
title
\maketitle
%
insert
the
table
of
contents
\tableofcontents
\section{Start}
Well,
and
here
begins
my
lovely
article.
\section{End}
\ldots{}
and
here
it
ends.
\end{document}
5、小伙伴先不理解没关系,慢慢就好了,先把代码复制进去,跟着小编做就可以了,编译出来对比一下就懂了
6、效果如下图,编译完,dvi
pdf就可以点了,编译之前是不能点这个的
7、注意,\documentclass[a4paper,11pt]{article}的解释
8、%
define
the
title
其中
%
是注释,其他如下图
以上就是专题栏小编带来的latex中文版教程,更多教程请看“http://www.zhuantilan.com/zt/latex/”