Astronomical Tools/Software: mathematicafonts.txt

File mathematicafonts.txt, 5.0 KB (added by dmlee@…, 19 years ago)

Mathematica fonts and printing from cunix server

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