Debian Codegraph @

texmf-dist/doc/latex/sidecap/sc-test3.tex

raw
1
2 % `sc-test3.tex', part of the LaTeX package `sidecap'
3 % 2003-02-21
4 % Rolf Niepraschk and Hubert G\"a\ss{}lein -- [email protected]
5
6 \documentclass{article}
7
8 \usepackage{sidecap}
9
10 \input{sc-test-common}
11
12 \begin{document}
13
14 \section*{\centering The \texttt{sidecap} package
15 (changed caption alignment)}
16
17 \begin{SCfigure}[][hb]
18 \FIG{1}
19 \caption{normal `SCfigure'}
20 \end{SCfigure}
21
22 \begin{SCtable}[][b]
23 \TABi
24 \caption{normal `SCtable'}
25 \end{SCtable}
26
27 \iffalse% the old way
28 \makeatletter
29 \renewenvironment{SCfigure}{\SC@float[t]{figure}}
30 {\endSC@float}
31 \renewenvironment{SCfigure*}{\SC@dblfloat[t]{figure}}
32 {\endSC@dblfloat}
33 \renewenvironment{SCtable}{\SC@float[b]{table}}
34 {\endSC@float}
35 \renewenvironment{SCtable*}{\SC@dblfloat[b]{table}}
36 {\endSC@dblfloat}
37 \makeatother
38 \fi
39
40 % the new way
41 \sidecaptionvpos{figure}{t}
42 \sidecaptionvpos{table}{b}
43
44 \begin{SCfigure}[][hb]
45 \FIG{1}
46 \caption{`SCfigure' modified\dots}
47 \end{SCfigure}
48
49 \begin{SCtable}[][b]
50 \TABi
51 \caption{`SCtable' modified\dots}
52 \end{SCtable}
53
54 \end{document}