Contents Up << >>

### Macro not found

This error may indicate that Tex2RTF has not implemented a standard LaTeX command, or that a local macro package is being used that Tex2RTF does not know about. It can cause spurious secondary errors, such as not recognising the end document command.

You can get round this by defining a macro file (default name `tex2rtf.ini`) containing command definitions, such as:

        \crazy      [2]{{\bf #2} is crazy but #1 is not}
        \something  [0]{}
        \julian     [0]{Julian Smart}

New commands may be defined in LaTeX files, but custom macro files will have to be defined when local style files are being used. See Initialisation file syntax for further details.

The 'Macro not found' error can also be caused by a syntax error such as an unbalanced brace or passing the wrong number of arguments to a command, so look in the vicinity of the reported error for the real cause.

Here is one obscure situation that causes this error:

        \begin{center}
        {\large{\underline{A}}}
        \end{center}

The problem is too many curly brackets. This should be rewritten as:

        \begin{center}
        {\large \underline{A}}
        \end{center}

Often you get a 'Macro not found' error for `\end{document}`. This is a spurious side-effect of an earlier error, usually an incorrect number of arguments to a command. The location of the true error is then anywhere in the document. To home in on the error, try putting a verbatim environment `\begin{comment}...\end{comment}` around much of the document, and then move the `\begin{comment}` line down until the error manifests itself.