LaTeX forum ⇒ LettersCompilation errors Topic is solved

Formal letters, Cover letters, Newsletters
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Compilation errors

Postby templateuser » Thu Mar 12, 2015 10:26 am

Hi ,
I have downloaded the tex file and tried to compile using command “xetex cover_letter_2.tex” in terminal. I received the below error.

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
entering extended mode
(./cover_letter_2.tex
! Undefined control sequence.
l.25 \documentclass
{scrlttr2}
?
! Undefined control sequence.
l.27 \usepackage
{fontspec} % Allows font customization
?
! Undefined control sequence.
l.28 \usepackage
{marvosym} % Allows the use of symbols
?
! Undefined control sequence.
l.29 \usepackage
[english]{babel} % Required to compile in Windows
?


I use Ubuntu 11.0 with version Latexmk, John Collins, 16 January 2010. Version 4.13a

Please help me in fixing the problem.

jagadeepram

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9880
Joined: Mon Mar 10, 2008 9:44 pm

Compilation errors  Topic is solved

Postby Stefan Kottwitz » Thu Mar 12, 2015 3:05 pm

You compiled with xetex, which is not using the LaTeX format. That's why you got an "Undefined" error for all LaTeX commands, such as \documentclass and \usepackage. Simply change to XeLaTeX, which means running

xelatex cover_letter_2.tex

in the terminal, or use the corresponding editor setting for compiling in case you are using a LaTeX editor.

Stefan
LaTeX.org admin


Return to “Letters”

Who is online

Users browsing this forum: No registered users and 1 guest