summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/texinputs
AgeCommit message (Collapse)Author
2024-07-16[CWEB] Release file resource early.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71816 c570f23f-e606-0410-a88d-b1316a301751
2024-05-26[CWEB] HiTeX has a three-page table-of-contents.Andreas Scherer
Add parameter '\tocpages' to shift the '/PageLabels'. git-svn-id: svn://tug.org/texlive/trunk@71358 c570f23f-e606-0410-a88d-b1316a301751
2024-05-25[CWEB] Kludge for 'tex-changes.pdf'.Andreas Scherer
For whatever reason, 'tex.web + tex-final.ch' insists to start one page off, compared to 'pdftex.web [+ pdftex-final.ch]' and 'xetex.web + xetex-final.ch'. This can be corrected from the 'makeall' script. This step brings the material for 'knuth-pdf' a step closer to perfection. All that's left is the peculiar ToC of HiTeX, which appears at the end. git-svn-id: svn://tug.org/texlive/trunk@71352 c570f23f-e606-0410-a88d-b1316a301751
2024-05-25[CWEB] Fix header title in two-page ToC.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71350 c570f23f-e606-0410-a88d-b1316a301751
2024-05-25[CWEB] Make more room for long ToCs.Andreas Scherer
In package 'knuth-pdf' two problems remain: (1) tex-changes.pdf and xetex-changes.pdf have two-page ToCs and the main text starts on 'Page 4' (2) pdftex[-changes].pdf and the two PDFs from (1) have the default 'WEB OUTPUT' in the header of the second ToC page. git-svn-id: svn://tug.org/texlive/trunk@71348 c570f23f-e606-0410-a88d-b1316a301751
2024-05-24[CWEB] Fix comments in pdfwebtocfront.tex.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71334 c570f23f-e606-0410-a88d-b1316a301751
2024-05-24[CWEB] Match page numbers in PDF bookmarks with ToC.Andreas Scherer
See https://github.com/ascherer/web/issues/25 for some context. This will trigger new releases of CWEB, pwebmac, knuth-[hint,pdf} later. git-svn-id: svn://tug.org/texlive/trunk@71332 c570f23f-e606-0410-a88d-b1316a301751
2023-10-30[CWEB] Add auxiliary stuff for TWILL.Andreas Scherer
The new Perl script 'twill-refsort' is the WEB counterpart of the 'ctwill-refsort' CWEB program. See example below. The new 'twimac-web.tex' macros were already mentioned in 'twill.man', but at an incorrect TeX Live location. These macros are significantly different from Knuth's original 'twimac.tex'. While the latter is specifically targeted to 'Volumes B and D' of 'Computers & Typesetting', the new stuff is suitable for more general use with WEB sources. Example: $ twill tangle.web # run this two times $ sed -i -e "s/\\\\none/=\$0\\\\to65535\$/" tangle.tex $ tex tangle.tex $ twill-refsort < tangle.ref > tangle.sref $ tex tangle.tex git-svn-id: svn://tug.org/texlive/trunk@68700 c570f23f-e606-0410-a88d-b1316a301751
2023-10-25[CWEB] Bring PDF/HINT macros together.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@68646 c570f23f-e606-0410-a88d-b1316a301751
2023-10-22[CWEB] Plug a few holes.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@68616 c570f23f-e606-0410-a88d-b1316a301751
2023-10-18[CWEB] Change(s) from 'cwebmac.tex'.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@68582 c570f23f-e606-0410-a88d-b1316a301751
2023-09-30[CWEB] Adapt pdfwebtocfront to LuaTeX.Andreas Scherer
pwebmac.tex 4.9 will be published in due course. git-svn-id: svn://tug.org/texlive/trunk@68413 c570f23f-e606-0410-a88d-b1316a301751
2023-09-30[CWEB] Add support for LuaTeX.Andreas Scherer
Note that 'pdfwebtocfront.tex' is not yet ready for LuaTeX, because 'gftodvi.tex' breaks in and around 'pwebmac.tex'. -- Later. git-svn-id: svn://tug.org/texlive/trunk@68405 c570f23f-e606-0410-a88d-b1316a301751
2023-09-20[CWEB] Factor out cwebacromac.tex.Andreas Scherer
Extract common macros from cwebmac.tex and the PDF variants of the CTWILL macros. Update cwebman.tex accordingly. Fixes in CWEB code: - Consistent formatting of terminal output in cases of error - Revert fputs back to printf - Add curly braces for progress report (harmless glitch in CWEB 2.0) git-svn-id: svn://tug.org/texlive/trunk@68327 c570f23f-e606-0410-a88d-b1316a301751
2023-08-08[CTWILL] Gracefully break long mini-index entries.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67844 c570f23f-e606-0410-a88d-b1316a301751
2023-07-21[CTWILL] Use alternative notation as in pdfctwimac.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67692 c570f23f-e606-0410-a88d-b1316a301751
2023-07-18[CWEB] No citations on final NOS page.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67663 c570f23f-e606-0410-a88d-b1316a301751
2023-06-14[CWEB] Add section marker.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67360 c570f23f-e606-0410-a88d-b1316a301751
2023-06-14[CWEB] Fix '@h' output (again).Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67359 c570f23f-e606-0410-a88d-b1316a301751
2023-06-14[CWEB] New macros for HiTeX.Andreas Scherer
We re-use 'proofmac.tex' (for plain TeX only) and add the PDF/HINT stuff from 'cwebmac.tex' to produce active links in CTWILL output, where each section gets its own mini-index. Especially in connection with HiTeX, this gives an interesting new output format. Use 'ctwill +P +lpdf' to '\input pdfproofmac' in the first line. These macros _do_ also work with pdftex and xetex (and probably with plain TeX as well). Example from MMIX: $ tie -c mmotype-twill.ch mmotype.{w,ch} mmotype-mini.ch [Remove the final change in mmotype-twill.ch, we want to create a full index at the end.] $ ctwill +P +lpdf mmotype mmotype-twill (twice) $ hitex mmotype $ proofsort mmotype.tex > mmotype-sorted.tex $ mv mmotype-sorted.tex mmotype.tex $ hitex mmotype $ hintview mmotype.hnt git-svn-id: svn://tug.org/texlive/trunk@67358 c570f23f-e606-0410-a88d-b1316a301751
2023-05-19[CWEB] Improve readability of /Destination.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@67158 c570f23f-e606-0410-a88d-b1316a301751
2023-05-19[CWEB] Fix NOS section in CTWILL output.Andreas Scherer
The \ifacro macros have to \shipout an otherwise empty page that holds the NOS node for the PDF bookmarks. This final page should neither have a header nor a mini index. (pdftex) dvipdf[m[x]] complains about the incorrect annotation syntax. (tex "\let\pdf=+ \input JOBNAME"; dvipdfm JOBNAME) git-svn-id: svn://tug.org/texlive/trunk@67154 c570f23f-e606-0410-a88d-b1316a301751
2023-05-15[CWEB] Release 4.9.Andreas Scherer
This commit bumps the version number to 4.9. And it reverts a few occurrences of '\ifacro' as synonym for '\ifpdf'. All other changes since CWEB 4.8 were committed as rolling releases. git-svn-id: svn://tug.org/texlive/trunk@67119 c570f23f-e606-0410-a88d-b1316a301751
2022-07-02[CWEB] Similar change in CTWILL macros.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@63786 c570f23f-e606-0410-a88d-b1316a301751
2022-06-20[CWEB] Update translated macros.Andreas Scherer
These are used with 'cweave -l[dfi]'. git-svn-id: svn://tug.org/texlive/trunk@63660 c570f23f-e606-0410-a88d-b1316a301751
2022-06-19[CWEB] \ifacro is synonymous for \ifpdf.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@63651 c570f23f-e606-0410-a88d-b1316a301751
2022-06-19[CWEB] Use 'iftex.sty' for TeX engine tests.Andreas Scherer
iftex.sty sets \ifpdf according to \pdfoutput. This can be set _before_ '\input cwebmac.tex'. Note that you can _not use 'pdftex "\let\pdf+\pdfoutput=0\input ..."', because \ifpdftex is always 'true' for PDFTeX. HINT has infinite space, so we can also show TeX code for section 31. git-svn-id: svn://tug.org/texlive/trunk@63649 c570f23f-e606-0410-a88d-b1316a301751
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