[OS X TeX] ai, eps, pdf and TeXShop

LAURENS Jérôme jerome.laurens at u-bourgogne.fr
Fri Oct 19 18:07:20 CEST 2007


Le 19 oct. 07 à 14:17, Themis Matsoukas a écrit :

> I noticed that illustrator files with the extension ai can be  
> displayed in preview.app but not in TS (in TS, ai files open as  
> text). I also noticed that if I save an illustrator file in ai  
> format and then manually change the extension to pdf, TS opens it  
> with no trouble (with the correct bounding box, too). Hence my  
> question: is it possible to teach TS to treat files with the  
> extension ai as if they were pdf? This would save me a lot of time  
> because I normally save illustrator files as eps, then have TS do  
> the conversion to pdf (if I save to pdf in illustrator, I get a  
> graphic whose bounding box is the size of the page, not the size of  
> the graph).
>
> Themis

you can try to edit the Info.plist file hidden in the TeXShop.app bundle
find something like

		<dict>
			...
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>pdf</string>
			</array>
			....
  		</dict>

then change to
		<dict>
			...
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>pdf</string>
				<string>ai</string>
			</array>
			....
  		</dict>

save in UTF8 and relaunch TS.



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list