summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/texinputs
AgeCommit message (Collapse)Author
2022-02-14[CWEB] Adapt HINT to ifhint.tex.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62022 c570f23f-e606-0410-a88d-b1316a301751
2022-02-10[CWEB] Fix \ATH and \datecontentspage.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61966 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] CTWILL does not support HiTeX.Andreas Scherer
HiTeX has no concept of 'Page', let alobe of 'Spread', so there's no useful spot for the mini-indexes. git-svn-id: svn://tug.org/texlive/trunk@61791 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] Use \HINTversion to detect HiTeX.Andreas Scherer
ATTOW, this requires $ hitex -ini -jobname=hitex **tex.ini to activate the HiTeX extensions. git-svn-id: svn://tug.org/texlive/trunk@61790 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] Support HINT format.Andreas Scherer
The upcoming CWEB 4.7 will support HiTeX and its HINT format. To use this material you can $ hitex -ini -jobname=hitex tex.ini $ make all PDF=hi fullmanual $ hintview common.hnt # et al. git-svn-id: svn://tug.org/texlive/trunk@61785 c570f23f-e606-0410-a88d-b1316a301751
2021-10-31[CWEB] Restore '\T' macro backward compatibility.Andreas Scherer
CWEB 4.3 introduced a major change in the '\T' macro to allow C++ 'hex exponent' notation (e.g., 0x1FFFFp10). This made CWEAVE/CTWILL mutually incompatible with non-matching versions of their set of macros and v.v. This change tries to reestablish the standard behavior at least for numeric constants. Of course, 'old' CWEAVE/CTWILL won't deliver on 'hex exponents' in the CWEB input, but those should be rare anyway. git-svn-id: svn://tug.org/texlive/trunk@60909 c570f23f-e606-0410-a88d-b1316a301751
2021-10-24[CWEB] Restore 'classic' PDF page dimensions.Andreas Scherer
Heiko's PDF files of 2014 used 'Executive' page dimensions, i.e., 7.5in times 10in. C/WEB's internal inch values suggest to use those plus a 1in border on each side. git-svn-id: svn://tug.org/texlive/trunk@60857 c570f23f-e606-0410-a88d-b1316a301751
2021-10-14[CWEB] Fix CTWILL's dyscalculia.Andreas Scherer
C/C++ calculates '0x1FFFFp10' as '134216704', which equals '131071*1024' with '1024=2^10'. ('p' is part of the 'hex-exponent'.) git-svn-id: svn://tug.org/texlive/trunk@60761 c570f23f-e606-0410-a88d-b1316a301751
2021-07-14[CWEB] New release 4.5.Andreas Scherer
This is a service release for CWEB 4.0. * Upstream CWEB 4.5 was reviewed with the 'splint' utility. This resulted in lots of cast changes and a few code improvements. * All 'length' variables are retyped to 'size_t'. * <stdbool.h> is replaced by <kpathsea/simpletypes.h> to keep CWEB compatible with antique systems that still support TeX Live. git-svn-id: svn://tug.org/texlive/trunk@59926 c570f23f-e606-0410-a88d-b1316a301751
2021-05-03[CWEB] New release 4.3.1.Andreas Scherer
This release is almost the same as CWEB 4.3 of 2021-04-16, but * it fixes the indexing bug in CWEAVE/CTWILL that got retracted * it extracts and collects all additions made in CTWILL, so that the section numbers of CWEAVE are retained up to §272 and new material is described in the (first) appendix, including the CTWILL user manual * it provides fully revised and (hopefully) corrected mini-indexes for CTWILL, if it is processed by itself (to be published in package 'knuth-pdf' on CTAN) git-svn-id: svn://tug.org/texlive/trunk@59061 c570f23f-e606-0410-a88d-b1316a301751
2021-05-02Revert "[CWEB] New release 4.3."Andreas Scherer
This reverts commit 3ccac2a7d0f4a19dde861c6f4c178e853d90f0cc. CWEB 4.3 is seriously broken. git-svn-id: svn://tug.org/texlive/trunk@59048 c570f23f-e606-0410-a88d-b1316a301751
2021-04-16[CWEB] New release 4.3.Andreas Scherer
This release introduces new features to CWEB 4: * Former option '-t' is now called '-c'. - New option '-t' for CWEAVE when dealing with 'typename' in C++ templates. - New option '-k' for CTANGLE to keep '-separators in numeric literals. * Support for "variadic macros" along "variadic functions". * @d is printed similar to #define (and vice versa): - '#' is no longer printed in boldface. - Spacing is similar in most cases. * Support for extended C99/C++ numeric literals: - hexadecimal, octal, and -- new! -- binary numbers. - NOTE: 'cwebmac.tex 4.3' is NOT compatible with CWEAVE 4.2 and older and vice versa. * Long parameter lists in ANSI function definitions are indented similar to old-style function parameters. - Option '-i' works similar for old-style and modern function headers. * Additional C99/C++ keywords -- from 'alignas' to 'thread_local' -- are supported internally. * '@i'nclude file 'iso_types.w' for numeric types (in addition to 'c++lib.w'). * Countless code modifications, including some corrections amd improvements. Thanks and cudos to Github user "@texdraft" for numerous contributions to this feature release! git-svn-id: svn://tug.org/texlive/trunk@58884 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25restore Build,TODO from r57911Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25French translation for tlmgr updatedDenis Bitouzé
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
2021-02-11[CWEB] Fix color setter in CTWILL macros.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@57709 c570f23f-e606-0410-a88d-b1316a301751
2021-02-07CWEB – release 4.0, 2021-02-07.Andreas Scherer
In the course of the "2021 TeX tuneup", Don Knuth kindly transferred the responsibility for CWEB to me; see the original CWEB home page (https://www-cs-faculty.stanford.edu/~knuth/cweb.html), section "CWEB 4.0" and the updated CWEB development project (https://github.com/ascherer/cweb). This first new release draws heavily on the multi-decade work collected in my "CWEBbin" project (https://github.com/ascherer/cwebbin). I moved (almost) all stuff from the "*-patch.*" changefiles into the new CWEB sources and applied all of the "*-ansi.*" changes as well. Moreover, I made "common.h" the full interface of "common.w" in order to avoid code redundancy. And I tried to fix as many of the bugs reported by email to DEK and/or tex-k@tug.org. In total, "make; make cautiously; make fullmanual" runs flawlessly with GCC on Linux and with LLVM on MacOS. After the release of "CWEB 4.0", also "CWEBbin 2021" has also been fully revised. Thousands of lines of changefiles could be purged. What's left are the clearcut extensions for CWEB and the additional stuff for integration in "TeX Live 2021". git-svn-id: svn://tug.org/texlive/trunk@57658 c570f23f-e606-0410-a88d-b1316a301751
2020-07-05[CTWILL] Fix two issues.Andreas Scherer
(1) Use correct apostrophe in "Editor's Note". (2) Don't ship out the mini-index of the last section twice. (2b) 'pdfctwimac.tex' does ship out an empty page at the very end of 'ctwill.dvi' (with 'tex "\let\pdf+\input ctwill') and 'ctwill.pdf' (with 'xetex', but not with 'pdftex'!) in order to attach the "Names of the sections" outline tag somewhere. If you know a trick that creates the "NOS" outline without that extra empty page, please let me know. git-svn-id: svn://tug.org/texlive/trunk@55756 c570f23f-e606-0410-a88d-b1316a301751
2020-06-21[C/WEB] Start main body on pageno 3.Andreas Scherer
Don't fiddle with '\¢ontentspagenumber' _before_ the table-of-contents, but set '\pageno=3' _after_ the toc has been typeset. This makes the mechanism for Metafont, TeX, pdfTeX, and XeTeX independent of the length of the table-of-contents. git-svn-id: svn://tug.org/texlive/trunk@55617 c570f23f-e606-0410-a88d-b1316a301751
2020-06-20[CWEB] Fix running headers and toc.Andreas Scherer
Many WEB programs override '\def\rheader'; we must restore the original definition. pdfTeX has a looong table-of-contents by itself (with the TL it's getting worse, also for XeTeX). git-svn-id: svn://tug.org/texlive/trunk@55611 c570f23f-e606-0410-a88d-b1316a301751
2020-06-20[C/WEB] Generic solution for non-TEXMF programs.Andreas Scherer
Finally I was able to wrap my head around the 'toc-to-front' stuff! For standard WEB and CWEB programs, place the patched '\con' exactly between the very first '\MN' and the following '\eject'. At the same time, ackowledge any local definition of '\topofcontents' from the preamble. For this 'pdfwebtocfront.tex' must be '\input' at the very end of the preamble, right before the first '\N'. The four programs 'mf.web', 'tex,web', 'pdftex.web', and 'xetex.web' define their special version of '\N' in the preamble, so the old variant of the '\con in \N' mechanism is preserved. Their tables-of-contents use a bare layout anyway. git-svn-id: svn://tug.org/texlive/trunk@55604 c570f23f-e606-0410-a88d-b1316a301751
2020-06-20[CTWILL] More prominent font change for comments.Andreas Scherer
CTWILL typesets C code in 9pt. git-svn-id: svn://tug.org/texlive/trunk@55601 c570f23f-e606-0410-a88d-b1316a301751
2020-06-19[C/WEB] Provide a way to set the header on page 1.Andreas Scherer
This is a 'fake' solution to the timing problem with the shifted table-of-contents page. The '\topmark' is not yet set correctly when the first '\N' is invoked, so the default '\.{[C]WEB} output' from '[cp]webmac.tex' will show up. By setting '\gtitle' to 'Introduction' (or anything else) right before '\input pdfwebtocfront', the 'group title' is set appropriately. Right after the first '\N' itself, the automatic mechanism for starred sections kicks in. git-svn-id: svn://tug.org/texlive/trunk@55595 c570f23f-e606-0410-a88d-b1316a301751
2020-06-18[CTWILL] Fix typo. Oops.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@55590 c570f23f-e606-0410-a88d-b1316a301751
2020-06-18[CTWILL] Plain TeX doesn't reach '\fin' at all.Andreas Scherer
Standard 'ctwimac.tex' '\end's in '\inx' and skips '\fin' and '\con'. git-svn-id: svn://tug.org/texlive/trunk@55589 c570f23f-e606-0410-a88d-b1316a301751
2020-06-18[CTWILL] No need to link NOS to anywhere.Andreas Scherer
This is for XeTeX only; pdfTeX's 'pdfoutline' requires a 'goto' action. git-svn-id: svn://tug.org/texlive/trunk@55582 c570f23f-e606-0410-a88d-b1316a301751
2020-06-17[CTWILL] Bookmarks for "Names of the sections".Andreas Scherer
Note that XeTeX chooses to add another (almost) empty spread of pages at the very end. git-svn-id: svn://tug.org/texlive/trunk@55574 c570f23f-e606-0410-a88d-b1316a301751
2020-06-16[CTWILL] Prepare for CTWILL output format.Andreas Scherer
https://github.com/ascherer/web/releases/download/ctan-20200601/cweb.tar.gz has an initial version of 'ctwill.pdf' in CTWILL format. git-svn-id: svn://tug.org/texlive/trunk@55566 c570f23f-e606-0410-a88d-b1316a301751
2020-06-15Reduce borders in PDF output.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@55557 c570f23f-e606-0410-a88d-b1316a301751
2020-06-15[CWEB/CTWILL] 'pdfctwimac' finalized.Andreas Scherer
Reintroducing the \jobname.toc mechanism (for pdfTeX only) helps create structured PDF outlines with all supported TeX engines. git-svn-id: svn://tug.org/texlive/trunk@55556 c570f23f-e606-0410-a88d-b1316a301751
2020-06-15[CWEB/CTWILL] Improved 'pdfctwimac'.Andreas Scherer
* Unified color management for 'link color' * Simplified if-else inside \acro * Flat outlines/bookmarks with pdfTeX TODO: Implement \makebookmarks for pdfTeX with a \jobname.toc file. git-svn-id: svn://tug.org/texlive/trunk@55555 c570f23f-e606-0410-a88d-b1316a301751
2020-06-14[CWEB/CTWILL] Code beautification and fix.Andreas Scherer
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
2020-06-14[CWEB/CTWILL] Initial version of 'pdfctwimac.tex'.Andreas Scherer
These macros can produce PDF output with hyperlinks (internal links to sections in the current CWEB program) with the incantation ctwill +lpdf INPUT.W tex "\let\pdf+\input INPUT.TEX" or pdftex INPUT.TEX or xetex INPUT.TEX This software is in alpha state; there are several TODOs: * Produce a section "NAMES OF THE SECTIONS" at the end. * Produce 'outlines'/'bookmarks' (instead of a table-of-contents). * ... git-svn-id: svn://tug.org/texlive/trunk@55545 c570f23f-e606-0410-a88d-b1316a301751
2020-06-10[CWEB] Add 'language' for PDF creation.Andreas Scherer
Run 'cweave -lp+' followed by 'tex'+'dvipdfm' or 'xetex'. git-svn-id: svn://tug.org/texlive/trunk@55498 c570f23f-e606-0410-a88d-b1316a301751
2020-06-01[CWEB] Adapt 'pdfwebtocfront' to 'pwebmac' 4.5.2.Andreas Scherer
Headline '\mark's now have two parts: (a) the section number and (b) the group title. This makes them more like CWEB's three-part top marks. The inner logic to detect 'TeX and friends' has been changed from 'numeric' to 'boolean'. git-svn-id: svn://tug.org/texlive/trunk@55371 c570f23f-e606-0410-a88d-b1316a301751
2020-05-26[CWEB] Fake headline on page after TOC.Andreas Scherer
This works fine for all WEB programs, because they all start with 'section 1', and for 'make fullmanual' in CWEB, because all modules (common, ctangle, cweave, ctwill) start with the 'Introduction'. It is, however, not a general solution (yet). git-svn-id: svn://tug.org/texlive/trunk@55285 c570f23f-e606-0410-a88d-b1316a301751
2020-05-23[CWEB] Avoid conflicts in batch runs.Andreas Scherer
Standard WEB uses generic 'CONTENTS.tex' as filename for the table-of-contents information (and 'webman.tex' explicitly describes this in an advanced example). Running multiple WEB codes in a batch run in the same directory -- like with the 'makeall' script -- leads to conflicts, because the _first_ run of the $n+1$st WEB code picks up the toc file from the _second_ run of the $n$th WEB code, and in most cases there are irresolvable references. To avoid these collisions, we use the naming scheme from CWEB. git-svn-id: svn://tug.org/texlive/trunk@55246 c570f23f-e606-0410-a88d-b1316a301751
2020-05-23[CWEB] XeTeX works a bit different than pdfTeX.Andreas Scherer
The desired effect for PDF output is achieved with both engines. git-svn-id: svn://tug.org/texlive/trunk@55245 c570f23f-e606-0410-a88d-b1316a301751
2020-05-23[CWEB] Experiment with reduced PDF page size.Andreas Scherer
Smaller margins give more space for screen reading. git-svn-id: svn://tug.org/texlive/trunk@55244 c570f23f-e606-0410-a88d-b1316a301751
2020-05-23[CWEB] Treat {pdf,xe}.web like tex.web and mf.web.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@55243 c570f23f-e606-0410-a88d-b1316a301751
2020-05-23Treat XeTeX like TeX and Metafont.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@55242 c570f23f-e606-0410-a88d-b1316a301751
2020-05-22[CWEB] Amend macros for PDF production.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@55236 c570f23f-e606-0410-a88d-b1316a301751
2020-05-13[CWEB] Load 'cwebmac.tex' if not already done.Andreas Scherer
All ?cwebmac.tex files can be loaded independently. git-svn-id: svn://tug.org/texlive/trunk@55127 c570f23f-e606-0410-a88d-b1316a301751
2020-05-13[CWEB] More separation of powers.Andreas Scherer
(C)WEB programmers can choose for themselves if they want to '\input Xcwebmac' and/or '\input pdfwebtocfront' "in limbo". We don't force any of these separate macros on them. git-svn-id: svn://tug.org/texlive/trunk@55125 c570f23f-e606-0410-a88d-b1316a301751
2020-05-13[CWEB] Separation of powers.Andreas Scherer
The new 'pdfwebtocfront.tex' works well with both CWEB and WEB. Simply '\input' it in limbo of your (C)WEB code and run 'pdftex' or 'xetex' twice (!) to move the table-of-contents page up front. git-svn-id: svn://tug.org/texlive/trunk@55124 c570f23f-e606-0410-a88d-b1316a301751
2020-05-08[CWEB] Restore default layout for titlepage.Andreas Scherer
Stand-alone CWEB codes start with '\pageno=0' and don't have running headers. 'fullmanual' concatenates the parts with continuingly increasing page numbers, so there will be a continuous header. git-svn-id: svn://tug.org/texlive/trunk@55069 c570f23f-e606-0410-a88d-b1316a301751
2020-05-07[CWEB] Tweak French macros to avoid page break.Andreas Scherer
'make fullmanual' produced 'cwebmana.pdf' with 38 pages instead of 37; the last line of 'fcwebmac.tex' szood alone on a new page. git-svn-id: svn://tug.org/texlive/trunk@55052 c570f23f-e606-0410-a88d-b1316a301751
2020-05-07[CWEB] Reorder TeX macro inclusion.Andreas Scherer
The new feature to place the table-of-contents page to the start of PDF ducements now also works for German, French, and Italian WEB codes. git-svn-id: svn://tug.org/texlive/trunk@55051 c570f23f-e606-0410-a88d-b1316a301751
2020-05-06[CWEB] Macros to move TOC up front in PDF output.Andreas Scherer
Run 'cweave -lX ...' and {pdf|Xe}TeX twice to move table-of-contents up front in the PDF output. git-svn-id: svn://tug.org/texlive/trunk@55043 c570f23f-e606-0410-a88d-b1316a301751
2019-01-15Prefix TeX macros and transliteration files.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@49712 c570f23f-e606-0410-a88d-b1316a301751
2019-01-06cwebbin for cweb, from Andreas Scherer https://github.com/ascherer/cwebbin)Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@49626 c570f23f-e606-0410-a88d-b1316a301751