summaryrefslogtreecommitdiff
path: root/info/examples/Einfuehrung/08-07-14.ltx2crop
blob: 024b9c70c360f7376084f4807955afcc98daef3d (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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  1. Auflage
%% 
%%  Beispiel 08-07-14 auf Seite 371.
%% 
%%  Copyright (C) 2012 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{190.324pt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancybox}
\usepackage[ngerman]{babel}
\usepackage{xcolor}\let\Rule\rule
\renewcommand\rule[2]{{\color{lightgray}\Rule{#1}{#2}}}
\setlength\textwidth{9cm}
\setlength\textheight{12cm}
\renewcommand\arraystretch{1.5}
\fancypage{\setlength\fboxsep{4pt}\fbox}{}
\StartShownPreambleCommands
\usepackage{caption,floatrow} \captionsetup{font={sf,small}} \floatsetup{footfont=sf}
\StopShownPreambleCommands
\begin{document}
\begin{table}\centering
\ttabbox{\caption{Eine Beschriftung, die über mehrere Zeilen geht.}\label{foo}}
{\begin{tabular}{c c}\hline
 Linke Zelle &Rechte Zelle\\Zweite Zeile&\\\hline
\end{tabular}
\floatfoot{Hier kommt eine Legende hin, die die Breite der Tabelle selbst erhält.}}
\end{table}
Die Tabelle~\ref{foo} und die Abbildung~\ref{bar} zeigen, dass man eine Legende unter
das Objekt setzen kann, die auch über die ganze Breite gehen kann, weil \ldots
\floatsetup{capposition=top,footposition=caption}
\begin{figure}[!htb] \centering
\ffigbox{\floatfoot{Hier kommt auch eine Legende hin, die die ganze Breite der Zeile
  ausfüllt, genau wie eine Beschriftung.}
\caption[Ersatztext]{Eine Beschriftung, die über mehrere Zeilen geht.%
  \protect\footnote{foo}}\label{bar}}{\rule{4cm}{2cm}}
\end{figure}
\end{document}