From e65881997af81a2b45e77426f4f8b38186f006cc Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 22 Nov 2016 15:02:47 +0100 Subject: [PATCH] Sazba pdfTeXem --- Makerules | 17 +++++++---------- sgr.tex | 4 ++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Makerules b/Makerules index 7457811..e4bb940 100644 --- a/Makerules +++ b/Makerules @@ -2,21 +2,18 @@ export TEXINPUTS=.:..: all: $P.pdf -%.dvi: %.tex ../sgr.tex ../ga.bib - csplain $< && if grep -q citation $*.aux ; then bibtex $* && csplain $< && csplain $< ; fi +%.pdf: %.tex ../sgr.tex ../ga.bib + pdfcsplain $< && if grep -q citation $*.aux ; then bibtex $* && pdfcsplain $< && pdfcsplain $< ; fi -%.ps: %.dvi - dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $< - -%.pdf: %.ps - ps2pdf $< $@ - -%-2in1.pdf: %.pdf +%-2in1.pdf: %-uncompressed.pdf pspdftool 'nup(2, paper=a4)' $< $@ -%-booklet.pdf: %.pdf +%-booklet.pdf: %-uncompressed.pdf pspdftool 'book nup(2, paper=a4)' $< $@ +%-uncompressed.pdf: %.pdf + qpdf --object-streams=disable --stream-data=uncompress $< $@ + mostlyclean: rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.toc diff --git a/sgr.tex b/sgr.tex index bc62a75..4726ed8 100644 --- a/sgr.tex +++ b/sgr.tex @@ -16,6 +16,10 @@ %\parindent=0.25in % A5 s 1cm okraji, dolni rozsiren o 10pt, aby se tam veslo cislo stranky +\pdfpagewidth=148mm +\pdfpageheight=210mm +\pdfvorigin=10mm +\pdfhorigin=10mm \hsize=128mm \vsize=190mm \advance\vsize by -10pt -- 2.39.5