bug-lilypond
[Top][All Lists]
Advanced

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

lilypond-book with LaTex: quote / quotation - environment


From: ncdallmann
Subject: lilypond-book with LaTex: quote / quotation - environment
Date: Thu, 30 Sep 2010 00:34:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello,

I use Lilypond-Book with LaTex and have following suggestion concerning the
'quote'-%option:

I always get a bad layout using the quote option, because it uses the
'quotation' environment in LaTex, which implies an indention of the first line
in LaTex. This causes in all my documents and in a 'clean' example, the first
line of my lilypond-examples to be indented without adjusting the line-length.
But Lilypond should set the indentation, not LaTex. So I think using
\begin{quotation} ... \end{quotation} is a bad choice. In my opinion the quote
environment should use \begin{quote} ... \end{quote}.

So I decided for my personal setup to change the lines 754-756 of the
lilypond-book-script, version 2.12.3 in Ubuntu Lucid Lynx, (which is now
lilypond-2.13.35/python/book_latex.py line 124-126 in the dev version 2.13.35)  

from:

        QUOTE: r'''\begin{quotation}
%(str)s
\end{quotation}''',

into:
        QUOTE: r'''\begin{quote}
%(str)s
\end{quote}''',

This works for me and I hope this can be useful for you, too.

Example:

\documentclass[a4paper]{article}
\begin{document}
\begin[quote]{lilypond}
{
c'4 d' e' f' 
g' a' b' c'' 
d'' e'' f'' g''
a'' b'' c'''2
c'''4 b'' a'' g''
f'' e'' d'' c''
b' a' g' f'
e' d' c'2
}
\end{lilypond}
\end{document}




reply via email to

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