Re:Re: column-lines not shifted right

2010-09-16 Thread 胡海鹏 - Hu Haipeng
Thanks Phil.

 I believe that \paragraph isn't a standard part of LilyPond notation

Yeah, it's not included in the default scm file. But I just want some 
word-wrapped lines and other kinds of formatted texts in case they have bad 
indentations and run off the page. This is very useful when I write large 
section of introductory texts before the music. I don't want to use Latex, 
which I must learn much again (am I lazy?).

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


Re: Re:Re: column-lines not shifted right

2010-09-16 Thread Phil Holmes
OK.  It would have been helpful to include the definition so that the snippet 
you supplied actually compiled.  My code still does the job you requested.

--
Phil Holmes


  - Original Message - 
  From: 胡海鹏 - Hu Haipeng 
  To: Phil Holmes 
  Cc: lilypond-user 
  Sent: Thursday, September 16, 2010 2:30 PM
  Subject: Re:Re: column-lines not shifted right


  Thanks Phil.

   I believe that \paragraph isn't a standard part of LilyPond notation

  Yeah, it's not included in the default scm file. But I just want some 
word-wrapped lines and other kinds of formatted texts in case they have bad 
indentations and run off the page. This is very useful when I write large 
section of introductory texts before the music. I don't want to use Latex, 
which I must learn much again (am I lazy?).

  Haipeng





--
  全国最低价,天天在家冲照片,24小时发货上门! ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Re:Re: Re:Re: column-lines not shifted right

2010-09-16 Thread Phil Holmes
I was aware of its definition - it's in the Snippet I pointed to in my original 
reply.  The point I was making was that not posting a fundamental part of your 
code and then asking for help with it makes it much more difficult to provide 
that help.  In future, please post only working code.

--
Phil Holmes


  - Original Message - 
  From: 胡海鹏 - Hu Haipeng 
  To: Phil Holmes 
  Cc: lilypond-user 
  Sent: Thursday, September 16, 2010 2:59 PM
  Subject: Re:Re: Re:Re: column-lines not shifted right


  The \paragraph is taken from the manual, but I don't know where it is now.

  #(define-markup-list-command (paragraph layout props args) (markup-list?)
(let ((indent (chain-assoc-get 'par-indent props 2)))
(interpret-markup-list layout props
(make-justified-lines-markup-list (cons (make-hspace-markup indent)
args)






--
  全国最低价,天天在家冲照片,24小时发货上门! ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re:Re: Re:Re: column-lines not shifted right

2010-09-16 Thread 胡海鹏 - Hu Haipeng
The \paragraph is taken from the manual, but I don't know where it is now.

#(define-markup-list-command (paragraph layout props args) (markup-list?)
  (let ((indent (chain-assoc-get 'par-indent props 2)))
  (interpret-markup-list layout props
  (make-justified-lines-markup-list (cons (make-hspace-markup indent)
  args)

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