Hello,
A while ago, I was told that I could specify what latex command get run when I "rebuild" a latex file using the "TM_LATEX_COMPILER" project option. Unfortunately the only place I found where I can specify shell variables is in the global preferences, and I would like of course such variables to be project dependent. Is there a way to do so?
Another thing I would like is to keep the "compiling" window open, so that I can look at the warnings and messages (right now it closes after compilation). I could not find this window in the "Window" menu. How can I keep it open?
Thanks,
Alan
-- Alan Schmitt http://alan.petitepomme.net/
The hacker: someone who figured things out and made something cool happen. .O. ..O OOO
On 3/10/2006, at 14:32, Alan Schmitt wrote:
A while ago, I was told that I could specify what latex command get run when I "rebuild" a latex file using the "TM_LATEX_COMPILER" project option. Unfortunately the only place I found where I can specify shell variables is in the global preferences, and I would like of course such variables to be project dependent. Is there a way to do so?
There are in fact two ways to do this.
I recommend you create a file named .textmate_init in your project folder and let it contain:
export TM_LATEX_COMPILER=«whatever»
The other way is to have this in the project file, see [1].
[1] http://macromates.com/textmate/manual/ environment_variables#project_dependent_variables
Another thing I would like is to keep the "compiling" window open, so that I can look at the warnings and messages (right now it closes after compilation). I could not find this window in the "Window" menu. How can I keep it open?
By default it does not close the window on errors. Are you using an external previewer? Did you change some of the default options? Or maybe you’re referring to warnings?
You can set TM_LATEX_ERRLVL to 0 to always have the window stay.
On 3 oct. 06, at 14:43, Allan Odgaard wrote:
There are in fact two ways to do this.
I recommend you create a file named .textmate_init in your project folder and let it contain:
export TM_LATEX_COMPILER=«whatever»
The other way is to have this in the project file, see [1].
[1] http://macromates.com/textmate/manual/ environment_variables#project_dependent_variables
Ah, good to know.
By default it does not close the window on errors. Are you using an external previewer? Did you change some of the default options? Or maybe you’re referring to warnings?
I meant warnings.
You can set TM_LATEX_ERRLVL to 0 to always have the window stay.
Thanks, and thanks to Haris as well.
Alan
-- Alan Schmitt http://alan.petitepomme.net/
The hacker: someone who figured things out and made something cool happen. .O. ..O OOO
On Oct 3, 2006, at 8:32 AM, Alan Schmitt wrote:
Hello,
A while ago, I was told that I could specify what latex command get run when I "rebuild" a latex file using the "TM_LATEX_COMPILER" project option. Unfortunately the only place I found where I can specify shell variables is in the global preferences, and I would like of course such variables to be project dependent. Is there a way to do so?
If you have created an actual project, i.e. a .tmproj file, as opposed to dragging a folder onto TextMate, then in the project drawer there is a little "info" button at the bottom left, which you have to click. There need to be no files selected in the drawer at the moment. (http://macromates.com/textmate/manual/ environment_variables#project_dependent_variables)
Another thing I would like is to keep the "compiling" window open, so that I can look at the warnings and messages (right now it closes after compilation). I could not find this window in the "Window" menu. How can I keep it open?
From section 3.4 of the LaTeX Bundle Help File:
The environment variable TM_LATEX_ERRLVL controls the behavior of the HTML window in the absence of critical errors in the typesetting step. It has three possible values: 2: If a document was successfully built, it will jump directly to the preview. This is the default. 1: If there are any warnings, these are shown, together with a link to the preview. 0: Halt on any errors or warnings, a link to the preview is only included if the document was built. If the document could not be built, then the error messages are always shown regardless of the value of TM_LATEX_ERRLVL.
Thanks,
Alan
Haris