Nothing I found on the web is working. Neither changing the preamble nor setting the LyX itself. I also tried to change the coding in the external program.
I get this message:
I can not use old files or create new ones. I know it's about UTF-8, but I can not deal with it and I really, really need help.Package inputenc Error: Invalid UTF-8 byte 179.
\DeclareFontEncoding{PD1}{}{}
The document does not appear to be in UTF-8 encoding.
Try adding \UseRawInputEncoding as the first line of the file
or specify an encoding such as \usepackage [latin1]{inputenc}
in the document preamble.
Alternatively, save the file in UTF-8 using your editor or another tool
Below is the code of the sample .lyx file
Code: Select all
\documentclass[polish]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin2]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usetheme{Singapore}
\usecolortheme{seahorse}
\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{shapes.geometric}
\usepackage{lmodern}
\makeatother
\usepackage{babel}
\begin{document}
\author{Imię i nazwisko}
\title{Tytuł prezentacji}
\makebeamertitle
\begin{frame}{Slajd 1}
Zażółć gęślą jaźń.
\end{frame}
%
\end{document}