Hugo Ribeiro wrote:
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 procedure recommended in the recent versions of the
docs is:
lilypond-book --pdf yourfile.lytex
pdflatex yourfile.tex
which produces an A5 document with your example. In fact, the
--psfonts flag doesn't even work with the latest LilyPond version,
so you must use some older one, right?
In your makefile below, I notice that you didn't include the
-t a5 flag to dvips. Otherwise, it works well (when I try it
with LilyPond version 2.10).
Finally, I would recommend to replace the lines
\makeatletter
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
by
\usepackage{hyperref}
which will do the same and much more. It even seems that
you don't need the -ta5 flag to dvips, then.
/Mats
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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user