Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
brew install pandoc
brew tap homebrew/cask
brew cask install basictex
eval "$(/usr/libexec/path_helper)"
# Update $PATH to include `/usr/local/texlive/2020basic/bin/x86_64-darwin`
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install xelatex
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox
sudo tlmgr install collectbox
sudo tlmgr install ucs
sudo tlmgr install environ
sudo tlmgr install trimspaces
sudo tlmgr install titling
sudo tlmgr install enumitem
sudo tlmgr install rsfs
@naturale0

This comment has been minimized.

Copy link

@naturale0 naturale0 commented Mar 12, 2021

Works like a charm on M1 mac (Rosetta enabled). Thanks!

@kevingoh

This comment has been minimized.

Copy link

@kevingoh kevingoh commented Mar 16, 2021

Works like a charm on M1 mac (Rosetta enabled). Thanks!

@naturela0 did you use the rosetta brew to install basictex as well?

thanks

@naturale0

This comment has been minimized.

Copy link

@naturale0 naturale0 commented Mar 16, 2021

@kevingoh Yes I did. Did everything on Rosetta.

@shivammehta007

This comment has been minimized.

Copy link

@shivammehta007 shivammehta007 commented Jun 1, 2021

Homebrew has removed cask in the latest updates , the command can now just be brew install basictex

@tbrodbeck

This comment has been minimized.

Copy link

@tbrodbeck tbrodbeck commented Jul 23, 2021

Thanks

@akashlevy

This comment has been minimized.

Copy link

@akashlevy akashlevy commented Jul 25, 2021

sudo tlmgr install xelatex
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr install: package xelatex not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

Anyone seeing above issue?

@fedormatantsev

This comment has been minimized.

Copy link

@fedormatantsev fedormatantsev commented Aug 2, 2021

sudo tlmgr install xelatex
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr install: package xelatex not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

Anyone seeing above issue?

Yeah, it seems xetex/xelatex is now a part of basic installation, so no additional package is required anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment