summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/musixtex/addons/README.underbracket
blob: 4345cb63fdc6c2fe109e16daa712a81cffe225f4 (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
LaTeX package underbracket

draws brackets to underline (song) text

v1.2 by Bernd Jantzen
For e-mail contact please use "ctan" before the "@"-sign
and "bernd-jantzen.de" after it to form my address
(not given in full clear text here to prevent spam).

This package draws brackets to underline text (especially,
but not exclusively, syllables of song text).
It may be combined with musixtex/musixlyr, within the argument of
the \setlyrics command or outside the music score.
It provides several macros to define brackets which may e.g. start
and end centered below syllables.
Three length variables are provided to allow a fine adjustment
of the bracket parameters.

This material is subject to the LaTeX Project Public License.
See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
for the details of that license.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Commands:

\underbracket{TEXT}
  draws a bracket underlining TEXT
  the bracket starts below the left end of TEXT
  and stops below the right end of TEXT

\Underbracket{TEXT}
  like \underbracket, but reserves no vertical space below the text

\cunderbracket{LEFT}{TEXT}{RIGHT}
  draws a bracket underlining LEFTTEXTRIGHT
  the bracket starts centered below LEFT and stops centered below RIGHT

\cUnderbracket{LEFT}{TEXT}{RIGHT}
  like cunderbracket, but reserves no vertical space below the text


The commands \[c]underbracket do well in normal text which is aligned
according to the baseline. The vertical space reserved below the text
guarantees the distance to the next line.
The commands \[c]Underbracket do well within the \setlyrics command of
musixlyr where the text is vertically centered between the staves. Vertical
space reserved below the text would shift the whole text upwards here.


Adjustable length parameters:
(change e.g. with \setlength{\underbracketheight}{4pt})

\underbracketwidth (default 0.3pt):
  linewidth of the bracket

\underbracketheight (default 3pt):
  height of the bracket (length of the vertical lines)

\underbracketsep (default 2pt):
  vertical distance between the lowest part of the text
  and the upper end of the bracket;
  also minimal vertical distance below the bracket