summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/sidecap/sc-test-common.tex
blob: 22b5dd9ff81a23dbee11a499f30cbb835e8f4a60 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122

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

\setlength{\emergencystretch}{20pt}
\renewcommand{\textfraction}{0}
\renewcommand{\topfraction}{1}     
\renewcommand{\bottomfraction}{1} 
\setcounter{bottomnumber}{4} 
\setcounter{topnumber}{4} 
\setcounter{totalnumber}{8}

\errorcontextlines100

\renewcommand\tablename{Tab.} \renewcommand\figurename{Fig.}

\setlength{\belowcaptionskip}{\abovecaptionskip}

\setlength\columnseprule{.4pt}

\newcommand{\FIG}[2][]{%
  \begingroup
    \def\xxx{#1}%
    \ifx\xxx\empty
      \setlength{\unitlength}{\linewidth}%
      \addtolength{\unitlength}{-2\fboxrule}%
      \setlength{\unitlength}{.1\unitlength}%
    \else  
      \setlength{\unitlength}{#1}%
    \fi% 
    \setlength{\fboxsep}{0pt}%
    \ifcase#2\relax
    \or%
      \fbox{%
	\begin{picture}(4,6)%
	  \put(1,5){\circle{1}}%
	  \put(3,5){\circle{1}}%
	  \put(2,3){\circle{1}}%
	  \put(1,1){\circle{1}}%
	  \put(3,1){\circle{1}}%     
	\end{picture}}%
    \or%	
      \fbox{%
	\begin{picture}(10,4)%
	  \put(1,3){\circle{1}}%
	  \put(9,3){\circle{1}}%
	  \put(5,2){\circle{1}}%
	  \put(1,1){\circle{1}}%
	  \put(9,1){\circle{1}}%     
	\end{picture}}%
    \or% (doesn't make a difference to use [b] or [t] or [c] here !!!)
      \begin{minipage}{5\unitlength}%
        text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text.
      \end{minipage}%	
    \or% (doesn't make a difference to use [b] or [t] or [c] here !!!)
      \begin{minipage}{5\unitlength}%
        \strut
        text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text
	text text text text text text text text.
	\unskip\strut
      \end{minipage}%	
    \fi	
  \endgroup  
}

\newcommand{\TABi}{%
  \begin{tabular}{@{} | c | c c c c c | @{}} \hline
    \multicolumn{1}{| c} {1} 
       &  2 &  3 &  4 &  5 &  6 \\ \cline{2-6}
     2 &  4 &  6 &  8 & 10 & 12 \\
     3 &  6 &  9 & 12 & 15 & 18 \\     
     4 &  8 & 12 & 16 & 20 & 24 \\
     5 & 10 & 15 & 20 & 25 & 30 \\
     6 & 12 & 18 & 24 & 30 & 36 \\
     7 & 14 & 21 & 28 & 35 & 42 \\
     8 & 16 & 24 & 32 & 40 & 48 \\
     9 & 18 & 27 & 36 & 45 & 54 \\
    10 & 20 & 30 & 40 & 50 & 60 \\
    11 & 22 & 33 & 44 & 55 & 66 \\
    12 & 24 & 36 & 48 & 60 & 72 \\
    13 & 26 & 39 & 52 & 65 & 78 \\
    14 & 28 & 42 & 56 & 70 & 84 \\
    \hline
  \end{tabular}%
}


\newcommand{\CAPi}{%
  The dazed brown fox quickly gave 12345--67890 jumps!
  The dazed brown fox quickly gave 12345--67890 jumps!
}
  
\newcommand{\CAPii}{%
  The dazed brown fox quickly gave 12345--67890 jumps!
  The dazed brown fox quickly gave 12345--67890 jumps!
  The dazed brown fox quickly gave 12345--67890 jumps!
  The dazed brown fox quickly gave 12345--67890 jumps!
}
  
\newcommand{\SHORTCAPi}{%
  The dazed brown fox etc.}  
  
\newcommand*{\MARKER}
  {\noindent\strut\vrule\hrulefill~text area 
   (\ifthenelse{\isodd{\thepage}}{odd}{even} page)~\hrulefill\vrule%
    \marginpar{\strut\vrule\hrulefill~margin area~\hrulefill\vrule}}  
    
\endinput