I've just installed TeXworks on new computer (with ubuntu 10.4). It seems all required texlive packages are installed, in any case I can compile .tex documents using terminal. But in TeXworks while trying to run pdfLaTeX appears:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(./Szarfi.tex
! Undefined control sequence.
l.2 \documentclass
{book}
?
Preamble is:
%& --translate-file=utf-8
\documentclass{book}
\usepackage[polish]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\begin{document}
here goes the text
\end{document}
I've uninstalled and installed once again TeXworks, the problem persist. I had before more general problem with the system, I thought I've resolved it with help of askubuntu, the thread is here: https://askubuntu.com/questions/28195/untrusted-packages-could-compromise-your-systems-security-appears-while-tryin, I don't know if there is any connection between those problems.
Thanks in advance for any suggestions
pdfLaTeX
next to the compilation button? I think the standard ispdfTeX
, which won't compile LaTeX documents.