6

This question is similar to How do I set up MacTeX so admin rights aren't necessary?.

I have a Mac at work, and the sysadmins won't give me write permissions to /usr/local/texlive. So, per the instructions in Is there any way to have a LaTeX compiler on a Mac without root access?, I installed my own user-specific version of TeX Live, at ~/Library/texlive/2014, and it is working fine.

Now, I'd like to know, is there any way to tell MacTeX's "TeX Distribution" utility (in System Preferences) about this installation of TeX Live, so that I can use MacTeX with it? If I need admin rights to do this, it would be okay -- I can ask our sysadmins to do this if it's a one-time thing. What I don't want is to be tied to asking them, for example, every time I want to install a new package.

Thanks!

Klortho
  • 211
  • 1
    Welcome to TeX.SX! Nice first question. I'm not a Mac/MacTeX user myself, but I'm sure somebody around here will be able to help. :-) – Paul Gessler Feb 24 '15 at 19:24
  • And in case they won't, please consider asking the TeX on Mac OS X Mailing list. http://tug.org/mactex/help/ – Franck Pastor Feb 24 '15 at 19:32
  • 4
    And then get the answer on this page somehow – either by directing them to this site or by quoting the necessary stops to a solution. http://xkcd.com/979/ – Sean Allred Feb 24 '15 at 19:35
  • I suspect that you could do this by creating appropriate symbolic links under /Library. If I remember correctly, that's where the distribution magic enabling the preference pane happens. But I've not used MacTeX for some time... – cfr Feb 24 '15 at 20:30
  • If you want to try doing it completely independently, see if adding the path ~/Library/texlive/2014/bin/x86_64-darwin to your PATH environment variable in the terminal lets you build a simple document: export PATH=$PATH:~/Library/texlive/2014/bin/x86_64-darwin followed by pdflatex foo, where foo.tex is a document in the current directory. – Mike Renfro Feb 25 '15 at 01:27
  • 2
    You could create the symlinks in /Library/TeX manually, but there's really no reason to do so; the TeXDist prefpane is only useful if you have multiple distributions, and it requires admin rights to change between them. Set your PATH for Terminal-based programs as @MikeRenfro indicates, and point GUI programs (e.g., TeXShop, BibDesk, TeX Live Utility) at the same directory in their preferences. – Adam Maxwell Feb 25 '15 at 02:32
  • Thanks for the feedback. @AdamMaxwell, you're solution worked when I tried it for TeXShop (TeXShop prefs -> Engine -> (pdf)TeX to "~/Library/texlive/2014/bin/x86_64-darwin"). But I'd rather have a more comprehensive solution--doing it piecemeal would always leave me with a bad feeling of not knowing what's going on under the hood. I want to use the "TeXDist prefpane" because I do have multiple distributions, and I don't expect to change between them very often (I'll just use my user install all the time).

    I am in the process of subscribing to the mailing list to send this question there.

    – Klortho Feb 25 '15 at 16:15
  • Where are your multiple distributions? All in ~/Library/texlive? If so, you'd have to set up symlinks to each one in /Library/TeX, and you still need admin rights to use the prefpane since it fiddles with symlinks in /Library/TeX. Check into LocalTeX instead if you really want to do this. – Adam Maxwell Feb 26 '15 at 15:25

1 Answers1

5

Thanks for the responses. I posted the question to the mailing list, and got a good answer from Richard Koch: the LocalTeX Preferences Pane:

It is a “Local Pref Pane”, and is available, compiled and with source, at

http://pages.uoregon.edu/koch/LocalTeX.zip

This requires Mavericks or higher.

The idea of this pane is to select an active distribution JUST FOR YOU, independently of the choice in the global pane. It can coexist with the global pane, or work even if there is no global pane. It can see distributions with TeX Dist structures. So if the global choice is TeX Live 2014, but you want to use TeX Live 2013, you can.

This new pane makes it essentially trivial to add extra distributions, including the one you mention, to the available distributions.

Disadvantages:

  1. You must reconfigure your GUI apps. But this need only be done once, and the Pane itself will reconfigure a few of them. The global pane uses /usr/texbin as an indirect pointer to the active distribution. The local pane uses ~/Library/TeX/LocalTeX/texbin as a similar pointer.

  2. You must also add ~/Library/TeX/LocalTeX/texbin to your path if you access TeX from the shell.

Klortho
  • 211