## LaTeX Commands

### abstract:1

This standard LaTeX environment prepares an abstract page, and is treated as an ordinary chapter or section in on-line help.

Adds a chapter title to the contents page. Linear RTF. Rarely required.

### author:1

Defines the author, for output when \maketitle is used.

### backslash:0

Outputs a backslash in math mode (should be enclosed by two dollar symbols).

### bf:1

Specifies bold font.

### bffamily:1

Specifies bold font.

### bibitem:2

For parsing convenience, \bibitem requires two arguments: a cite key and item. LaTeX syntax permits writing this as if it were two arguments, even though it is in fact only one. This command is used within a \thebibliography environment. The preferred method is to store references in .bib files and use the \bibliography command to generate a bibliography section automatically.

### bibliographystyle:1

Currently doesn't affect the style of bibliography, but probably will in the future.

### bibliography:0

Includes the bibliography at this point in the document. See the section on bibliographies.

### caption:1

Specifies a caption (within a \figure or \table environment). This may be followed immediately by a \label command.

### cdots:0

Outputs three dots.

### centerline:1

Centres (or centers!) a line of text.

### center:1

Centres a block of text.

### chapter:1

Outputs a chapter heading. If the chapter's name is Popups, the chapter title will not be put in the contents, to allow popups to be placed in a document without the popup sections being directly accessible.

### chapter*:1

Outputs a chapter heading with no contents entry.

### cite:1

Cite a reference. The argument is a reference key as defined in a LaTeX .bib file.

### comment:1

An environment that allows large comments in LaTeX files: the argument is ignored in all formats. Useful for commenting out parts of files that cannot be handled by LaTeX, such as the picture environment. See also \toocomplex.

### date:1

Specifies the date of a document; only output by \maketitle.

### description:1

A list environment, where each \item command must be followed by optional square-bracketed text which will be highlighted.

### document:1

This environment should enclose the body of a document.

### documentstyle:1

Specifies the main style (report, article etc.) and, optionally, style files such as texhelp.sty. A report has \chapters, while an article's top-level sections are specified using \section.

### em:1

Emphasizes text (italic in RTF).

Same as \em.

### enumerate:1

Enumerate list environment: numbers the \items.

### figure:1

A figure environment: does nothing special, except allows interpretation of embedded caption commands as figures rather than (say) tables.

### flushleft:1

Flushes the given text to the left margin.

### flushright:1

Flushes the given text to the right margin.

### footnote:1

In linear RTF, a footnote is created. Whether this appears at the end of the section or the bottom of the page appears to depend on the current document style, at least for MS Word 6.0 for Windows. The default seems to be to put the footnotes at the end of the section, which is probably not the best assumption.

In WinHelp RTF, a bracketed number is generated for the footnote and the footnote becomes a popup topic. It is probably preferable to change footnote commands to \footnotepopup, or \popref references to glossary entries.

This command is not supported for formats other than LaTeX, linear RTF and WinHelp RTF.

### hline:0

Within a \tabular environment, draws a horizontal rule below the current row. Note that this does not work in RTF for the last row of a table, in which case the command \ruledrow should be used instead.

### hrule:0

Draws a horizontal line below the current paragraph. For example:

    This paragraph should have a horizontal rule following it.\hrule

gives:

This paragraph should have a horizontal rule following it.

### huge:1

Outputs the argument in huge text.

### Huge:1

Outputs the argument in huger text than \huge.

### HUGE:1

Outputs the argument in huger text than \Huge.

### include:1

Include the given file. The command must not be preceded by any whitespace, and spurious whitespace between elements of the command will also trip up Tex2RTF.

### index:1

In WinHelp mode, adds a keyword to the keyword list for the current topic. This keyword must currently be straight text, with no embedded commands. The conversion process must be run twice (without quitting Tex2RTF inbetween) to resolve the keyword references.

### input:1

Include the given file. The command must not be preceded by any whitespace, and spurious whitespace between elements of the command will also trip up Tex2RTF.

### insertatlevel:2

Insert some text at a particular level of the document. For example,

  \insertatlevel{2}{Some text}

inserts "Some text" at level 2 (for a report, the current section). This allows you to insert headings into an automatically-generated section contents, for example.

### it:1

Marks the argument in italic.

### itemize:1

Indents each \item of a list and precedes with a bullet. If the file bullet.bmp is found by Tex2RTF, this bitmap will be used as the bullet (WinHelp RTF); otherwise, a symbol or bold 'o' will be used instead, depending on output format.

Use \itemsep to specify the separation between list items. Currently this only works for linear or WinHelp RTF output. If the value is more than zero, an extra paragraph is inserted.

