Re: tips for formatting an interview

2015-11-18 Thread Federico Bruni
Il giorno mer 18 nov 2015 alle 2:24, Thomas Morley 
 ha scritto:

2015-11-18 1:15 GMT+01:00 Federico Bruni :

 Il giorno mer 18 nov 2015 alle 0:49, Thomas Morley
  ha scritto:


 Yes, change #f to #t in this line:
(make-wordwrap-internal-markup-list #f args

 You should rename it to justify-two-columns-lines then



 Great..
 I see that when the text is long, I must play with the value in:

  \override-lines #'(amount . 115)


Yep, this determines only the _first_ column Y-amount. If the text is
longer than 2*amount, all additional stuff is added to second column.
As said, much more primitive than Nicolas' code ...


Actually the problem is different. The order of text is: first column 
left on all the pages and then column right from first page and 
following; but it should be (as in newspapers) first column left then 
column right then column left on new page, etc.


Thank you anyway


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-17 Thread Jean-Charles Malahieude

Le 14/11/2015 15:22, Federico Bruni a écrit :

Hi all

I'm trying to format directly in LilyPond an interview (the single text
only part of a book). I don't want to use lilypond-book and LaTeX just
because of this minor part of the book.

I've two questions:

1) There's any way to place the text on two columns AND let LilyPond
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in advance
what goes into column left and what into column right. I'd like to avoid
this.




Have a look at Nicolas Sceaux's site. I used (once adapted to my 
purpose) one of his markup definitions for the libretto of King Arthur.


HTH,
Jean-charles


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-17 Thread Thomas Morley
2015-11-17 21:24 GMT+01:00 Federico Bruni :
> Il giorno mar 17 nov 2015 alle 18:52, Jean-Charles Malahieude
>  ha scritto:
>>
>> Le 14/11/2015 15:22, Federico Bruni a écrit :
>>>
>>> Hi all
>>>
>>> I'm trying to format directly in LilyPond an interview (the single text
>>> only part of a book). I don't want to use lilypond-book and LaTeX just
>>> because of this minor part of the book.
>>>
>>> I've two questions:
>>>
>>> 1) There's any way to place the text on two columns AND let LilyPond
>>> reflow it depending on the available space on the page?
>>> The documentation contains an example where you must decide in advance
>>> what goes into column left and what into column right. I'd like to avoid
>>> this.
>>>
>>>
>>
>> Have a look at Nicolas Sceaux's site. I used (once adapted to my purpose)
>> one of his markup definitions for the libretto of King Arthur.
>
>
> Thank you for the advice!
> I think I found it:
> https://github.com/nsceaux/nenuvar/blob/fa405cd074a4bc4210e33d6d2c13e7fa4ed2cdc8/common/columns.ily
>
> The default is two columns, but the width of each column is too narrow for
> my use case.
> How can I override it? I know how to reduce the column-padding, which is a
> property of page-columns-helper.
> But I have some problem with modifying column-width, as defined here:
> https://github.com/nsceaux/nenuvar/blob/fa405cd074a4bc4210e33d6d2c13e7fa4ed2cdc8/common/columns.ily#L75



Hi Federico,

for the record, below my own first approach to the problem. Be aware
it's more a sketch of an idea, not ready to commit, although it
compiles.
Much more primitive than Nicolas' code, maybe I'll somewhere find he
time to look into it with more depth (and into all the other points on
my personal todo-list...)

\version "2.19.29"

