| 1 |
%% Copyright 1991 Paul Ginsparg |
| 2 |
% |
| 3 |
% This work may be distributed and/or modified under the |
| 4 |
% conditions of the terms of the Creative Commons |
| 5 |
% Attribution 3.0 Unported Licence which may be found at |
| 6 |
% http://creativecommons.org/licenses/by/3.0/legalcode |
| 7 |
% and described in human readable form at |
| 8 |
% http://creativecommons.org/licenses/by/3.0/ |
| 9 |
% The attribution requirement may be satisfied by including |
| 10 |
% an acknowledgement that a work is "based on harvmac by |
| 11 |
% Paul Ginsparg". |
| 12 |
% |
| 13 |
% Copyright and licensing information added with the |
| 14 |
% permission of the author by Clea F. Rees on 2008/12/20. |
| 15 |
% |
| 16 |
\input harvmac |
| 17 |
|
| 18 |
\Title{HUTP-91/A000}{This is the Template} |
| 19 |
|
| 20 |
%For more complicated situations, substitute for {\it either\/} argument: |
| 21 |
%\Title{\vbox{\baselineskip12pt\hbox{HUTP-88/A000}\hbox{SLAC-PUB 88-001} |
| 22 |
% \hbox{photocopy at own risk}}} |
| 23 |
%{\vbox{\centerline{This title is too long to fit} |
| 24 |
% \vskip2pt\centerline{comfortably on one line*}}} |
| 25 |
% \footnote{}{*optional footnote on title} |
| 26 |
|
| 27 |
\centerline{Author One and Author Two\footnote{$^\dagger$} |
| 28 |
{([email protected], \ @huhepl.bitnet, \ or \ @huhepl.harvard.edu)}} |
| 29 |
\bigskip\centerline{Lyman Laboratory of Physics} |
| 30 |
\centerline{Harvard University}\centerline{Cambridge, MA 02138} |
| 31 |
|
| 32 |
%if too many authors for abstract on same page, say \vfill\eject\pageno0 |
| 33 |
|
| 34 |
\vskip .3in |
| 35 |
This sample is produced by the file `sample.tex' in the directory |
| 36 |
tex\$macros and is intended to exhibit the conventions used |
| 37 |
in the file `harvmac.tex' also in this directory, as inputted above. |
| 38 |
{\it (You do not need to copy {\rm tex\$macros:harvmac.tex} into your own |
| 39 |
directory\/}, nor do you need to explicitly specify its directory as |
| 40 |
long as there is no harvmac.tex in your default directory.) |
| 41 |
The vskips, etc., on this title page have been chosen to give |
| 42 |
a reasonable looking HUTP style preprint in either full-sized or reduced |
| 43 |
format (selected by typing b or $\ell$ in response to the big/little query |
| 44 |
from the macro). Note that the `Title' and `Date' macros should be used |
| 45 |
together to choose fonts and horizontal size appropriately, suppress first |
| 46 |
page number, etc., for `big' and `little' formats with title page. One may |
| 47 |
most easily start a new paper by making a copy of this sample and then |
| 48 |
replacing the dummy text with something potentially more interesting. It is |
| 49 |
useful to read pp.~1--54, 127--201 of Knuth's {\it Texbook\/}. |
| 50 |
|
| 51 |
\Date{4/91} %replace this line by \draft for preliminary versions |
| 52 |
%or specify \draftmode at some point |
| 53 |
|
| 54 |
%if you want double-space, use e.g. \baselineskip=20pt plus 2pt minus 2pt |
| 55 |
|
| 56 |
\newsec{Introduction} |
| 57 |
|
| 58 |
Sections are begun |
| 59 |
\def\\#1 {{\tt\char'134#1} }% (defines \\ to single backslash in macro names) |
| 60 |
using the macro \\newsec as above. For papers without separate sections, |
| 61 |
leave out \\newsec and equations will automatically be numbered consecutively |
| 62 |
(without section numbers). |
| 63 |
|
| 64 |
References are done using the macro \\ref as follows\ref |
| 65 |
\rIi{John Q. Physicist, Phys. Rev. D20 (1980) 1234.}\ref\rIii{Author |
| 66 |
One and Author Two, Nucl. Phys. B52 (1975) 439.}. |
| 67 |
The labels on the references\rIi\ and \rIii\ (which include the brackets, |
| 68 |
note the second backslash to provide a space) can then be used to refer |
| 69 |
back to them\rIi. (note no extra backslash needed before period\rIii, or |
| 70 |
before comma.) Here is how to put two papers in one reference\ref |
| 71 |
\rAG{L. Alvarez-Gaum\'e and P. Ginsparg, ``The Structure of |
| 72 |
Gauge and Gravitational Anomalies,'' Harvard preprint HUTP-84/A016, |
| 73 |
to appear in Ann. Phys.\semi |
| 74 |
L. Alvarez-Gaum\'e and P. Ginsparg, Nucl. Phys. B243 (1984) 449.}. |
| 75 |
Note the use of the macro \\semi %(= ;\hfil\break) |
| 76 |
to separate them (the macro \\nref can be used to suppress the immediate |
| 77 |
appearance of the bracketed reference number in the text if desired\ref |
| 78 |
\rSP{Seminal Paper.}% |
| 79 |
\nref\rMIF{Moderately Interesting Follow-ups.}% |
| 80 |
--\ref\rCUR{Completely Useless Ripoffs.}). The references are listed in the |
| 81 |
file refs.tmp, and can be of arbitrary length. |
| 82 |
|
| 83 |
The macro \\foot is used for footnotes.\foot{like this} They also get |
| 84 |
automatically numbered\foot{consecutively} throughout the paper. |
| 85 |
|
| 86 |
To do equations we use the macro \\eqn |
| 87 |
% |
| 88 |
\eqn\eIi{R^a{}_b=d\om ab+\om ac\wedge\om cb} |
| 89 |
% |
| 90 |
and |
| 91 |
% |
| 92 |
\eqn\eIii{\om a{{b,\mu}}\equiv e^a{}_\nu\grad\mu e_b{}^\nu= |
| 93 |
-e_b{}^\nu\grad\mu e^a{}_\nu.} |
| 94 |
% |
| 95 |
The equations are then referred to (see \eIi\ or \eIii) using the |
| 96 |
label (which includes the parentheses). In draftmode, the equation |
| 97 |
labels appear in the right margin next to the equation. |
| 98 |
|
| 99 |
%To start in the middle of text, initialize for example with |
| 100 |
%\pageno=5\secno=3\meqno=2\startrefs{24}%\draftmode |
| 101 |
|
| 102 |
\newsec{Body} |
| 103 |
|
| 104 |
Ordinarily one uses equations with internal eqaligns: |
| 105 |
% |
| 106 |
\eqn\eIIx{\eqalign{&d=2+2=4\cr |
| 107 |
&d=2\times 2=4.\cr}} |
| 108 |
% |
| 109 |
(How could Nature fail to avail herself of such a fine opportunity to base |
| 110 |
herself on the remarkable numerical coincidence embodied in eqn.~\eIIx?) |
| 111 |
To specify equation numbers in aligned equations and/or equations |
| 112 |
specified with a's, b's, etc., just tag the equation numbers first |
| 113 |
using the macro \\eqnn or \\eqna and then use \\eqalignno |
| 114 |
\eqna\eIIi %(only for equation labels with a,b type argument) |
| 115 |
\eqnn\eIIii |
| 116 |
% |
| 117 |
$$\eqalignno{\left(\int_{-\infty}^\infty e^{-x^2}\,dx\right)^2 |
| 118 |
&={\rm something}&\eIIi a\cr |
| 119 |
&={\rm something\ else}\cr |
| 120 |
&=\pi&\eIIi b\cr |
| 121 |
&=2\pi/2.&\eIIii\cr}$$ |
| 122 |
% |
| 123 |
We can then easily refer back to \eIIii\ or \eIIi{a}\ or \eIIi{a,b}\ |
| 124 |
or even \eIIi{a\hbox{--}c}\ (\\eqna defines a label which takes an argument |
| 125 |
$\{a,b,\ldots\}$ when used to refer back; it could be used instead of |
| 126 |
\\eqnn if one remembers to type $\{\}$ after the label when referring |
| 127 |
back, e.g., \eIIi{}\ ). (Note also that \\nref and \\eqnn can always be |
| 128 |
used to simulate macro packages that require a separate macro to define |
| 129 |
labels in advance of using them.) |
| 130 |
|
| 131 |
To list the references, use the macro \\listrefs as at the end of |
| 132 |
this file\foot{In draftmode reference labels appear in left margin |
| 133 |
next to reference.}. |
| 134 |
|
| 135 |
\newsec{Conclusion} |
| 136 |
|
| 137 |
\seclab\sconcl % (defines a section label for later use) |
| 138 |
To call Tex on a source file filename.tex, issue the command |
| 139 |
$$\hbox{\$ tex filename}$$ |
| 140 |
which creates a file filename.dvi (and also a filename.log file). |
| 141 |
The macro package will ask you whether you want ``big'' |
| 142 |
output, ordinary typewritten pages, or ``little,'' reduced two-column pages |
| 143 |
suitable for preprinting. |
| 144 |
(Default is for postscript laserprinters. In order to print out in |
| 145 |
reduced format on qms printer at HEPL, you need to specify \\qms |
| 146 |
after inputting the macros.) |
| 147 |
|
| 148 |
\subsec{At Lyman} |
| 149 |
|
| 150 |
After eliminating any tex errors in your manuscript, issue the command |
| 151 |
% |
| 152 |
$$\hbox{\$ lw filename}$$ |
| 153 |
% |
| 154 |
to convert the .dvi file to a postscript file that is then automatically |
| 155 |
sent to the lyman laserwriter. |
| 156 |
(To process only selected portions of a .dvi file, |
| 157 |
type instead \ \$ dvips filename --- then type i for interactive [or |
| 158 |
? for help at any time]. |
| 159 |
\$ lw filename.ps with explicit .ps extension then sends the .ps |
| 160 |
file to the Lyman laserwriter.) |
| 161 |
|
| 162 |
\subsec{At HEPL} |
| 163 |
|
| 164 |
\subseclab\shepl % (defines a subsection label for later use) |
| 165 |
(at hepl, use instead |
| 166 |
% |
| 167 |
$$\hbox{\$ qmstex filename}$$ |
| 168 |
% |
| 169 |
to convert the .dvi file to a .qms file that is then automatically |
| 170 |
sent to the hepl laserprinter). Before logging off, it is |
| 171 |
probably preferable to get rid of any .ps, .dvi, .qms, and .log files. |
| 172 |
|
| 173 |
|
| 174 |
\bigbreak\bigskip\bigskip\centerline{{\bf Acknowledgements}}\nobreak |
| 175 |
This work was supported in part by various colleagues. We also thank |
| 176 |
NSF contract PHY-82-15249 for discussions. |
| 177 |
|
| 178 |
\appendix{A}{} |
| 179 |
|
| 180 |
Everything same as before, now equations appear as (A.1), etc. |
| 181 |
Appendix A has no title. |
| 182 |
|
| 183 |
\appendix{B}{Enhancements added, 11/88} |
| 184 |
|
| 185 |
For fancier treatment of multiple references, say \refs{\rSP{--}\rCUR}, |
| 186 |
\refs{\rIii,\rSP}, or even \refs{\rIi,\rIii,\rAG{--}\rCUR}. (The arguments |
| 187 |
have to be previously defined references, so use \\nref before for any |
| 188 |
first occurrences.) To strip off the brackets from a single reference for |
| 189 |
some reason, use \\xref to give \xref\rIi\ instead of \rIi. |
| 190 |
|
| 191 |
To refer to equations (or references) that occur much later in the |
| 192 |
paper, add \\writedefs after inputting macros. |
| 193 |
This redefines the equation and reference macros so they write all the |
| 194 |
label definitions to a file labeldefs.tmp. Then tex a second time with a |
| 195 |
line inputting this file. To start from the middle of a paper, tex |
| 196 |
the first part with \\writedefs and \\writestop %i.e. \writedefs\writestop |
| 197 |
(the latter adds to labeldefs a line with the pagenumber, section number, |
| 198 |
etc., at the point \\listrefs was called). Inputting labeldefs.tmp then |
| 199 |
starts the continuation where the previous left off, and allows referring |
| 200 |
to any of the previously defined reference and equation labels. |
| 201 |
|
| 202 |
The subsection option in section 3 above is also new. |
| 203 |
|
| 204 |
Another macro, \\footend, redefines \\foot so that it writes the footnotes |
| 205 |
in a file foots.tmp, which is then automatically called in by \\listrefs |
| 206 |
before the references. For journals that prefer the footnotes at the |
| 207 |
end, one can thus add \\footend after inputting harvmac, |
| 208 |
with no other changes necessary. |
| 209 |
|
| 210 |
A new macro \\fig (also \\nfig, \\figs, \\xfig) works for figures just |
| 211 |
as does \\ref. The label is defined to include the abbreviation fig. |
| 212 |
For papers with thousands of figures, the macro |
| 213 |
\fig\flabel{This is the figure caption}. This works exactly as does |
| 214 |
\ref\rlabel{For a compendium of references missing here, see M. Green, |
| 215 |
J. Schwarz, and E. Witten, {\it Superstring theory\/}, Vols. I,II, |
| 216 |
Cambridge Univ. Press (1987).}, with the label defined to include the |
| 217 |
abbreviation `fig.~'. The macro \\nfig suppresses immediate appearance of |
| 218 |
`fig.~x', \nfig\flabi{second dummy figure}\nfig\flabii{third dummy figure}% |
| 219 |
so that one can instead say, for example, \figs{\flabi,\flabii}\ |
| 220 |
using the macro \\figs. %(here gives figs.~2,3) |
| 221 |
\\xfig strips off the `fig.~' to leave just the figure number, |
| 222 |
i.e.\ \xfig\flabel, if necessary for some reason. |
| 223 |
The figure captions are written in a file figs.tmp that is called in by |
| 224 |
saying \\listfigs after \\listrefs. |
| 225 |
(Note that the formerly used macro \\figures need not be used if |
| 226 |
\\fig is instead used in conjunction with \\listfigs.) |
| 227 |
|
| 228 |
% Instead of \listfigs, if \fig not used in text, after \listrefs say |
| 229 |
% |
| 230 |
%\figures % former version, still supported |
| 231 |
%\fig{1}{This is the first figure caption.} |
| 232 |
%\fig{2}{This is the second figure caption.} |
| 233 |
%\fig{3}{Note that \\fig automatically types a colon and lines up the |
| 234 |
%text properly.} |
| 235 |
% |
| 236 |
%\parindent=20pt |
| 237 |
|
| 238 |
\appendix{C}{Enhancements added, 6/89} |
| 239 |
|
| 240 |
A macro \\seclab sets a label equal to the current section number, useful |
| 241 |
for referring back to the section, e.g.\ as used in section \sconcl\ above. |
| 242 |
Similarly, \\subseclab sets a label equal to the current |
| 243 |
section.subsection, as in the definition of subsection \shepl\ in the ``at |
| 244 |
HEPL'' subsection above. |
| 245 |
(Using \\writedefs, these definitions will appear in labeldefs.tmp so can |
| 246 |
be used as well to refer forward. In draftmode, the definitions appear in |
| 247 |
the right margin.) |
| 248 |
|
| 249 |
A macro \\writetoc writes a file toc.tmp that contains section and |
| 250 |
subsection numbers and headings with the pagenumbers on which they appear. |
| 251 |
The macro \\listtoc writes the heading {\bf Contents} and inputs the file |
| 252 |
toc.tex. It is evidently necessary to tex in two passes, renaming toc.tmp |
| 253 |
to toc.tex after the first. |
| 254 |
%(Note that the pagenumbers will not come out properly in ``little'' mode |
| 255 |
% --- the easiest (and least elegant) way around this is to set |
| 256 |
% \output={\plainoutput} (after harvmac input) to produce toc.tmp, |
| 257 |
% then remove and tex again with \\listtoc to produce final .dvi file. |
| 258 |
|
| 259 |
\appendix{D}{Enhancements added, 1/91} |
| 260 |
|
| 261 |
A macro \\lref (same syntax as \\ref and \\nref) |
| 262 |
\lref\reflabel{Another reference.} |
| 263 |
defines the reflabel to be a macro that calls \\ref on itself. |
| 264 |
This allows making a list of references via \\lref (in any order) at the |
| 265 |
beginning of a file and only those used in the text will actually appear |
| 266 |
(automatically listed in correct order of first appearance by \\listrefs). |
| 267 |
(In principle \\lref can be used to compile a long standard reference file |
| 268 |
to input, although this might eventually cause problems due to clogging up tex |
| 269 |
memory with too many unused definitions.) |
| 270 |
|
| 271 |
\lref\riii{extra ref three.} |
| 272 |
\lref\rii{extra ref two.} |
| 273 |
\lref\ri{extra ref one.} |
| 274 |
\\refs is defined to not display reference labels that appear in succession |
| 275 |
(i.e.\ without intervening delimiter), so that e.g.\ \refs{\ri\rii{--}\riii} |
| 276 |
can expand the middle reference \rii\ if it hasn't already appeared. |
| 277 |
\\refs will also accept reflabels that are not previously defined so that it is |
| 278 |
possible to tex preliminary versions without inputting full reference list |
| 279 |
(For this mode, even individual refs, e.g.\ \refs{\reflabel}, need to be |
| 280 |
called via \\refs.) |
| 281 |
|
| 282 |
The macro \\sequentialequations inserted at beginning causes |
| 283 |
equations to be numbered sequentially (1)--(n) throughout paper |
| 284 |
(rather than with section numbers (2.1)$\ldots$). |
| 285 |
|
| 286 |
\listrefs |
| 287 |
\listfigs %(if necessary) |
| 288 |
\bye |