summaryrefslogtreecommitdiff
path: root/info/examples/Math/04-11-6.ltx
blob: 7f50d7338ba40346d8d81e4ffa0a4deafa3f70e6 (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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  Mathematiksatz mit LaTeX
%%  2. Auflage
%% 
%%  Beispiel 04-11-6 auf Seite 65.
%% 
%%  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{352.81416pt}
\makeatletter
\def\@bracketheight{2pt}
\def\overbracket{\@ifnextchar[{\@overbracket}{\@overbracket[\@bracketheight]}}
\def\@overbracket[#1]{\@ifnextchar[{\@over@bracket[#1]}{\@over@bracket[#1][0.3em]}}
\def\@over@bracket[#1][#2]#3{%\message {Overbracket: #1,#2,#3}
   \mathop {\vbox {\m@th \ialign {##\crcr \noalign {\kern 3\p@
   \nointerlineskip }\downbracketfill {#1}{#2}
        \crcr \noalign {\kern 3\p@ }
        \crcr  $\hfil \displaystyle {#3}\hfil $%
        \crcr} }}\limits}
\def\downbracketfill#1#2{$\m@th \setbox \z@ \hbox {$\braceld$}
    \edef\@bracketheight{\the\ht\z@}\downbracketend{#1}{#2}
    \leaders \vrule \@height #1 \@depth \z@ \hfill
    \leaders \vrule \@height #1 \@depth \z@ \hfill
\downbracketend{#1}{#2}$}
\def\downbracketend#1#2{\vrule depth #2 width #1\relax}
\makeatother
\AtBeginDocument{\setlength\parindent{0pt}}
\StartShownPreambleCommands

\StopShownPreambleCommands
\begin{document}
\setlength\arraycolsep{0pt}
$\begin{array}{@{}ccccc@{}}
\textrm{Hasse \LaTeX\ }
  & \overbracket[0.5pt]{1\rightarrow2\rightarrow3\rightarrow4}
  & \overbracket[0.75pt][0.75em]{\rightarrow5\rightarrow6\rightarrow7}
  & \overbracket[1pt][1em]{\rightarrow8\rightarrow9\rightarrow10}
  & \textrm{\ Liebe \LaTeX}\\
  & \textrm{wenig} & \textrm{mittel} & \textrm{viel}
 \end{array}$
\end{document}