We print brochures in * nix

    Surely many of those who read this post had a desire to print a book on paper and make it so that the book was conveniently close to a typographic book. Of course, a pdf-document, as well as some tex'ovy scientific work can act as a book.

    But what is a brochure? In fact, this is such a notebook, each sheet of which is half a large sheet, and the total number of pages can easily be calculated by the formula <number of "large" sheets> * 2 <how many "small sheets" on the "large"> * 2 <two turns per sheet = 2 pages> .

    Abstract on matan, the avon catalog is a brochure. Big aI part of the books consists of several brochures, for sure you have encountered a situation where several pages folded “in a notebook” fall out of old shabby books; just as often, such notebooks are specially torn from textbooks to be used as cheat sheets, but this is not the topic of our conversation.

    In this article I will try to explain how simple and quick it is to print any document in the form of a brochure.


    Getting a PostScript Document


    So, we have a certain document. First of all, open it in some viewer (eg in evince ) and " print to a file ." At the output, we should get a PostScript file, with which we will continue to work.
    Call this file, for example, book.ps .

    We process the PostScript file


    So, we will decide on the purpose: at the output we should receive a file, having printed out which, we will receive the brochure.

    1) psbook book.ps 1.ps
    This command will supplement the document with blank pages in the right places so that the number of pages becomes a multiple of 4m.

    2) Now we need to “glue” every 2 pages of A4 into one A4 page, in other words, we need to get a document on each page of which there will be 2 pages of A5.
    psnup -la4 -2 1.ps > result.ps

    3) Now delete the rudimentary file 1.ps
    rm 1.ps
    and start printing the resulting brochure.

    Alternatively, all three steps can be combined into one using pipelines: psbook book.ps | psnup -la4 -2> result.ps

    Print brochure


    The most interesting moment that I had to tinker with because of my natural laziness.

    1) Open the resulting file result.ps in the viewer and print the odd pages.
    2) Now re-sort the sheets so that the first page becomes the last, and the last - guess - the first. Insert the sorted sheets into the printer so that they print from the back of the end of the printed page.
    At my HP Photosmart, the last step is to simply insert the pages “as is”, that is, after sorting, without turning the pages, we insert the sheets in the tray so that the top of the pages that were previously printed is in front and visible.
    3) Now print the even pages.
    4) After printing, just fold the printed pages from left to right

    Hints

    1) Do not use the “reverse print order” in conjunction with the indication of the evenness / oddness of the pages, in order to skip the step with re-sorting the pages. This will not allow the wrong print order and the wrong pages to print.
    2) If the paper is thin, then before the first print it is necessary to “flip” the sheets. Re-sorting before the second print (see paragraph above) will also help prevent pages from sticking together.

    Page Bonding


    We need a needle / awl, staples from a stapler, a pen / pencil, 2 paper clips.
    1) The printed sheets are stacked in an even pile, we fasten the upper left and lower right corners with paper clips, now we fold the sheets from left to right.
    2) In the center we outline 2 points: a centimeter below the top and a centimeter above the bottom. We take the bracket and attach it at the first point on top, mark the point at the place where the bracket ends. Similarly, we attach brackets to the bottom point and put the point at the place where the bracket begins.
    Let's omit that the brackets have neither end nor end :)
    3) At the designated points we make holes with an awl / needle and insert the brackets into them, closing them from the inside with your finger / something solid.
    4) Remove the paper clips, rejoice :)

    I'm not an artist, but tried


    My artistic abilities are lower than the plinth, but I still tried to sketch on paper how to put the paper and painted the main steps: img148.imageshack.us/img148/4875/brove.jpg

    Related Links


    *) Using psutils - a package for working with PostScript files
    *) Making booklets with psbook and psnup (google cache)

    PS I perfectly understand that the article describes a rather trivial task, but I'm sure those who want to print the article with a brochure without doing 3 -4 "clumsy" printouts, she will help.
    PSS Rushed between the "printers" and "Linux for all" blog, moved to the latter, I think, more correctly.

    Also popular now: