Debian Codegraph @

texmf-dist/doc/otherformats/texsis/base/TXSrefs.doc

raw
1 %% file: TXSrefs.doc - References and Citations - TeXsis version 2.18
2 %% @(#) $Id: TXSrefs.doc,v 18.5 2000/05/17 00:19:46 myers Exp $
3 %======================================================================*
4 % (C) Copyright 1989, 1992, 1999 by Eric Myers and Frank E. Paige.
5 % This file is a part of TeXsis. Distribution and/or modifications
6 % are allowed under the terms of the LaTeX Project Public License (LPPL).
7 % See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL
8 %======================================================================*
9 \ifx\undefined\meta\texsis\input TXSdocM.doc\input Manual.aux\draft\fi
10
11
12 \section{References and Citations \label{sect.refs}}
13
14 \TeXsis\ includes instructions for making citations to the
15 literature in the text of a document.
16 References are processed in the standard format used by many American
17 physics journals: they are automatically assigned consecutive numbers
18 as they appear in the text and are listed in numerical order at the
19 end of the document.
20 In the text a citation appears as a superscript number corresponding
21 to the reference cited, though other methods of citation are possible
22 (see Section~\use{sect.cite}).
23 When each reference is defined it is given a \idx{label}, which is
24 associated with the number assigned to the reference.
25 Subsequent citations to the same reference are made using this label,
26 so there is no need to know the particular number assigned to the
27 reference. Indeed, the number may change as the document goes through
28 editing and revision, \index{references}\index{citations|see{references}}
29 but the references will still automatically be in the correct order.
30
31
32 \subsection{Entering References}
33
34 \TeXsis\ is flexible enough that the text of the references may be
35 entered in two different ways, either all references at once at the
36 beginning of the document or each one individually at the point in the
37 text where the work is first cited.
38 In either case, \TeXsis\ stores the text of all of the references in
39 numerical order until it is asked to print the list at the end of the
40 document, by saying \cs{ListReferences}.
41
42 To make a citation to a new reference and to enter the text of the
43 reference, use the command \CS{reference}\arg{label}, where
44 \meta{label} is the label to be used to refer to this reference.
45 This is followed by the text of the reference, which is terminated by
46 \cs{endreference}. An example is:
47 \TeXexample
48 To this end we will follow Feynman\reference{Feynman, 1949}
49 R.P.~Feynman, Phys.\ Rev.\ \vol{76}, 749 (1949)
50 \endreference
51 in developing the propagator approach.
52 |endTeXexample
53 \noindent
54 This would appear in the text of the document as,
55 \example
56 To this end we will follow Feynman\reference{Feynman, 1949}
57 R.P.~Feynman, Phys.\ Rev.\ \vol{76}, 749 (1949)
58 \endreference
59 in developing the propagator approach.
60 \endexample
61 and the text of the reference would be saved until the list of
62 references is printed at the end of the document.
63 If you look at the end of this manual you will see it.
64
65 There are several things to take note of in the example above. Most
66 importantly, there is no space between the word in the text where the
67 citation is made ("Feynman")\index{Feynman, Richard P.}
68 and the \CS{reference}. This is so the
69 superscript reference number will appear in the text right after the
70 word to which the citation is attached, with no intervening space. Note
71 also in the reference text the tie (|~|) between the initials and the
72 name, the control spaces (\hbox{\tt\bs\ }) after the abbreviations, and
73 the use of the \CS{vol} macro for the volume number;
74 \CS{vol}\arg{number} prints the volume \meta{number} with an underscore
75 below it.
76 (This is easier to read than boldfaced volume numbers on small laser
77 printers, but if you prefer something else you can simply redefine the
78 \CS{vol} macro).
79 Similarly, \CS{booktitle}\arg{title} will print the title of a book,
80 in slanted type.
81 Finally, note that there is no punctuation at the end of the reference
82 text.
83 This is because \TeXsis\ automatically supplies the appropriate
84 punctuation when it prints the list of references.
85 Normally this will simply be a period (.), but it is possible to have
86 multiple references assigned to the same reference number, in which
87 case the references are separated by semi-colons, with the last
88 reference terminated by a period.
89 How to do this is described below.
90
91 Since typing the text of a journal citation is somewhat complicated,
92 the \CS{journal} macro was created to make things a little easier.
93 The format is
94 \example
95 |\journal| \meta{journal name}|;|\meta{volume}|,|\meta{page number}%
96 |(|\meta{year}|)|
97 \endexample
98 This constructs the journal citation for you, with periods automatically
99 replaced by ``\hbox{\tt .\bs\char`\ }'' in abbreviations and the volume
100 number underlined for you by |\vol|. It is important that the field
101 separators (the semi-colon, the comma and the parentheses), all be
102 present and in the right order or \TeX\ will look as far forward as it
103 takes to find the next one it wants. There should be no extra spaces
104 between the arguments.
105
106 Besides making it a little easier to type a citation to a journal
107 article, using \CS{journal} lets you switch from the American form of
108 citation to the European form very easily. In the American form the
109 page number follows the volume, followed by the year in parentheses. In
110 the European form the year follows the volume number and the the page
111 number comes after that. Normally \TeXsis\ uses the American form, but
112 you can change to the European form simply by saying
113 \example
114 \CS{Eurostyletrue}
115 \endexample
116 The arguments to \CS{journal} are always in the American order,
117 no matter how they are eventually printed.
118
119 A number of abreviations which are commonly used in references
120 and which are usually set in italics are defined as simple control
121 words.
122 Thus saying \CS{cf} produces ``\cf'', saying \CS{etal}
123 produces ``\etal'', saying \CS{ie} produces ``\ie'', and
124 saying \CS{ibid} produces ``\ibid''
125
126
127 Sometimes you want to print the title of a journal article, and
128 sometimes you don't. An easy way to control this is to enter the
129 title using \CS{ArticleTitle}, as in\index{Schwinger, Julian}
130 \TeXexample
131 \reference{Schwinger, 1951}
132 J.~Schwinger,
133 \ArticleTitle{On Gauge Invariance and Vacuum Polarization}
134 \journal Phys. Rev.;82,664(1951)
135 \endreference
136 |endTeXexample Then if you say \CS{ShowArticleTitletrue}, the title
137 will be printed (in slanted type, with a trailing comma), but with
138 \CS{ShowArticleTitlefalse} (the default)
139 it will not.
140
141
142 \bigskip
143
144 To enter several references with the same reference number simply
145 begin the next \CS{reference} immediately after the previous
146 \cs{endreference}, and begin the labels of all but the first reference with
147 an asterisk "|*|", as in the following example:
148 \TeXexample
149 The vacuum polarization term can be regularized
150 by introducing a cut-off at high
151 frequencies.\reference{Pauli and Villars, 1949}
152 W.~Pauli and F.~Villars, \journal Rev. Mod. Phys.;21,434(1949)
153 \endreference
154 \reference{*Schwinger, 1948}
155 J.~Schwinger, \journal Phys. Rev.;74,1439(1948)
156 \endreference
157 |endTeXexample
158 This produces the single citation
159 \index{Schwinger, Julian}\index{Villars, F.}\index{Pauli, W.}%
160 \example
161 The vacuum polarization term can be regularized
162 by introducing a cut-off at high
163 frequencies.\reference{Pauli and Villars, 1949}
164 W.~Pauli and F.~Villars, \journal Rev. Mod. Phys.;21,434(1949)
165 \endreference
166 \reference{*Schwinger, 1948}
167 J.~Schwinger, \journal Phys. Rev.;74,1439(1948)
168 \endreference
169 \endexample
170 The "|*|"\index{*@{\tt *}'d citations}
171 at the beginning of the second label tells \TeXsis\ not
172 to assign a new reference number to this reference, but instead
173 just to add it to the text of the previous one.
174 Of course you
175 could type the text of both references between one \cs{reference}
176 and \cs{endreference}. An advantage to following the example
177 above is that the second reference can be given a reference
178 number of its own simply by deleting the "|*|" at the beginning of
179 the label. Similarly, two references with different reference
180 numbers can be lumped together into one citation by inserting a
181 "|*|" in front of the label of the second reference. Another
182 advantage to keeping the references separate is that it is easy
183 to move references around, either within a document that is being
184 revised or between documents. It is therefore recommended that
185 each reference be entered separately, although this is obviously
186 not required.
187
188 Instead of putting the \cs{reference} \dots \cs{endreference} in
189 the text it may be more convenient to type them all together,
190 especially if they already
191 appear that way in the manuscript. This can be
192 done without producing any unwanted printed numbers by using
193 \index{references!entering a list}
194 \example\obeylines
195 \CS{referencelist}
196 |\reference{1}| {\it text 1...} |\endreference |
197 |\reference{2}| {\it text 2...} |\endreference |
198 |...|
199 |\reference{last}| {\it last text...} |\endreference|
200 \cs{endreferencelist}
201 \endexample
202 The \CS{referencelist} must appear at the beginning of the
203 document, so that the reference labels are defined before they
204 are used. This is best put into a separate file which is \cs{input}
205 by the master file. Of course the list of references is not
206 printed until the end of the document, when \cs{ListReferences} is
207 called.
208
209 \subsection{Citations to Defined References}
210
211 All subsequent citations to a previously defined reference are made
212 using its label.
213 If a \CS{referencelist} is used, then \undertext{all} citations
214 appearing in the text will be made in this way, since then the initial
215 reference definitions print nothing.
216 The construction \CS{cite}\arg{label} prints the reference number
217 corresponding to the label as a superscript.
218 For example,
219 \TeXexample
220 A good discussion of this is given by Doob\cite{Doob} in section~7.
221 |endTeXexample produces
222 \example
223 A good discussion of this is given by Doob\cite{Doob}
224 in section 7.
225 \endexample
226 since Michael Doob's\index{Doob, Michael} book \booktitle{A Gentle
227 Introduction to \TeX} is in fact \Ref{Doob} of this document and has
228 the label "|Doob|."
229 If several \CS{cite}'s are given in succession then the corresponding
230 numbers are printed separated by commas.
231 Unlike \cs{reference}, which defines the reference numbers, \CS{cite}
232 does not know if references are sequential, so it cannot replace a
233 sequence of numbers by a range.
234 To avoid a long sequence of reference numbers use instead
235 \CS{citerange}\arg{first label}\arg{last label} to print the numbers
236 corresponding to the first and last labels as a range.
237
238 The construction \CS{Ref}\arg{label} produces ``Ref.~$nn$'' in the
239 text, with $nn$ the number of the reference corresponding to the
240 label. For example, the ``\Ref{Doob}'' in the previous paragraph was
241 typed into the manuscript file as |\Ref{Doob}|. \CS{Ref} is simply
242 shorthand
243 for |Ref.~\use{Ref.|\<label>|}|, and you can change what is printed
244 simply by changing the definition of \CS{Ref}. For example, if you said
245 \TeXexample
246 \def\Ref#1{reference~\use{Ref.#1}}
247 |endTeXexample
248 \noindent
249 then |\Ref{Doob}| would produce ``reference~\use{Ref.Doob}'' instead.
250 See Section~\use{sect.labels} for more on how to use \cs{use}.
251
252 %==================================================*
253
254 \subsection{Listing the References}
255
256 After the text of the document is complete a printed list of the
257 references can be obtained by saying
258 \TeXexample
259 \ListReferences
260 |endTeXexample
261 This prints the numbers at the left hand edge of the page with the
262 text indented by \CS{refindent}, which is chosen so that the equation
263 numbers line up, and it puts a \CS{refskip} (initially equal to a
264 \cs{smallskip}) between references.
265 The reference format can be changed by redefining the command
266 \CS{refFormat}, which is executed just before the references are
267 printed and which initially is simply \cs{relax}.
268 For example, to have the reference list printed with a ragged right
269 margin, with no vertical skip in between references, one could say
270 \index{references!printing the list}
271 \index{lists!of references}
272 \TeXexample
273 \def\refFormat{% formatting for the list of references
274 \raggedright % ragged right margin
275 \refindent=2cm % instead of ``natural'' value
276 \let\refskip=\bigskip % more space between entries
277 }
278 \ListReferences % now do it
279 |endTeXexample
280
281
282 No heading is printed for the reference list --- you have to do this
283 yourself in whatever format is appropriate.
284 Often you will want to use \cs{nosechead} (or perhaps
285 \cs{beginsection} from Plain \TeX), but sometime you may want
286 to use \cs{chapter} or \cs{section} instead.
287 The choice is up to you.
288
289 When you have several references under the same number, the |*|'d
290 references described earlier, they will each normally be printed
291 begining on a new line.
292 You can supress the extra line ends and run the reference text
293 together by saying \CS{refbreaksfalse}.
294 To go back to breaking lines between multiple citations you should say
295 \CS{refbreakstrue}.
296
297 Once the list of references has been printed, everything is reset so
298 that you can start over collecting new references.
299 This is useful if you want to print the references at the end of each
300 chapter of a book, or at the end of each paper in a conference
301 proceedings.
302
303
304
305 %==================================================*
306 \subsection{Citation Styles \label{sect.cite}}
307
308 Superscript reference numbers are the simplest form of citation, and
309 the default in \TeXsis, but there are also several other popular
310 conventions for making citations.
311 One common one is to display the reference number enclosed in squaqre
312 brackets rather than as a subscript.
313 Another is to display a ``citation key,'' such as the first author's
314 last name and the year, either in brackets or parentheses.
315 \TeXsis\ is flexible and allows you to use any of these citation
316 styles.
317
318 To cause the reference numbers to appear within brackets simply say
319 \CS{CiteByNumber}.
320 (To go back to superscript reference numbers say
321 \CS{CiteBySuperscript}.)
322 It would be nice if that is all you had to do to switch from one
323 citation style to another, but there is one complication.
324 When a citation appears at the end of a sentence it looks best if the
325 punctuation comes before a superscript, but after a reference number
326 in brackets.
327 Getting this right is more than a mere macro can easily do, so if you
328 switch from one style to the other you will have to make appropriate
329 corrections to your document for citations that appear at the end of
330 sentences.
331
332 \Ignore % Duh?
333 Both \CS{CiteBySuperscript} and \CS{CiteByNumber} list the references
334 by number when you say \cs{ListReferences}.
335 \endIgnore
336
337
338 Another citation style which was more popular in journals many years
339 ago is to cite the work in the text using a superscript number, but to
340 put the text of the reference at the bottom of the page as a footnote
341 rather than at the end of the paper or chapter as an ``endnote.''
342 This is achieved by saying \CS{CiteByFootnote}.
343 This can be useful for a draft of a paper even if you will eventually
344 use a different citation style, because it makes it easier to check
345 the reference text as you proofread the paper.
346 By the same reasoning it's actually a nice citation style for
347 scientific books and papers in general, because the reference text is
348 right there.
349 If the author thinks it is important enough to his/her argument to
350 cite another work then it is probably imporant for the reader to see
351 the reference text at that point.
352 We hope that this citation style gets used more than it has of late,
353 though with the increased use hypertext it probably won't. (Why
354 bother to put the reference text on the same page as the citation when
355 you can click on the reference number and jump right to the
356 appropriate point in the list of references?\ifhtml\phantom{.}
357 See Section~\use{sect.hypertext} for details.\fi)
358
359 As you might expect, if you use \CS{CiteByFootnote} then no list of
360 references is produced should you also say \cs{ListReferences}.
361 After all, the text of the references has already appeared so there
362 are actually no references to list.
363
364 It is probably not a good idea to mix \CS{CiteByFootnote} and numbered
365 footnotes using \cs{Nfootnote}, since they are completely separate
366 and keep track of their footnote numbers independently.
367 %% BUT THIS COULD BE FIXED, EH?
368
369
370
371
372
373
374 \bigskip
375
376 Earlier versions of \TeXsis\ had only two citation styles, and for
377 backward compatibility they are still supported.
378 Saying \CS{superrefsfalse} is the same as saying \CS{CiteByNumber},
379 while \CS{superrefstrue} is the same as \CS{CiteBySuperscript}.
380 The older forms are supported so that you can print old documents that
381 use them, but you should avoid including them in new documents since
382 they might disappear some day.
383
384
385 %==================================================*
386 \subsection{Using \BibTeX}
387
388 \BibTeX\ is a system for managing and using bibliographic databases.
389 If you find you are always citing the same sources again and again in
390 your papers, or if you have access to a bibliographic database someone
391 else has already compiled (or which you yourself have compiled), then
392 \BibTeX\ can make it much easier for you to make your list of references.
393 All you need to do is specify the name of the database files to be
394 searched (there can be several), and use the \cs{cite} command to
395 refer to a paper listed in the database.
396 Papers in the databases are indexed by a ``citation key,'' and all you
397 have to do is use that key as the label in the \cs{cite} command.
398 The first time you run your document through \TeXsis\ these references
399 will be undefined, but if you then run the \BibTeX\ program it will
400 extract the proper references from the databases, so that they
401 will be properly defined (and formatted) the next time you
402 process your document.
403
404 Some extra work is needed to get started using \BibTeX.
405 First, since \BibTeX\ is a separate program, you need to get that
406 program---it isn't included with \TeXsis.
407 You can get the standard distribution of \BibTeX\ from CTAN, in the
408 directory {\tt bibliography/bibtex}.
409 If you are not familiar with how to build and install \TeX\ and
410 related programs then you will need to get your system adminstrator or
411 \TeX\ guru to install it for you.
412 You also need to have the ``reference style'' file for \TeXsis.
413 This file, called {\tt texsis.bst}, tells \BibTeX\ how to write out
414 references in the proper \TeXsis\ format.
415 This file now comes with the standard \TeXsis\ distribution, but if
416 you don't have it you can easily get it from the \TeXsis\ ftp site, or
417 from CTAN, in the directory {\tt texsis/bibtex}.
418
419
420 Once \BibTeX\ and {\tt texsis.bst} are installed it is fairly easy to
421 use them.
422 First you have to add to your manuscript files a couple of
423 instructions that tell \BibTeX\ which bibliography database files to
424 use and how to format the references.
425 To specify the database files, use \CS{ReferenceFiles}, as in
426 \TeXexample
427 \ReferenceFiles{unix,internet,mylist}
428 |endTeXexample
429 In this case, \BibTeX\ will search for the references in the
430 files {\tt unix.bib}, {\tt internet.bib}, and {\tt mylist.bib}.
431 (Examples of these files are also included in the {\tt texsis/bibtex}
432 directory on the ftp servers.)
433 Next, you tell \BibTeX\ to use a ``style'' for creating references in a
434 form that \TeXsis\ can understand, with
435 \TeXexample
436 \ReferenceStyle{texsis}
437 |endTeXexample
438 This tells \BibTeX\ to use the {\tt texsis.bst} style file,
439 but you must leave off the {\tt .bst} extension.
440
441 Once you have invoked \CS{ReferenceFiles} and \CS{ReferenceStyle} you
442 can cite your references using \cs{cite}, as usual.
443 The ``label'' you use for \cs{cite} should be the ``citation key''
444 used in the bibliography database.
445 You can also use \CS{nocite} to create a citation entry without
446 putting a citation mark (superscript number or number in brackets) in
447 the output.
448 Finally, to print the list of references, simply say
449 \cs{ListReferences}, as usual.
450 This just lists the references---it's up to you to provide any heading
451 or extra space before the list.
452
453 Once you have set up your document this way, the only additional thing
454 you have to do is run the \BibTeX\ program.
455 Before you do, run your manuscript file through \TeXsis\ once.
456 It will complain about undefined references, but it will also produce
457 a list of the papers you cited, in order, in the {\tt .aux} file.
458 Then run \BibTeX, like so:
459 \TeXexample
460 bibtex myjob
461 |endTeXexample
462 This uses the information in the {\tt .aux} file and
463 extracts the references, in the proper order and with the proper
464 \TeXsis\ \cs{reference} commands, into the file {\tt myjob.bbl} (the
465 extension means ``bibliography list'').
466 Finally, run \TeXsis\ again.
467 This time, since the {\tt .bbl} file exists, it is read in as a
468 \cs{referencelist} when the \CS{ReferenceFiles} command is executed.
469 Now all of your citations will be properly defined, with no
470 complaints.
471 Just remember to run the \BibTeX\ program again if you add or delete
472 citations or change their order.
473
474 %>>> EOF TXSrefs.tex <<<