Contrary to what I said last week the hard link does not seem to serve the purpose of allowing us to browse our current bookmarks file. However, there is also a symbolic link available, and it does work properly.
The hard link is set up by using the ln command. The syntax is
ln source-path/[file] link-path/[link].
For example, instead of making a copy of your bookmark file, you can create a hard link, as follows:
Also contrary to what I said last week, you can set the permissions for a symbolic link so that your browser can read your current bookmarks file "through" the link. Here is what you need to do to set up a symbolic link.
<CENTER>
<TABLE ALIGN=RIGHT>
<tr>
<td>Upper Left</td>
<td>Upper Right</td>
</tr>
<tr>
<td>Lower Left</td>
<td>Lower Right</td>
</tr>
</TABLE>
</CENTER>
This is displayed as:
| Upper Left | Upper Right |
| Lower Left | Lower Right |
<CENTER>
<TABLE BORDER>
<tr>
<td>Upper Left</td>
<td>Upper Right</td>
</tr>
<tr>
<td>Lower Left</td>
<td>Lower Right</td>
</tr>
</TABLE>
</CENTER>
Here is how it is rendered:
| Upper Left | Upper Right |
| Lower Left | Lower Right |
Here is a table taken from the Rutgers library web-site.
<CENTER><TABLE BORDER=5 WIDTH=450 CELLPADDING=10 CELLSPACING=10>
<TR>
<TD ALIGN=MIDDLE><A HREF="general.shtml">
General Subjects</A><BR></TD>
<TD ALIGN=MIDDLE><A HREF="arthum.shtml">
Arts & Humanities</A><BR></TD>
<TD ALIGN=MIDDLE><A HREF="science.shtml">
Science, Technology & Medicine</A><BR></TD>
</TR>
<TR>
<TD ALIGN=MIDDLE><A HREF="socsci.shtml">
Social Sciences, Business & Law</A><BR></TD>
<TD ALIGN=MIDDLE><A HREF="gov.shtml">
Government Information</A><BR></TD>
<TD ALIGN=MIDDLE><A HREF="alpha.shtml">
Alphabetized list</A> of all indexes<BR></TD>
</TR>
</TABLE></CENTER>
You can view the Rutgers library
Subjects Page,
which contains the table.
If you view the source HTML for the Subjects Page, you'll notice the use of tables to position graphics. Also notice that the table is captioned by a centered header above it on the Subjects Page.
To make a caption part of the table, after the <TABLE> tag, add the pair of tags <CAPTION>...</CAPTION>. For instance,
<CENTER>
<TABLE BORDER>
<CAPTION>A very simple table</CAPTION>
<tr>
<td>Upper Left</td>
<td>Upper Right</td>
</tr>
<tr>
<td>Lower Left</td>
<td>Lower Right</td>
</tr>
</TABLE>
</CENTER>
Here's how it is rendered:
| Upper Left | Upper Right |
| Lower Left | Lower Right |
You can also choose to put the caption at the bottom of the table by using the attribute ALIGN with the value BOTTOM inside the caption start tag.
Of course, you need to put labels on the columns and rows of a
table. To label the columns, you put in a header row using the
tag pair <th>...</th> for each entry. For the table
above, we would need a new row at the top. It should have 3 entries,
(perhaps with the first entry left blank) because the rows are also going to
need labels, which requires a new entry in each row.
EXERCISE:In your test page, put an HTML version of the table
<--
http://crab.rutgers.edu/~karel/math-on-web/class3/lesson3/small-table.gif
-->
that we used in the third class as a LaTeX exercise. Try to get the alignment of material in the cells to match the picture. You may want to adjust the minimum space used between the cell boundary and the text inside. This is done with the CELLPADDING attribute, whose argument is always given in pixels.
For example, you can use the command \setlength to adjust various page parameters. For example, to make a very narrow page, you might use the command
\setlength{\textwidth}{3in}
This goes in the preamble. That is, it goes somewhere between
the \documentclass command and the begin{document} command.
Note that the first argument is actually a command name. You'll get an error
message if you try
\setlength{textwidth}{3in}
The units can be specified as in (inches),
pt (points: 72.27pt = 1in), pc (pica: 1pc = 12pt), mm (millimeters), which
are absolute measurements, and also as the relative units em and
ex, which are roughly the widths of the letters M and x, respectively,
in the current font.
\newcommand{\be}{\begin{equation}}
Then, to put LaTeX into the equation environment, you can just type
\be.
If a command already exists with the name you have chosen, LaTeX will
give you an error message. You can insist on your own version by
substituting \renewcommand for
At least, if you want to redefine a command, you should check
what the current definition is. To do this you go into
interactive mode. Then you can type
\show \commandname. Try this with the command
\vec. You should see that \vec is a
math accent. You could redefine it without much danger. However,
some commands are "primitive" TeX commands. They should not be
redefined. An example is \hangafter. Try showing it!
You can also type the \show \commandname command into
your document itself, and get the information in the log file and
on the monitor.
The real power of commands comes when you use arguments with them. Here is an example taken from Grätzer's book Math into LaTeX.
\newcommand{\Sum}[2][n]{#2_{1}+#2_{2}+\cdots+#2_{#1}}
The first argument is optional, and the second argument is not.
EXERCISE: To understand what this command does, create a LaTeX file and try out the following:
If you have done all the above activities, and there is still time left, here are some other activities you can do.
You should have time to start on these during class.
