2024年4月29日发(作者:)
Texmaker 入门教程
下面是教程正文。(正文最后应大家要求增添了附录)
软件的安装和使用
方法A(自助):在MikTeX的官网下载免费的MikTeX编译包并
安装。下载WinEdt(收费)或TexMaker(免费)等编辑界面软件并
安装。
方法B(打包):在下载ctex套装(含MikTeX及
WinEdt)
哈哈这一部分当然不包含在标题的30分钟里。
2.第一个文档
打开WinEdt,建立一个新文档,将以下内容复制进入文档中,保
存,保存类型选择为UTF-8。
documentclass{article}
begin{document}
hello, world
end{document}
然后在WinEdt的工具栏中找到编译按钮(在垃圾桶和字母B中
间),在下拉菜单中选择XeTeX,并点击编译。
如果顺利的话,我们就可以顺利生成出第一个pdf文件,点击工
具栏中的放大镜按钮就可以快速打开生成的pdf文件。
3.标题、作者和注释
建立一个新文档,将以下内容复制进入文档中,保存,保存类型
选择为UTF-8,编译并观察现象。
documentclass{article}
author{My Name}
title{The Title}
begin{document}
maketitle
hello, world % This is comment
end{document}
4.章节和段落
建立一个新文档,将以下内容复制进入文档中,保存,保存类型
选择为UTF-8,编译并观察现象。
documentclass{article}
title{Hello World}
begin{document}
maketitle
section{Hello China} China is in East Asia.
subsection{Hello Beijing} Beijing is the capital of China.
subsubsection{Hello Dongcheng District}
paragraph{Tian'anmen Square}is in the center of Beijing
subparagraph{Chairman Mao} is in the center of Tian'anmen
Square
subsection{Hello Guangzhou}
paragraph{Sun Yat-sen University} is the best university in
Guangzhou.
end{document}
退格只是我个人偏好,看起来层次清晰美观。实际操作上未必要
如此,每一行之前的空格不影响编译生成PDF的排版结果。
5.加入目录
建立一个新文档,将以下内容复制进入文档中,保存,保存类型
选择为UTF-8,编译并观察现象。
documentclass{article}
begin{document}
tableofcontents
section{Hello China} China is in East Asia.
发布评论