7

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?

4
  • 3
    "does not show any research effort:" Please check any documentation on LaTeX you have (or use Google) - it will clearly explain this error message. Commented Jul 26, 2013 at 17:30
  • @MartinSchröder: I did my research. If you read the answer, you will see the next: LaTeX can be really murky with its errors. The control sequence is kind of command. This error doesn't reflect anything.
    – user2579252
    Commented Jul 27, 2013 at 10:28
  • 4
    @user2579252: en.wikibooks.org/wiki/LaTeX/… - it's my second hit on Google. Commented Jul 27, 2013 at 10:37
  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Commented Jul 29, 2013 at 17:50

1 Answer 1

20

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.

You must log in to answer this question.