Left: | ||
Right: |
OLD | NEW |
---|---|
1 % DO NOT EDIT this file manually; it is automatically | 1 % DO NOT EDIT this file manually; it is automatically |
2 % generated from Documentation/snippets/new | 2 % generated from Documentation/snippets/new |
3 % Make any changes in Documentation/snippets/new/ | 3 % Make any changes in Documentation/snippets/new/ |
4 % and then run scripts/auxiliar/makelsr.py | 4 % and then run scripts/auxiliar/makelsr.py |
5 % | 5 % |
6 % This file is in the public domain. | 6 % This file is in the public domain. |
7 %% Note: this file works from version 2.21.0 | 7 %% Note: this file works from version 2.18.0 |
Malte Meyn
2017/10/07 10:11:58
I don’t know anything about snippets but this seem
dak
2017/10/07 10:47:21
Ah, I thought nobody'd notice (I forgot to run mak
| |
8 \version "2.21.0" | 8 \version "2.21.0" |
9 | 9 |
10 \header { | 10 \header { |
11 lsrtags = "rhythms, scheme-language, text" | 11 lsrtags = "rhythms, scheme-language, text" |
12 | 12 |
13 texidoc = " | 13 texidoc = " |
14 This example shows how to add a markup command to get a three sided box | 14 This example shows how to add a markup command to get a three sided box |
15 around some text (or other markup). | 15 around some text (or other markup). |
16 | 16 |
17 " | 17 " |
(...skipping 26 matching lines...) Expand all Loading... | |
44 (let ((pad (* (magstep font-size) box-padding)) | 44 (let ((pad (* (magstep font-size) box-padding)) |
45 (m (interpret-markup layout props arg))) | 45 (m (interpret-markup layout props arg))) |
46 (NWS-box-stencil m thickness pad))) | 46 (NWS-box-stencil m thickness pad))) |
47 | 47 |
48 % Test it: | 48 % Test it: |
49 | 49 |
50 \relative c' { | 50 \relative c' { |
51 c1^\markup { \NWS-box ABCD } | 51 c1^\markup { \NWS-box ABCD } |
52 c1^\markup { \NWS-box \note {4} #1.0 } | 52 c1^\markup { \NWS-box \note {4} #1.0 } |
53 } | 53 } |
OLD | NEW |