2

After hours wasted trying to work with the Ubuntu repository version of TeXLive (tlmgr wasn't working), I installed the "native" version of TeXLive (2017, via "Quick Installer" from the official site) and tlmgr was now functional.

However, when I go ahead and install TexMaker from the Ubuntu repository, it rolls out its own (outdated) version of TeXLive. I've been trying to install from binaries on TeXMaker's site, but the site is down.

So then I tried installing TeXstudio, downloaded the appropriate binary (Ubuntu 16.04 64 bit QT5) and installed it via Software Center, but seemingly I'm getting things I never wanted. E.g. the "native" TeXLive's tlmgr was in /usr/local/texlive/2017/bin/x86_64-linux folder, after installing TeXstudio now it's "shadowed" by /usr/bin. It's also a version that is 2 years behind the current tlmgr from the official site.

How to install a TeX editor so that it doesn't roll out its own TexLive installation or tlmgr?

  • maybe creating a "fake package" (see tex.stackexchange.com/a/95373/36296) can help. – user36296 Feb 8 '18 at 17:22
  • Your question is OS specific and I think that you had to use backports in Ubuntu (but I am not sure about that)... I think you have to add "linux" or simmilar tag to your question and ububtu in your title to have more chances to find an answer – koleygr Feb 8 '18 at 17:22
  • @koleygr Ubuntu was already among the tags, I've replaced it with linux. Thanks for mentioning. I'm not sure what you mean by 'backports'. I've used TeXLive's tl-installer, that isn't very OS specific apart from Linux in general. – TeXnophobe Feb 8 '18 at 17:25
  • @TeXnophobe, sorry, I didn't show the tag.. I suppose it was ok... google for "ubuntu 16.04 texlive backports" and I am sure that you will see what I mean. Backports is the way to get newer than official supported packages on ubuntu – koleygr Feb 8 '18 at 17:28
  • @samcarter Thank you, I'm trying to apply the "Fake packages" section from the linked answer. – TeXnophobe Feb 8 '18 at 17:30
1

Thanks everyone for the input in the comments.

Here's what worked for me.

My system: Ubuntu 16.04 (Xenial) 64-bit

What I installed:

First I downloaded the "Quick Installer" from TeXLive and proceeded as recommended. I uncompressed the archive, ran the installer with sudo ./install-tl from the folder. It took a looong time to "quick install" all the 3500+ packages.

Then I installed TeXstudio with sudo apt-get install texstudio --no-install-recommends. (Thanks @daleif for mentioning the flag.)

After TeXstudio was installed, I launched the application. It prompted me with a warning about not having a TeX installation. I went to Options > Configure TeXstudio... and in Commands set the path to xelatex pointing to the TeXLive installation and then in Build set the Default compiler to xelatex (which is the compiler I'll mostly need, proceed similarly for other compilers of your choice).

Now the TeX installation seems to be OK. Feel free to point out potential pitfalls or anything.

The other suggested workarounds either failed at one point or are beyond my level of "expertise" and willingness to manage a system with hacks and tricks (I won't remember them by the time I need to change something).

  • 1
    The options configure should not be needed if you added the texlive path to the right configuration file. It usually goes into .profile (you need to log out and in again to activate it). If you added the path addition to bashrc, and you open texstudio from a menu, texstudio never runs bash and never sees the path change – daleif Feb 9 '18 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.