Part IV |
$
\begin{tabular}
a & b & c \\
d & e & f
\end{tabular}
$
Solution: use a text editor to remove the dollar signs surrounding
the tabular.
$\frame{$math-stuff$}$
Note that this is \frame, not the
graphics container \FRAME; and “math-stuff” is any math-mode material. This is math nested within math
(two sets of $'s); the outer nesting is unnecessary.| Counter | Description | |
| weekday | identifies the day-of-the-week, with Sunday = 0 (0 – 6) | |
| day | 1- or 2-digit representation of the day-of-the month (1 – 31) | |
| month | 1- or 2-digit representation of the month, with January = 1 (1 – 12) | |
| year | 4 digits (!) | |
| hour | 24-hour, 2-digit representation of the current hour (00 – 23) | |
| Hour | 12-hour, 2-digit representation of the current hour (00 – 12) | |
| minute | 2-digit representation of the current minute (00 – 60) | |
| second | 2-digit representation of the current second (00 – 60) | |
| time | minutes since midnight (00 – 86400) | |
| Command | Description | |
| \ampm | string, containing either AM or PM depending on the time (intended for use with Hour). This command is not redefined in the French support (would one say, e.g. 04:20:55 du matin in French?). | |
| \timezone | string, containing the current time-zone, or empty if the time-zone is unknown. With xdate.exe the time-zone is obtained from the TZ environment variable; if this isn't set, then the string will be empty. With xxdate.exe the information is obtained from built-in Windows functions: this is less likely to be empty, but it can happen. xxdate.exe is the default. | |
| \date | this is an approximation of the Unix date function. It produces a string something like Fri Dec 10 22:47:12 1999. | |
\QTP{preface}
Preface
and the intent is to have the system define a new macro based on
the first argument (preface, so we'd be defining the \preface macro) whose argument is to be the next word
in the document (here, Preface). If we were writing this as a LATEX macro, we'd say \preface{Preface}. The
fact that Preface is not in braces makes the construct a TEX
— not LATEX — macro, and telling Hevea to extract the next word and
treat it as an argument, even though it's not in braces, is subtle.10 We need to do two things: tell Hevea to form the
macro \preface from the first argument, and
then tell it to look for the next word and consider that to be the argument
to \preface.
\def\QTP#1#2{\csname #1\endcsname #2}
Once this has been parsed, we will have defined the \preface macro.
\def\preface#1#2 {\chapter*{#1#2}}
Here, the space between `#2' and the following
open-brace ({) is crucial: without it, the macro will fail.
In the definition itself, we're just putting the two parts together again (#1#2) and using the combined text as an argument to \chapter*. Armed with this, you should be able to
handle other instances of the \QTP macro.