texlive[55546]

commits+ascherer at tug.org commits+ascherer at tug.org
Sun Jun 14 23:13:23 CEST 2020


Revision: 55546
          http://tug.org/svn/texlive?view=revision&revision=55546
Author:   ascherer
Date:     2020-06-14 23:13:23 +0200 (Sun, 14 Jun 2020)
Log Message:
-----------
[CWEB/CTWILL] Code beautification and fix.

Use 'alternative' formats for C/C++ comments and for the assignment
operator.  Add (empty) definition for '\datecontentspage' (there is no
toc page in CTWILL format).

Major test example is CTWILL itself (in texk/web2c/cwebdir/):

$ tie -m ctwill.w cweave.w ctwill-w2c.ch ctwill-mini.ch
$ CWEBINPUTS=.//: ctwill -f +lpdf ctwill
$ CWEBINPUTS=.//: ctwill -f +lpdf ctwill
$ TEXINPUTS=.//: xetex ctwill
$ ctwill-ref < ctwill.ref > ctwill.sref
$ TEXINPUTS=.//: xetex ctwill
  # or 'tex "\let\pdf+\input ctwill"'+'dvipdfm'

Still TODO:

* "Names of the sections" section, both "in print" and as outline
* Outlines/bookmarks with 'pdftex' don't work just yet
* Page breaks and overfull hboxes in 'ctwill.pdf' should be improved

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex

Modified: trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2020-06-14 17:46:26 UTC (rev 55545)
+++ trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2020-06-14 21:13:23 UTC (rev 55546)
@@ -413,10 +413,10 @@
   \hyphenpenalty 9999 % so strings can be broken (discretionary \ is inserted)
   \exhyphenpenalty 10000
   \global\ind=2 \1\ \unskip}
-\def\C#1{\5\5\quad$/\ast\,${\cmntfont #1}$\,\ast/$}
-\let\SHC\C % "// short comments" treated like "/* ordinary comments */"
-%\def\C#1{\5\5\quad$\triangleright\,${\cmntfont#1}$\,\triangleleft$}
-%\def\SHC#1{\5\5\quad$\diamond\,${\cmntfont#1}}
+%\def\C#1{\5\5\quad$/\ast\,${\cmntfont #1}$\,\ast/$}
+%\let\SHC\C % "// short comments" treated like "/* ordinary comments */"
+\def\C#1{\5\5\quad$\triangleright\,${\cmntfont#1}$\,\triangleleft$}
+\def\SHC#1{\5\5\quad$\diamond\,${\cmntfont#1}}
 \def\D{\defin{\#define}} % macro definition
 \let\E=\equiv % equivalence sign
 \def\ET{ and~} % conjunction between two section numbers
@@ -426,8 +426,8 @@
 % \H is long Hungarian umlaut accent
 \let\I=\ne % unequal sign
 \def\J{\.{@\&}} % TANGLE's join operation
-\let\K== % assignment operator
-%\let\K=\leftarrow % "honest" alternative to standard assignment operator
+%\let\K== % assignment operator
+\let\K=\leftarrow % "honest" alternative to standard assignment operator
 % \L is Polish letter suppressed-L
 \outer\def\M#1{%
   {\xdef\secstar{#1}\let\*=\empty\xdef\secno{#1}}% remove \* from section name
@@ -674,7 +674,7 @@
   \let\(=\let \let\)=\let \let\[=\let \let\]=\let \let\/=\let
   \pdfoutline goto num #3 count -\expnumber{chunk#2.#3} {#5}}}
 \let\con=\end % no table of contents
-\def\datethis{}
+\def\datethis{} \def\datecontentspage{}
 
 % To produce only a subset of pages, put the page numbers on separate
 % lines in a file called pages.tex



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