Hi, I'm new to TextMate, I really like it and am using it mainly for writing with latex. for TM_LATEX_VIEWER I had usually set texniscope until I ran into problems with texniscope in the combination with my custom made bibliography style (which uses babel). Then I switched TM_LATEX_VIEWER to preview, and that works ok, except, that I have to close it before I compile latex. If I don't close it the changes made with the new compilation won't show up.
Is there somewhere in preview the option to "refresh the view", so that the changes in the pdf file appear? Is it possible to use Acrobat Reader or Professional or any other program as pdf viewer with TextMate, and what would be the correct value for TM_LATEX_VIEWER? (side note: I looked in google, and all I have found is TextMate in combination with preview or texniscope... why is that?)
One could argue, I should change/make a new bibliography style file, in order to make TextMate work with Texniscope, however I would like to keep it for now, if I could resolve the "refresh" issue with a pdf viewer. Or would you say texniscope is the way to go?
Thanks for your help, Claus
Hello Claus,
until I ran into problems with texniscope in the combination with my custom made bibliography style (which uses babel).
What exactly is the problem here?
Is there somewhere in preview the option to "refresh the view", so that the changes in the pdf file appear?
You could write an applescript that causes Preview to close the pdf and then open it again; using this script as the command called from Textmate.
Dan
On Jun 29, 2006, at 7:06 AM, Claus Haslauer wrote:
Is there somewhere in preview the option to "refresh the view", so that the changes in the pdf file appear?
Preview has a Revert command under its File menu which will read the current version of the document off the disk. It's what I use when editing/updating PDF documents from LaTeX. It doesn't have a keystroke equivalent, but you could add one in the Keyboard Preference Pane.
Preview doesn't seem to be AppleScriptable (it doesn't show up in the list when I do an Open Dictionary in Script Editor), so you'd probably have to do some GUI scripting if you wanted to automate the Revert command.
-- Dr. Drang
On Jun 29, 2006, at 9:03 AM, Dr. Drang wrote:
Preview has a Revert command under its File menu which will read the current version of the document off the disk. It's what I use when editing/updating PDF documents from LaTeX. It doesn't have a keystroke equivalent, but you could add one in the Keyboard Preference Pane.
Preview doesn't seem to be AppleScriptable (it doesn't show up in the list when I do an Open Dictionary in Script Editor), so you'd probably have to do some GUI scripting if you wanted to automate the Revert command.
http://www.red-sweater.com/blog/150/minimal-scriptability
In any case, Preview will certainly not support pdfsync. ASAIK texniscope is the only external viewer right now that supports it.
To the OP, the name you need to set the variable to if I recall correctly is the name of the executable. So it is “texniscope” because the application is called Texniscope.app, and similarly it's “preview” because the application is Preview.app. So you could try some similar variation with Adobe Reader.
-- Dr. Drang
Haris