]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
[lilypond.git] / stepmake / stepmake / tex-rules.make
index f977ea8a7596632df3ee71b3e32a6871e5d192e0..5b6e6c04d04c4a43c18708be7f69d193bd930836 100644 (file)
@@ -14,10 +14,24 @@ $(outdir)/%.dvi: $(outdir)/%.latex
          latex \\nonstopmode \\input $(<F) )
 
 $(outdir)/%.pdf: $(outdir)/%.dvi
-       cd $(outdir) && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) -o $(@F).pdfps $(<F)
        cd $(outdir) \
-        && gs -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$(@F) -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -c .setpdfwrite -f $(@F).pdfps
+               && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) \
+                       -o $(@F).pdfps $(<F) \
+               && gs -dCompatibilityLevel=1.2\
+                       -sPAPERSIZE=a4\
+                       -q\
+                       -dNOPAUSE\
+                       -dBATCH\
+                       -sDEVICE=pdfwrite\
+                       -dAutoRotatePages=/None\
+                       -sOutputFile=$(@F)\
+                       -dCompatibilityLevel=1.2\
+                       -sPAPERSIZE=a4\
+                       -c .setpdfwrite\
+                       -f $(@F).pdfps
+
+
 # without -dSAFER
-# gs 8.15 complains of safety of loading a ttf directly 
+# gs 8.15 complains of safety of loading a ttf directly