-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinking.tex
51 lines (46 loc) · 1.29 KB
/
linking.tex
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
\newbox\linkbox
\newbox\wordbox
%\newdimen\boxwid
\def\lyrlink{%
% Bogen erstellen: Put the smilie in the box:
\setbox\linkbox=\hbox{$\smile$}%
% In Box der Breite eines Wortzwischenraums einsetzen:
% Make the box one space wide:
\setbox\linkbox=\hbox to\the\fontdimen2\the\font{%
\hss
% Unter die Grundlinie druecken:
% Lower the box under the word:
\lower\ht\linkbox\hbox{%
% Zusaetzlicher vertikaler Abstand zur Wortunterseite:
% lower the smile a little bit more:
\lower1pt\hbox{%
\relax
\hbox{$\smile$}%
}}%
\hss}%
% Keine zusaetzliche Tiefe fuer Bogen anrechnen:
% Make the depth of the box zero:
\dp\linkbox=0pt
% Bogen setzen:
\box\linkbox}
\def\intralink#1{%
\setbox\linkbox=\hbox{$\smile$}%
\setbox\wordbox=\hbox{#1}%
\setbox\linkbox=\hbox to\wd\wordbox{%
\hss
% Unter die Grundlinie druecken:
% Lower the box under the word:
\lower\ht\linkbox\hbox{%
% Zusaetzlicher vertikaler Abstand zur Wortunterseite:
% lower the smile a little bit more:
\lower1pt\hbox{%
\relax
\hbox{$\smile$}%
}}%
\hss}%
% Keine zusaetzliche Tiefe fuer Bogen anrechnen:
% Make the depth of the box zero:
\dp\linkbox=0pt
% \let\boxwid=\the\wd\wordbox
% \lower\ht\linkbox%
\box\wordbox \llap{\box\linkbox}}