summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-06-25 11:29:25 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-06-25 11:29:25 +0000
commit7f6c139bbdbbbcee9140892f8fad3584d63cf446 (patch)
tree758e44ba372ce41c88c327aaa5fa7f469bea018b /Master/texmf-dist/tex
parentf52cc33b4a7d60c6a06d3e46fb47442317a3952d (diff)
rotating v1.13 2008/06/06
git-svn-id: svn://tug.org/texlive/trunk@9039 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/rotating/rotating.sty43
1 files changed, 23 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/rotating/rotating.sty b/Master/texmf-dist/tex/latex/rotating/rotating.sty
index 01e4924d56b..406e968aa95 100644
--- a/Master/texmf-dist/tex/latex/rotating/rotating.sty
+++ b/Master/texmf-dist/tex/latex/rotating/rotating.sty
@@ -17,9 +17,9 @@
%% Mail contact: rf10@cam.ac.uk
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rotating}%
- [2008/06/06 v2.15a
+ [2008/06/06 v2.15b
rotated objects in LaTeX%
- ]% $Id: rotating.dtx,v 1.13 2008/06/06 19:25:30 rf10 Exp rf10 $
+ ]% $Id: rotating.dtx,v 1.11 2008/06/06 19:22:17 rf10 Exp rf10 $
\DeclareOption{clockwise}{%
\AtBeginDocument{\setkeys{Grot}{units=360}}%
}
@@ -116,7 +116,8 @@
\stepcounter{r@tfl@t}%
\rot@label{RF\ther@tfl@t}%
\rot@pageref{RF\ther@tfl@t}{\R@@page}%
- \rot@mess@toks{Adding sideways \@captype\space on page \R@@page\space}
+ \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
+ \rot@mess@toks\expandafter{\@tempa}
\wd\rot@float@box\z@
\ht\rot@float@box\z@
\dp\rot@float@box\z@
@@ -128,7 +129,7 @@
\fi
\ifthenelse{\isodd{\R@@page}}{%
\if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks right hand page}%
+ \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
\fi
\vfill
\@@line{%
@@ -138,7 +139,7 @@
}%
}{%
\if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks left hand page}%
+ \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
\fi
\@@line{%
\hskip\rotFPbot
@@ -170,7 +171,8 @@
\stepcounter{r@tfl@t}%
\rot@label{RF\ther@tfl@t}%
\rot@pageref{RF\ther@tfl@t}{\R@@page}%
- \rot@mess@toks{Adding sideways \@captype\space on page \R@@page\space}
+ \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
+ \rot@mess@toks\expandafter{\@tempa}
\@tempdima\ht\rot@float@box
\advance\@tempdima by \dp\rot@float@box
\wd\rot@float@box\z@
@@ -185,7 +187,7 @@
\ifthenelse{\isodd{\R@@page}}{%
\ifrot@messages
\if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks right hand page}%
+ \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
\fi
\fi
\vfill
@@ -197,7 +199,7 @@
}{%
\ifrot@messages
\if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks left hand page}%
+ \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
\fi
\fi%
\@@line{%
@@ -246,24 +248,25 @@
\newtoks\rot@mess@toks
\def\rotcaption{\refstepcounter\@captype\@dblarg{\@rotcaption\@captype}}
\long\def\@rotcaption#1[#2]#3{%
-\addcontentsline{\csname ext@#1\endcsname}{#1}{%
- \protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
+ \addcontentsline{\csname ext@#1\endcsname}{#1}{%
+ \protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
\par
\begingroup
\@parboxrestore
\normalsize
\@makerotcaption{\csname fnum@#1\endcsname}{#3}%
\endgroup}
-\long\def\@makerotcaption#1#2{%
- \setbox\@tempboxa\hbox{#1: #2}%
- \ifdim \wd\@tempboxa > .8\vsize
- \rotatebox{90}{%
- \begin{minipage}{.8\textheight}#1: #2\end{minipage}%
- }\par
- \else%
- \rotatebox{90}{\box\@tempboxa}%
- \fi
- \hspace{12pt}%
+ \long\def\@makerotcaption#1#2{%
+ \setbox\@tempboxa\hbox{#1: #2}%
+ \ifdim \wd\@tempboxa > .8\vsize
+ \rotatebox{90}{%
+ \begin{minipage}{.8\textheight}#1: #2\end{minipage}%
+ }%
+ \else%
+ \rotatebox{90}{\box\@tempboxa}%
+ \fi
+ \nobreak
+ \hspace{12pt}%
}
\endinput
%%