## LaTeX forum ⇒ Letters ⇒ Compilation errors Topic is solved

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

### Compilation errors

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

Tags:

Stefan Kottwitz
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 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