Re: doc enhancement for \headers

2012-07-07 Thread Eluze


Am 07.07.2012 20:33, schrieb Mark Mathias:

Eluze and Graham,

Since Eluze is a bug squad member and will be on call next Tuesday, perhaps
I should have let this go for him to handle, but I've already gone ahead
and entered this into the issues-tracker as:
http://code.google.com/p/lilypond/issues/detail?id=2640&thanks=2640&ts=1341685687
  .

Hope that's what you wanted!
Mark


thanks, Mark

in fact I was just waiting for possibly more comments and would have 
pushed it soon,


now it's already done - great!

Eluze


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


Re: doc enhancement for \headers

2012-07-07 Thread Mark Mathias
Eluze and Graham,

Since Eluze is a bug squad member and will be on call next Tuesday, perhaps
I should have let this go for him to handle, but I've already gone ahead
and entered this into the issues-tracker as:
http://code.google.com/p/lilypond/issues/detail?id=2640&thanks=2640&ts=1341685687
 .

Hope that's what you wanted!
Mark

On Thu, Jul 5, 2012 at 11:05 AM, -Eluze  wrote:

>
> is it asking too much to add a full list or table of all the \header
> variables supported by default!? this would save users a lot of time
> searching for an example/snippet where all of them are shown (actually this
> is the 3rd example in
>
> http://www.lilypond.org/doc/v2.15/Documentation/notation/creating-titles-headers-and-footers#title-blocks-explained
> 3.2.1 Creating titles headers and footers . it is not mentioned that all
> variables are listed.
>
> \header is found 75 times in the NR.
>
> imo this would make the NR more a reference than a collection of loosely
> connected examples (the examples are still welcome!)
>
> thanks
> Eluze
>
>
> and here is how this could look like:
>
> +++ (right after Title blocks explained or after the Note)
>
> there are 13 variables that can be defined in the \header block and which
> will be used by the default header and footnote engraver:
>
> dedication
> title
> subtitle
> subsubtitle
> instrument*
> poet
> composer
> meter
> arranger
> piece**
> opus**
>
> tagline
> copyright
>
> *  the instrument will be repeated on every page.
> ** these are printed in a \score when the paper variable print-all-headers
> is set to ##f (default)
>
> +++
>
> this list could be enhanced with the position of each item.
> --
> View this message in context:
> http://old.nabble.com/doc-enhancement-for-%5Cheaders-tp34118295p34118295.html
> Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.
>
>
> ___
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: lilypond-book titles corrupted when exported to pdfs

2012-07-07 Thread Mark Mathias
Jesper,
Thanks for looking in the bug issues tracker before posting. I couldn't
find anything either. Also, I cannot be of any help since I haven't used
lilypond-book AND and I'm not a Mac user. This issue has been entered in
the tracker as:
http://code.google.com/p/lilypond/issues/detail?id=2639&thanks=2639&ts=1341684984

Best Wishes,
Mark

On Sat, Jul 7, 2012 at 9:35 AM, Jesper Bengtson  wrote:

> > I'm not top posting.
>
> Greetings dear Lillypond community.
>
> I have problems using lilypond-book with the --pdf flag. I have changed the
> fonts of my entire document,and the title of the song is corrupted when
>  using lilypond-book with the --pdf flag set. Without the --pdf flag set,
>  everything works fine, except it doesn't export to pdf of course. The
> thing is
> I need the --pdf flag as I'm later going to use xelatex which really does
> not
> work well with eps-files.
>
> I'm guessing that one of the problems is that I'm trying to use OSX fonts.
> However, this works fine for the ps-versions, put not for pdf. I've tried
> to keep
> the following example as minimal as I can and still get my point across
> (which requires scores and text). I have the following Lilypond file.
>
> File test.ly
> --
> \version "2.14.2"
> \header {
>   title =  "Test"
>   composer = "Composer: Me"
>   poet = "Text: Me"
> }
> \paper {
> myStaffSize = #20
> #(define fonts
> (make-pango-font-tree "Chalkboard"
>   "Nimbus Sans"
>   "Luxi Mono"
>
>  (/ myStaffSize 20)))
> }
> \score {
>   <<
>   \new Staff {
> \new Voice = "melody" {
>   \relative c' {
> \key c \major
> \time 4/4
> c4 d e f
>   }
> }
>   }
>   \new Lyrics {
> \lyricsto "melody" {
> \repeat unfold 2 {
>   This is a test
>   }
> }
>   }
>   >>
> }
> 
> If I write the command lilypond test.ly, Lilypond generates a pdf that
> looks exactly the way I want it to, with all fonts changed to the OSX
> Chalkboard font.
>
> I also have the following lytex-file.
>
> file test_book.lytex
>
> 
>
> \documentclass[fontsize=14pt]{scrartcl}
> \usepackage{graphicx}
>
> \begin{document}
>
> \lilypondfile[noindent]{test.ly}
>
> \end{document}
>
> ---
>
> If i don't use the --pdf flag, everything works fine.
>
> lilypond-book -o out test_book.lytex; cd out; latex test_book.tex;
> dvips test_book.dvi; ps2pdf test_book.ps; mv test_book.pdf ../.
>
> Here I create a ps-file, and convert it to a pdf. The resulting
> test_book.pdf
> looks exactly the way I want it.
>
> However, if I instead use the --pdf flag and use the following command:
>
> lilypond-book --pdf -o out test_book.lytex; cd out; pdflatex test_book.tex;
>  mv test_book.pdf ../.
>
> Then the title 'Test' of the test_book.pdf file is not in Chalkboard and
> its
>  kerning is off. All other text is, however, correct.
>
> Looking more closely at the eps-files that are generated and placed in the
> out-folder, things also seem a bit off. When I don't use the --pdf flag,
> then
> I can convert the eps-files to pdf-files using epspdf, and everything
> works.
> However, when the --pdf flag is used, the generated eps-files seem
> corrupted,
> I cannot open them and epspdf crashes. Looking at the pdf-files works, but
> the eps-files seem broken.
>
> I've tried finding work-arounds to make xelatex play nicely with
> eps-files, but
> I'm having problems there, and at the end, what it boils down to is that
> if the
> title of my music files were rendered correctly in pdfs that would be the
> optimal
> solution.
>
> I'm sorry if this is a bit verbose. I have tried to keep the example as
> small as
> I could, and I was unable to find a similar query in the bug-tracker.
> Thank you
> for your time, and thank you for a great product.
>
>
> ___
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


