summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls18
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls b/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls
index ad46c92c15e..2efeb4f587a 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls
+++ b/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{41973}
+%% \CheckSum{42007}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -35,7 +35,7 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{bidipresentation}
+\ProvidesClass{bidipresentation}[2013/11/16 v0.1 bidi presentation]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass{article}
@@ -106,6 +106,20 @@
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}}
{\endlist}
+\newbox\bidi@uses@vebox
+\newtoks\bidi@uses@veoutput
+\newcount\bidi@uses@vepage
+\def\pause{\global\bidi@uses@vepage=\count0\relax %save pagenumber
+ \bidi@uses@veoutput=\output % make backup copy of output routine
+ \output={\global\setbox\bidi@uses@vebox=\box255}% copy current contents
+ % only, when triggered
+ \vfill\eject %trigger now
+ \output=\bidi@uses@veoutput % restore output routine
+ \unvcopy\bidi@uses@vebox % insert contents
+ \eject % now really show the output
+ \global\count0=\bidi@uses@vepage\relax %restore page number
+ \unvbox\bidi@uses@vebox\vskip-\lastskip % and insert again for next turn
+}%
\endinput
%%
%% End of file `bidipresentation.cls'.