Download Addendum - Index of

Transcript
7. M ISCELLANEOUS
This document was processed on: \today\ at \printtime\ (\printtime*).
This document was processed on: December 13, 2006 at 15:45 (3:45 pm).
The punctuation between the hours and minutes is \hmpunct which defaults to a colon
(:). The macros \amname and \pmnane hold the abbreviations for ante meridiem and post
meridiem, respecitively; the defaults are ‘am’ and ‘pm’.
According to the Chicago Manual of Style [CMS93] there should be no punctuation between the hours and minutes in the 24 hour system. For the 12 hour system it recommends
that small caps be used for the divisions of the day (e.g., A . M . and P. M .) and also that the
American practice is to use a colon as the separator between hours and minutes whereas
the English practice is to use a period (known to the English as a ‘full stop’). I don’t know
what the traditions are in other orthographies.
The \quarkmarks declaration uses \printtime, so be careful if you change it.
Nicola Talbot’s datetime package [Tal06] provides a much more comprehensive collection of styles for printing the time; also for dates.
V ERTICAL CENTERING
The manual describes one method for centering text vertically. The new vplace environment provides a simpler way.
\begin{vplace}[hnumi] text \end{vplace}
The contents of the vplace environment are vertically centered. The optional hnumi
argument can be used to specify the ratio of the upper space to the lower space. You can
put other text on the page above or below the centered text. The environment may be
useful for title pages.
7.2
For package writers
The facilities described in this section are for anyone to use but I suspect that they may be
most useful to package developers.
E MULATING PACKAGES
\EmulatedPackage{hpackagei}[hdatei]
\EmulatedPackageWithOptions{hoptionlisti}{hpackagei}[hdatei]
These commands are for package writers; they are based on a conversation with Donald
Arseneau on CTT. They fool LATEX into thinking that the hpackagei has already been loaded
so it won’t try loading it again. These are probably only useful if your package includes
the actual code for hpackagei.
memoir does include code from several packages and uses a similar internal command
to ensure that the packages are not loaded following some later \usepackage command.
The names of the emulated packages are written to the log file. At the time of writing
the emulated packages are: abstract, appendix, array, booktabs, ccaption, chngcntr, crop,
dcolumn, delarray, enumerate, epigraph, framed, ifmtarg, ifpdf , index, makeidx, moreverb,
needspace, newfile, nextpage, pagenote, patchcmd, parskip, setspace, shortvrb, showidx,
tabularx, titleref , tocbibind, tocloft, verbatim, and verse. As well as the emulated packages
54