Text Editors
While an editor will be needed, you will not need to master the use of
one. The files you will use in Math 211 are relatively small, and
easy to create. The most common use of an editor in this course is
for creating MATLAB m-files.
The builtin MATLAB editor
For this course the built in MATLAB
editor will serve you well. The use of this editor is explained in
Chapter 4 of the Manual (third edition).
Other editors
There are several editors available for use in UNIX. Probably the
easiest to use is aXe. The one that provides the most flexibility,
although it is not as easy to use is GNU Emacs. You can start either
of these by entering axe or gnuemacs at the UNIX
prompt. If you are working directly at an Owlnet workstation, you can
also select an editor from the X Applications menu. This
menu appears when you click the right mouse button while the cursor is
over the background of the monitor screen.
If you are using a PC or a Mac, it is important to remember that a
word processing program is not the same as an editor. A word
processor, such as Microsoft Word, can be used as a text editor if you
remember to systematically save the files as text files. There are a
wide variety of text editors available for both the PC and the Mac.
Many of these are free, most notably gnuemacs. Others are available at a
small cost as shareware.
aXe
When you start aXe, a small window will open with several
partitions. At the bottom there are buttons labeled Quit and
Help. Clicking the first of these will result in the
application aXe disappearing. Clicking the Help button will
bring up a window which explains in some detail how aXe works. It is
worth spending some time reading this.
At the top there will be a relatively large square with the word
Edit over a field of axes. You should click the mouse on
this square to start an editing session. When you do, an edit window
will appear. There are five parts to this window. The first is the
Filename line, which will contain the name of the file you
are working on. At first, when the file has not been assigned a name,
the words No name appear on this line. The second is called
the Information Bar. Here will be displayed various items of
interest to the user. The third is the Menu Bar, which
contains 13 menus. The options that are available in these menus give
aXe a lot of flexibility. However, it is possible to use aXe
effectively only knowing the options in the File menu.
The next, relatively large area of the aXe window is the Editing
Buffer, and it is here that you enter the text you want in your
file. You have to have the mouse pointer located in this buffer in
order to enter text. This buffer is not quite like a word processor,
but there are similarities.
- You can move around a document using the cursor keys on the
right hand side of your keyboard.
- You can place the cursor by moving the mouse and clicking the
left button.
- You can delete the character to the left of the cursor
using the delete key.
The fifth area of the aXe window is the Minibuffer at the
very bottom. For the time being you do not have to worry about this
at all.
Once you have entered some text in the Editing Buffer, you
will want to save it in a file. To do this go to the File menu
and hold down the left mouse button. The entire menu will appear.
You want the Save or the Save As options. Simply move the mouse down
until the option you want is highlighted, and then release the mouse
button. A new window will appear entitled file save. You will
be interested in the text entry window which has a caret (^) in it.
Here you type the name you want to give the file. Finally click the
button labeled select. You will notice that the name now
appears in the Filename line. There will be some other
information in front of the name you chose. What aXe gives you here
is the entire directory information for the file.
Once you have saved a couple of files, you will want to edit them from
time to time. To open a file, use the Load option from the
File menu. You will be presented with the same window you saw
when you saved the file, except that now it has the title file
load. You should be able to find the name of your file in the top
portion of this window. To load it into aXe, you double click
the left mouse button after moving the mouse to the required file.
Finally to quit aXe, simply click the Quit button on the small
aXe window.
More information on
aXe is available.
GNU Emacs
When you start GNU Emacs, a new window will open with two paragraphs of
information about GNU Emacs. There is a tutorial that you can invoke
by depressing the control and h keys simultaneously
(we will abbreviate this and similar commands by C-h),
followed by the t key. If you will be using an editor a lot,
it is worth spending some time learning how to use GNU Emacs, but for
this course it will suffice to know a few simple things.
For example, all of the bullets in the description of aXe apply to
GNU Emacs as well as to aXe. Here are some more aspects that you will
need to be aware of.
- To open a file (whether it is a new file or one that already
exists), enter C-x C-f and
then type the filename. This will be entered on what is called the
command line at the very bottom of the GNU Emacs window so you can check
that it is correct. If the file is a new one, a new, blank window will be
opened. If a file with that name already exists, then that file will be
opened and presented in the window for you, ready for you to begin
editing it.
- To save a file to the filename on the command line, simply
type C-x C-s. To save a file to a different filename
type C-x C-w, and then type the new filename.
- To exit GNU Emacs, type C-x C-c.
GNU Emacs is a very powerful editor. It has an incredible number of
bells and whistles. In fact, it is programmable, so if you do not
like the way it works you can change it. On the other hand, it is not
necessary to learn all of the bells and whistles to use it.
More information on
GNU Emacs is available. The Gnu
Emacs Reference Card provides a listing of the most common emacs
commands. You might print this in order to refer to it often.
Last modified: Sun Aug 01 16:37:33 Central Daylight Time 1999