Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Ubuntu Linux 12.0.4.1 LTS and I like the auto-formatting that a2ps does. I just want to print several small files using as few pages as possible. Example: a2ps file1.c file2.c file3.c file4.c These will print out (depending on printer settings) on their four separate pages, or on opposite sides of two two-sided pages, like this:

--- page 1---

side 1: file1.c text blank column

side 2: file2.c text blank column

--- page 2 ---

side 1: file3.c text blank column

side 2: file4.c text blank column

I want to have them all on one sheet of paper:

--- page 1 ---

side 1: file1.c text file2.c text

side 2: file3.c text file4.c text

share|improve this question

migrated from stackoverflow.com Feb 22 '13 at 5:44

This question came from our site for professional and enthusiast programmers.

    
See math.grinnell.edu/mathlan/printing-with-a2ps.xhtml –  user1929959 Feb 21 '13 at 23:28
    
a2ps -2 --sides=duplex almost does what I am looking for, but it still leaves each file on its own page. Is there a way to fill the missing column with the next file if the current file isn't long enough to extend into it? –  Jed Schaaf Feb 22 '13 at 1:32
add comment

1 Answer

I solved a similar problem by generating eps files and including them in a latex file as figures. Latex places them on the same page if possible.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.