MAC installation Basictex

Source: Internet
Author: User

Latex is a complex but very powerful typesetting tool, if you do not want to install 3G large MacTeX on MAC system, you can try Basictex.

Installation

The MacTeX installation package is very large and comes with many graphics applications. I prefer to use the command line, so I choose Basictex. Installing with Homebrew is simple and a single command is required.

brew cask install basictex

The installation is not ready for direct use, and you need to add texlive to the environment variable to find the relevant command.

export PATH=/usr/local/texlive/2017basic/bin/x86_64-darwin:$PATH

Then it is the installation of the associated package, and the update package.

sudo tlmgr update --self --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnetsudo tlmgr install latexmk --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet

It is recommended to use Tsinghua's Ctan image when installing the package, otherwise the download speed will make you suspect life.

Use

Compile a resume PDF below and first find the template you like on the Web. For example, I downloaded the https://github.com/billryan/resume template. Go to the folder and execute the following command to compile it.

xelatex resume-zh_CN.tex

If the compilation fails, you are prompted to say that some packages are missing. Like what:

! LaTeX Error: File `nth.sty' not found.

Then go to the search for which package it is contained in, such as Nth.sty is included in the Gen-misc. Then tlmgr you can use the installation.

sudo tlmgr install gen-misc

https://www.ouyangsong.com/posts/57080/

MAC installation Basictex

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.