thebibliography
\begin{thebibliography}{widest-label}
\bibitem[label]{cite_key}
.
.
.
\end{thebibliography}
The thebibliography environment produces a bibliography or reference list. In the article class, this reference list is labelled "References"; in the report class, it is labelled "Bibliography".
widest-label: Text that, when printed, is approximately as wide as the widest item label produces by the \bibitem commands.
\bibitem
\bibitem[label]{cite_key}
The \bibitem command generates an entry labelled by label. If the label argument is missing, a number is generated as the label, using the enumi counter. The cite_key is any sequence of letters, numbers, and punctuation symbols not containing a comma. This command writes an entry on the .aux file containing cite_key and the item's label. When this .aux file is read by the \begin{document} command, the item's label is associated with cite_key, causing the reference to cite_key by a \cite command to produce the associated label.
\cite
\cite[text]{key_list}
The key_list argument is a list of citation keys. This command generates an in-text citation to the references associated with the keys in key_list by entries on the .aux file read by the \begin{document} command.
The optional text argument will appear after the citation, i.e. \cite[p. 2]{knuth} might produce `[Knuth, p. 2]'.
\nocite
\nocite{key_list}
The \nocite command produces no text, but writes key_list, which is a list of one or more citation keys, on the .aux file.
Using BibTeX
If you use the BibTeX program by Oren Patashnik (highly recommended if you need a bibliography of more than a couple of titles) to maintain your bibliography, you don't use the thebibliography environment. Instead, you include the lines
\bibliographystyle{style}
\bibliography{bibfile}
where style refers to a file style.bst, which defines how your citations will look. The standard styles distributed with BibTeX are:
alpha
Sorted alphabetically. Labels are formed from name of author and year of publication.
plain
Sorted alphabetically. Labels are numeric.
unsrt
Like plain, but entries are in order of citation.
abbrv
Like plain, but more compact labels.
In addition, numerous other BibTeX style files exist tailored to the demands of various publications.
The argument to \bibliography refers to the file bibfile.bib, which should contain your database in BibTeX format. Only the entries referred to via \cite and \nocite will be listed in the bibliography.
theorem
\begin{theorem}
theorem text
\end{theorem}
The theorem environment produces "Theorem x" in boldface followed by your theorem text.
tabular
\begin{tabular}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \ .
.
.
\end{tabular}
or
\begin{tabular*}{width}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \ .
.
.
\end{tabular*}
These environments produce a box consisting of a sequence of rows of items, aligned vertically in columns. The mandatory and optional arguments consist of:
width
Specifies the width of the tabular* environment. There must be rubber space between columns that can stretch to fill out the specified width.
pos
Specifies the vertical position; default is alignment on the centre of the environment.
t - align on top row
b - align on bottom row
cols
Specifies the column formatting. It consists of a sequence of the following specifiers, corresponding to the sequence of columns and intercolumn material.
l - A column of left-aligned items.
r - A column of right-aligned items.
c - A column of centred items.
| - A vertical line the full height and depth of the environment.
@{text} - This inserts text in every row. An @-expression suppresses the intercolumn space normally inserted between columns; any desired space between the inserted text and the adjacent items must be included in text. An \extracolsep{wd} command in an @-expression causes an extra space of width wd to appear to the left of all subsequent columns, until countermanded by another \extracolsep command. Unlike ordinary intercolumn space, this extra space is not suppressed by an @-expression. An \extracolsep command can be used only in an @-expression in the cols argument.
p{wd} - Produces a column with each item typeset in a parbox of width wd, as if it were the argument of a \parbox[t]{wd} command. However, a \\ may not appear in the item, except in the following situations:
inside an environment like minipage, array, or tabular.
inside an explicit \parbox.
in the scope of a \centering, \raggedright, or \raggedleft declaration. The latter declarations must appear inside braces or an environment when used in a p-column element.
*{num}{cols} - Equivalent to num copies of cols, where num is any positive integer and cols is any list of column-specifiers, which may contain another *-expression.
These commands can be used inside a tabular environment:
\cline
\cline{i-j}
The \cline command draws horizontal lines across the columns specified, beginning in column i and ending in column j, which are identified in the mandatory argument.
\hline
The \hline command will draw a horizontal line the width of the table. It's most commonly used to draw a line at the top, bottom, and between the rows of the table.
\multicolumn
\multicolumn{cols}{pos}{text}
The \multicolumn is used to make an entry that spans several columns. The first mandatory argument, cols, specifies the number of columns to span. The second mandatory argument, pos, specifies the formatting of the entry; c for centred, l for flushleft, r for flushright. The third mandatory argument, text, specifies what text is to make up the entry.
\vline
The \vline command will draw a vertical line extending the full height and depth of its row. An \hfill command can be used to move the line to the edge of the column. It can also be used in an @-expression.
#Wednesday, January 11, 2006 posted by samuel @ 5:23 PM