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.

  1. This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
  2. entering extended mode
  3. (./cover_letter_2.tex
  4. ! Undefined control sequence.
  5. l.25 \documentclass
  6. {scrlttr2}
  7. ?
  8. ! Undefined control sequence.
  9. l.27 \usepackage
  10. {fontspec} % Allows font customization
  11. ?
  12. ! Undefined control sequence.
  13. l.28 \usepackage
  14. {marvosym} % Allows the use of symbols
  15. ?
  16. ! Undefined control sequence.
  17. l.29 \usepackage
  18. [english]{babel} % Required to compile in Windows
  19. ?


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

Please help me in fixing the problem.

jagadeepram

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm

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
Site admin


Return to “Letters”

Who is online

Users browsing this forum: No registered users and 2 guests