GNU bug report logs - #14799
Request for building PDF manuals in A4 format

Previous Next

Package: emacs;

Reported by: Angelo Graziosi <angelo.graziosi <at> alice.it>

Date: Fri, 5 Jul 2013 08:12:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 14799 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Fri, 05 Jul 2013 08:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Angelo Graziosi <angelo.graziosi <at> alice.it>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 05 Jul 2013 08:12:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Angelo Graziosi <angelo.graziosi <at> alice.it>
To: bug-emacs <bug-gnu-emacs <at> gnu.org>
Subject: Request for building PDF manuals in A4 format
Date: Fri, 05 Jul 2013 10:10:55 +0200
Could you add an option to build emacs.pdf etc. in A4 format and the 
PDFs open chapters on odd page?

For example, in the case of emacs.pdf I often use this patch

diff -Naur emacs.orig/doc/emacs/emacs.texi emacs/doc/emacs/emacs.texi
--- emacs.orig/doc/emacs/emacs.texi     2012-01-15 18:59:57.942500000 +0100
+++ emacs/doc/emacs/emacs.texi  2012-02-05 21:32:51.656250000 +0100
@@ -1,5 +1,7 @@
 \input texinfo  @c -*- coding: utf-8 -*-

address <at> hidden
address <at> hidden odd
 @setfilename ../../info/emacs
 @settitle GNU Emacs Manual


Ciao,
 Angelo.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Thu, 15 Aug 2019 04:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Angelo Graziosi <angelo.graziosi <at> alice.it>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Wed, 14 Aug 2019 21:20:00 -0700
Angelo Graziosi <angelo.graziosi <at> alice.it> writes:

> Could you add an option to build emacs.pdf etc. in A4 format and the
> PDFs open chapters on odd page?
>
> For example, in the case of emacs.pdf I often use this patch
>
> diff -Naur emacs.orig/doc/emacs/emacs.texi emacs/doc/emacs/emacs.texi
> --- emacs.orig/doc/emacs/emacs.texi     2012-01-15 18:59:57.942500000 +0100
> +++ emacs/doc/emacs/emacs.texi  2012-02-05 21:32:51.656250000 +0100
> @@ -1,5 +1,7 @@
>  \input texinfo  @c -*- coding: utf-8 -*-
>
> address <at> hidden
> address <at> hidden odd
>  @setfilename ../../info/emacs
>  @settitle GNU Emacs Manual

(I'm going through old bug reports that have unfortunately gotten no
responses yet.)

It seems like your patch was mangled during transportation -- could you
resend it if you still have it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Thu, 15 Aug 2019 10:02:01 GMT) Full text and rfc822 format available.

Message #11 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Angelo Graziosi <angelo.g0 <at> libero.it>
To: larsi <at> gnus.org, 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Thu, 15 Aug 2019 12:01:28 +0200 (CEST)
I am afraid, but also retrieving the the mail from my archive, the patch is corrupted as you have described.

BTW this search has shown an issue with RMAIL on Windows build!

Let's see what developers think about it.

Thanks,
 Angelo.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Sun, 29 Sep 2019 12:14:01 GMT) Full text and rfc822 format available.

Message #14 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Angelo Graziosi <angelo.g0 <at> libero.it>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Sun, 29 Sep 2019 14:12:58 +0200
Angelo Graziosi <angelo.g0 <at> libero.it> writes:

> I am afraid, but also retrieving the the mail from my archive, the
> patch is corrupted as you have described.

You don't have the change stored anywhere else?  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Mon, 30 Sep 2019 16:27:02 GMT) Full text and rfc822 format available.

Message #17 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Angelo Graziosi <angelo.g0 <at> libero.it>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Mon, 30 Sep 2019 18:26:20 +0200 (CEST)
[Message part 1 (text/plain, inline)]
> Il 29 settembre 2019 alle 14.12 Lars Ingebrigtsen ha scritto:
>
> You don't have the change stored anywhere else? 

We may be lucky...

Could it be this:

