/[protege]/frames-vs-owl/rotcapt.sty
ViewVC logotype

Contents of /frames-vs-owl/rotcapt.sty

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2461 - (show annotations) (download)
Sat Jun 24 00:02:40 2006 UTC (12 years, 5 months ago) by vendetti
File size: 908 byte(s)
adding directory to house material for the frames vs. owl tutorial at the 2006 protege conference
1 % This is for report only.
2 % Note: in order to have properly centered captions, set
3 % rcaption takes two arguments, the first is the caption,
4 % the second is the width (height) of the caption.
5
6 \input rotate.sty
7
8 \def\rcaption{\refstepcounter\@captype \@dblarg{\@rcaption\@captype}}
9
10 \long\def\@rcaption#1[#2]#3#4{\par\addcontentsline{\csname
11 ext@#1\endcsname}{#1}{\protect\numberline{\csname
12 the#1\endcsname}{\ignorespaces #2}}\begingroup
13 \@parboxrestore
14 \normalsize
15 \@makercaption{\csname fnum@#1\endcsname}{\ignorespaces #3}{ #4}
16 \endgroup}
17
18 \long\def\@makercaption#1#2#3{
19 \setbox\@tempboxa\hbox{#1: #2}
20 \ifdim \wd\@tempboxa > #3 % IF longer than one line:
21 \vskip -#3
22 \hfill \rotate{\parbox{#3}{ \center #1: #2 \endcenter}}
23 \else % ELSE center.
24 \vskip -#3
25 \hfill\rotate{\hbox to #3{\hfil\box\@tempboxa\hfil}}
26 \fi}

protege-admin@lists.stanford.edu
ViewVC Help
Powered by ViewVC 1.1.26