From MAILER-DAEMON Thu Jan 08 16:34:58 2015
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Y9KjK-0006dA-5R
	for mharc-bug-enscript@gnu.org; Thu, 08 Jan 2015 16:34:58 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59040)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pgregson1@gmail.com>) id 1Y9GxA-0002WQ-9c
	for bug-enscript@gnu.org; Thu, 08 Jan 2015 12:33:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pgregson1@gmail.com>) id 1Y9Gx3-0005Jt-Tn
	for bug-enscript@gnu.org; Thu, 08 Jan 2015 12:33:00 -0500
Received: from mail-qg0-x22a.google.com ([2607:f8b0:400d:c04::22a]:54898)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pgregson1@gmail.com>) id 1Y9Gx3-0005Ex-QH
	for bug-enscript@gnu.org; Thu, 08 Jan 2015 12:32:53 -0500
Received: by mail-qg0-f42.google.com with SMTP id q108so3429875qgd.1
	for <bug-enscript@gnu.org>; Thu, 08 Jan 2015 09:32:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:content-transfer-encoding:subject:date:message-id
	:to:mime-version;
	bh=eZsDpXZ0PyTh8DHL5BMyoo62nO385Jx9j1C1uImZafc=;
	b=pG+4XfELYOb2nN+fSFa0xrd6fbgMDTJv9anJ5Wv11biHl0B3oOGoMJStGBuEOf1AKQ
	3z+UQk6alSabXVcKkS4nFwnIoVOBml4kfZ+0MUdazjXSWsGw70N/TtQuVR5QUJo/LN76
	HKnr4ci/t7rokZGFx3IBxR6vzKRWzipJQK8OY9eXxrFTX3bd6O8/G/Op7sxOXikHLHJz
	bxpDzk2QufCd1kjH5/ficxkBJrLLQZPcEcptLmOMaRKGRJZQRG7qHZqm29GYQ5SNe9Ga
	ZfxqHvLBP/nEfBQjMDMcZImJEnjHuDIqPNS+x6NaYAM5v7tY4zztbWUElU8m0gIe0ptO
	tpWQ==
X-Received: by 10.140.23.84 with SMTP id 78mr16681124qgo.93.1420738371686;
	Thu, 08 Jan 2015 09:32:51 -0800 (PST)
Received: from [192.168.0.196] (Dynamic91-52.Dynamic.Dal.Ca. [129.173.91.225])
	by mx.google.com with ESMTPSA id
	43sm4556470qgb.17.2015.01.08.09.32.49 for <bug-enscript@gnu.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 08 Jan 2015 09:32:50 -0800 (PST)
From: Peter Gregson <pgregson1@gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Thu, 8 Jan 2015 13:33:07 -0400
Message-Id: <11EBE9C8-B45A-439A-B882-E8949B62BE08@gmail.com>
To: bug-enscript@gnu.org
Mime-Version: 1.0 (Apple Message framework v1283)
X-Mailer: Apple Mail (2.1283)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2607:f8b0:400d:c04::22a
X-Mailman-Approved-At: Thu, 08 Jan 2015 16:34:56 -0500
Subject: [bug-enscript] number of lines in 2-up mode
X-BeenThere: bug-enscript@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU Enscript <bug-enscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-enscript>,
	<mailto:bug-enscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-enscript>
List-Post: <mailto:bug-enscript@gnu.org>
List-Help: <mailto:bug-enscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-enscript>,
	<mailto:bug-enscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jan 2015 17:33:04 -0000

Hello,

I am using enscript-1.6.5.90 on Ubuntu 12.04 LTS.  I am using Courier =
9pt font and trying to do 2-up printing.  In 1-up mode I can control the =
number of lines and the placement of the page with the -L and =
--margins=3Dleft:right:top:bottom commands respectively.  However, in =
2-up mode it switches to landscape and I get a very large top margin and =
I cannot place the page using the margins.  Instead, the number of lines =
changes, the left and lower margins are somewhat controllable and the =
top margin becomes several inches wide.

Is this a known bug in the code, the man pages, or am I doing something =
wrong?   My test cases:

1. In 1-up mode:

