summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop67
1 files changed, 67 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop b/Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop
new file mode 100644
index 00000000000..710cc2dcfae
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung/08-06-6.ltx2crop
@@ -0,0 +1,67 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% Beispiel 08-06-6 auf Seite 347.
+%%
+%% 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,2,3
+%%
+\documentclass[]{exaarticle}
+\pagestyle{empty}
+\setlength\textwidth{126.88268pt}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[ngerman]{babel}
+\usepackage{fancybox}
+\setlength\textwidth{6cm}
+\setlength\textheight{8cm}
+\usepackage{xcolor}\let\Rule\rule
+\renewcommand\rule[2]{{\color{lightgray}\Rule{#1}{#2}}}
+\AtBeginDocument{\addtolength\abovecaptionskip{-3pt}
+\addtolength\belowcaptionskip{-2pt}}
+\fancypage{\setlength\fboxsep{4pt}\fbox}{}
+\makeatletter\renewcommand\fps@figure{!ht}\makeatother
+
+\usepackage{caption,ragged2e}% ragged2e wegen Centering
+\DeclareCaptionJustification{Centering}{\Centering}
+\newcommand\Rest{die, wie hier deutlich zu sehen ist, auch ohne weiteres
+mehrere Zeilen lang sein kann.}
+
+\begin{document}
+\begin{figure} \centering\rule{0.75\linewidth}{2mm}
+\caption{Eine standardmäßige Beschriftung ohne Formatierung}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=justified}
+\caption{Eine \emph{justified} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=centering}
+\caption{Eine \emph{centering} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=centerlast}
+\caption{Eine \emph{centerlast} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=centerfirst}
+\caption{Eine \emph{centerfirst} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=raggedright}
+\caption{Eine \emph{raggedright} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=RaggedRight}
+\caption{Eine \emph{RaggedRight} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=raggedleft}
+\caption{Eine \emph{raggedleft} Beschriftung, \Rest}
+\end{figure} \begin{figure}
+\centering\rule{0.75\linewidth}{2mm} \captionsetup{justification=Centering}
+\caption{Eine \emph{eigene} Beschriftung, \Rest}
+\end{figure}
+\end{document}