$ cat /media/angelo/cygxp-20140209/home/angelo/cygwinports/emacs/emacs-dev.patch
diff -Naur emacs.orig/doc/emacs/emacs.texi emacs/doc/emacs/emacs.texi
--- emacs.orig/doc/emacs/emacs.texi	2012-01-15 18:59:57.942500000 +0100
+++ emacs/doc/emacs/emacs.texi	2012-02-05 21:32:51.656250000 +0100
@@ -1,5 +1,7 @@
 \input texinfo  @c -*- coding: utf-8 -*-
 
+@afourpaper
+@setchapternewpage odd
 @setfilename ../../info/emacs
 @settitle GNU Emacs Manual

?
I have attached it too!
[Lars-emacs-dev.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Tue, 01 Oct 2019 12:23:02 GMT) Full text and rfc822 format available.

Message #20 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Angelo Graziosi <angelo.g0 <at> libero.it>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Tue, 01 Oct 2019 14:22:53 +0200
Angelo Graziosi <angelo.g0 <at> libero.it> writes:

> @@ -1,5 +1,7 @@
>  \input texinfo  @c -*- coding: utf-8 -*-
>
> +@afourpaper
> +@setchapternewpage odd
>  @setfilename ../../info/emacs
>  @settitle GNU Emacs Manual
>

Thanks; that was a simple enough patch.  :-)

But I don't think it's something we can apply in general -- the
officially printed Emacs manuals are on US paper sizes, and I don't
think that's going to change.

I had a look at somehow making a new Makefile target for A4 pages, but
it doesn't seem like texi2pdf takes paper size as a parameter either, so
all the texi files would need to have

@ifset A4
...
@endif

or something, and then a Makefile target could set that variable.  But
that seems like a lot of verbiage to add to the .texi files, so I don't
know...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Tue, 01 Oct 2019 12:32:01 GMT) Full text and rfc822 format available.

Message #23 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org, Angelo Graziosi <angelo.g0 <at> libero.it>
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Tue, 01 Oct 2019 14:30:54 +0200
>>>>> On Tue, 01 Oct 2019 14:22:53 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:

    Lars> Angelo Graziosi <angelo.g0 <at> libero.it> writes:
    >> @@ -1,5 +1,7 @@
    >> \input texinfo  @c -*- coding: utf-8 -*-
    >> 
    >> +@afourpaper
    >> +@setchapternewpage odd
    >> @setfilename ../../info/emacs
    >> @settitle GNU Emacs Manual
    >> 

    Lars> Thanks; that was a simple enough patch.  :-)

    Lars> But I don't think it's something we can apply in general -- the
    Lars> officially printed Emacs manuals are on US paper sizes, and I don't
    Lars> think that's going to change.

    Lars> I had a look at somehow making a new Makefile target for A4 pages, but
    Lars> it doesn't seem like texi2pdf takes paper size as a parameter either, so
    Lars> all the texi files would need to have

    Lars> @ifset A4
    Lars> ...
    Lars> @endif

    Lars> or something, and then a Makefile target could set that variable.  But
    Lars> that seems like a lot of verbiage to add to the .texi files, so I don't
    Lars> know...

Donʼt they all include emacs/docstyle.texi?

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Tue, 01 Oct 2019 12:37:02 GMT) Full text and rfc822 format available.

Message #26 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Angelo Graziosi <angelo.g0 <at> libero.it>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Tue, 01 Oct 2019 14:36:19 +0200
Robert Pluim <rpluim <at> gmail.com> writes:

> Donʼt they all include emacs/docstyle.texi?

Yes, that's true.

So would it makes sense to include the @ifdef there?  Then people could
say "A4=t make emacs.pdf" (or whatever manual they want) to get an A4
manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Tue, 01 Oct 2019 12:42:01 GMT) Full text and rfc822 format available.

Message #29 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Tue, 01 Oct 2019 15:41:36 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Tue, 01 Oct 2019 14:22:53 +0200
> Cc: 14799 <at> debbugs.gnu.org
> 
> > +@afourpaper
> > +@setchapternewpage odd
> >  @setfilename ../../info/emacs
> >  @settitle GNU Emacs Manual
> >
> 
> Thanks; that was a simple enough patch.  :-)
> 
> But I don't think it's something we can apply in general -- the
> officially printed Emacs manuals are on US paper sizes, and I don't
> think that's going to change.
> 
> I had a look at somehow making a new Makefile target for A4 pages, but
> it doesn't seem like texi2pdf takes paper size as a parameter either

