Latex环境的安装和配置

TeXLive的安装

  1. 进入官方下载地址下载texlive.isoIndex of /ctan/tex-archive/systems/texlive/Images (utah.edu)
  2. 右击texlive.iso,选择装载,并双击install-tl-windows.bat
  3. 修改下载路径,取消勾选安装TeXworks前端
  4. 点击Advanced->Customize,取消除了英文中文以外的语言,左边选择ChineseCJKEnglish,右边取消勾选TeXworks
  5. 点击安装并进行漫长的等待

TeXstudio的安装

  1. 下载TeXStudio,TeXstudio - A LaTeX editor (sourceforge.net)
  2. 更换安装路径并完成安装
  3. 更改语言设置:Option->Configure TeXstudio->General->zh_CN
  4. 更改默认编译器为XeLaTeX便于编译中文文档:Option->Configure TeXstudio->Build->Default Compiler->XeLaTeX
  5. 更改字体编码为utf-8Option->Configure TeXstudio->Editor->Default Font Encoding->UTF-8

Latex环境的测试

​ 在TeXStudio中新建一个文件,输入以下代码

1
2
3
4
5
6
7
\documentclass{ctexart}
\title{Hello World}
\begin{document}
\maketitle
\section{Hello}
World
\end{document}

​ 得到如下结果:

1

参考资料