Total newbie here: please bear with me. I’m running TeXShop on a Mac, trying to render a single-page musical score that uses the “bagpipe” macro-package. The file starts with

\input bagpipe
% RowanTree.tex 

I take it the last line is supposed to set up the page in landscape format, but the output is in portrait format (with the content upright), and half the score runs off the page. Moreover when I open the PDF in an application that reveals content outside the media box, I can see more notes, bar-lines, &c. but the staves for that part of the score are missing. Since the remaining content is actually some 16" wide, I guess it was supposed to fit on ledger or A3 paper rather than letter or A4.

I have tried adding various snippets involving {geometry}, but they all caused errors like

/RowanTree.tex:11: Undefined control sequence.
l.11 \usepackage

which if bypassed (by typing R in the console) resulted in the command line being typeset in the document. I also tried changing the paper size in TeXShop’s File > Page Setup menu to no avail.

Note that I’ve only been able to get even this far using the “Plain TeX” engine: using the default “LaTeX” on the original file caused an “Undefined control sequence” error that prevented any output from being produced, even when bypassed.

Thanks in advance for any suggestions.


Since \landscape of bagpipe.tex issues \special{papersize=...}, you are probably using pdfTeX. There the output paper size for the driver part of pdfTeX is set via the registers \pdfpagewidth and \pdfpageheight.

  • Version for letter paper size:

    \USletter % optional, default
  • Version for A4 paper size:

  • If the document should be compatible (latex/dvips or pdfTeX, ...) then package ifpdf helps to detect pdfTeX in PDF mode. The package also works in plain TeX:

    \input ifpdf.sty
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.