$ enscript -B -C -fCourier9 -n1 -pov5640_mipi.ps -T4 -v =
--lines-per-page=3D80 --margins=3D10:10:10:10  ov5640_mipi.c
=20
I get 76 lines/page and less if I use wider top and bottom margins.  =
This is fine.

2. In 2-up mode:

$ enscript -B -C -fCourier9 -n1 -pov5640_mipi.ps -T4 -v =
--lines-per-page=3D80 --margins=3D10:10:10:10 -U2 ov5640_mipi.c

I still get only 76 lines/page although there is lots of room at the top =
for the full 80 lines/page and I cannot control top-margin width.

Regards,

Peter



From MAILER-DAEMON Tue Jan 13 13:42:20 2015
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1YB6Q0-0004iI-SR
	for mharc-bug-enscript@gnu.org; Tue, 13 Jan 2015 13:42:20 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42543)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1YB6Px-0004ek-8A
	for bug-enscript@gnu.org; Tue, 13 Jan 2015 13:42:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1YB6Pu-0005zm-FU
	for bug-enscript@gnu.org; Tue, 13 Jan 2015 13:42:17 -0500
Received: from ore.jhcloos.com ([198.147.23.85]:39427)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1YB6Pu-0005zN-9f
	for bug-enscript@gnu.org; Tue, 13 Jan 2015 13:42:14 -0500
Received: by ore.jhcloos.com (Postfix, from userid 10)
	id 0B2E31E084; Tue, 13 Jan 2015 18:42:12 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com;
	s=ore14; t=1421174532;
	bh=02kVMkhrQ2pMLaLE0bs3tLN0SeS3CwD7WsQR/Rbgy/Y=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
	b=QF+ioluMktWRi8wi7lTdEr2ngErl0875GtQ621i9zrs5WUuWG6gx5miq40v0Cfaf9
	3tCqgo/cBlVMrdqoN+934mO7colw9g+g4VX5a0Uw36mqLkWJFFaXT2gA+PmH9xwZgL
	h8ZWym1K7vp0GhUjdfZSqzZ27dzzRXnj2RW+aiu4=
Received: by carbon.jhcloos.org (Postfix, from userid 500)
	id D9E106002C; Tue, 13 Jan 2015 18:39:57 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: Peter Gregson <pgregson1@gmail.com>
In-Reply-To: <11EBE9C8-B45A-439A-B882-E8949B62BE08@gmail.com> (Peter Gregson's
	message of "Thu, 8 Jan 2015 13:33:07 -0400")
References: <11EBE9C8-B45A-439A-B882-E8949B62BE08@gmail.com>
User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3
	AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu
	QmCC
Copyright: Copyright 2014 James Cloos
OpenPGP: 0x997A9F17ED7DAEA6;
	url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Tue, 13 Jan 2015 13:39:57 -0500
Message-ID: <m3fvbe7cea.fsf@carbon.jhcloos.org>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:28:150113:pgregson1@gmail.com::Qhbjo96fBbujnhEd:000000000000000000000000000000000000000008gIZw
X-Hashcash: 1:28:150113:bug-enscript@gnu.org::oG87dy8ZaZGbBWLi:0000000000000000000000000000000000000000ZZg+c
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.147.23.85
Cc: bug-enscript@gnu.org
Subject: Re: [bug-enscript] number of lines in 2-up mode
X-BeenThere: bug-enscript@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU Enscript <bug-enscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-enscript>,
	<mailto:bug-enscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-enscript>
List-Post: <mailto:bug-enscript@gnu.org>
List-Help: <mailto:bug-enscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-enscript>,
	<mailto:bug-enscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2015 18:42:19 -0000

>>>>> "PG" == Peter Gregson <pgregson1@gmail.com> writes:

PG> However, in 2-up mode it switches to landscape and I get a very
PG> large top margin and I cannot place the page using the margins.

Based on the code, it tries to make the scaled pages have the same
aspect ratio they would have in 1up.  That works well for 4up, 16up,
et cetera, and also for odd powers of two when the paper has a sqrt(2)
aspect ratio, like the ISO paper sizes.

For paper sizes like US Letter, though, it ends up with extra white
space which it cannot use.

Fixing that would require refactoring the nup code.

I cannot predict how long it would take to do so.

Patches, of course, are always welcome, whether a refactoring or a doc
patch to ensure that those details are explained.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