%% split-stil-list
%% first part contains all stils, which don't exceed `amount' with their
%% accumulated Y-length
%% second part all others.
%% Ofcourse only two sublists are created, which will limit the
%% later defined markup-list-command to two columns
%% If the length of both list don't match, add point-stencils unless they do
#(define (split-stil-list stil-list rl init amount)
  (cond ((null? stil-list)
 (reverse rl))
((> init amount)
 (let* ((rl-lngth (length rl))
(st-l-lngth (length stil-list))
(pt-stil-l
  (make-list (abs (- rl-lngth st-l-lngth)) point-stencil)))
 (cons
   (if (< rl-lngth st-l-lngth)
   (append (reverse rl) pt-stil-l)
   (reverse rl))
   (if (< st-l-lngth rl-lngth)
   (append stil-list pt-stil-l)
   stil-list
(else
 (split-stil-list
   (cdr stil-list)
   (cons (car stil-list) rl)
   (+ init (interval-length (ly:stencil-extent (car stil-list) Y)))
   amount


#(define-markup-list-command (wordwrap-two-columns-lines layout props args)
  (markup-list?)
  #:properties ((baseline-skip)
(amount 20)
(padding 10)
wordwrap-internal-markup-list)
  (let* ((stils
   (space-lines
 baseline-skip
 (interpret-markup-list
   layout
   props
   (make-wordwrap-internal-markup-list #f args
 (divided-stils (split-stil-list stils '() 0 amount))
 (max-X-length-first-column
   (apply max 0
 (map
   (lambda (stil) (cdr (ly:stencil-extent stil X)))
   (car divided-stils)
(map
  (lambda (s t)
(ly:stencil-add
  s
  (ly:stencil-translate-axis
t
(+ padding max-X-length-first-column)
X)))
  (car divided-stils)
  (cdr divided-stils

%% for testing of page-break-behaviour uncomment:
%\markup \box \with-dimensions #'(1 . 10) #'(1 . 120) \null

\markuplist
  %% be aware: line-width _and_ padding-overrides may exceed the visible area
  \override-lines #'(line-width . 50)
  \override-lines #'(padding . 10)
  \override-lines #'(amount . 25)
  \wordwrap-two-columns-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.

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.

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.
  }


Cheers,
  Harm


Re: tips for formatting an interview

2015-11-17 Thread Thomas Morley
2015-11-18 0:35 GMT+01:00 Federico Bruni :
> Il giorno mar 17 nov 2015 alle 23:52, Thomas Morley
>  ha scritto:
>>
>> Hi Federico,
>>
>> for the record, below my own first approach to the problem. Be aware
>> it's more a sketch of an idea, not ready to commit, although it
>> compiles.
>
>
> Thank you Harm!
> It looks nice.. is it possible to make the text justified?
>
>

Yes, change #f to #t in this line:
   (make-wordwrap-internal-markup-list #f args

You should rename it to justify-two-columns-lines then


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-17 Thread Federico Bruni
Il giorno mer 18 nov 2015 alle 0:49, Thomas Morley 
 ha scritto:

Yes, change #f to #t in this line:
   (make-wordwrap-internal-markup-list #f args

You should rename it to justify-two-columns-lines then


Great..
I see that when the text is long, I must play with the value in:

 \override-lines #'(amount . 115)

See attached example. Guessing the right number was easy in this simple 
one page example. But in a bigger text this is not easy at all and the 
result is: the first few pages are correct, then the text flows on one 
column only until the end.



\version "2.19.31"

% Contributed by Harm
% https://lists.gnu.org/archive/html/lilypond-user/2015-11/msg00524.html

%% split-stil-list
%% first part contains all stils, which don't exceed `amount' with their
%% accumulated Y-length
%% second part all others.
%% Ofcourse only two sublists are created, which will limit the
%% later defined markup-list-command to two columns
%% If the length of both list don't match, add point-stencils unless they do
#(define (split-stil-list stil-list rl init amount)
  (cond ((null? stil-list)
 (reverse rl))
((> init amount)
 (let* ((rl-lngth (length rl))
(st-l-lngth (length stil-list))
(pt-stil-l
  (make-list (abs (- rl-lngth st-l-lngth)) point-stencil)))
 (cons
   (if (< rl-lngth st-l-lngth)
   (append (reverse rl) pt-stil-l)
   (reverse rl))
   (if (< st-l-lngth rl-lngth)
   (append stil-list pt-stil-l)
   stil-list
(else
 (split-stil-list
   (cdr stil-list)
   (cons (car stil-list) rl)
   (+ init (interval-length (ly:stencil-extent (car stil-list) Y)))
   amount


#(define-markup-list-command (justify-two-columns-lines layout props args)
  (markup-list?)
  #:properties ((baseline-skip)
(amount 20)
(padding 10)
wordwrap-internal-markup-list)
  (let* ((stils
   (space-lines
 baseline-skip
 (interpret-markup-list
   layout
   props
   (make-wordwrap-internal-markup-list #t args
 (divided-stils (split-stil-list stils '() 0 amount))
 (max-X-length-first-column
   (apply max 0
 (map
   (lambda (stil) (cdr (ly:stencil-extent stil X)))
   (car divided-stils)
(map
  (lambda (s t)
(ly:stencil-add
  s
  (ly:stencil-translate-axis
t
(+ padding max-X-length-first-column)
X)))
  (car divided-stils)
  (cdr divided-stils

%% for testing of page-break-behaviour uncomment:
%\markup \box \with-dimensions #'(1 . 10) #'(1 . 120) \null

%% Example

\markuplist {
  %% be aware: line-width _and_ padding-overrides may exceed the visible area
  \override-lines #'(line-width . 50)
  \override-lines #'(padding . 10)
  \override-lines #'(amount . 115)
  \justify-two-columns-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.

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.

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.

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.

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.

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.

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.

Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut 

Re: tips for formatting an interview

2015-11-17 Thread Federico Bruni
Il giorno mar 17 nov 2015 alle 23:52, Thomas Morley 
 ha scritto:

Hi Federico,

for the record, below my own first approach to the problem. Be aware
it's more a sketch of an idea, not ready to commit, although it
compiles.


Thank you Harm!
It looks nice.. is it possible to make the text justified?




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-17 Thread Federico Bruni
Il giorno mar 17 nov 2015 alle 18:52, Jean-Charles Malahieude 
 ha scritto:

Le 14/11/2015 15:22, Federico Bruni a écrit :

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text
only part of a book). I don't want to use lilypond-book and LaTeX 
just

because of this minor part of the book.

I've two questions:

1) There's any way to place the text on two columns AND let LilyPond
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in 
advance
what goes into column left and what into column right. I'd like to 
avoid

this.




Have a look at Nicolas Sceaux's site. I used (once adapted to my 
purpose) one of his markup definitions for the libretto of King 
Arthur.


Thank you for the advice!
I think I found it:
https://github.com/nsceaux/nenuvar/blob/fa405cd074a4bc4210e33d6d2c13e7fa4ed2cdc8/common/columns.ily

The default is two columns, but the width of each column is too narrow 
for my use case.
How can I override it? I know how to reduce the column-padding, which 
is a property of page-columns-helper.

But I have some problem with modifying column-width, as defined here:
https://github.com/nsceaux/nenuvar/blob/fa405cd074a4bc4210e33d6d2c13e7fa4ed2cdc8/common/columns.ily#L75





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-17 Thread Thomas Morley
2015-11-18 1:15 GMT+01:00 Federico Bruni :
> Il giorno mer 18 nov 2015 alle 0:49, Thomas Morley
>  ha scritto:
>>
>> Yes, change #f to #t in this line:
>>(make-wordwrap-internal-markup-list #f args
>>
>> You should rename it to justify-two-columns-lines then
>
>
> Great..
> I see that when the text is long, I must play with the value in:
>
>  \override-lines #'(amount . 115)

Yep, this determines only the _first_ column Y-amount. If the text is
longer than 2*amount, all additional stuff is added to second column.
As said, much more primitive than Nicolas' code ...

>
> See attached example. Guessing the right number was easy in this simple one
> page example. But in a bigger text this is not easy at all and the result
> is: the first few pages are correct, then the text flows on one column only
> until the end.
>
>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 21:01, Jacques Menu 
 ha scritto:
Maybe a Python script reading the text in and creating something like 
the above with the text split into as many such elements as required 
by the geometry of the page?


I'd rather keep one column, reduce a bit the line length and center it 
on the page



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 3:17, Simon Albrecht 
 ha scritto:

On 14.11.2015 15:22, Federico Bruni wrote:

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text only part of a book). I don't want to use lilypond-book and 
LaTeX just because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in 
advance what goes into column left and what into column right. I'd 
like to avoid this.


No, Lily can’t currently typeset in multiple columns. I’m 
surprised to see that there is no feature request in the tracker. 
This should be available both as a paper variable (say \paper { 
columns = 2 }) and as a markup command/markup list command(?).


Searching "two AND columns" in the open bugs list didn't return any 
relevant issue.
I guess that this should be added? Do you have better keywords to 
search?







2) I'm trying to create a shortcut for formatting the question and 
the answer.
I wonder if the new \etc can be used for this purpose or should I 
rather create a markup function.


IIUC, \etc can only be used for music functions (at least until 
now… :-)). So you need a custom markup or markup list command.


Ok, adapting the example in the Extending manual was easy:

\version "2.19.31"

#(define-markup-list-command (question layout props args) (markup-list?)
  #:properties ((par-indent 2))
  (interpret-markup-list layout props
#{\markuplist \justified-lines \bold { #args } #}))

#(define-markup-list-command (answer layout props args) (markup-list?)
  #:properties ((par-indent 2))
  (interpret-markup-list layout props
#{\markuplist \justified-lines { #args } #}))

\markuplist {
 \question {
   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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
 \answer {
   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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
}




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread David Kastrup
Federico Bruni  writes:

> 2) I'm trying to create a shortcut for formatting the question and the
> answer.
> I wonder if the new \etc can be used for this purpose or should I
> rather create a markup function.
> I've tried the following but it fails immediately when it evaluates
> the definitions:
>
> \version "2.19.31"
>
> question = \markuplist \justified-lines \bold \etc
> answer = \markuplist \justified-lines \etc

Well, that seems like a reasonable thing one might want to do.
Currently it's just music expressions and markup commands that yield to
\etc but markup list commands make perfect sense to me as well.

I'll see whether I can submit something like that.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread Simon Albrecht

On 15.11.2015 20:50, Federico Bruni wrote:
Il giorno dom 15 nov 2015 alle 3:17, Simon Albrecht 
 ha scritto:

On 14.11.2015 15:22, Federico Bruni wrote:

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text only part of a book). I don't want to use lilypond-book and 
LaTeX just because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in 
advance what goes into column left and what into column right. I'd 
like to avoid this.


No, Lily can’t currently typeset in multiple columns. I’m surprised 
to see that there is no feature request in the tracker. This should 
be available both as a paper variable (say \paper { columns = 2 }) 
and as a markup command/markup list command(?).


Searching "two AND columns" in the open bugs list didn't return any 
relevant issue.

I guess that this should be added? Do you have better keywords to search?


I also searched for any related issue; actually I scoured the entire 
list for "column", and there has definitely not been an issue yet.



Yours, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 8:21, Jacques Menu 
 ha scritto:

Hello Federico,

How about:

\markup {
  \hspace #8
  \column {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Lorem ipsum dolor sit amet, consec tetur adipisi cing elit, sed 
do eiu smod tempor

}
  }

  \hspace #5

  \column \italic {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Duis aute irure dolor in rep rehende rit in volup tate velit 
esse cillum dolore eu
  Duis aute irure dolor in rep rehende rit in volup tate velit 
esse cillum dolore eu

}
  }
  \hspace #1
}


Hello Jacques

Thanks for this example, but this forces you to decide in advance which 
part of text should go into each column. If you change the paper size, 
you'll have to move some text from one column to another. I was hoping 
there was a markup list command to achieve this automatically.





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread Jacques Menu
Hello Federico,

> Le 15 nov. 2015 à 20:57, Federico Bruni  a écrit :
> 
> Il giorno dom 15 nov 2015 alle 8:21, Jacques Menu  ha 
> scritto:
>> Hello Federico,
>> How about:
>> \markup {
>>  \hspace #8
>>  \column {
>>\override-lines #'(line-width . 30)
>>\wordwrap-lines
>>{
>>  Lorem ipsum dolor sit amet, consec tetur adipisi cing elit, sed do eiu 
>> smod tempor
>>}
>>  }
>>  \hspace #5
>>  \column \italic {
>>\override-lines #'(line-width . 30)
>>\wordwrap-lines
>>{
>>  Duis aute irure dolor in rep rehende rit in volup tate velit esse 
>> cillum dolore eu
>>  Duis aute irure dolor in rep rehende rit in volup tate velit esse 
>> cillum dolore eu
>>}
>>  }
>>  \hspace #1
>> }
> 
> Hello Jacques
> 
> Thanks for this example, but this forces you to decide in advance which part 
> of text should go into each column. If you change the paper size, you'll have 
> to move some text from one column to another. I was hoping there was a markup 
> list command to achieve this automatically.


Oh, I see, I had overlooked that aspect.

Maybe a Python script reading the text in and creating something like the above 
with the text split into as many such elements as required by the geometry of 
the page?

JM


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-15 Thread Simon Albrecht

On 14.11.2015 15:22, Federico Bruni wrote:

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text only part of a book). I don't want to use lilypond-book and LaTeX 
just because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in advance 
what goes into column left and what into column right. I'd like to 
avoid this.


No, Lily can’t currently typeset in multiple columns. I’m surprised to 
see that there is no feature request in the tracker. This should be 
available both as a paper variable (say \paper { columns = 2 }) and as a 
markup command/markup list command(?).





2) I'm trying to create a shortcut for formatting the question and the 
answer.
I wonder if the new \etc can be used for this purpose or should I 
rather create a markup function.


IIUC, \etc can only be used for music functions (at least until now… 
:-)). So you need a custom markup or markup list command.


Yours, Simon

I've tried the following but it fails immediately when it evaluates 
the definitions:


\version "2.19.31"

question = \markuplist \justified-lines \bold \etc
answer = \markuplist \justified-lines \etc

\markuplist {
 \justified-lines \bold {
   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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
 \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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
}




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-15 Thread Jacques Menu
Hello Federico,

How about:

\markup {
  \hspace #8
  \column {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Lorem ipsum dolor sit amet, consec tetur adipisi cing elit, sed do eiu 
smod tempor
}
  }

  \hspace #5

  \column \italic {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Duis aute irure dolor in rep rehende rit in volup tate velit esse cillum 
dolore eu
  Duis aute irure dolor in rep rehende rit in volup tate velit esse cillum 
dolore eu
}
  }
  \hspace #1
}

JM

> Le 14 nov. 2015 à 15:22, Federico Bruni  a écrit :
> 
> Hi all
> 
> I'm trying to format directly in LilyPond an interview (the single text only 
> part of a book). I don't want to use lilypond-book and LaTeX just because of 
> this minor part of the book.
> 
> I've two questions:
> 
> 1) There's any way to place the text on two columns AND let LilyPond reflow 
> it depending on the available space on the page?
> The documentation contains an example where you must decide in advance what 
> goes into column left and what into column right. I'd like to avoid this.
> 
> 
> 2) I'm trying to create a shortcut for formatting the question and the answer.
> I wonder if the new \etc can be used for this purpose or should I rather 
> create a markup function.
> I've tried the following but it fails immediately when it evaluates the 
> definitions:
> 
> \version "2.19.31"
> 
> question = \markuplist \justified-lines \bold \etc
> answer = \markuplist \justified-lines \etc
> 
> \markuplist {
> \justified-lines \bold {
>   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.
>   Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 
> dolore eu
>   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt 
> in
>   culpa qui officia deserunt mollit anim id est laborum.
> }
> \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.
>   Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 
> dolore eu
>   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt 
> in
>   culpa qui officia deserunt mollit anim id est laborum.
> }
> }
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


tips for formatting an interview

2015-11-14 Thread Federico Bruni

Hi all

I'm trying to format directly in LilyPond an interview (the single text 
only part of a book). I don't want to use lilypond-book and LaTeX just 
because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in advance 
what goes into column left and what into column right. I'd like to 
avoid this.



2) I'm trying to create a shortcut for formatting the question and the 
answer.
I wonder if the new \etc can be used for this purpose or should I 
rather create a markup function.
I've tried the following but it fails immediately when it evaluates the 
definitions:


\version "2.19.31"

question = \markuplist \justified-lines \bold \etc
answer = \markuplist \justified-lines \etc

\markuplist {
 \justified-lines \bold {
   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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
 \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.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
}




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user