MacTeX Texstudio Configuration

Source: Internet
Author: User

Using Latex on a Mac is the main way to install MacTeX, there are a lot of options for the IDE, like what comes with texshop, or texstudio,latexian,texpad,texmaker, and can even use some common programming ides directly, such as macvim,emacs,sublime text and so on.

Bloggers like to use Texstudio, in the configuration MacTeX and Texstudio will encounter a problem, that is, when compiling latex, will appear "Could not start the command:/usr/texbin/pdflatex- Synctex=1-interaction=nonstopmode "main". Tex"This error, which is why, we opened Texstudio, Options--commands found, The paths to these commands are not correct, many of them start with/usr/texbin/, but our USR folder does not texbin this file, our latex files are mostly on the/usr/local/texlive/2016/bin/x86_ 64-darwin/below. There are two ways to resolve this error:

1. Create a symbolic link for both (symbolic link) by following this line of code:

sudo Ln -s/usr/local/texlive//bin/x86_64-darwin/usr/texbin

But we have to open the rootless mode, see this post for the Open method. But opening this mode will reduce the security of the system, so it is recommended to use the following method, only modified once, once and for all.

2. We manually modify the path in the commands, the original path containing the/usr/texbin/is:

/usr/texbin/latex-src-interaction=nonstopmode%.tex/usr/texbin/pdflatex-synctex=1-interaction=nonstopmode%.tex/ Usr/texbin/xelatex-synctex=1-interaction=nonstopmode%.tex/usr/texbin/lualatex-synctex=1-interaction= Nonstopmode%.tex/usr/texbin/dvips-o%.ps%.dvi/usr/texbin/dvipng-t tight-d%.dvi/usr/texbin/bibtex texbin/bibtex8%.aux/usr/texbin/biber%/usr/texbin/makeindex%.idx/usr/texbin/texindy%.idxsh-c "PATH= $PATH:/usr/ texbin/; Makeglossaries% "/usr/texbin/mpost-interaction=nonstopmode me"/usr/texbin/asy? m*.asy

We will replace the/usr/texbin/with/usr/local/texlive/2016/bin/x86_64-darwin/:

/usr/local/texlive/2016/bin/x86_64-darwin/Latex-src-interaction=nonstopmode%.tex/usr/local/texlive/2016/bin/x86_64-darwin/Pdflatex-synctex=1-interaction=nonstopmode%.tex/usr/local/texlive/2016/bin/x86_64-darwin/Xelatex-synctex=1-interaction=nonstopmode%.tex/usr/local/texlive/2016/bin/x86_64-darwin/Lualatex-synctex=1-interaction=nonstopmode%.tex/usr/local/texlive/2016/bin/x86_64-darwin/Dvips-o%.ps%.dvi/usr/local/texlive/2016/bin/x86_64-darwin/Dvipng-t tight-d%.dvi/usr/local/texlive/2016/bin/x86_64-darwin/BibTeX%.aux/usr/local/texlive/2016/bin/x86_64-darwin/bibtex8%.aux/usr/local/texlive/2016/bin/x86_64-darwin/Biber%/usr/local/texlive/2016/bin/x86_64-darwin/MakeIndex%.idx/usr/local/texlive/2016/bin/x86_64-darwin/Texindy%.idx sh-c "path= $PATH:/usr/local/texlive/2016/bin/x86_64-darwin/; Makeglossaries% "/usr/local/texlive/2016/bin/x86_64-darwin/Mpost-interaction=nonstopmode me)/usr/local/texlive/2016/bin/x86_64-darwin/Asy? m*.asy

MacTeX Texstudio Configuration

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.