diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2020-06-14 21:13:23 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2020-06-14 21:13:23 +0000 |
commit | 47b4d99385889b85a133b06b1da85c6d09088342 (patch) | |
tree | 4b1208143f54ad26f988b1e70496d6f88363e16b /Build | |
parent | a139f0c074ef713931d610b2d9b4ec5d2d1663f4 (diff) |
[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
git-svn-id: svn://tug.org/texlive/trunk@55546 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex index 027297a626c..0c0ab27c097 100644 --- a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex +++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex @@ -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 |