[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
facing pages in PDF browsers
From: |
Reinhard Kotucha |
Subject: |
facing pages in PDF browsers |
Date: |
Fri, 7 Jun 2013 00:19:53 +0200 |
Hi,
when facing pages are displayed in a PDF viewer, odd pages appear on
the left and even pages on the right. With the patch below, pages are
arranged properly.
--- texinfo/doc/texinfo.tex--orig 2013-03-21 00:24:56.000000000 +0100
+++ texinfo/doc/texinfo.tex 2013-06-06 20:29:57.000000000 +0200
@@ -1180,7 +1180,7 @@
}
%
%
- \pdfcatalog{/PageMode /UseOutlines}
+ \pdfcatalog{/PageMode /UseOutlines /PageLayout /TwoPageRight}
%
% #1 is image name, #2 width (might be empty/whitespace), #3 height (ditto).
\def\dopdfimage#1#2#3{%
Whether one or two pages are displayed at a time when the document is
opened depends on the Browser. Evince starts in single-page mode
always and Adobe Reader starts in two-page mode if /TwoPageRight is
set in the document. However, with /PageLayout/TwoPageRight both
browsers arrange pages properly, without the entry it looks strange
and no browser allows you to correct it.
Without /PageLayout/TwoPageRight:
[1][2]
[3][4]
[5][6]
With /PageLayout/TwoPageRight:
[1]
[2][3]
[4][5]
[6][7]
If it confuses people that with this change some browsers display two
pages by default though they didn't in the past, the patch below might
be better. The basic idea is that /TwoPageRight is *only* needed if
page numbers appear at different positions on odd and even pages.
Regards,
Reinhard
--- texinfo/doc/texinfo.tex--orig 2013-03-21 00:24:56.000000000 +0100
+++ texinfo/doc/texinfo.tex 2013-06-06 22:31:43.000000000 +0200
@@ -3425,6 +3425,7 @@
% title on inside top of left hand pages, and page numbers on outside top
% edge of all pages.
\def\HEADINGSdouble{%
+\ifpdf\pdfcatalog{/PageLayout/TwoPageRight}\fi
\global\pageno=1
\global\evenfootline={\hfil}
\global\oddfootline={\hfil}
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:address@hidden
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
- facing pages in PDF browsers,
Reinhard Kotucha <=