From: "Dmytro O. Redchuk" <dor@ldc.net> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] Порезать страницы в PostScript Date: Tue, 8 Nov 2005 14:46:11 +0200 Message-ID: <20051108124611.GJ3788@ldc.net> (raw) In-Reply-To: <m3y83zcqje.fsf@mrkooll.tdr.pibhe.com> On Tue, Nov 08, 2005 at 01:44:37PM +0200, Maxim Tyurin wrote: > > Годиться все что можно напечатать нормально :) > ps2pdf14 book.ps > уже есть pdf. Прикинул, пока получается так. Шаг 1. Сделал работающий аналог Вашего документа :-) (взял исходный pdfpages.pdf и из него сделал "два А5 на одном горизонтальном А4") %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % test.tex % \documentclass[a4paper]{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,nup=1x2,landscape]{pdfpages.pdf} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% После "$ pdflatex test.tex" получил test.pdf Шаг 2. Беру из test.pdf нечётные, складываю в документ формата A5: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % test1.tex % \documentclass[a5paper]{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,offset=74mm 0mm,noautoscale=true]{test.pdf} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% После "$ pdflatex test1.tex" получил test1.pdf Шаг 3. Делаю из test1.pdf документ размера А4 (он "остаётся pdf" при этом) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % test2.tex % \documentclass[a4paper]{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,]{test1.pdf} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% После "$ pdflatex test2.tex" получил test2.pdf Выводы ====== 1. Играясь значением offset (см. test1.tex), можно вЫрезать чётные. 2. Лучше написать скрипт для создания test1.tex -- в параметрах includepdf нет опций odd/even. Поэтому надо написать скрипт, который будет вставлять в test1.tex строки вида: \includepdf[pages=1,offset=74mm 0mm,noautoscale=true]{test.pdf} \includepdf[pages=2,offset=-74mm 0mm,noautoscale=true]{test.pdf} \includepdf[pages=3,offset=74mm 0mm,noautoscale=true]{test.pdf} .... % Он по умолчанию центрирует исходный А4, надо смещать нечетные на % четверть длинной стороны А4 вправо, а чётные -- на четверть влево. % Можно выдрать в разные документы, а потом "аналогично" создать % скриптом ещё один test48.tex, который будет содержать что-то вида: \includepdf[pages=1]{test1a.pdf} \includepdf[pages=1]{test1b.pdf} \includepdf[pages=2]{test1a.pdf} \includepdf[pages=2]{test1b.pdf} \includepdf[pages=3]{test1a.pdf} \includepdf[pages=3]{test1b.pdf} .... % То есть, включать поочерёдно из разных документов. Замечания ========= 1. Ну, не всё тут красиво, но работает. 2. В доке я не нашёл опции crop. Значит -- "я так думаю" -- она есть в pdfpages реализации MikTeX. По возможности посмотрю. > > -- > > With Best Regards, Maxim Tyurin > JID: MrKooll@jabber.pibhe.com > ___ > / _ )__ _____ ___ ____ _______ _____ > / _ / // / _ \/ _ `/ _ `/ __/ // (_-< > /____/\_,_/_//_/\_, /\_,_/_/ \_,_/___/ > /___/ > -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk XMMS: 14 Handel, George - The Water Music - Suite No 2 (paused)
next prev parent reply other threads:[~2005-11-08 12:46 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-07 17:54 Maxim Tyurin 2005-11-07 18:29 ` Vadim V. Zhytnikov 2005-11-08 7:44 ` Maxim Tyurin 2005-11-08 9:20 ` Artur G. Sibagatullin 2005-11-08 10:36 ` Alexandr O. Potapov 2005-11-08 11:42 ` Maxim Tyurin 2005-11-07 19:37 ` [Comm] " Michael Shigorin 2005-11-08 7:46 ` Maxim Tyurin 2005-11-08 9:15 ` [Comm] " Artur G. Sibagatullin 2005-11-08 11:06 ` Dmytro O. Redchuk 2005-11-08 11:44 ` Maxim Tyurin 2005-11-08 11:53 ` Dmytro O. Redchuk 2005-11-08 12:46 ` Dmytro O. Redchuk [this message] 2005-11-08 13:16 ` Dmytro O. Redchuk 2005-11-08 14:40 ` Dmytro O. Redchuk 2005-11-10 13:00 ` Maxim Tyurin 2005-11-08 14:42 ` spider 2005-11-10 13:04 ` Maxim Tyurin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20051108124611.GJ3788@ldc.net \ --to=dor@ldc.net \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git