LaTeX新手上路

来源:互联网 发布:兄弟连it教育地址 编辑:程序博客网 时间:2024/05/16 11:22

1.环境确认

C:\Users\latex>verMicrosoft Windows [版本 10.0.10240]

2.下载并安装TexLive2015

  • 下载:
    到http://tug.org/texlive/acquire-netinstall.html,点击install-tl-windows.exe或如下URL:
    http://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe

安装之前记得把所有Tex环境先清除,包括MikTex/CTex之类的.免得麻烦!

  • 执行install-tl-windows.exe,都按默认选项,在仓库哪里选择:
    https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
    开始等待,看网络情况,我这边居然要一般1个半小时,共3199个东东需要安装.

  • 确认安装

C:\Users\latex>texThis is TeX, Version 3.14159265 (TeX Live 2015/W32TeX) (preloaded format=tex)**

恭喜,安装成功!!

3.选择一款编辑器

这里我选择TeXstudio,下载网址:
http://texstudio.sourceforge.net/
然后默认安装,安装好后修改Default Compiler:
Opitons–>Configure TeXstudio–>Build–>Default Compiler 选择XeLaTeX.

4.找个好模版

到这里下载清华的论文模版:
https://github.com/xueruini/thuthesis
解压到一个目录,如c:\thuthesis-master

5.编译测试

#进入论文路径cd c:\thuthesis-master#编译main.texlatexmk -xelatex main.tex#清理临时文件latexmk -c

不出意外的话c:\thuthesis-master目录下将出现一个main.pdf

6.关于文档

由于这个LaTeX在国内太高冷,网上很多文档都过期了,特别是关于中文处理之类的.文档推荐:

  • lshort-new-zh-cn.pdf
    https://github.com/louisstuart96/lshort-new-zh-cn

  • texlive-zh-cn.pdf
    在你的本地安装目录里面
    C:\texlive\2015\texmf-dist\doc\texlive\texlive-zh-cn\texlive-zh-cn.pdf

  • thuthesis.pdf
    在你的本地安装目录里面
    C:\texlive\2015\texmf-dist\doc\latex\thuthesis\thuthesis.pdf

  • 刘海洋. 《LATEX入门》2013版,电子工业出版社

1 0