lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circled molecules? [WAS: Re: Using multiple versions of lilypond


From: Jan Nieuwenhuizen
Subject: Re: Circled molecules? [WAS: Re: Using multiple versions of lilypond
Date: Mon, 30 Sep 2002 11:57:54 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

"Antonio PALAMA'" <address@hidden> writes:

> Here is a problem I've got and wasn't able to solve.

> With 1.2.17 I could produce beautiful circled rehearsal marks with the
> following
> code
>
> \mark "{\\font\\twelverm=cmbx12\\twelverm{%
> \\hspace{-3mm}%
> \\raisebox{-1mm}{%
> \\setlength{\\unitlength}{1mm}%
> \\begin{picture}(7,7)%
> \\put(3.5,3.5){\\circle{7.0}\\makebox(0,0){A}}%
> \\end{picture}%
> }%
> }}";
>
> With 1.4.12 the circled rehearsal marks were still produced but a large amount
> of whitespace was inseted in the score between the mark and the first note
> following. With 1.6.2 the rehearsal mark is not printed at all but the extra
> whitespace is still there.

Yes.  Well, the bad news is that the kind of inline LaTeX hacking you
did (for 1.2), is not and has never been a recommended or supported
feature.  LilyPond cannot calculate the dimensions of such a hack.
(La)TeX hacking should only be used if there's really no other option
(chinese lyrics come to mind).

You can use boxed molecules, like so:

    \score{
        \notes \relative c''{

            \property Score.RehearsalMark \override #'molecule-callback =
            #(make-molecule-boxer 0.15 0.3 0.3 Text_item::brew_molecule)

            a \mark "A"  b c \mark\default d
        }
        \paper{
             indent = 0.0\mm
             linewidth = 50.0\mm
         }
    }

Circled molecules have not been implemented yet.

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]