The bottom line is that TeXworks doesn't recognize my environment variables, but the command line compile commands (pdflatex and bibtex) do just fine.
I'm running Linux Mint 17 KDE, and I installed texlive-full and texworks through the package manager. I use Dropbox, and share files with others, so it's crucial to collect files in other, central locations (e.g. a .bib file that is used by many projects).
On a previous machine, running Mint 13, the solution was to set the environment variables TEXINPUTS, LATEXINPUTS, BIBINPUTS, and BSTINPUTS by putting these four lines into my .bashrc file:
export TEXINPUTS=".//:/home/my_user_name/Desktop/Dropbox/latex_files/tex//:$TEXINPUTS"
export LATEXINPUTS=".//:/home/my_user_name/Desktop/Dropbox/latex_files/tex/latex//:=:$LATEXINPUTS"
export BSTINPUTS=".//:/home/my_user_name/Desktop/Dropbox/latex_files/bibtex/bib//:$BIBINPUTS"
export BIBINPUTS=".//:/home/my_user_name/Desktop/Dropbox/latex_files/bibtex/bst//:$BSTINPUTS"
This worked perfectly on my old system. But now, TeXworks doesn't seem to find these paths. However, I know the environment variables are being set properly, because if I use the command line tools (pdflatex and bibtex) everything works perfectly.
I searched around, and couldn't find this exact issue. The closest was this question: TeXworks doesn't see packages installed by tlmgr. But that wasn't helpful. As suggested in that thread, I tried compiling from TeXworks a one line file containing \RequirePackage{array}\stop and the results from TeXworks and the command line versions are identical. Both report
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.9.12)
and also have the line /usr/share/texlive/texmf-dist/tex/latex/tools/array.sty in them, so that shouldn't be an issue. Futhermore, the path indicated in that thread /usr/local/texlive/2013/bin/x86_64-linux is empty on my computer.
Please help. What can I do to get TeXworks to find these paths? For what it's worth, I tried installing Kile, which I am not familiar with, and it had the same problem.
Thanks.
Edit: I tried running kpsewhich on a .sty file that TeXworks couldn't find, and of course kpsewhich reported the correct location. I guess this isn't surprising since the command line latex versions work.
bstetc. in yourtexmf-home, try setting a link fromtexmfhometo your Dropbox folder. But i have no idea if this is gonna work. It's just a pretty wild guess. – Johannes_B Sep 12 '14 at 20:30.profile, log out and log in again. If you start texworks from the command line it will know the setting from bashrc – daleif Sep 12 '14 at 21:29