From 5e3649d69f59e3744a50d325e3d37e213339ef06 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Thu, 25 Aug 2005 06:11:49 +0000 Subject: [PATCH] Fix example using raised text. --- ChangeLog | 3 +++ Documentation/user/programming-interface.itely | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6ef8b3779..621082c263 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * Documentation/user/advanced-notation.itely: add info about raising text. + * Documentation/user/programming-interface.itely: fix example + involving raised text. + 2005-08-24 Han-Wen Nienhuys * lily/beam.cc (print): fix X start/end points of isolated diff --git a/Documentation/user/programming-interface.itely b/Documentation/user/programming-interface.itely index e3ebda08e7..46e00dd03b 100644 --- a/Documentation/user/programming-interface.itely +++ b/Documentation/user/programming-interface.itely @@ -628,15 +628,15 @@ defined @code{\smallcaps} command: "Print the character name in small caps, translated to the left and top. Syntax: \\character #\"name\"" (interpret-markup layout props - (markup "" #:translate (cons -3 1) #:smallcaps name))) + (markup #:hspace 0 #:translate (cons -3 1) #:smallcaps name))) @end example There is one complication that needs explanation: texts above and below the staff are moved vertically to be at a certain distance (the @code{padding} property) from the staff and the notes. To make sure that this mechanism does not annihilate the vertical effect of our -@code{#:translate}, we add an empty string (@code{""}) before the -translated text. Now the @code{""} will be put above the notes, and the +@code{#:translate}, we add an empty string (@code{#:hspace 0}) before the +translated text. Now the @code{#:hspace 0} will be put above the notes, and the @code{name} is moved in relation to that empty string. The net effect is that the text is moved to the upper left. @@ -665,7 +665,7 @@ The final result is as follows: "Print the character name in small caps, translated to the left and top. Syntax: \\character #\"name\"" (interpret-markup layout props - (markup "" #:translate (cons -3 1) #:smallcaps name))) + (markup #:hspace 0 #:translate (cons -3 1) #:smallcaps name))) { c''^\markup \character #"Cleopatra" c'' c'' c'' -- 2.39.5