## LaTeX forum ⇒ General ⇒ Undefined control sequence error message

LaTeX specific issues not fitting into one of the other forums of this category.
okafor_iyke
Posts: 1
Joined: Tue Jul 07, 2020 1:54 pm

### Undefined control sequence error message

\documentclass[10pt,a4paper,oneside]{article}\usepackage[utf8]{inputenc}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\begin{document}hello world\end{document}

above is simple code i wrote in latex, on compliing it. I got the error undefined control sequence \Documentclass

i am using Texmaker and Miktek

pls what do i do to solve this problem

Iyke

Bartman
Posts: 96
Joined: Fri Jan 03, 2020 2:39 pm
Don't hang your question on an old topic, but start a new one.

Please note that the commands are case sensitive.

Ijon Tichy
Posts: 295
Joined: Mon Dec 24, 2018 10:12 am
Bartman wrote:Please note that the commands

and environments
Bartman wrote:are case sensitive.

And if you post an example please always test it before and post exactly what you've tested. And use the Code button or Select code button from the toolbar to mark your example as code. And please always copy&paste the exact error message from the log-file. And also use code tags for that paste, because line breaks and indents are valid for error messages and only preserved inside code tags.

BTW: 10pt and oneside are defaults of article and can be omitted. Since LaTeX 2018-04-01 UTF-8 is the default and
\usepackage[utf8]{inputenc}
can be omitted.

Stefan Kottwitz
Posts: 9593
Joined: Mon Mar 10, 2008 9:44 pm
Hi Lyke,

welcome to the forum!

It can simply be that you did not choose (pdf)LaTeX but pdf(TeX) as compiler, so \documentclass is undefined.

Stefan