Здравствуйте у меня проблемы с MikTeX 2.5: раньше этот код работал
Код:
\documentclass[a4paper,12pt]{amsart}
%% Mathematical equipment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{latexsym}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Language %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage[english, russian]{babel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here we add some auxiliaries %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Normal LaTeX or pdfLaTeX? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ==> The new if-Command "\ifpdf" will be used at some
%% ==> places to ensure the compatibility between
%% ==> LaTeX and pdfLaTeX.
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse %%normal LaTeX is executed
\else
\pdfoutput=1
\pdftrue %%pdfLaTeX is executed
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%А вот и самое интересное, следующий код в MikTeX2.5 не работает.
%т.е. конечно все компилируется и даже нет сообщений об ошибках,
%только вот dvi файл получить мне не удается на выходе получаю
%всегда pdf файл, независимо от того компилирую ли я latex-ом
%или pdftex-ом. Если убрать опцию pdftex пакета graphicx, то все
%работает, только вот как мне включать в этом случае картинки в
%файл pdf
%ПОМОГИТЕ пожалуйста глупенькой студентке.
%
%P/s в MiKTeX2.4 все работало, а после того как мне установили
%MikTeX2.5 перестало.
%% Packages for Graphics & Figures %%%%%%%%%%%%%%%%%%%%%%%%%%
\ifpdf %%Inclusion of graphics via \includegraphics{file}
\usepackage[pdftex]{graphicx} %%graphics in pdfLaTeX
\else
\usepackage[dvips]{graphicx} %%graphics and normal LaTeX
\fi
%\usepackage[hang,tight,raggedright]{subfigure} %%Subfigures inside a figure
%\usepackage{pst-all} %%PSTricks - not useable with pdfLaTeX
\graphicspath{{pictures/}}%Default path to the picture files
\begin{document}
\begin{figure}\label{fig:fg1}
\includegraphics{perturbed}
\caption{Мой рисунок}
\end{figure}
\end{document}
а теперь нет. И еще у меня вопрос по классу beamer, как можно локализовать в нем заголовки теорем и примеров, так чтобы не присать отдельно окружение block. Вот код моих слайдов
Код:
%% Here we use option UNICODE as we want to write in russian%
\documentclass[unicode]{beamer}
%% Mathematical equipment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{amsmath}
%\usepackage{amsthm}
%\usepackage{amsfonts}
%\usepackage{amssymb}
%\usepackage{latexsym}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Language %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage[english, russian]{babel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Some auxiliaries %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{pause}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Declarations for theorem environment %%%%%%%%%%%%%%%%%%%%%
%\theoremstyle{plain}
%\newtheorem{theorem}{Теорема}
%\newtheorem{theorem}{Теорема}
%\newtheorem{corollary}[theorem]{Следствие}
%\newtheorem{lemma}{Лемма}
%\newtheorem{proposition}[theorem]{Предложение}
%\newtheorem{example}{Пример}
%\theoremstyle{definition}
%\newtheorem{definition}{Определение}
%\theoremstyle{remark}
%\newtheorem{notation}{Замечание}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Packages for Graphics & Figures %%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx} %%graphics in pdfLaTeX
%\usepackage[hang,tight,raggedright]{subfigure} %%Subfigures inside a figure
%\usepackage{pst-all} %%PSTricks - not useable with pdfLaTeX
\graphicspath{{pictures/}}%Default path to the picture files
%\DeclareGraphicsRule{*}{mps}{*}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here we define style of our presentation %%%%%%%%%%%%%%%%%
\mode<presentation>{
\usetheme{Warsaw}
\setbeamercovered{transparent}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here we form title page of our presentation %%%%%%%%%%%%%%
%%
%% Взято с сайта http://forum.b.gz.ru %%%%%%%%%%%%%%%%%%%%%%%
%%
\title[Короткое название]{Длинное название презентации}
\subtitle{Небольшая подпись к названию}
\author[Петров, Васечкин]%[]-только если авторов много: >3
{И.~Петров\inst{1} \and А.~Васечкин\inst{2}}
%\inst - указывает, из каких организаций авторы.
%имеет смысл указывать, если они из разных организаций
\institute[Организация Петрова и Васечкина] %
{
\inst{1}%
Первый Отдел \\
АО "МММ"
\and
\inst{2}%
Факультет \\
MTv}
\date[ФЛ:Study 2006]
{Форум.Локал, Study - \LaTeX{} FAQ, 2006}
\subject{\LaTeX FAQ: презентации}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here we include our logo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\logo{\includegraphics[scale=0.1]{logo}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% our presenatation starts right here %%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Оглавление}
\tableofcontents
\end{frame}
%% Взято с сайта http://forum.b.gz.ru %%%%%%%%%%%%%%%%%%%%%%%
%% и здесь у меня вопрос: для чего нужна метка \begin{frame}[label=s1]
%% и как ее использовать
\section{Первая секция}\label{sec:sec1}
\begin{frame}[label=s1]
\frametitle{Первый слайд первой секции}
\begin{itemize}
\item<1-3> Тест
\item<2-4> Тест
\item<3-5> Тест
\begin{itemize}
\item Бла
\item<-2> бла
\item<3-> бла
\end{itemize}
\item Последняя
\end{itemize}
\end{frame}
%% А это уже мое творчество
%% при компиляции получается слайд в котором
%% заголовок теоремы и примера написано на
%% английском языке, хотя в документации на
%% класс beamer говорится, что при включении
%% пакета babel и соответствующего языка название
%% будет локализовано соответствующим образом
%% есля же я сама пытаюсь определить окружения
%% тапа theorem то получаем кучу ошибок при компиляции
%% пришет, что они уже определены
%% ПОМОГИТЕ пожалуйста
\section{Теоремы}\label{sec:sec2}
\begin{frame}[label=s3]
\frametitle{Слайд с теоремами}
\begin{theorem}
Это моя теорема
\end{theorem}
\begin{proof}
Это ее доказательство
\end{proof}
\begin{example}
Это иллюстрационный пример
\end{example}
\end{frame}
\end{document}
Заранее спасибо.
Ваша Маришка.