Commit 68cf94cc authored by Radek Hušek's avatar Radek Hušek
Browse files

fix pdfbook

parent de5d774b
...@@ -38,12 +38,12 @@ fi ...@@ -38,12 +38,12 @@ fi
## ##
if test -z "$shortedge" if test -z "$shortedge"
then then
exec pdfjam --landscape --suffix book $signature "$@" exec pdfjam --booklet true --landscape --suffix book $signature "$@"
else else
(kpsewhich everyshi.sty >/dev/null) || { (kpsewhich everyshi.sty >/dev/null) || {
echo "the 'everyshi' package is not installed."; exit 1 echo "the 'everyshi' package is not installed."; exit 1
} }
exec pdfjam --landscape --suffix book $signature \ exec pdfjam --booklet true --landscape --suffix book $signature \
--preamble '\usepackage{everyshi} --preamble '\usepackage{everyshi}
\makeatletter \makeatletter
\EveryShipout{\ifodd\c@page\pdfpageattr{/Rotate 180}\fi} \EveryShipout{\ifodd\c@page\pdfpageattr{/Rotate 180}\fi}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment