summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/sidecap/sc-test3.tex
blob: 1b0de01b206ea24430deb15bce050c2b225a024f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

% `sc-test3.tex', part of the LaTeX package `sidecap'
% 2003-02-21
% Rolf Niepraschk and Hubert G\"a\ss{}lein -- niepraschk@ptb.de

\documentclass{article}

\usepackage{sidecap}

\input{sc-test-common}

\begin{document}

\section*{\centering The \texttt{sidecap} package 
  (changed caption alignment)}

\begin{SCfigure}[][hb]
  \FIG{1}
  \caption{normal `SCfigure'}
\end{SCfigure}

\begin{SCtable}[][b]
  \TABi
  \caption{normal `SCtable'}
\end{SCtable}

\iffalse% the old way
\makeatletter
  \renewenvironment{SCfigure}{\SC@float[t]{figure}}
                             {\endSC@float}
  \renewenvironment{SCfigure*}{\SC@dblfloat[t]{figure}}
                              {\endSC@dblfloat}
  \renewenvironment{SCtable}{\SC@float[b]{table}}
                             {\endSC@float}
  \renewenvironment{SCtable*}{\SC@dblfloat[b]{table}}
                              {\endSC@dblfloat}
\makeatother
\fi

% the new way
\sidecaptionvpos{figure}{t}
\sidecaptionvpos{table}{b}

\begin{SCfigure}[][hb]
  \FIG{1}
  \caption{`SCfigure' modified\dots}
\end{SCfigure}

\begin{SCtable}[][b]
  \TABi
  \caption{`SCtable' modified\dots}
\end{SCtable}

\end{document}