Hi.
I'm new to using both latex and TextMate and am trying to modify the environmental variables that the pdftex engine sees when it is typesetting my document.
So far I have tried modifying my ~/.profile and /etc/profile to include modified $TEXINPUT, $BSTINPUT environmental variables without any luck.
I have also tried adding these variables to the environmental variables area of the general TextMate Preferences but no luck there either.
I have also tried to find out if I could possibly give the tex engine the information via a command similar to the way the master files are designated (i.e. %! variable = ....) but no luck there either.
Many thanks.
Dan
On Oct 24, 2008, at 3:32 AM, Dan Lussier wrote:
I'm new to using both latex and TextMate and am trying to modify the environmental variables that the pdftex engine sees when it is typesetting my document.
So far I have tried modifying my ~/.profile and /etc/profile to include modified $TEXINPUT, $BSTINPUT environmental variables without any luck.
I think it's TEXINPUTS, not TEXINPUT. The same for BIBINPUTS.
I have also tried adding these variables to the environmental variables area of the general TextMate Preferences but no luck there either.
TextMate prefs are the correct place to add these. TextMate commands do not get the shell environment any longer.
—Alex
Thanks for the info. I guess I assumed that it was TEXINPUT as I have done in the past for configuring the shell to process LaTex from the command line. I would suggest that this be more clearly noted in the TM documentation so that this type of confusion can be avoided in the future.
Also - when I was trying to implement TEXINPUTS I initially had a problem that my effort to add to what I assume is an existing variable within TM simply overwrote the whole thing. The result was that pdftex was no longer finding even the simplest package. Again, contrary to what I have done in the shell the typical bash shell syntax of $VAR:[additon to var] didn't work at all. I had success though when I found the page (link below) on nabble that indicated that to append to existing variables you need to have a leading colon on the path like :[additoin to var]. This is another point that would be good to include more clearly in the TM documentation.
http://www.nabble.com/latex-svn:-TEXINPUTS-not-respected-td8763938.html
I had just one more related follow up question:
- Is there any way other than redefining the variables from within the preferences dialogue to control the $TEXINPUTS variable on a per file or per TM project basis? This would be handy because often times latex projects will require different paths to search along, particularly in terms of graphics.
Thanks again.
Dan
On 24-Oct-08, at 9:47 AM, Alex Ross wrote:
On Oct 24, 2008, at 3:32 AM, Dan Lussier wrote:
I'm new to using both latex and TextMate and am trying to modify the environmental variables that the pdftex engine sees when it is typesetting my document.
So far I have tried modifying my ~/.profile and /etc/profile to include modified $TEXINPUT, $BSTINPUT environmental variables without any luck.
I think it's TEXINPUTS, not TEXINPUT. The same for BIBINPUTS.
I have also tried adding these variables to the environmental variables area of the general TextMate Preferences but no luck there either.
TextMate prefs are the correct place to add these. TextMate commands do not get the shell environment any longer.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Oct 24, 2008, at 7:03 AM, Dan Lussier wrote:
Thanks for the info. I guess I assumed that it was TEXINPUT as I have done in the past for configuring the shell to process LaTex from the command line. I would suggest that this be more clearly noted in the TM documentation so that this type of confusion can be avoided in the future.
Also - when I was trying to implement TEXINPUTS I initially had a problem that my effort to add to what I assume is an existing variable within TM simply overwrote the whole thing. The result was that pdftex was no longer finding even the simplest package. Again, contrary to what I have done in the shell the typical bash shell syntax of $VAR:[additon to var] didn't work at all. I had success though when I found the page (link below) on nabble that indicated that to append to existing variables you need to have a leading colon on the path like :[additoin to var]. This is another point that would be good to include more clearly in the TM documentation.
http://www.nabble.com/latex-svn:-TEXINPUTS-not-respected- td8763938.html
I had just one more related follow up question:
- Is there any way other than redefining the variables from within
the preferences dialogue to control the $TEXINPUTS variable on a per file or per TM project basis? This would be handy because often times latex projects will require different paths to search along, particularly in terms of graphics.
Project files can have their own environment variables (you can set them up from the project drawer). Though a lot of this I believe will change for TM 2.0, when that comes out.
Thanks again.
Dan
On 24-Oct-08, at 9:47 AM, Alex Ross wrote:
On Oct 24, 2008, at 3:32 AM, Dan Lussier wrote:
I'm new to using both latex and TextMate and am trying to modify the environmental variables that the pdftex engine sees when it is typesetting my document.
So far I have tried modifying my ~/.profile and /etc/profile to include modified $TEXINPUT, $BSTINPUT environmental variables without any luck.
I think it's TEXINPUTS, not TEXINPUT. The same for BIBINPUTS.
I have also tried adding these variables to the environmental variables area of the general TextMate Preferences but no luck there either.
TextMate prefs are the correct place to add these. TextMate commands do not get the shell environment any longer.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Oct 24, 2008, at 1:03 PM, Dan Lussier wrote:
Thanks for the info. I guess I assumed that it was TEXINPUT as I have done in the past for configuring the shell to process LaTex from the command line. I would suggest that this be more clearly noted in the TM documentation so that this type of confusion can be avoided in the future.
Also - when I was trying to implement TEXINPUTS I initially had a problem that my effort to add to what I assume is an existing variable within TM simply overwrote the whole thing. The result was that pdftex was no longer finding even the simplest package. Again, contrary to what I have done in the shell the typical bash shell syntax of $VAR:[additon to var] didn't work at all. I had success though when I found the page (link below) on nabble that indicated that to append to existing variables you need to have a leading colon on the path like :[additoin to var]. This is another point that would be good to include more clearly in the TM documentation.
This isn't really a feature of TextMate though… It's another bizarre feature of TeX engines :).
It is documented in man pdflatex.
TEXINPUTS Search path for \input and \openin files. This should probably start with ``.'', so that user files are found before system files. An empty path component will be replaced with the paths defined in the texmf.cnf file. For example, set TEXINPUTS to ".:/home/usr/tex:" to prepend the current directory and ``/home/user/tex'' to the standard search path.
—Alex