I discovered an easier workaround.  The dvips distributed with my TeX (MikTeX) has a 
"-t landscape" switch which rotates the page,
ignoring page dimensions and etc.  (I think dvi may ignore page dimensions in general, 
but I'm not sure.  It certainly doesn't
perform any cropping or anything)  Then use a shell script/batch file instead of 
ly2dvi, such as (in windows):

lilypond %1.ly
if ERRORLEVEL 1 goto end
tex %1.tex
if ERRORLEVEL 1 goto end
dvips %1.dvi -t landscape -o %1.ps
if ERRORLEVEL 1 goto end
gs -q -s"DEVICE=mswinpr2" -dBATCH -DNOPAUSE -s"OutputFile=\\spool\CanonBubble-Jet 
BJ-100" %1.ps
:end

You will also have to tweak your paper block, eg:

        \paper{
              indent=0.0 \in;
                textheight=8.0 \in;
                linewidth=10.0 \in;
        }


Jeff Henrikson

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mats Bengtsson
> Sent: Tuesday, November 14, 2000 9:38 AM
> To: Ben Tordoff
> Cc: [EMAIL PROTECTED]
> Subject: Re: Big scores and landscape printing
>
>
> > Hi,
> >
> > after a few hours scanning the manual, mail archives etc. I'm still
> > having trouble getting lily to output a rather large score in landscape.
> > I know there's been some talk of this earlier (Sept), but that was in
> > relation to use within latex. Is there a way to get a4 landscape output
> > directly from 'ly2dvi'?
> >
> > Some things I have already tried:
> > 1) ly2dvi -L   -- didn't seem to have much effect
> > 2) \paper { papersize="a4"; orientation="landscape"; }  -- again no
> > discernable difference
> > 3) \paper { textheight = 190.0\mm;  linewidth = 285.0\mm; } -- score is
> > right size, but gets cropped onto portrait a4 in xdvi, or is strangely
> > offset with 'xdvi -paper a4r'
> >
> > Presumably I'm missing the point somewhere along the line. Is there some
> > different paper size definition required, or some other easy trick?
>
> It seems that the support for landscape mode in ly2dvi doesn't
> work correctly, as you have noticed.
> Getting landscape involves at least two different problems:
> - Telling Lilypond to generate score lines of the correct length.
> - Telling latex to format the paper (the job of ly2dvi).
>
> For the first step, your alternative 3) is the correct route.
> As you have noticed, the flag '-L' of ly2dvi doesn't give any
> effect. For the moment, I think the easiest solution (except
> for hacking in ly2dvi) is to make a file global.tex containing
> the single line
>
> \geometry{landscape}
>
> and then add a line
>
> latexheaders="global.tex";
>
> in the \header section of your Lilypond file.
> (I haven't tested this myself).
> Hopefully, this will tell LaTeX to use the correct
> paper size. However, you may still have to convince
> dvips to get the correct output. Note that the printed
> result may look correct even if both xdvi and ghostview
> provide strange output.
>
>
>       /Mats
>
>
>
> _______________________________________________
> Gnu-music-discuss mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/gnu-music-discuss
>


_______________________________________________
Gnu-music-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/gnu-music-discuss

Reply via email to