Up: Home
Math on the Web: Class 10
--Putting LaTeX on the Web--
--Introduction to JavaScript--
REMINDER. If you have not done so already, please finish
and hand in the assigned exercises from last week:
- Draftcopy: draft
water-mark
- Picins: text flow
around boxes
- Exam Package (from Hirschhorn)
More about using the history list in UNIX
Recall the syntax for the history reference:
!event:words:modifiers
In the example,
!la:p
the event was "la", there was no "words" argument, and the
modifier was "p", which "prints" the command
without executing
( by "prints", here, one means "displays on the terminal").
The effect of running the command is to search the history list
for the most recent command line that started with the
string "la" and simply to display that command.
Recall what the terms mean:
- event
- Here "event" means "command"
- words
- (Optional)If given, select words from the command, else use all words
- modifiers
- (Optional)If given, modifies selected words or event
Here is a variant of the example we had last time (Notice that the usual
!! reference to the previous command gets shortened to just
! in these examples).
% more some-file-with-a-long-name
% emacs !$ &
% mail friend < !*
Here !$ gives the last argument of the previous
command, whereas !* gives all arguments of the previous
command. Since there is only one argument, !$ and
!* have the same effect. However,
% dvips somefile -o somefile.ps
% latex !*
is going to generate an error message. To refer to the first argument
of the last command you can use !^. To refer to the n-th
argument of the most recent command containing enc you can use
!?enc?:n. The n is called a "word designator",
and is an example of the "words" part of the command syntax.
!event:words:modifiers
In last week's tips we saw the p example of a modifier.
Another is the substitution modifier s.
Example:
% long-command | more process something and view the result
% mail friend < urgent.txt
% !-2:s/more/lpr do same process and print the result
long-command | lpr (tcsh prints the command)
For modifying part of the previous command there is an abbreviated form:
^old^new. Thus,
% mre somefile.txt misspelled "more"
% ^m^mo replace "m" by "mo"
more somefile.txt
- Practice searching for information
- Learn to post LaTeX documents on your web page
- Start learning about Javascript
Find information on each of the following topics. You may do
this as homework if you prefer, due Wednesday, December 8. Print out a
sample of what you find, and hand in the printed copy with a
note as to the URL for what you found, and your name.
- Artificial Life
- Cryptography
- Symbolic Computation
We discuss how to create documents that are suitable for linking
to your basic home page. You will create linkable versions of
your essay on completing the square and will link them to your
basic home page.
Finished?
If you have completed all the above activities,
and there is still time left, here are some other activities you can do.
- Help someone else.
- Think about the projects.
You probably will have time to start these during class.
- View each of the four links that you set up during class (to
the LaTeX source file, the DVI file, the PDF file, and the PostScript
file), and write a brief description of how each link worked.
Be sure to say what machine and browser you used.
- Starting from one of your graphics test files, create and post
the source file, PDF file, DVI file and PostScript file, as well as
linking to files created by LaTeX2HTML.
- Write a description of how these new links work with a browser.
- Continue to work on project B.
/ Math on the Web /
Projects /
Email:
Martin L. Karel