Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Except that it does not work...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Except that it does not work...
Authored by: hamarkus on Jan 05, '06 09:44:09AM

TeXShop does not update pdf files that are changed by an external application.

Opening a pdf file from Matlab with TeXShop (via 'system('open -a Texshop filename.pdf')) does not cause TeXShop to update the display. One first has to close the pdf file in TeXShop for any changes to become visible.

I wish I knew the (shell) command to close the file directly from Matlab.



[ Reply to This | # ]
Trying to use the script from Matlab
Authored by: hamarkus on Jan 05, '06 10:03:04AM

Just out of fun, I tried to open a pdf file from Matlab with this script:

system('open Reload_Preview_Document.scpt filename.pdf');

It opens first the script editor and then the pdf file in Acrobat, seconds later both programs collapse.



[ Reply to This | # ]
Except that it does not work...
Authored by: Spartacus on Jan 10, '06 02:18:43PM

And what is pdflatex, if not an external application?



[ Reply to This | # ]
Except that it does not work...
Authored by: ehmsen on Dec 02, '06 06:49:33AM

Try opening the preferences, select the Preview tab and check the box "Automatic Preview Update" under "External Editor" :-)



[ Reply to This | # ]