Last active
October 4, 2024 12:08
-
-
Save peterhurford/75957ba9335e755013b87254ec85fab1 to your computer and use it in GitHub Desktop.
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install pandoc | |
brew tap homebrew/cask | |
brew install --cask basictex | |
eval "$(/usr/libexec/path_helper)" | |
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-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 |
you might need to add
sudo tlmgr install pdfcol
Worked nicely to have dependencies of Rmarkdown in combination with the vitae
package to create a CV. Thanks!
you might need to add sudo tlmgr install pdfcol
needed!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my case, I had to add even more packages to make PDF export work from JupyterLab on my macOS with M1, like
soul
.Unfortunately, I did not note what I have installed on top of
brew basictex
, so here is the complete list I have now of packages installed by default and installed manually by me usingsudo tlmgr install
: