From: Phil Holmes Date: Tue, 10 Sep 2013 13:15:46 +0000 (+0100) Subject: Correct doc examples using hspace (Issue 3544) X-Git-Tag: release/2.17.27-1~40^2~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f3e8b5f9b68cab4579873749f4648ba63bc92ac7;p=lilypond.git Correct doc examples using hspace (Issue 3544) --- diff --git a/Documentation/learning/tweaks.itely b/Documentation/learning/tweaks.itely index 3efb7fb07b..6d9f157895 100644 --- a/Documentation/learning/tweaks.itely +++ b/Documentation/learning/tweaks.itely @@ -4041,13 +4041,10 @@ the parts with all the @code{#()}. This is explained in @ref{Advanced tweaks with Scheme}. @lilypond[quote,verbatim,ragged-right] -mpdolce = -#(make-dynamic-script - #{ \markup { \hspace #0 - \translate #'(5 . 0) - \line { \dynamic "mp" - \text \italic "dolce" } } - #}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4074,13 +4071,10 @@ Let's hide them in another file: @example %%% save this to a file called "definitions.ily" -mpdolce = -#(make-dynamic-script - #@{ \markup @{ \hspace #0 - \translate #'(5 . 0) - \line @{ \dynamic "mp" - \text \italic "dolce" @} @} - #@}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4112,13 +4106,10 @@ Now let's modify our music (let's save this file as @file{music.ly}). @end example @lilypond[quote,ragged-right] -mpdolce = -#(make-dynamic-script - #{ \markup { \hspace #0 - \translate #'(5 . 0) - \line { \dynamic "mp" - \text \italic "dolce" } } - #}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4147,13 +4138,10 @@ with this: @example %%% definitions.ily -mpdolce = -#(make-dynamic-script - #@{ \markup @{ \hspace #0 - \translate #'(5 . 0) - \line @{ \dynamic "mp" - \text \italic "dolce" @} @} - #@}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4180,13 +4168,10 @@ inst = @end example @lilypond[quote,ragged-right] -mpdolce = -#(make-dynamic-script - #{ \markup { \hspace #0 - \translate #'(5 . 0) - \line { \dynamic "mp" - \text \italic "dolce" } } - #}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4231,13 +4216,10 @@ overall size of the output. @example %%% web-publish.ily -mpdolce = -#(make-dynamic-script - #@{ \markup @{ \hspace #0 - \translate #'(5 . 0) - \line @{ \dynamic "mp" - \text \italic "dolce" @} @} - #@}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function @@ -4265,13 +4247,10 @@ inst = @end example @lilypond[quote,ragged-right] -mpdolce = -#(make-dynamic-script - #{ \markup { \hspace #0 - \translate #'(5 . 0) - \line { \dynamic "mp" - \text \italic "dolce" } } - #}) +mpdolce = -\tweak #'self-alignment-X #-0.6 # + (make-dynamic-script + (markup #:dynamic "mp" + #:normal-text #:italic "dolce" )) inst = #(define-music-function diff --git a/Documentation/ly-examples/bach-bwv610.ly b/Documentation/ly-examples/bach-bwv610.ly index 8d2134a5fb..863c8594e6 100644 --- a/Documentation/ly-examples/bach-bwv610.ly +++ b/Documentation/ly-examples/bach-bwv610.ly @@ -21,8 +21,28 @@ %opus="BWV 610" footer = "Mutopia-2006/03/27-706" - tagline = \markup { \override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7) \box \center-column { \small \line { Sheet music from \with-url #"http://www.MutopiaProject.org" \line { \teeny www. \hspace #-1.0 MutopiaProject \hspace #-1.0 \teeny .org \hspace #0.5 } • \hspace #0.5 \italic Free to download, with the \italic freedom to distribute, modify and perform. } \line { \small \line { Typeset using \with-url #"http://www.LilyPond.org" \line { \teeny www. \hspace #-1.0 LilyPond \hspace #-1.0 \teeny .org } by \maintainer \hspace #-1.0 . \hspace #0.5 Reference: \footer } } \line { \teeny \line { This sheet music has been placed in the public domain by the typesetter, for details see: \hspace #-0.5 \with-url #"http://creativecommons.org/licenses/publicdomain" http://creativecommons.org/licenses/publicdomain } } } } - + tagline = \markup { + \override #'(baseline-skip . 2.2) + \center-column { + \abs-fontsize #8 \sans \bold + \with-url #"http://www.MutopiaProject.org" { + "Mutopia" + "Project" + } + } + \override #'(baseline-skip . 0) + \column { + \with-color #grey + \filled-box #'( 0 . 1) #'(-2.5 . 1.4) #0 + } + \override #'(baseline-skip . 2.2) + \column { + \abs-fontsize #8 \sans + \concat{"Typeset using " \with-url #"http://www.lilypond.org" "LilyPond" " ©2006 by " \maintainer "." } + \abs-fontsize #8 \sans + \concat {"This work is licensed under a " \with-url #"http://creativecommons.org/about/pdm" \copyright " license."} + } + } } \include "deutsch.ly"