summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop66
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop b/Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop
new file mode 100644
index 00000000000..d706e431b90
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung2/08-07-9.ltx2crop
@@ -0,0 +1,66 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% 2. Auflage
+%%
+%% Beispiel 08-07-9 auf Seite 347.
+%%
+%% 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) 2,3
+%%
+%%
+\documentclass[twoside,a5paper]{screxa}
+\pagestyle{empty}
+\setlength\textwidth{159.16928pt}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[ngerman]{babel}
+\usepackage{xcolor}\let\Rule\rule
+\renewcommand\rule[2]{{\color{lightgray}\Rule{#1}{#2}}}
+\setlength\textwidth{294.7706pt}
+\AtBeginDocument{\null\pagestyle{origplain}\clearpage}
+%StartShownPreambleCommands
+\usepackage{ragged2e}
+\usepackage[format=plain,font=small,justification=RaggedRight]{caption}
+\usepackage{floatrow}\hyphenation{Be-schrif-tung}
+\DeclareMarginSet{hangleft}{\setfloatmargins{\hskip-\marginparwidth}{\hfil}}
+\DeclareMarginSet{hangright}{\setfloatmargins{\hfil}{\kern-\marginparwidth}}
+\newenvironment{myFloat}[1][2]
+ {\ifthispageodd{\floatsetup[widefigure]{margins=hangright}}
+ {\floatsetup[widefigure]{margins=hangleft}}
+ \begin{figure*}[!htb]\begin{floatrow}[#1]}
+ {\end{floatrow}\end{figure*}}
+\newcommand\Text{Eine ganz lange Zeile, um zu sehen, wie breit eigentlich die normale
+Zeile ist. Eine lange Zeile, um zu sehen, wie breit eigentlich die normale Zeile ist.}
+%StopShownPreambleCommands
+\begin{document}
+\section{Erster Abschnitt}
+\begin{myFloat}[4]
+\ffigbox[\FBwidth]{\caption{Eine standardmäßige Beschriftung, die über mehrere Zeilen
+ geht}}{\rule{3cm}{3cm}}
+\ffigbox{\caption{Eine neue Beschriftung, die über mehrere Zeilen geht}}{\rule{2cm}{3cm}}
+\ffigbox{\caption{Eine über mehrere Zeilen gehende Beschriftung}}{\rule{2cm}{3cm}}
+\ffigbox[\Xhsize]{\caption{Wieder eine neue Beschriftung, die über mehrere Zeilen geht}}
+ {\rule{2cm}{3cm}}
+\end{myFloat}
+\Text\vfill\Text\clearpage
+\section{Zweiter Abschnitt}
+\begin{myFloat}[4]
+\ttabbox[\FBwidth]{\caption{Eine standardmäßige Beschriftung, die über mehrere Zeilen
+ geht}}{\rule{3cm}{3cm}}
+\ttabbox{\caption{Eine neue Beschriftung, die über mehrere Zeilen geht}}{\rule{2cm}{3cm}}
+\ttabbox{\caption{Eine über mehrere Zeilen gehende Beschriftung}}{\rule{2cm}{3cm}}
+\ttabbox[\Xhsize]{\caption{Wieder eine neue Beschriftung, die über mehrere Zeilen geht}}
+ {\rule{2cm}{3cm}}
+\end{myFloat}
+\Text\vfill\Text
+\end{document}