File: sc-test3.tex

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (54 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download | duplicates (15)
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}