lilypond-book titles corrupted when exported to pdfs

2012-07-07 Thread Jesper Bengtson
> I'm not top posting.

Greetings dear Lillypond community.

I have problems using lilypond-book with the --pdf flag. I have changed the 
fonts of my entire document,and the title of the song is corrupted when
 using lilypond-book with the --pdf flag set. Without the --pdf flag set,
 everything works fine, except it doesn't export to pdf of course. The thing is 
I need the --pdf flag as I'm later going to use xelatex which really does not 
work well with eps-files.

I'm guessing that one of the problems is that I'm trying to use OSX fonts. 
However, this works fine for the ps-versions, put not for pdf. I've tried to 
keep
the following example as minimal as I can and still get my point across 
(which requires scores and text). I have the following Lilypond file.

File test.ly
--
\version "2.14.2"
\header {
  title =  "Test"
  composer = "Composer: Me"
  poet = "Text: Me"
}
\paper {
myStaffSize = #20
#(define fonts
(make-pango-font-tree "Chalkboard"
  "Nimbus Sans"
  "Luxi Mono"

 (/ myStaffSize 20)))
}
\score {
  <<
  \new Staff {
\new Voice = "melody" {
  \relative c' {
\key c \major
\time 4/4
c4 d e f
  }
}
  }
  \new Lyrics { 
\lyricsto "melody" {
\repeat unfold 2 {
  This is a test
  }
}
  }
  >>
}

If I write the command lilypond test.ly, Lilypond generates a pdf that 
looks exactly the way I want it to, with all fonts changed to the OSX 
Chalkboard font.

I also have the following lytex-file.

file test_book.lytex



\documentclass[fontsize=14pt]{scrartcl}
\usepackage{graphicx}

\begin{document}

\lilypondfile[noindent]{test.ly}

\end{document}

---

If i don't use the --pdf flag, everything works fine.

lilypond-book -o out test_book.lytex; cd out; latex test_book.tex; 
dvips test_book.dvi; ps2pdf test_book.ps; mv test_book.pdf ../.

Here I create a ps-file, and convert it to a pdf. The resulting test_book.pdf 
looks exactly the way I want it.

However, if I instead use the --pdf flag and use the following command:

lilypond-book --pdf -o out test_book.lytex; cd out; pdflatex test_book.tex;
 mv test_book.pdf ../.

Then the title 'Test' of the test_book.pdf file is not in Chalkboard and its
 kerning is off. All other text is, however, correct.

Looking more closely at the eps-files that are generated and placed in the 
out-folder, things also seem a bit off. When I don't use the --pdf flag, then 
I can convert the eps-files to pdf-files using epspdf, and everything works. 
However, when the --pdf flag is used, the generated eps-files seem corrupted, 
I cannot open them and epspdf crashes. Looking at the pdf-files works, but
the eps-files seem broken.

I've tried finding work-arounds to make xelatex play nicely with eps-files, but 
I'm having problems there, and at the end, what it boils down to is that if the 
title of my music files were rendered correctly in pdfs that would be the 
optimal
solution.

I'm sorry if this is a bit verbose. I have tried to keep the example as small 
as 
I could, and I was unable to find a similar query in the bug-tracker. Thank you
for your time, and thank you for a great product.


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