\LaTeX
. So I wanted to change the default font and I have Googled around to find out I need to use and fontspec is what is recommended. Here we go:Code: Select all
\documentclass{article}
\usepackage{fontspec}
\usepackage{lipsum}
\setmainfont{Palatino Linotype}
\begin{document}
\lipsum[1-3]
\end{document}
When I try to compile it,
Code: Select all
latex test_latex.tex
Code: Select all
********************************************
* XeTeX is required to compile this document.
* Sorry!
********************************************
Code: Select all
sh-4.1$ xetex test_latex.tex
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./test_latex.tex
! Undefined control sequence.
l.1 \documentclass
{article}
?