Install the Sagetex Package on Mac OS

May 21, 2020

While in graduate school, my adviser Jack told me that I need to learn and start writing mathematics in LaTeX. Since then, LaTeX has been as important as chopsticks to me. After my colleague Margaret introduced the tikz package to me, LaTeX became fancy chopsticks. However, in recent years, I have occassionally shifted away from LaTeX after I heard about R Markdown from my colleague David. R Markdown not only provides everything that LaTeX has, but also allows the embedding of codes, computations and graphics of R.

Interestingly, I found out today that there is actually a package, the Sagetex package, that gives LaTeX the equivalent computational power, using the software SageMath. The package was first available in 2008. I am so happy that I have learned SageMath from my mathematical brother Jeff, because now I have two pairs of the fanciest chopsticks: Sagetex+LaTexR Markdown.


SageMath Tutorial v9.1 has a section about installing the Sagetex package. Also, inside Library/TeXShop/Engines, there is a Sage folder, which has an installation guide for Mac OS by Herbert Schulz. I used both resources to successfully get the Sagetex package configured on a MacBook.