summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/talk/talk.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/talk/talk.cls')
-rw-r--r--Master/texmf-dist/tex/latex/talk/talk.cls71
1 files changed, 45 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/talk/talk.cls b/Master/texmf-dist/tex/latex/talk/talk.cls
index 1e9831b33e0..aed90baf644 100644
--- a/Master/texmf-dist/tex/latex/talk/talk.cls
+++ b/Master/texmf-dist/tex/latex/talk/talk.cls
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{talk}[2006/07/11 v1.0.2]
+\ProvidesClass{talk}[2006/07/11 v1.1]
\def\pres@dt@notes{notes}
\def\pres@dt@slides{slides}
@@ -83,6 +83,8 @@
%
\newlength{\slidewidth}
\newlength{\slideheight}
+\newlength{\pres@hadjust}
+\newlength{\pres@vadjust}
\def\pres@currentslidestyle{}
\def\pres@oldslidestyle{}
\def\@slidetitle{}
@@ -162,20 +164,20 @@
\def\pres@defaultslidebackground{%
\pgfsetlinewidth{0.8pt}
\color{black}
- \pgfrect[stroke]{\pgfpoint\z@\z@}{\pgfpoint\slidewidth\slideheight}
+ \pgfrect[stroke]{\pgfpointorigin}{\pgfpoint\slidewidth\slideheight}
}
\def\pres@restoredefaults{%
\gdef\@makeslidecontent{\pres@defaultslide}
\gdef\@makeslidebackground{\pres@defaultslidebackground}
\gdef\@makeslide{%
- \begin{pgfpicture}\z@\z@\z@\z@%
- \@makeslidebackground%
- \end{pgfpicture}%
- \begin{minipage}[b][\slideheight][t]{\slidewidth}%
- \@makeslidecontent%
- \end{minipage}%
+ \@makeslidebackground%
+ \pgfputat{\pgfpointorigin}{\pgfbox[left,bottom]{%
+ \begin{minipage}[b][\slideheight][t]{\slidewidth}%
+ \@makeslidecontent%
+ \end{minipage}%
+ }}%
}
- \gdef\@makenotesslide{\par\hspace*{\fill}\@makeslide\hspace*{\fill}\par}
+ \gdef\@makenotesslide{\par\hspace*{\fill}\@slidebox\hspace*{\fill}\par}
\gdef\@maketocsection##1##2##3{}
\gdef\@maketocsubsection##1##2##3##4{}
}
@@ -184,25 +186,39 @@
% the slide environment
%
+\def\@slidebox{%
+ \begin{pgfpicture}
+ \@ifslides{%
+ \pgftransformscale{\pres@slidesmag}%
+ \if@pres@rotate
+ \pgftransformrotate{90}%
+ \fi
+ }{}%
+ \pgfpathrectangle{\pgfpointorigin}{\pgfpoint\slidewidth\slideheight}%
+ \pgfusepath{use as bounding box}%
+ \pgflowlevelsynccm%
+ \@makeslide
+ \end{pgfpicture}%
+}
+
\@ifnotes{\def\pres@makeslide{\noindent\@makenotesslide}}{}
\@ifslides{%
\def\pres@makeslide{%
\vspace*{\fill}%
+ \vspace{2\pres@vadjust}
\noindent%
\hspace*{\fill}%
- \scalebox{\pres@slidesmag}{%
- \if@pres@rotate%
- \rotatebox[origin=c]{90}{\@makeslide}%
- \else%
- \@makeslide%
- \fi%
- }%
+ \hspace{2\pres@hadjust}
+ \@slidebox%
\hspace*{\fill}%
\vspace*{\fill}%
\newpage%
}%
}{}
-\@ifscreen{\def\pres@makeslide{\noindent\@makeslide\newpage}}{}
+\@ifscreen{\def\pres@makeslide{%
+ \noindent\@slidebox%
+ \newpage%
+}}{}
\def\slide{\@ifnextchar[{\@@slide}{\@slide}}
\long\def\@@slide[#1]#2{%
@@ -308,13 +324,7 @@
\vspace*{\fill}%
\noindent%
\hspace*{\fill}%
- \scalebox{\pres@slidesmag}{%
- \if@pres@rotate%
- \rotatebox[origin=c]{90}{\@makeslide}%
- \else%
- \@makeslide%
- \fi%
- }%
+ \@slidebox%
\hspace*{\fill}%
\vspace*{\fill}%
\newpage%
@@ -327,8 +337,7 @@
\def\theslidelabel{\thesubslide}
\multido{}{\pres@msmax}{%
\refstepcounter{subslide}
- \noindent%
- \@makeslide%
+ \noindent\@slidebox%
\newpage%
}%
}%
@@ -387,6 +396,16 @@
\@ifslides{\pres@removemargins}{}%
}
\def\slidesmag#1{\gdef\pres@slidesmag{#1}}
+\def\slidesadjust#1#2{%
+ \if@pres@rotate
+ \setlength{\pres@hadjust}{#2}%
+ \setlength{\pres@vadjust}{#1}%
+ \setlength{\pres@vadjust}{-\pres@vadjust}%
+ \else
+ \setlength{\pres@hadjust}{#1}%
+ \setlength{\pres@vadjust}{#2}%
+ \fi
+}
\@slidesize{4in}{3in}
\@ifnotes{}{\pagestyle{empty}}