[Tex/LaTex] \Latex{} : undefined control sequence

macros

I use teXworks and I have a file called textwork1.ltx.

Here is the code:

\documentclass{article}

\usepackage{amsmath}
\usepackage{amstext}
\usepackage{amssymb}
\usepackage{graphicx}

\begin{document}
\title{My first \Latex{} Document}
\maketitle

Hello world!
\end{document}

and it gives me this error:

Errors: 1, Warnings: 0, Bad boxes: 0


textwork1.ltx
11
Undefined control sequence.
\@title ->My first \Latex 
                          {} Document
l.11 \maketitle

What can be the reason?

Best Answer

LaTeX can be really murky with its errors. The control sequence is kind of command.

Thus it says, the parser did not understand/know the \Latex command. Perhaps you meant \LaTeX. The difference is capital T and X.