Презентации в ТеХе

luherstag

Попытка скомпилировать пример из фака приводит к следующей ошибке

\documentclass[unicode]{beamer}
\usepackage[cp1251]{inputenc}
\usepackage[russian]{babel}
\begin{document}
\section{Первая секция}
\label{sec:sec1}
\begin{frame}
\frametitle{Первый слайд первой секции}
Тест
Тест
Тест Бла-бла-бла
\end{frame}
\begin{frame}
\frametitle{Второй слайд первой секции}
Тест
Тест
Тест Бла-бла-бла
\end{frame}
\section{Вторая секция}
\label{sec:sec2}
\begin{frame}
\frametitle{Первый слайд второй секции}
Тест
Тест
Тест Бла-бла-бла
\end{frame}
\end{document}

pdflatex ex1.tex (или latex ex1.tex)

C:\temp\file2078>latex ex1.tex
This is e-TeX, Version 3.141592-2.1 (MiKTeX 2.4)
entering extended mode
(ex1.tex
LaTeX2e <2001/06/01>
Babel <v3.7m> and hyphenation patterns for english, russian, dumylang, nohyphen
ation, loaded.
(C:\Program Files\texmf\tex\latex\beamer\beamer.cls
Document Class: beamer 2004/01/19 v1.21 Class for Typesetting a Beamer Presenta
tion
(C:\Program Files\texmf\tex\latex\beamer\beamerbasearticle.sty)
(C:\Program Files\texmf\tex\latex\pgf\pgf.sty
(C:\Program Files\texmf\tex\latex\graphics\epsfig.sty
(C:\Program Files\texmf\tex\latex\graphics\graphicx.sty
(C:\Program Files\texmf\tex\latex\graphics\keyval.sty)
(C:\Program Files\texmf\tex\latex\graphics\graphics.sty
(C:\Program Files\texmf\tex\latex\graphics\trig.sty)
(C:\Program Files\texmf\tex\latex\00miktex\graphics.cfg)
(C:\Program Files\texmf\tex\latex\graphics\dvips.def
(C:\Program Files\texmf\tex\latex\xcolor\xcolor.sty
(C:\Program Files\texmf\tex\latex\graphics\color.sty
(C:\Program Files\texmf\tex\latex\00miktex\color.cfg)
(C:\Program Files\texmf\tex\latex\graphics\dvipsnam.def
(C:\Program Files\texmf\tex\latex\pgf\xxcolor.sty)
(C:\Program Files\texmf\tex\latex\amsfonts\amssymb.sty
(C:\Program Files\texmf\tex\latex\amsfonts\amsfonts.sty
(C:\Program Files\texmf\tex\latex\geometry\geometry.sty
(C:\Program Files\texmf\tex\latex\geometry\geometry.cfg
(C:\Program Files\texmf\tex\latex\hyperref\hyperref.sty
(C:\Program Files\texmf\tex\latex\hyperref\pd1enc.def)
(C:\Program Files\texmf\tex\latex\00miktex\hyperref.cfg)
(C:\Program Files\texmf\tex\latex\hyperref\puenc.def)
Implicit mode OFF; no redefinition of LaTeX internals
(C:\Program Files\texmf\tex\latex\ltxmisc\url.sty)
Hyperref stopped early
)
*hyperref using default driver hypertex*
(C:\Program Files\texmf\tex\latex\hyperref\hypertex.def)
(C:\Program Files\texmf\tex\latex\base\size11.clo)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasecompatibility.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasefont.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasemisc.sty
No file ex1.nav.
) (C:\Program Files\texmf\tex\latex\beamer\beamerbasetitle.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasesection.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseframe.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseframecomponents.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasecolor.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseoverlay.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasetoc.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasetemplates.sty
(C:\Program Files\texmf\tex\latex\pgf\pgfshade.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseboxes.sty
(C:\Program Files\texmf\tex\latex\beamer\beamerbaselocalstructure.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasenavigation.sty
(C:\Program Files\texmf\tex\latex\base\inputenc.sty
(C:\Program Files\texmf\tex\latex\cyrillic\cp1251.def
(C:\Program Files\texmf\tex\generic\babel\babel.sty
(C:\Program Files\texmf\tex\generic\babel\russianb.ldf
(C:\Program Files\texmf\tex\generic\babel\babel.def)
(C:\Program Files\texmf\tex\latex\cyrillic\t2aenc.def
LaTeX Warning: Unused global option(s):
[unicode].
(ex1.aux) (C:\Program Files\texmf\tex\latex\cyrillic\t2acmr.fd)
(C:\Program Files\texmf\tex\latex\hyperref\nameref.sty)
(C:\Program Files\texmf\tex\latex\cyrillic\t2acmss.fd)
! Missing \endcsname inserted.
<to be read again>
\aftergroup
l.11 \frametitle
{&#9575;хЁт&#8730;щ ёырщф яхЁтющ ёхъЎшш}
?

В чём дело и как делать правильно?

sagemma

C:\temp\file2078>latex ex1.tex
Почему latex, а не pdflatex?

luherstag

Пробовал и так и так. Для pdflatex результат такой (особой разницы я не вижу):

This is pdfeTeX, Version 3.141592-1.11b-2.1 (MiKTeX 2.4)
entering extended mode
(ex1.tex{pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7m> and hyphenation patterns for english, russian, dumylang, nohyphen
ation, loaded.
(C:\Program Files\texmf\tex\latex\beamer\beamer.cls
Document Class: beamer 2004/01/19 v1.21 Class for Typesetting a Beamer Presenta
tion
(C:\Program Files\texmf\tex\latex\beamer\beamerbasearticle.sty)
(C:\Program Files\texmf\tex\latex\pgf\pgf.sty
(C:\Program Files\texmf\tex\latex\xcolor\xcolor.sty
(C:\Program Files\texmf\tex\latex\graphics\color.sty
(C:\Program Files\texmf\tex\latex\00miktex\color.cfg)
(C:\Program Files\texmf\tex\latex\graphics\pdftex.def
(C:\Program Files\texmf\tex\latex\graphics\keyval.sty
(C:\Program Files\texmf\tex\latex\pgf\xxcolor.sty)
(C:\Program Files\texmf\tex\latex\amsfonts\amssymb.sty
(C:\Program Files\texmf\tex\latex\amsfonts\amsfonts.sty
(C:\Program Files\texmf\tex\latex\geometry\geometry.sty
(C:\Program Files\texmf\tex\latex\geometry\geometry.cfg
(C:\Program Files\texmf\tex\latex\hyperref\hyperref.sty
(C:\Program Files\texmf\tex\latex\hyperref\pd1enc.def)
(C:\Program Files\texmf\tex\latex\00miktex\hyperref.cfg)
(C:\Program Files\texmf\tex\latex\hyperref\puenc.def)
Implicit mode OFF; no redefinition of LaTeX internals
(C:\Program Files\texmf\tex\latex\ltxmisc\url.sty)
Hyperref stopped early
)
*hyperref using default driver hpdftex*
(C:\Program Files\texmf\tex\latex\hyperref\hpdftex.def
(C:\Program Files\texmf\tex\latex\psnfss\pifont.sty
(C:\Program Files\texmf\tex\latex\psnfss\upzd.fd)
(C:\Program Files\texmf\tex\latex\psnfss\upsy.fd
(C:\Program Files\texmf\tex\latex\base\size11.clo)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasecompatibility.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasefont.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasemisc.sty
No file ex1.nav.
) (C:\Program Files\texmf\tex\latex\beamer\beamerbasetitle.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasesection.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseframe.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseframecomponents.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasecolor.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseoverlay.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasetoc.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasetemplates.sty
(C:\Program Files\texmf\tex\latex\pgf\pgfshade.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbaseboxes.sty
(C:\Program Files\texmf\tex\latex\beamer\beamerbaselocalstructure.sty)
(C:\Program Files\texmf\tex\latex\beamer\beamerbasenavigation.sty
(C:\Program Files\texmf\tex\latex\base\inputenc.sty
(C:\Program Files\texmf\tex\latex\cyrillic\cp1251.def
(C:\Program Files\texmf\tex\generic\babel\babel.sty
(C:\Program Files\texmf\tex\generic\babel\russianb.ldf
(C:\Program Files\texmf\tex\generic\babel\babel.def)
(C:\Program Files\texmf\tex\latex\cyrillic\t2aenc.def
LaTeX Warning: Unused global option(s):
[unicode].
(ex1.aux) (C:\Program Files\texmf\tex\latex\cyrillic\t2acmr.fd)
(C:\Program Files\texmf\tex\context\base\supp-pdf.tex
(C:\Program Files\texmf\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous
)
loading : Context Support Macros / PDF
) (C:\Program Files\texmf\tex\latex\hyperref\nameref.sty) (ex1.out) (ex1.out)
(C:\Program Files\texmf\tex\latex\cyrillic\t2acmss.fd)
! Missing \endcsname inserted.
<to be read again>
\aftergroup
l.11 \frametitle
{&#9575;хЁт&#8730;щ ёырщф яхЁтющ ёхъЎшш}
?
! Emergency stop.
<to be read again>
\aftergroup
l.11 \frametitle
{&#9575;хЁт&#8730;щ ёырщф яхЁтющ ёхъЎшш}

Lokomotiv59

А почему кодировка unicode стоит ? наверное должно быть cp1251 ?

sagemma

Обнови MiKTeX и beamer.
Вот что у меня пишется
This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4)
entering extended mode
(a.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, french, russian, dumylang,
nohyphenation, loaded.
(D:\TEX\texmf\tex\latex\beamer\base\beamer.cls
(D:\TEX\texmf\tex\latex\beamer\base\beamerbasercs.sty)
Document Class: beamer 2005/10/23 cvs version 3.06 A class for typesetting pres
entations (rcs-revision 1.67)

luherstag

Расшарь пожалуйста свой дистрибутив.

Я пробовал другую версию поставить, она чуть более старая, чем твоя,
и ошибка там выводится другая.

This is pdfeTeX, Version 3.141592-1.20a-2.2 (MiKTeX 2.4)
...
beamer 2004/07/06 v2.21
...
! Undefined control sequence.
l.338 \newcolormixin
\colorhook

sagemma

http://miktex.org =)
Я уже давно не в общаге…
Оставить комментарий
Имя или ник:
Комментарий: