Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu Linux 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 Feb 22 '13 at 5:44

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

See – 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

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

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.