Commits

Anonymous committed c76b8bb

fixed translator

Comments (0)

Files changed (3)

base/beamerbasetheorems.sty

 \mode
 <all>
 
-\IfFileExists{translator.sty}{\RequirePackage{translator}}{}
-\providecommand\translation[2][]{#2}
-
+\IfFileExists{translator.sty}{
+  \RequirePackage{translator}
+  \usedictionary{translator-theorem-dictionary}
+}
+{
+  % Fake:
+  \providecommand\translate[2][]{#2}
+}
 
 \mode
 <presentation>
 
   \def\th@example{\th@remark}
 
-  \newcommand{\ExampleInline}[1]{\translation{Example}: \ignorespaces#1}
+  \newcommand{\ExampleInline}[1]{\translate{Example}: \ignorespaces#1}
 
+  % Compatiblity:
   \newcommand{\BeispielInline}[1]{Beispiel: \ignorespaces#1}
 }
 
 {
   \ifbeamer@blocks
     \ifbeamer@countsect
-      \newtheorem{theorem}{\translation{Theorem}}[section]
+      \newtheorem{theorem}{\translate{Theorem}}[section]
     \else
-      \newtheorem{theorem}{\translation{Theorem}}
+      \newtheorem{theorem}{\translate{Theorem}}
     \fi
-    \newtheorem{corollary}[theorem]{\translation{Corollary}}
-    \newtheorem{fact}[theorem]{\translation{Fact}}
-    \newtheorem{lemma}[theorem]{\translation{Lemma}}
-    \newtheorem{problem}[theorem]{\translation{Problem}}
-    \newtheorem{solution}[theorem]{\translation{Solution}}
+    \newtheorem{corollary}[theorem]{\translate{Corollary}}
+    \newtheorem{fact}[theorem]{\translate{Fact}}
+    \newtheorem{lemma}[theorem]{\translate{Lemma}}
+    \newtheorem{problem}[theorem]{\translate{Problem}}
+    \newtheorem{solution}[theorem]{\translate{Solution}}
 
     \theoremstyle{definition}
-    \newtheorem{definition}[theorem]{\translation{Definition}}
-    \newtheorem{definitions}[theorem]{\translation{Definitions}}
+    \newtheorem{definition}[theorem]{\translate{Definition}}
+    \newtheorem{definitions}[theorem]{\translate{Definitions}}
     
     \theoremstyle{example}
-    \newtheorem{example}[theorem]{\translation{Example}}
-    \newtheorem{examples}[theorem]{\translation{Examples}}
+    \newtheorem{example}[theorem]{\translate{Example}}
+    \newtheorem{examples}[theorem]{\translate{Examples}}
 
     
     % Compatibility

doc/beamerug-nonpresentation.tex

 
 \begin{verbatim}
 \usepackage{pgfpages}
-\pgfpagelayout{2 on 1}[a4paper,border shrink=5mm]
+\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
 \end{verbatim}
 Instead of |2 on 1| you can use |4 on 1| (but then you have to add
 |landscape| to the list of options) and you can use, say,

doc/beamerug-workflow.tex

 
 \begin{verbatim}
 \usepackage{pgfpages}
-\pgfpagelayout{resize}[a4paper,border shrink=5mm,landscape]
+\pgfpagesuselayout{resize}[a4paper,border shrink=5mm,landscape]
 \end{verbatim}
 
 This says ``Resize all pages to landscape A4 pages, no what their
 
 \begin{verbatim}
 \usepackage{pgfpages}
-\pgfpagelayout{2 on 1}[a4paper,border shrink=5mm]
+\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
 \end{verbatim}
 
 This says ``Put two pages on one page and then resize everything so