summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop b/Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop
new file mode 100644
index 00000000000..2680e54e617
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung2/08-06-9.ltx2crop
@@ -0,0 +1,59 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% 2. Auflage
+%%
+%% Beispiel 08-06-9 auf Seite 331.
+%%
+%% Copyright (C) 2016 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{169.16928pt}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[ngerman]{babel}
+\usepackage{fancybox}
+\setlength\textwidth{6cm}
+\setlength\textheight{8cm}
+\usepackage{xcolor}
+\newcommand\Rule[2]{{\color{lightgray}\rule{0.75\linewidth}{2mm}}}
+\AtBeginDocument{\addtolength\abovecaptionskip{-3pt}
+\addtolength\belowcaptionskip{-2pt}}
+\fancypage{\setlength\fboxsep{4pt}\fbox}{}
+\makeatletter\renewcommand\fps@figure{!ht}\makeatother
+%StartShownPreambleCommands
+\usepackage{caption}
+\newcommand\Rest{die auch ohne weiteres
+ mehrere Zeilen lang sein kann.}
+%StopShownPreambleCommands
+\begin{document}
+\begin{figure} \centering \Rule
+\caption{Eine standardmäßige Beschriftung
+ ohne Formatierung}
+\end{figure}
+\begin{figure} \centering \Rule
+\captionsetup{width=0.75\linewidth}
+\caption{Beschriftung mit
+ \emph{width=0.75\string\linewidth}, \Rest}
+\end{figure}
+\begin{figure} \centering \Rule
+\captionsetup{margin={0pt,40pt}}
+\caption{Eine \emph{margin=\{0pt,40pt\}}
+ Beschriftung, \Rest}
+\end{figure} \captionsetup{margin=1cm}
+\begin{figure} \centering \Rule \caption{%
+ Eine \emph{margin=1cm} Beschriftung, \Rest}
+\end{figure}
+\end{document}