summaryrefslogtreecommitdiff
path: root/info/examples/lb2/6-3-2.ltx
blob: a2ed065ccbfd86691d30fa930c627105e9ac8006 (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
%%
%% Der LaTeX-Begleiter, zweite Auflage (September 2005)
%%
%% Beispiel 6-3-2 von Seite 302.
%%
%% Copyright (C) 2005 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley
%%
%% Uebersetzung: Copyright (C) 2005 Claudia Krysztofiak,
%%    Rebecca Stiels und Frank Mittelbach
%%
%% 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.
%%

\documentclass{lb2exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{173.4372pt}
\setcounter{page}{1}
\setlength\textheight{11.6\baselineskip}
\setlength\textfloatsep{6pt}
\setlength\intextsep{6pt}
% Für die Beispiele im Buch werden die
% vertikalen Abstände verkürzt und Überschriften
% erhalten einen kleineren Schriftgrad
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
                       {-2.5ex \@plus -1ex \@minus -.2ex}%
                       {1.3ex \@plus.2ex}%
                       {\normalfont\large\bfseries}}
\makeatother
\usepackage{float}
\floatstyle{boxed}
\newfloat{Reihe}{b}{los}[section]
\floatstyle{ruled}
\newfloat{XMLexa}{H}{lox}
\floatname{XMLexa}{XML Listing}
\newcommand\xmlcode[1]{\texttt{#1}}
\newcommand\sample{Text für unsere Seite,
 der immer und immer wieder verwendet wird. }

\StartShownPreambleCommands
\usepackage{float}
% Die Gleitobjektklassen "`Reihe"' und
% "`XMLexa"' und die Befehle \xmlcode und
% \sample aus dem letzten Beispiel
\StopShownPreambleCommands
\begin{document}
\listof{XMLexa}{XML Listings}
\listof{Reihe}{Liste der Serien}
\section{Neue Gleitobjektumgebungen}
\sample
\begin{XMLexa} \caption{Einfache XML-Datei}
 \xmlcode{<XMLphrase>Viel Spaß!</XMLphrase>}
\end{XMLexa}
\empty
\sample
\begin{XMLexa} \caption{Verarbeitungsanweisung}
 \xmlcode{<?xml version=''1.0''?>} \end{XMLexa}
\sample
\begin{Reihe}
\caption{Eulersche Konstante}
 \[e = 1 + \sum^\infty_{k=1} \frac{1}{k!}\]
\end{Reihe}
\sample
\end{document}