Debian Codegraph @

texmf-dist/doc/latex/sidecap/scraggeddemo.tex

raw
1
2 % Rolf Niepraschk, 2002-05-18
3
4 \listfiles
5
6 \documentclass[12pt,a4paper,twoside]{article}
7 \usepackage[bf,footnotesize]{caption2}
8 %\usepackage[leftcaption,ragged]{sidecap}
9 \usepackage[innercaption,ragged]{sidecap}
10 %\usepackage[innercaption,raggedright,origragged]{sidecap}
11
12
13 \renewcommand\tablename{Tab.} \renewcommand\figurename{Fig.}
14 \setlength{\belowcaptionskip}{\abovecaptionskip}
15 \setlength{\parindent}{0pt}
16
17 % --- ???? -----
18 \setcounter{topnumber}{4}
19 \renewcommand{\topfraction}{.8}
20 \setcounter{bottomnumber}{4}
21 \renewcommand{\bottomfraction}{.7}
22 \setcounter{totalnumber}{10}
23 \renewcommand{\textfraction}{.1}
24 \renewcommand\floatpagefraction{.7}
25
26 \setlength\emergencystretch{20pt}
27
28 \setlength\unitlength{1cm}
29 \newcommand{\FIGi}{%
30 \fbox{%
31 \begin{picture}(4,6)
32 \put(1,5){\circle{1}}
33 \put(3,5){\circle{1}}
34 \put(2,3){\circle{1}}
35 \put(1,1){\circle{1}}
36 \put(3,1){\circle{1}}
37 \end{picture}}
38 }
39
40 \newcommand{\TABi}{%
41 \begin{tabular}{@{} | c | c c c c c | @{}} \hline
42 \multicolumn{1}{| c} {1}
43 & 2 & 3 & 4 & 5 & 6 \\ \cline{2-6}
44 2 & 4 & 6 & 8 & 10 & 12 \\
45 3 & 6 & 9 & 12 & 15 & 18 \\
46 4 & 8 & 12 & 16 & 20 & 24 \\
47 5 & 10 & 15 & 20 & 25 & 30 \\
48 6 & 12 & 18 & 24 & 30 & 36 \\
49 7 & 14 & 21 & 28 & 35 & 42 \\
50 8 & 16 & 24 & 32 & 40 & 48 \\
51 9 & 18 & 27 & 36 & 45 & 54 \\
52 10 & 20 & 30 & 40 & 50 & 60 \\
53 11 & 22 & 33 & 44 & 55 & 66 \\
54 12 & 24 & 36 & 48 & 60 & 72 \\
55 13 & 26 & 39 & 52 & 65 & 78 \\
56 14 & 28 & 42 & 56 & 70 & 84 \\
57 \hline
58 \end{tabular}
59 }
60
61 \newcommand{\SHORTCAPi}{%
62 Schematischer Aufbau usw.}
63
64 \newcommand{\CAPi}{%
65 Schematischer Aufbau eines Diodenlasers. Ober- und Unterseite des Kristalls
66 sind metallisch kontaktiert, die Vorder- und R\"uckseite verspiegelt. Die
67 Dicke der aktiven Zone (pn-\"ubergang) liegt in der Gr\"o{\ss}enordnung von
68 5\,$\mu$m.}
69
70 \makeatletter
71
72 \newcommand*\justified{%
73 % \let\SC@justify\relax % geht nicht
74 \centering
75 }
76
77 \makeatother
78
79 \begin{document}
80
81 \section*{The \texttt{SideCap} package (scraggeddemo)}
82
83 \begin{figure}[bhp]
84 \centering
85 \FIGi%
86 \caption[\SHORTCAPi]{\CAPi}\label{fig:A}%
87 \end{figure}
88
89 \begin{SCfigure}[1.2][bhp]
90 \FIGi%
91 \caption[\SHORTCAPi]{\justified\CAPi}\label{fig:B}%
92 \end{SCfigure}
93
94 \begin{SCfigure}[1.2][bhp]
95 \FIGi%
96 \caption[\SHORTCAPi]{\CAPi}\label{fig:C}%
97 \end{SCfigure}
98
99 \begin{SCfigure}[][bhp]
100 \FIGi%
101 \caption[\SHORTCAPi]{\CAPi}\label{fig:D}%
102 \end{SCfigure}
103
104 \begin{SCtable}
105 \caption[\SHORTCAPi]{\CAPi}\label{tab:A}%
106 \FIGi%
107 \end{SCtable}
108
109 \begin{table}
110 \centering
111 \caption[\SHORTCAPi]{\CAPi}\label{tab:B}%
112 \TABi%
113 \end{table}
114
115 \begin{SCtable}
116 \caption[\SHORTCAPi]{\CAPi}\label{tab:C}%
117 \TABi%
118 \end{SCtable}
119
120 \end{document}
121
122
123
124
125
126
127
128