You are not logged in.
I was following the official SageMath documentation's instructions for getting sagetex to work, and I was dismayed to learn that, despite sagetex ostensibly being included in SageMath by default, I somehow not only managed to install SageMath without sagetex--but without even a SAGE_ROOT defined! At first, I didn't believe this was possible, so I ran some tests:
First, I looked for SAGE_ROOT using the appropriate option in the sage command:
$ which sage
/usr/bin/sage
$ sage --root
$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.0, Release Date: 2023-05-20 │
│ Using Python 3.11.3. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: SAGE_ROOT
sage: Then, after verifying that somehow I managed to install sage without sage having a home directory, I looked for "sagetex.sty", which is ostensibly included in sagemath by default (according to the official documentation linked above):
$ sudo find / -name "sagetex.sty"
$ sudo find / -name "*sagetex*"
/usr/local/texlive/2023/texmf-dist/doc/support/latexmk/example_rcfiles/sagetex_latexmkrc
/usr/share/doc/sage/html/en/reference/spkg/_sources/sagetex.rst.txt
/usr/share/doc/sage/html/en/reference/spkg/sagetex.html
/usr/share/doc/sage/html/en/reference/misc/_sources/sagetex.rst.txt
/usr/share/doc/sage/html/en/reference/misc/sagetex.html
/usr/share/doc/sage/html/en/tutorial/_sources/sagetex.rst.txt
/usr/share/doc/sage/html/en/tutorial/sagetex.html
$(as well as some duplicates for non-en languages, such as de and ru.) No luck--it appears SageMath didn't install a "sagetex.sty" file anywhere on my filesystem; if it had, I would've been able to deduce what my SAGE_ROOT is.
So, at this stage, I'm fairly confident that I somehow royally bungled my SageMath (and/or Tex Live install, somehow).
First, I installed TeX Live natively, as suggested by the arch wiki, by following the "quickinstall" instructions provided by the link on the aforementioned arch wiki page. As far as I can tell, no problems there.
Then, after installing TeX Live natively, I used followed the official SageMath's documentation's advice and installed SageMath via pacman (since I don't (yet) plan to do any development). To accomplish that, I followed the arch wiki's installation instructions:
$ sudo pacman -S sagemath sagemath-docNothing fishy reported by pacman, at least.
At that point, I started trying to set up sagetex--and that's the point at which I first noticed the problem with my SageMath installation.
I emphatically extend a big "Thanks!" to anybody who read this far. I'll accept any help I can get on this with sincere appreciation!
I switched from windows to arch a few weeks ago, and I've been using (enjoying) it without any issues I couldn't solve by reading documentation, arch wiki, or previous forum posts--but no such luck on this one, in particular. I guess I must've been (especially) dumb today; please help me see the error of my ways.
(And, as this is my first forum post, that includes any posting-related mistakes I may have made!)
Last edited by sanchace (2023-06-13 08:28:35)
Offline
sagetex is not included with sagemath, it has its own package: https://archlinux.org/packages/extra/any/sagetex/
The sagemath instructionsyou linked are addressed to users who installed sage from source. If you install the official Arch packages (including texlive), it should work out of the box.
Offline
Beautiful, that's exactly what I needed to get everything up and running. It's an incredible thing that I can make a post and almost immediately have none other than the developer himself tell me what to do to fix my problem! Thanks, you've brightened my day by helping me through this and clearing up my misconceptions. ![]()
Offline