Prev: Norton Internet Security for Mac?
Next: Installing a new internal HD on an Intel iMac - Questions!
From: AES on 21 Jul 2010 16:05 The post is a query about a proposed workaround for resolving font difficulties with PDF documents produced using Mathematica and then accessed from other apps on the Mac. Details: It's commonplace for people to prepare graphics and even full documents using Mathematica on Mac OS X machines and then transfer these documents to PDF files on the Mac, using various "Export[ ]" capabilities available in Mathematica. It's also not unknown for there to be font difficulties when these files are opened or printed on the Mac using Preview or the Mac versions of Adobe apps. A recent post on the Mathematica newsgroup suggests that these difficulties can be avoided or bypassed by executing the Mathematica code appended below, which reshuffles the font folders on a Mac in a fashion which I haven't yet fully digested (or attempted). I have no reason to doubt this code; but I'd feel more secure trying it myself if more knowledgeable Mac OS gurus on this group would have a look at it and see if it seems OK. (I'd be trying it initially on a Tiger system.) The proposed code: (to be executed just once, I think) [code] With[{temp = Directory[]}, If[ $Failed =!= SetDirectory["~/Library/Application\ Support/Adobe/Fonts/"], If[! MemberQ[FileNames[], "Mathematica"], CreateDirectory["Mathematica"]; Run["/bin/ln -s " <> $InstallationDirectory <> "/SystemFiles/Fonts/Type1 " <> $HomeDirectory <> "/Library/Application\\ Support/Adobe/Fonts/Mathematica/"]; SetDirectory["Mathematica"]; Print[Style["Created symbolic link\n", Green], FileNames[], Style["\nin folder\n", Green], Directory[]], Print[Style[ "Nothing to be done, folder already exists.\nTo re-install, first remove\n", Red], Directory[] <> "/Mathematica"]]; SetDirectory[temp]] [/code]
From: Jim Gibson on 21 Jul 2010 17:21 In article <siegman-2EDF7E.13052821072010(a)sciid-srv02.med.tufts.edu>, AES <siegman(a)stanford.edu> wrote: > The post is a query about a proposed workaround for resolving font > difficulties with PDF documents produced using Mathematica and then > accessed from other apps on the Mac. > > Details: > > It's commonplace for people to prepare graphics and even full documents > using Mathematica on Mac OS X machines and then transfer these documents > to PDF files on the Mac, using various "Export[ ]" capabilities > available in Mathematica. > > It's also not unknown for there to be font difficulties when these files > are opened or printed on the Mac using Preview or the Mac versions of > Adobe apps. > > A recent post on the Mathematica newsgroup suggests that these > difficulties can be avoided or bypassed by executing the Mathematica > code appended below, which reshuffles the font folders on a Mac in a > fashion which I haven't yet fully digested (or attempted). > > I have no reason to doubt this code; but I'd feel more secure trying it > myself if more knowledgeable Mac OS gurus on this group would have a > look at it and see if it seems OK. (I'd be trying it initially on a > Tiger system.) > > The proposed code: (to be executed just once, I think) > > [code] > With[{temp = Directory[]}, > If[ $Failed =!= SetDirectory["~/Library/Application\ > Support/Adobe/Fonts/"], > If[! MemberQ[FileNames[], "Mathematica"], > CreateDirectory["Mathematica"]; > Run["/bin/ln -s " <> $InstallationDirectory <> > "/SystemFiles/Fonts/Type1 " <> $HomeDirectory <> > "/Library/Application\\ Support/Adobe/Fonts/Mathematica/"]; > SetDirectory["Mathematica"]; > Print[Style["Created symbolic link\n", Green], FileNames[], > Style["\nin folder\n", Green], Directory[]], > Print[Style[ > "Nothing to be done, folder already exists.\nTo re-install, first > remove\n", > Red], Directory[] <> "/Mathematica"]]; > SetDirectory[temp]] > [/code] I am not too sure about the syntax, but it looks like this program is creating the soft link directory: ~/Library/Application Support/Adobe/Fonts/Mathematica that points to the existing directory <Mathematica>/SystemFiles/Fonts/Type1 where <Mathematica> stands for the folder where Mathematica is installed (probably "/Applications/Mathematica"). The purpose is probably to allow Adobe Reader to find the fonts used by Mathematica. Creating a soft link directory is pretty benign and does not touch any existing file or folder. You can undo this addition with the command: rm ~/Library/Application\ Support/Adobe/Fonts/Mathematica -- Jim Gibson
From: Wes Groleau on 21 Jul 2010 19:11 On 07-21-2010 16:05, AES wrote: > It's commonplace for people to prepare graphics and even full documents > using Mathematica on Mac OS X machines and then transfer these documents > to PDF files on the Mac, using various "Export[ ]" capabilities > available in Mathematica. > > It's also not unknown for there to be font difficulties when these files > are opened or printed on the Mac using Preview or the Mac versions of > Adobe apps. Does Mathematica have a Print option? If so, Print to PDF and check whether that has the same problem. -- Wes Groleau Film Review: The Blue Butterfly http://Ideas.Lang-Learn.us/russell?itemid=1565
|
Pages: 1 Prev: Norton Internet Security for Mac? Next: Installing a new internal HD on an Intel iMac - Questions! |