### item:0

Marks an item of a \itemize, \description or \enumerate list. Items within a description environment should have an 'optional' argument in square brackets which will be highlighted.

### itemsep:0

Use this command to specify the separation between list items. Currently this only works for linear or WinHelp RTF output. If the value is zero, no extra paragraph is inserted; if the value is more than zero, an extra paragraph is inserted.

### itshape:1

Marks the argument in italic.

### label:1

Labels the chapter, section, subsection, subsubsection or figure caption with the given label. This must be an ASCII string, and duplicate items with different case letters are not allowed.

The command must follow immediately after the section or caption command, with no intervening whitespace.

### large:1

Marks the argument in large text.

### Large:1

Makes the argument display in larger text than \large.

### LARGE:1

Makes the argument display in larger text than \Large.

### LaTeX:0

Outputs the annoying LaTeX upper and lower case name.

### ldots:0

Outputs three dots.

### maketitle:0

Makes the article or report title by outputting the \title, \author and optionally \date.

### marginparwidth:1

Specifies the width of a margin paragraph.

### marginpar:1

Inserts a marginal note. It is best to use the Tex2RTF extensions \marginparodd and \marginpareven for best results.

### marginpareven:1

Inserts a marginal note on even pages. This is required for RTF generation since it is impossible for Tex2RTF to know in advance which side of paper the marginal note will fall upon, and the text has to be positioned using absolute dimensions. If only one sided output is required, use \marginparodd instead.

### marginparodd:1

Inserts a marginal note on odd pages. This is required for RTF generation since it is impossible for Tex2RTF to know in advance which side of paper the marginal note will fall upon, and the text has to be positioned using absolute dimensions.

Also, even if one-sided output is required, this command should be used instead of \marginpar because the LaTeX command allows it to be used just before a paragraph. Normally, if this were done, the marginal note would not be aligned with the paragraph succeeding it. For example:

    \marginparodd{{\it Note:} if nothing happens, perhaps you
have not plugged your computer in at the mains.}%
To start using your computer, push the Power button
and wait for text to appear on the screen.

Note the percent sign after the \marginparodd command: without it, LaTeX refuses to believe that the following text is part of the same paragraph, and will print the note at the wrong place.

You should use \textwidth to allow space for marginal notes, and also \marginparwidth to specify the size of the marginal note.

In WinHelp, HTML and wxHelp, marginal notes are treated as normal text delineated with horizontal rules above and below.

### mdseries:1

Changes to a medium-weight font. Un-emboldens in RTF mode, no effect in other modes.

### multicolumn:3

Used in \tabular environment to denote a cell that spans more than one column. Only supplied for compatibility with existing LaTeX files, since all it does in RTF is output the correct number of cell commands, with the multicolumn text squashed into one cell.

### newcommand:3

