lilypond-user
[Top][All Lists]
Advanced

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

Size A5 with lilypond-book


From: Hugo Ribeiro
Subject: Size A5 with lilypond-book
Date: Fri, 20 Feb 2009 18:52:07 -0300

Dear all,

I am editing a book with lilypond-book. The problem is that I cannot get
a final PDF with exact A5 size paper. As I know, to run lilypond-book I
must first of all run (as there is in the docs):

lilypond-book --psfonts yourfile.lytex
latex yourfile.tex
dvips -o -h yourfile.psfonts -Ppdf yourfile.dvi
ps2pdf yourfile.ps

The problem beggins in the dvips, because the ps archive comes as a A4
paper with my book in a small A5 size inside the A4 ps. Looking through
the internet I discovered that, in order to produce a A5 size ps file I
must type

'dvips -t a5'

But the problem is that this command doesn't seems to work with
lilypond-book. Here is a minimal example:

My lytex file:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
\documentclass[10pt,twoside]{book}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage[a5paper]{geometry}
\makeatletter
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\begin{document}

Testing a lilypond-book with texts and music in A5 size paper.

\begin{lilypond}
        { c'2 g'2 }
\end{lilypond}

Thats it.
What Am I Doing Wrong????

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55

My 'make' file

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
file=example-A5
mkdir out
lilypond-book --output=out --psfonts $file.lytex
cd out
latex $file.tex
dvips -h $file.psfonts $file.dvi
mv $file.ps ..
cd ..
rm -rf out/
ps2pdf $file.ps
rm $file.ps
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55







reply via email to

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