texlive[68548] Build/source/texk/web2c/cwebdir: [CWEB] Fix page

commits+ascherer at tug.org commits+ascherer at tug.org
Sun Oct 15 14:52:43 CEST 2023


Revision: 68548
          https://tug.org/svn/texlive?view=revision&revision=68548
Author:   ascherer
Date:     2023-10-15 14:52:43 +0200 (Sun, 15 Oct 2023)
Log Message:
-----------
[CWEB] Fix page display in Skim and Acrobat Reader on macOS.

Clicking on any 'bookmark' changed the zoom factor to fit the text block
instead of the page borders in the viewer window. This occurred on macOS
with the Skim viewer (since version 1.6.16) and Adobe Acrobat Reader.

The PDF viewer in Firefox (both Linux and macOS), Okular on Linux/KDE,
and the Preview app of macOS showed the document 'as intended'.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/ChangeLog
    trunk/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch

Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2023-10-14 23:47:46 UTC (rev 68547)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2023-10-15 12:52:43 UTC (rev 68548)
@@ -1,3 +1,7 @@
+2023-10-15  Andreas Scherer  <https://ascherer.github.io>
+
+	* cwebman-w2c.ch: Fix display in Skim and Acrobat Reader on macOS.
+
 2023-09-30  Andreas Scherer  <https://ascherer.github.io>
 
 	* Makefile,

Modified: trunk/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch	2023-10-14 23:47:46 UTC (rev 68547)
+++ trunk/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch	2023-10-15 12:52:43 UTC (rev 68548)
@@ -51,7 +51,7 @@
 \outer\def\section #1.{\penalty-500\bigskip
         \centerline{\sectionfont\def\.##1{{\twelvett##1}}
   \ifacro\vbox to 0pt{\kern-2.5ex\relax
-    \ifpdflua\pdfdest num \destcount fitbh\relax
+    \ifpdflua\pdfdest num \destcount fith\relax
     \else\special{pdf: dest (\the\destcount) [ @thispage /FitBH @ypos ]}\fi
     \def\.##1{##1}\def\TeX{TeX}%
     \ifpdflua\pdfoutline goto num \destcount
@@ -83,7 +83,7 @@
 \newcount\subdestcount \subdestcount=151\relax
 
 \outer\def\subsection #1.{\ifacro
-    \ifpdflua\pdfdest num \subdestcount fitbh\relax
+    \ifpdflua\pdfdest num \subdestcount fith\relax
       \pdfoutline goto num \subdestcount {#1}\relax
     \else\special{pdf: dest (\the\subdestcount) [ @thispage /FitBH @ypos ]}%
       \special{pdf: outline 1 << /Title (#1)



More information about the tex-live-commits mailing list.