GeneralUndefined control sequence error message

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

Undefined control sequence error message

Post by okafor_iyke »

Code: Select all

\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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Undefined control sequence error message

Post by Bartman »

Don't hang your question on an old topic, but start a new one.

Please note that the commands are case sensitive.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Undefined control sequence error message

Post by Ijon Tichy »

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

Code: Select all

\usepackage[utf8]{inputenc}
can be omitted.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Undefined control sequence error message

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply