Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've started using TexMaker as an alternative to emacs (I work on both ubuntu and mac and I want to have the same programs on both) for typesetting LaTeX. TexMaker is easy to use but there is one thing that I am not managing to do: I use the environment variable TEXINPUTS and BIBINPUTS to tell latex and bibtex of the location of my private .sty files and .bib files, since I use the same ones for many documents. On the Ubuntu machine, I need to start TexMaker from commandline (and not from the mouse-click menu) for it to "see" these environment variables, on the mac I don't know how to do that, so it never sees them.

I set the variables from my .bashrc file. Perhaps that is the mistake? should it be in .login or .profile (although my .profile sources .bashrc...)?

Maybe I can add these variables directly to TexMaker, but a) I don't know how and b) I'd rather not, if possible.

This question might be more appropriate to SO, but TexMaker is such a specific piece of software that I thought to ask here first.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If you want to set environment variables, you need to create ~/.MacOSX/environment.plist. See this for details.

You should also be able to open it from the terminal using open(1); this should cause it to inherent any environment variables in the usual way.

share|improve this answer
    
Thanks, I'll try this. –  Yossi Farjoun Oct 24 '10 at 13:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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