LettersCompilation errors

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

Compilation errors

Post by templateuser »

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.

Code: Select all

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 2024:

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

Compilation errors

Post by Stefan Kottwitz »

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
Post Reply