LaTeX使用入门

2025-11-03 20:19:33

1、LaTeX软件的安装和使用:在MikTeX的官网下载免费的MikTeX编译包并安装。WinEdt(收费)

TexMaker(免费)

编辑界面软件并安装

2、打开WinEdt,建立一个新文档,打开WinEdt,将以下内容复制进入文档(B区)中,保存。

\documentclass{article} \begin{document}  new paper test

\end{document}

(2)在图中红圈圈D处点击编译 ,生成RDF

(3)一个简单的文档就排好版了

LaTeX使用入门

LaTeX使用入门

3、下面来介绍下细节排版

(1)标题papertitle、作者authorname和注释(注释内容前加%)

\documentclass{article}   \author{authorname}   \title{papertitle} \begin{document}   \maketitle  new paper test% This is comment \end{document} 

编译,RDF效果如下图

LaTeX使用入门

4、(2)章节、段落

\documentclass{article} 

\author{authorname} 

 \title{papertitle} \begin{document}   \maketitle   \section{section1} This is section1.     \subsection{subsection1} This is subsection1.       \subsubsection{subsubsection1}         \paragraph{paragraph1}This is section1  subsection1 subsubsection1        paragraph1

           \subparagraph{subparagraph1} This is section1  subsection1 subsubsection1        paragraph1 subparagraph1      \subsection{subsection2}         \paragraph{paragraph1}This is  subsection2 paragraph1

\end{document} 

 编译效果如下图

LaTeX使用入门

5、(3)加入目录

\documentclass{article}

\author{authorname}

 \title{papertitle}

\begin{document}

  \tableofcontents

  \section{section1} This is section1.

    \subsection{subsection1} This is subsection1.

      \subsubsection{subsubsection1}

        \paragraph{paragraph1}This is section1  subsection1 subsubsection1        paragraph1

           \subparagraph{subparagraph1} This is section1  subsection1 subsubsection1        paragraph1 subparagraph1      \subsection{subsection2}

        \paragraph{paragraph1}This is  subsection2 paragraph1

\end{document} 

LaTeX使用入门

6、(4)插入图片

\documentclass{article}   \usepackage{graphicx} \begin{document}   \includegraphics[width=4.00in,height=3.00in]{figure.eps} \end{document} 

注意:图片的格式是eps格式

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