I know a similar question has been asked many times, but I cannot seem to port those answers to my situation.
I have recently installed TeXLive on my Ubuntu 14.04 system. I did this using the install-tl.zip file from texlive.org.
When I try to compile just the basic TeXLive default article, it crashes on every package, giving me (just to pick the first one):
! LaTeX Error: File 'booktabs.sty' not found.
But I know booktabs.sty is on my system:
/usr/local/texlive/2016/texmf-dist/tex/latex/booktabs/booktabs.sty
I have the following lines at the end of my .bashrc:
PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
export PATH
MANPATH=$MANPATH:/usr/local/texlive/2016/texmf-dist/doc/man
export MANPATH
INFOPATH=$INFOPATH:/usr/local/texlive/2016/texmf-dist/doc/info
export INFOPATH
None of those lines point to the location of any of my .sty files, and I'm not sure what variable should.
Thank you for your help.
MANPATH. However, that's not the problem here, obviously. Can you compile a document on the command line? If not, what doeswhich pdflatexgive? (Substitute whichever command you use to compile e.g.which xelatexorwhich context.) If you can compile at the command line but not in your editor, which editor do you use? – cfr Sep 16 '16 at 01:24/usr/local, in which case you need to remove it but keep your package manager happy. The answers to the linked question explain the details. – cfr Sep 16 '16 at 01:26which pdflatexgive? Can you compile on the command line? – cfr Sep 16 '16 at 01:30pdflatex test.texThe problem seems to be with TeXWorks. – bigred_bluejay Sep 16 '16 at 01:33pdflatexwithout help. If not, you can deal with it then. – cfr Sep 16 '16 at 02:33.bashrc(and where did you copy those lines from? the INFO and MAN paths are not, as written, helpful). Although I have never used TeXworks, I wonder: what does 'seems to look at' mean in this context? Ifwhich latexreturns the right thing, what happens if you open an instance of TeXworks from that shell and try to compile a document? – jon Sep 16 '16 at 06:44/usr/localinstallation. The posts I linked to cover how to keep your package manager happy. When you install TeXWorks, Ubuntu will install a rudimentary TeX Live installation as well, unless you have installed a dummy package to satisfy it. – cfr Sep 16 '16 at 12:43/usr/share/. – bigred_bluejay Sep 16 '16 at 15:33which latexreturns/usr/bin/latex. Opening TeXworks via command line then opens an instance which finds the basic .sty files successfully. Unfortunately, the experiment is flawed, because before running that test, I had already implemented the answer below. TeXworks now works fine whether opened from command line or from the icon I have in my launcher. If you can shed some light on why my solution below works, I'd appreciate it. – bigred_bluejay Sep 17 '16 at 17:44