-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features: * Fix a few sorting errors in the "Names of the sections". * Rename PDF page dimensions in [pdf]ctwimac.tex. * Append 'Names of the sections' at the end of CTWILL PDF output.
- Loading branch information
Showing
33 changed files
with
265 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From ba514ca2a52ab65e46d3477724672564cb492646 Mon Sep 17 00:00:00 2001 | ||
From 07e8fcc3d675a01043c97d1ae01df3eff2745399 Mon Sep 17 00:00:00 2001 | ||
From: Andreas Scherer <[email protected]> | ||
Date: Mon, 29 Mar 2021 13:14:34 +0200 | ||
Subject: [PATCH 1/5] Support extended syntax for numeric literals. | ||
Subject: [PATCH 1/6] Support extended syntax for numeric literals. | ||
|
||
--- | ||
ctwimac.tex | 15 ++++++++++----- | ||
|
@@ -90,5 +90,5 @@ index 29533b8..dbcf312 100644 | |
\hbox{\strut\kern2pt\.{#1}\kern2pt}} | ||
\hrule}\vrule\kern2pt}} % verbatim string | ||
-- | ||
2.41.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From a5ee9d7e41df5d084cdbd23a9e43cdd9e31c1e6c Mon Sep 17 00:00:00 2001 | ||
From e915d4e570ec3d56765317862eb3b664dbf764c1 Mon Sep 17 00:00:00 2001 | ||
From: Andreas Scherer <[email protected]> | ||
Date: Thu, 8 Apr 2021 14:44:11 +0200 | ||
Subject: [PATCH 2/5] Purge redundant '\TeX' macro. | ||
Subject: [PATCH 2/6] Purge redundant '\TeX' macro. | ||
|
||
--- | ||
ctwimac.tex | 5 +---- | ||
|
@@ -68,5 +68,5 @@ index 99ae604..89e3b68 100644 | |
\let\mc=\ninerm % medium caps | ||
\def\CEE/{{\mc C\spacefactor1000}} | ||
-- | ||
2.41.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From eb98776596c3d9504243de133819946540fa609a Mon Sep 17 00:00:00 2001 | ||
From 2ee035a94ad155cd244afe6f35b483eb02d818de Mon Sep 17 00:00:00 2001 | ||
From: Andreas Scherer <[email protected]> | ||
Date: Wed, 7 Jul 2021 13:57:00 +0200 | ||
Subject: [PATCH 3/5] Adapt to CWEB 4.5. | ||
Subject: [PATCH 3/6] Adapt to CWEB 4.5. | ||
|
||
--- | ||
ctwimac.tex | 40 ++++++++++++++++++++-------------------- | ||
|
@@ -266,5 +266,5 @@ index 89e3b68..6d9ac2f 100644 | |
\def\normaloutput#1{\shipout\vbox{ | ||
\vbox to 3pc{\ifodd\pageno\rightheadline\else\leftheadline\fi\vfill} | ||
-- | ||
2.41.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From e1d2ad3d3bde4a6d5611b4627a9feb43118a87fa Mon Sep 17 00:00:00 2001 | ||
From abcfe710f5d5ce3b6801e391ac57105046cb446e Mon Sep 17 00:00:00 2001 | ||
From: Andreas Scherer <[email protected]> | ||
Date: Thu, 10 Feb 2022 09:24:39 +0100 | ||
Subject: [PATCH 4/5] Add silent \datecontentspage macro. | ||
Subject: [PATCH 4/6] Add silent \datecontentspage macro. | ||
|
||
--- | ||
ctwimac.tex | 2 +- | ||
|
@@ -21,5 +21,5 @@ index df24900..014168b 100644 | |
% To produce only a subset of pages, put the page numbers on separate | ||
% lines in a file called pages.tex | ||
-- | ||
2.41.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 6b42e6c76f705f1adc9ef62ddc63318df9676d42 Mon Sep 17 00:00:00 2001 | ||
From 9352f2538be0025a86ecee2f3fac4222d756483a Mon Sep 17 00:00:00 2001 | ||
From: Andreas Scherer <[email protected]> | ||
Date: Wed, 14 Jun 2023 10:00:33 +0200 | ||
Subject: [PATCH 5/5] Update CTWILL macros for CWEB 4.9. | ||
Subject: [PATCH 5/6] Update CTWILL macros for CWEB 4.9. | ||
|
||
--- | ||
ctwimac.tex | 10 ++++++---- | ||
|
@@ -109,5 +109,5 @@ index 6d9ac2f..6865478 100644 | |
% \L is Polish letter suppressed-L; we have no shorthand for \le | ||
% \O is Scandinavian letter O-with-slash | ||
-- | ||
2.41.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
From 88a5e5237f615d94a3ea3f6c8e8d7391969198e5 Mon Sep 17 00:00:00 2001 | ||
From: debbuild <debbuild> | ||
Date: Fri, 27 Dec 2024 11:35:30 +0100 | ||
Subject: [PATCH 6/6] Rename page dimensions to match cwebmac. | ||
|
||
--- | ||
ctwimac.tex | 26 +++++++++++++------------- | ||
1 file changed, 13 insertions(+), 13 deletions(-) | ||
|
||
diff --git a/ctwimac.tex b/ctwimac.tex | ||
index d65f5bf..a7978d8 100644 | ||
--- a/ctwimac.tex | ||
+++ b/ctwimac.tex | ||
@@ -259,16 +259,16 @@ | ||
% \L is Polish letter suppressed-L | ||
\outer\def\M#1{\def\secno{#1}\startsection\ignorespaces} | ||
\outer\def\N{\ifvoid\partialpage\lefttrue | ||
- \else\ifdim\ht\partialpage<\pageht \leftfalse\else\lefttrue\fi\fi\NNN} | ||
+ \else\ifdim\ht\partialpage<\pageheight \leftfalse\else\lefttrue\fi\fi\NNN} | ||
\outer\def\NN{\ifvoid\partialpage\leftfalse | ||
- \else\ifdim\ht\partialpage<\pageht \lefttrue\else\leftfalse\fi\fi\NNN} | ||
+ \else\ifdim\ht\partialpage<\pageheight \lefttrue\else\leftfalse\fi\fi\NNN} | ||
\outer\def\NNN#1#2#3.{% beginning of starred section | ||
\gdepth=#1\gtitle={#3}\def\secno{#2} | ||
\ifleft \flushout | ||
\gdef\rlhead{\let\i=I\uppercase{\ignorespaces#3}} % running left headline | ||
\global\let\rrhead=\rlhead % running right headline | ||
\else\global\setbox\partialpage=\vbox{ | ||
- \vbox to\pageht{\unvbox\partialpage\vfill}\break} | ||
+ \vbox to\pageheight{\unvbox\partialpage\vfill}\break} | ||
\gdef\rrhead{\let\i=I\uppercase{\ignorespaces#3}} | ||
\fi | ||
\message{*\secno} % progress report | ||
@@ -315,12 +315,12 @@ | ||
% \count and \toks registers 200--219 are also used to keep track of refs | ||
\catcode`\@=11 | ||
\newcount\@n \newcount\@m \newcount\@p | ||
-\newdimen\pageht \pageht=19cm | ||
-\newdimen\pagewd \pagewd=13cm | ||
-\newdimen\colwd \colwd=\pagewd | ||
+\newdimen\pageheight \pageheight=19cm | ||
+\newdimen\pagewidth \pagewidth=13cm | ||
+\newdimen\colwd \colwd=\pagewidth | ||
\advance\colwd by -2pc \divide\colwd by 3 % for three columns | ||
-\newdimen\fullpageht \fullpageht=\pageht \advance\fullpageht by 4pc | ||
-\newdimen\pagethresh \pagethresh=2\pageht | ||
+\newdimen\fullpageheight \fullpageheight=\pageheight \advance\fullpageheight by 4pc | ||
+\newdimen\pagethresh \pagethresh=2\pageheight | ||
\newdimen\nsize \newdimen\msize | ||
\newskip\intersecskip \intersecskip=8pt plus 2pt minus 3pt | ||
\newbox\partialpage | ||
@@ -331,7 +331,7 @@ | ||
\newif\iftitle \newif\ifleft | ||
|
||
\def\flushout{\ifvoid\partialpage\else | ||
- \setbox0=\vsplit\partialpage to \pageht | ||
+ \setbox0=\vsplit\partialpage to \pageheight | ||
\shipout\vbox{ | ||
\vbox to 3pc{\leftheadline\vfill} | ||
\nointerlineskip\box0} | ||
@@ -345,7 +345,7 @@ | ||
\hyphenpenalty 10000 \exhyphenpenalty 10000 | ||
\noindent\vbox to1pt{}\par % 1pt = \topskip - \ninept | ||
\readin} | ||
- \shipout\vbox to\fullpageht{ | ||
+ \shipout\vbox to\fullpageheight{ | ||
\vbox to 3pc{\rightheadline\vfill} | ||
\unvbox\partialpage | ||
\vfill | ||
@@ -364,10 +364,10 @@ | ||
\@n=199 \loop \ifnum\@n<222 \toks\@n={} \count\@n=0 \advance\@n 1 \repeat | ||
\nrefs=0 | ||
\baseno=\secno}} | ||
-\def\leftheadline{\hbox to\pagewd{\vbox to10pt{}% | ||
+\def\leftheadline{\hbox to\pagewidth{\vbox to10pt{}% | ||
\iftitle\global\titlefalse\else\ninerm\title:\enspace \eightsl\rlhead\fi | ||
\hfil\eightrm\folio}} | ||
-\def\rightheadline{\hbox to\pagewd{\vbox to10pt{}% | ||
+\def\rightheadline{\hbox to\pagewidth{\vbox to10pt{}% | ||
\eightrm\folio\hfil\ninerm\title:\enspace \eightsl\rrhead\/}} | ||
|
||
\def\mini{\begingroup \obeylines \globaldefs=1 \newrefs=\bgroup} | ||
@@ -448,7 +448,7 @@ | ||
\def\donewithpage#1 {\let\readin=\relax} | ||
\catcode`\@=12 | ||
|
||
-\hsize=\pagewd \vsize=\maxdimen \output={\twillout} | ||
+\hsize=\pagewidth \vsize=\maxdimen \output={\twillout} | ||
|
||
\def\inx{\flushout\end} | ||
\def\fin{\parfillskip 0pt plus 1fil | ||
-- | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.