Define a new command; arguments are the command, the number of arguments, and the command body. For example:

    \newcommand{\crazy}[2]{{\bf #1} is crazy but {\bf #2} is not.}

The command must have no whitespace at the start of the line or between the three arguments.

New commands may also be defined in the tex2rtf.ini file using slightly different syntax (see Macro not found error).

### newpage:0

Inserts a page break.

### nocite:1

Specifies that this reference should appear in the bibliography, but the citation should not appear in the text.

### normalsize:1

Sets the font size back to normal.

### onecolumn:0

Sets the number of columns to one. LaTeX and linear RTF only.

### pageref:1

In linear RTF, generates a page reference to the given label.

### pagestyle:1

If argument is fancyplain or fancy, Tex2RTF separates the header from the rest of the page with a rule. This command must be defined for headers and footers to work properly. See also \setheader, \setfooter.

LaTeX and linear RTF only.

### pagenumbering:1

The argument may be one of:

alph
a, b, ...
Alph
A, B, ...
arabic
1, 2, ...
roman
i, ii, ...
Roman
I, II, ...

LaTeX and linear RTF only.

### paragraph:0

Behaves as for a subsubsection.

### paragraph*:0

Behaves as for a subsubsection.

### parindent:1

Indents the first line of succeeding paragraphs by the given amount.

### parskip:1

Changes the spacing between paragraphs. In fact, in RTF this will cause two \par commands to be output if parskip is greater than zero.

### par:0

Causes the paragraph to end at this point. LaTeX and Tex2RTF also treat two consecutive newlines as a paragraph break.

### printindex:0

In linear RTF, inserts an index.

### quote:1

Indents a short quotation.

### quotation:1

Indents a long quotation.

### ref:1

In LaTeX and linear RTF, refers to a \label and causes the number of that section or figure to be printed.

### rm:1

Causes the argument to be formatted in a plain, roman font. In fact, does nothing in RTF, HTML and XLP modes.

### rmfamily:1

Causes the argument to be formatted in a plain, roman font. In fact, does nothing in RTF, HTML and XLP modes.

### sc:1

Prints the output in small capitals.

### scshape:1

Prints the output in small capitals.

### section:1

Section header, with an entry in the contents page.

### section*:1

Section header, with no entry in the contents page.

### sf:1

Should format in a sans-serif font. Does nothing in Tex2RTF.

### sffamily:1

Should format in a sans-serif font. Does nothing in Tex2RTF.

### shortcite:1

The same as \cite.

### sl:1

In Tex2RTF, the same as \it. The LaTeX interpretation is 'slanted text'.

### slshape:1

In Tex2RTF, the same as \itshape. The LaTeX interpretation is 'slanted text'.

### small:1

Prints the argument in a small font.

### special:1

Simply copies the argument to the output file without processing (except \} is translated to }, and \{ is translated to {, to allow for insertion of braces).

### ss:0

Outputs the German sharp S character ß.

### subparagraph:1

Behaves as for a subsubsection.

### subparagraph*:1

Behaves as for a subsubsection.

### subsection:1

Subsection header, with an entry in the contents page.

### subsection*:1

Subsection header, with no entry in the contents page.

### subsubsection:1

Subsubsection header, with an entry in the contents page.

### subsubsection*:1

Subsubsection header, with no entry in the contents page.

### tabbing:1

Tabbing environment: doesn't work properly in RTF.

### table:1

An environment for tables. The only thing that Tex2RTF does with this is to interpret an embedded caption command differently from figures.

### tableofcontents:0

Inserts the table of contents at this point. In linear RTF mode, a proper Word for Windows table of contents will be inserted unless either of the variables insertTOC or useWord is set to false.

### tabular:2

Tabular environment: an attempt is made to output something reasonable in RTF and HTML formats, although currently only simple tables will work. The first argument specifies the column formatting. a pipe symbol (|) denotes a vertical border, one of l, r, c signifies a normal column of default width, and p followed by a dimension specifies a column of given width. It is recommended that the p is used since Tex2RTF cannot deduce a column width in the same way that LaTeX can.

Horizontal rules are achieved with \hline; two together signify a double rule. Note that in HTML, all rows and the table itself are bordered automatically.

Use the Tex2RTF \row and \ruledrow commands for best effect.

For two-column tables that work in WinHelp files, use \twocollist instead.

Example:

    \begin{tabular}{|l|p{8.5cm}|}\hline
\row{{\bf A.I.}&{\bf Simulation}}\hline\hline
\row{rules&constraints/methods}
\row{planning&design of experiments}
\row{diagnosis&analysis of results}
\ruledrow{learning&detection of connections}
\end{tabular}

This produces:

 A.I. Simulation rules constraints/methods planning design of experiments diagnosis analysis of results learning detection of connections

### TeX:0

Outputs the annoying TeX upper and lower case name.

Same as \bf.

Same as \it.

Same as \rm.

Same as \sf.

Same as \sc.

Same as \sl.

Same as \tt.

### textwidth:1

Sets the text width (valid for RTF only). This might be used in conjunction with \marginpar, for example, to leave space for marginal notes.

### thebibliography:1

An environment for specifying the bibliography as a series of \bibitem commands; the preferred method is to use .bib files and \bibliography instead.

### title:1

Sets the title, to be output when the command \maketitle is used.

### tiny:1

Prints the argument in a very small font.

### today:0

Outputs today's date.

### tt:1

Outputs the argument in teletype font.

### ttfamily:1

Outputs the argument in teletype font.

### typeout:1

Outputs the text on the Tex2RTF text window.

### twocolumn:0

Sets the number of columns to two. LaTeX and linear RTF only.

### underline:1

Underlines the argument.

### upshape:1

Changes to an upright font. Un-italicizes in RTF mode, no effect in other modes.

### verbatiminput:1

Include the given file as if it were within a \verbatim environment. The command must not be preceded by any whitespace, and spurious whitespace between elements of the command will also trip up Tex2RTF.

### verbatim:1

Uses a fixed-width font to format the argument without interpreting any LaTeX commands.

### verb

The \verb command is like the \verbatim environment, but for small amounts of text. The syntax is:

    \verb<char><text><char>

The character char is used as a delimiter; it may be any character not ocurring in the following text, except asterisk.

For example, \verb$\thing%^&$ produces \thing%^&.