]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/tex-rules.make
Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
[lilypond.git] / stepmake / stepmake / tex-rules.make
1
2 $(outdir)/%.tex: %.tex
3         cp $< $@
4
5 $(outdir)/%.dvi: $(outdir)/%.tex
6         (cd $(outdir); tex \\nonstopmode \\input $(<F))
7
8 $(outdir)/%.dvi: $(outdir)/%.latex
9         (cd $(outdir)&& \
10           latex \\nonstopmode \\input $(<F)&&\
11           (bibtex $(basename $(<F)) || true) && \
12           latex \\nonstopmode \\input $(<F)&&\
13           (makeindex $(basename $(<F)) || true) && \
14           latex \\nonstopmode \\input $(<F) )
15
16 $(outdir)/%.pdf: $(outdir)/%.dvi
17         cd $(outdir) \
18                 && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) \
19                         -o $(@F).pdfps $(<F) \
20                 && gs -dCompatibilityLevel=1.2\
21                         -sPAPERSIZE=a4\
22                         -q\
23                         -dNOPAUSE\
24                         -dBATCH\
25                         -sDEVICE=pdfwrite\
26                         -dAutoRotatePages=/None\
27                         -sOutputFile=$(@F)\
28                         -dCompatibilityLevel=1.2\
29                         -sPAPERSIZE=a4\
30                         -c .setpdfwrite\
31                         -f $(@F).pdfps
32
33
34 # without -dSAFER
35 # gs 8.15 complains of safety of loading a ttf directly
36
37