lilypond-user
[Top][All Lists]
Advanced

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

Re: \fill-line with markuplist?


From: Thomas Morley
Subject: Re: \fill-line with markuplist?
Date: Mon, 8 Oct 2012 14:58:42 +0200

2012/10/8 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> Hi,
>>
>> perhaps I'm overlooking sth simple.
>> I want to have a centered "table-of-content" with a smaller line-width.
>>
>> \markuplines  {
>>         \override-lines #'(line-width . 80)
>>         \table-of-contents
>> }
>>
>> works, but isn't centered.
>>
>> Example:
>>
>> \version "2.16.0"
>>
>> \markuplist
>>     \override-lines #'(line-width . 50)
>>       \justified-lines {
>>         Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
>>         do eiusmod tempor incididunt ut labore et dolore magna aliqua.
>>         Ut enim ad minim veniam, quis nostrud exercitation ullamco
>>         laboris nisi ut aliquip ex ea commodo consequat.
>>       }
>>
>> Seems I can't use \fill-line as in a simple markup:
>>
>> \markup
>>   \fill-line {
>>     \override #'(line-width . 50)
>>      \justify {
>>         Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
>>         do eiusmod tempor incididunt ut labore et dolore magna aliqua.
>>         Ut enim ad minim veniam, quis nostrud exercitation ullamco
>>         laboris nisi ut aliquip ex ea commodo consequat.
>>      }
>>   }
>>
>> Is there any default-command I'm missing?
>
> I honestly have no clue whether this is what you need, but it would seem
> like
>
> \version "2.16.0"
>
> \markup \fill-line { \center-column
>     \override-lines #'(line-width . 50)
>       \justified-lines {
>         Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
>         do eiusmod tempor incididunt ut labore et dolore magna aliqua.
>         Ut enim ad minim veniam, quis nostrud exercitation ullamco
>         laboris nisi ut aliquip ex ea commodo consequat.
>       } }
>
> does something akin to what you are asking for.
>
> --
> David Kastrup
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi David,

I had the impression that using \markuplist instead of \markup would
require the markuplist-commands listed in the NR:
http://lilypond.org/doc/v2.16/Documentation/notation-big-page#text-markup-list-commands

And for \table-of-contents the NR (same in /Snippets and the LSR)
mentions nothing else than \markuplist to use.  It's always:

\markuplist %!!
  \table-of-contents

But it turns out that following your suggestion

\markup %!!
    \fill-line {
            \center-column {
                    \override-lines #'(line-width . 50)
                    \table-of-contents
            }
}

works as expected.


Many thanks,
  Harm



reply via email to

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