Could you perhaps use the -t switch to texi2pdf?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Tue, 01 Oct 2019 19:19:02 GMT) Full text and rfc822 format available.

Message #32 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Angelo Graziosi <angelo.g0 <at> libero.it>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Tue, 1 Oct 2019 21:18:51 +0200 (CEST)
> Il 1 ottobre 2019 alle 14.22 Lars Ingebrigtsen ha scritto:
> 
> But I don't think it's something we can apply in general -- the
> officially printed Emacs manuals are on US paper sizes, and I don't
> think that's going to change.


Really, in my OP, I asked for an option:

> Could you add an option to build emacs.pdf etc. in A4 format and the 
> PDFs open chapters on odd page?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Wed, 02 Oct 2019 11:45:02 GMT) Full text and rfc822 format available.

Message #35 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Wed, 02 Oct 2019 13:44:46 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Could you perhaps use the -t switch to texi2pdf?

I hoped we could get away with adding this functionality without adding
new Makefile targets.  So being able to say

PAGE_SIZE_A4=t make emacs.pdf

(or something) would allow skipping actually making new rules, I think?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Wed, 02 Oct 2019 15:17:02 GMT) Full text and rfc822 format available.

Message #38 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Wed, 02 Oct 2019 18:16:11 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: angelo.g0 <at> libero.it,  14799 <at> debbugs.gnu.org
> Date: Wed, 02 Oct 2019 13:44:46 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Could you perhaps use the -t switch to texi2pdf?
> 
> I hoped we could get away with adding this functionality without adding
> new Makefile targets.

Why is it a virtue to avoid new Makefile targets?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Thu, 03 Oct 2019 14:30:02 GMT) Full text and rfc822 format available.

Message #41 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Thu, 03 Oct 2019 16:29:15 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Why is it a virtue to avoid new Makefile targets?

It seems like a combinatorial explosion of rules.
bovine-a4-odd-page-open/bovine-letter-odd-page-open/bovine-a4-non-odd-page-open/bovine-letter-non-odd-page-open etc.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Thu, 03 Oct 2019 16:49:02 GMT) Full text and rfc822 format available.

Message #44 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Thu, 03 Oct 2019 19:48:24 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: angelo.g0 <at> libero.it,  14799 <at> debbugs.gnu.org
> Date: Thu, 03 Oct 2019 16:29:15 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Why is it a virtue to avoid new Makefile targets?
> 
> It seems like a combinatorial explosion of rules.
> bovine-a4-odd-page-open/bovine-letter-odd-page-open/bovine-a4-non-odd-page-open/bovine-letter-non-odd-page-open etc.

Did anyone ask for all those additional options?

And you can always make the addition targets just set a value of a
Make variable, which will then be picked up by -t.

Anyway, just an idea.  If no one likes it, I'm okay.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14799; Package emacs. (Mon, 07 Oct 2019 03:55:01 GMT) Full text and rfc822 format available.

Message #47 received at 14799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14799 <at> debbugs.gnu.org, angelo.g0 <at> libero.it
Subject: Re: bug#14799: Request for building PDF manuals in A4 format
Date: Mon, 07 Oct 2019 05:54:06 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> > Why is it a virtue to avoid new Makefile targets?
>> 
>> It seems like a combinatorial explosion of rules.
>> bovine-a4-odd-page-open/bovine-letter-odd-page-open/bovine-a4-non-odd-page-open/bovine-letter-non-odd-page-open
>> etc.
>
> Did anyone ask for all those additional options?

Yup.  The request was for A4 and odd page opens, which should be
independent options, I think...

> And you can always make the addition targets just set a value of a
> Make variable, which will then be picked up by -t.
>
> Anyway, just an idea.  If no one likes it, I'm okay.

And in any case, I had misunderstood the documentation -- I thought
@ifset was about environment variables, but they aren't.  They're about
flags, so you're right: The only way to inject the flags are via -t
switches.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.