| 1 | ************************
|
|---|
| 2 | Duane M. Lee
|
|---|
| 3 | RM 1333
|
|---|
| 4 | RM Phone #: 854-6864
|
|---|
| 5 | dmlee@astro.columbia.edu
|
|---|
| 6 | Grad Student
|
|---|
| 7 | Astronomy
|
|---|
| 8 | 10/16/2006
|
|---|
| 9 |
|
|---|
| 10 | v1.0
|
|---|
| 11 |
|
|---|
| 12 | (Some contents are modified instructions via the Mathematica technical
|
|---|
| 13 | support FAQS which can be located at:
|
|---|
| 14 | http://support.wolfram.com/mathematica/systems/linux/general/fonterrors.html)
|
|---|
| 15 | ************************
|
|---|
| 16 |
|
|---|
| 17 | How to install mathematica fonts in your home directory
|
|---|
| 18 | for use by Mathematica via cunix account?
|
|---|
| 19 | -------------------------------------------------------
|
|---|
| 20 | First, check to see that access to Mathematica is available:
|
|---|
| 21 |
|
|---|
| 22 | 1) To access mathematica from terminal command line (CL), type:
|
|---|
| 23 |
|
|---|
| 24 | ssh username@cunix.columbia.edu -X
|
|---|
| 25 |
|
|---|
| 26 | This will remotely login you into your university account for which
|
|---|
| 27 | they possess a campus wide license for mathematica (the
|
|---|
| 28 | astronomy/astrophysics depts. are NOT included in "campus wide" - at
|
|---|
| 29 | least at the graduate level - I don't get either.) The "-X" allows you
|
|---|
| 30 | to display an GUI version of the application you are calling. By the
|
|---|
| 31 | way, a not very visually useful CL version of mathematica can be
|
|---|
| 32 | access by typing the command "math" at the CL.
|
|---|
| 33 |
|
|---|
| 34 | 2) After entering the appropiate passwords, type:
|
|---|
| 35 |
|
|---|
| 36 | mathematica
|
|---|
| 37 |
|
|---|
| 38 | If you do not get a xset error referring to missing font sets, you are
|
|---|
| 39 | good to go and you can proceed to "how to print out mathematica
|
|---|
| 40 | notebooks (.nb) and sections thereof?". However, if this is not the
|
|---|
| 41 | case read on.
|
|---|
| 42 |
|
|---|
| 43 | Downloading Fonts
|
|---|
| 44 | -----------------
|
|---|
| 45 | You need to go the mathematica website and download fonts for
|
|---|
| 46 | unix, linux, mac, or pc. Here is the prescription for a linux machine
|
|---|
| 47 | like the CWs in the CAL affiliated departments.
|
|---|
| 48 |
|
|---|
| 49 | Linux
|
|---|
| 50 | ------
|
|---|
| 51 | 3) Go to:
|
|---|
| 52 |
|
|---|
| 53 | http://support.wolfram.com/mathematica/systems/linux/general/latestfonts.html
|
|---|
| 54 |
|
|---|
| 55 | 4) Please unpack the fonts. Under Linux, your standard CW home font directory is
|
|---|
| 56 |
|
|---|
| 57 | /usr/.fonts
|
|---|
| 58 |
|
|---|
| 59 | 5) You will need to create a Mathematica directory in the above the location and
|
|---|
| 60 | place the fonts here. Please note that there will be Type1 and BDF subdirectories.
|
|---|
| 61 | (Note: There are three fonts sets that included in the linux fonts
|
|---|
| 62 | download however, there seems to be no use for the AFM set.)
|
|---|
| 63 |
|
|---|
| 64 | /usr/.fonts/Mathematica/Type1
|
|---|
| 65 |
|
|---|
| 66 | /usr/.fonts/Mathematica/BDF
|
|---|
| 67 |
|
|---|
| 68 | 6) In the above subdirectories, please make sure the file fonts.dir is here. If it
|
|---|
| 69 | does not exist, please create the file, as follows (Note:'cd' into each filepath
|
|---|
| 70 | listed above and use command below):
|
|---|
| 71 |
|
|---|
| 72 | mkfontdir
|
|---|
| 73 |
|
|---|
| 74 | 7) There are three ways to make the fonts available on your machine. First, we can
|
|---|
| 75 | use the xset command.
|
|---|
| 76 |
|
|---|
| 77 | The following commands will add the corresponding directories to the font path
|
|---|
| 78 | that X server uses.
|
|---|
| 79 |
|
|---|
| 80 | xset fp+ /usr/.fonts/Mathematica/Type1
|
|---|
| 81 |
|
|---|
| 82 | xset fp+ /usr/.fonts/Mathematica/BDF
|
|---|
| 83 |
|
|---|
| 84 | 8) Please then run the following, which will cause the X server to reread
|
|---|
| 85 | font databases.
|
|---|
| 86 |
|
|---|
| 87 | xset fp rehash
|
|---|
| 88 |
|
|---|
| 89 | 9) From here restart Mathematica (see steps 1,2), and you should be good to go!
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 | "How to print out mathematica notebooks (.nb) and sections thereof?".
|
|---|
| 93 | ---------------------------------------------------------------------
|
|---|
| 94 | 1a) First, if you can think of or know a way to print directly from the
|
|---|
| 95 | remote cunix server to a department printer, disregard this improvised
|
|---|
| 96 | version and contact me so that I can revise this help memo and junk
|
|---|
| 97 | the process for a more direct method. (Note: I have found that
|
|---|
| 98 | printing to a .ps file does not produce good results and I have not
|
|---|
| 99 | found a way to print to a .pdf.)
|
|---|
| 100 |
|
|---|
| 101 | 1b) As for the ad hoc method, download the latest version of MathReader
|
|---|
| 102 | for Mathematica at:
|
|---|
| 103 |
|
|---|
| 104 | http://www.wolfram.com/products/mathreader/linux.html
|
|---|
| 105 |
|
|---|
| 106 | Follow the instructions listed at the website above.
|
|---|
| 107 |
|
|---|
| 108 | 2) Once installed, you can create a simple .nb file from Mathematica and save to
|
|---|
| 109 | you cunix user directory. (Note: I find it easiler to window (desktop view) the
|
|---|
| 110 | process by having MathReader run in one window and Mathematica in another one.)
|
|---|
| 111 |
|
|---|
| 112 | 3) Then, one can set a "folder link" to the remote directory by going to the
|
|---|
| 113 | menu tool bar and selecting:
|
|---|
| 114 |
|
|---|
| 115 | Places -> Connect to Server
|
|---|
| 116 |
|
|---|
| 117 | Service Type: ssh
|
|---|
| 118 | Server: cunix.columbia.edu
|
|---|
| 119 |
|
|---|
| 120 | Optional information:
|
|---|
| 121 | Port:
|
|---|
| 122 | Folder: "whachamacallit" (or, whatever name you prefer)
|
|---|
| 123 | User Name: "your cunix username"
|
|---|
| 124 | Name to use for connection:
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | This should create a folder that accesses your cunix account after a
|
|---|
| 128 | password entry.
|
|---|
| 129 |
|
|---|
| 130 | 4) From here, drag you created .nb file to your desktop and open the
|
|---|
| 131 | file with MathReader.
|
|---|
| 132 |
|
|---|
| 133 | 5) Then, print the .nb file via a "lpr" printer that points to the your
|
|---|
| 134 | default printer and its settings found by going to menu tool bar and selecting:
|
|---|
| 135 |
|
|---|
| 136 | System -> Administration -> Printing
|
|---|
| 137 |
|
|---|
| 138 | Select the printer option in the print screen in MathReader and print.
|
|---|
| 139 | Ignoring error messages, close the error boxes and note that the printer icon
|
|---|
| 140 | should appear in the menu tool bar (desktop) to confirm that the file is printing.
|
|---|
| 141 |
|
|---|
| 142 | 6) From here, pick up print out and enjoy the power of Mathematica!
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 | For question, comments, or suggested corrections, please contact
|
|---|
| 146 | someone else (just kidding!) - contact me at: dmlee@astro.columbia.edu
|
|---|
| 147 | or call the office RM 1333 - 854-6864 and ask for Duane.
|
|---|
| 148 |
|
|---|
| 149 |
|
|---|