Age | Commit message (Collapse) | Author |
|
* Fix a few sorting errors in the 'Names of the sections'.
* Rename the PDF page dimentions in [pdf}ctwimac.tex.
* Append the 'Names of the sections' in CTWILL PDF output.
git-svn-id: svn://tug.org/texlive/trunk@73258 c570f23f-e606-0410-a88d-b1316a301751
|
|
This commit rounds up the line of changes for CWEB 4.12.
Major changes since CWEB 4.11:
* Macro '\startpdf' is amended to support multi-page tables-of-contents
and to synch page numbers in PDF outlines with ToC.
* New option 'cweave -F' for alternate format of compound statements.
* 'do...while' loops are separated from surrounding code, even when
'cweave -f' is used.
* Amend change files with section and line references with script
'fix-changefile-lines.py' by Tyge Tiessen.
* New macro '\scan' from Martin Ruckert to improve the runtime when
processing index entries for 'TeX and friends' (most notably MP.W).
git-svn-id: svn://tug.org/texlive/trunk@72014 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71780 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71105 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70943 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70710 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70700 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70627 c570f23f-e606-0410-a88d-b1316a301751
|
|
This alternative layout places the first line of a 'compound statement',
a.k.a. 'block', next to the opening curly brace.
Control statements like 'if', 'for', 'while', or 'switch' still appear
on a new line, in order to preserve visual control flow.
git-svn-id: svn://tug.org/texlive/trunk@70550 c570f23f-e606-0410-a88d-b1316a301751
|
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065094
git-svn-id: svn://tug.org/texlive/trunk@70347 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70150 c570f23f-e606-0410-a88d-b1316a301751
|
|
Pandoc really gets overboard with masking every single hyphen; the
resulting *.man1.pdf files look plain ugly.
I revert all unnecessary maskings (upstream); 'minus' is used only where
required or conventional (e.g., for '\-o'ptions).
git-svn-id: svn://tug.org/texlive/trunk@70042 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69903 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69852 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69820 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69664 c570f23f-e606-0410-a88d-b1316a301751
|
|
* 'do..while' loops should be separated from surrounding statements
(like plain 'while' loops, or 'if' and 'for'), even when CWEAVE is
invoked with option '-f'. (Can still be overwritten with '@+' before
'do' and after 'while'.)
* A stacked construct like
if (..) whatever;
else if (..) whatever;
else break;
should place 'break' right below 'if'; 'break_space' (\5) is a tad
too wide.
* Pandoc 3.1.11.1 escapes all hyphens. (Might be reverted in future.)
git-svn-id: svn://tug.org/texlive/trunk@69571 c570f23f-e606-0410-a88d-b1316a301751
|
|
This commit rounds up the line of changes for CWEB 4.11.
Major changes since CWEB 4.10:
* Factor out 'cwebacromac.tex' with hypertext macros
* Support for LuaTeX as backend engine
* Consistent formatting of terminal output in error situations
* Suppress reference to 'l. 0' in error messages
* Updates in 'cwebman.tex'
git-svn-id: svn://tug.org/texlive/trunk@69017 c570f23f-e606-0410-a88d-b1316a301751
|
|
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
|
|
Read input from <STDIN> and write output to <STDOUT>.
git-svn-id: svn://tug.org/texlive/trunk@68690 c570f23f-e606-0410-a88d-b1316a301751
|
|
Invoke 'weave -p' and the first line in the TeX output file will be
'\input pwebmac'. These alternative macros are more suited for the
creation of PDF output with 'tex "\let\pdf+ \input cob.tex' followed by
'dvipdfm cob' or with modern TeX engines like pdfTeX, LuaTeX, or XeTeX.
git-svn-id: svn://tug.org/texlive/trunk@68528 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@68338 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@68042 c570f23f-e606-0410-a88d-b1316a301751
|
|
This is a major update for CWEB 4.9 from May 2023. The base package
received fixes, internal changes, and significant revisions:
Fixes:
* Fix issue #43: 'out_buf' overflow on malign user input
- Handle border case from bug report
- Discard rest of input lines exceeding 'buf_size' characters
- Purge 'ungetc' from the TeX part as well
* Fix typo in 'examples/wordtest.w' (reported by DEK)
* 'Ilk' is of type 'eight_bits'
* Avoid over-/underflow of section depth with malicious user input
Internal changes:
* Unroll 'init_p' helper function in COMMON
- it is used for CWEAVE only (and CTWILL downstream)
* Match 'common.w' and 'common.h'
- Reshuffle declarations and some code sections
- Add starred section titles
* Demote all starred sections in 'common.w' (single star)
* Code cleanup
- Make 'pop_level' a simple macro in CWEAVE
- Use structure assignment (as in CTANGLE)
- More compact 'stack' handling
- Make use of type 'mode'
- Purge a few 'goto' statements (and add some others)
- Replace some 'sprintf' with 'snprintf'
- Syntactic sugar for functional macros
- Straighten 'byte_start' arithmetic
- Desolve former section 19 of CWEAVE with internal array sizes
- Hide 'print_text' analytics function from C compiler with DEBUG
- Streamline 'phase_two' of CTANGLE
- Refurbish 'phase_three' of CWEAVE
* Insert blank line after '\ch' in TeX output (cf. CWEB 3.0)
Macro changes
* Cleanup some '\acro' macros in 'cwebmac.tex'
Also the CWEBbin package received updates and amendments:
Preparation:
* Fix a bug in 'twinxmac.tex' (3rd patch file applied in 'cwebbin.spec')
* Apply a 5th patch file to adapt CTWILL macros to CWEB 4.9/4.10
Special formatting:
* Format 'common.w' with CTWILL using 'comm-mini.ch'
* Format 'ctwill.w' with HiTeX using 'proofmac.tex' and 'ctwill-hint.ch'
* New 'pdfproofmac.tex' for use with HiTeX and pdfTeX and XeTeX
- pdfctwimac.tex will no longer work with HiTeX
* Add 'proofsort' script in addition to 'refsort' program
* Minor improvements in all pdf macros
TeX Live:
* CTWILL in TeX Live uses 'kpse_find_file' to look up 'bux' files
* Slightly extend arrays in 'ctwill' and 'refsort' for TeX Live
* Max out 'max_refs' for CWEAVE/CTWILL
* Add 'ctwill.test' for TeX Live
Revise formatted sources:
* e.g., 'twinx'
* 'ctwill' in all its incarnations
git-svn-id: svn://tug.org/texlive/trunk@67978 c570f23f-e606-0410-a88d-b1316a301751
|
|
* Rename to 'ctwill-proofsort'.
* Support '--version' and '--help' options.
* Add information in 'man ctwill'.
git-svn-id: svn://tug.org/texlive/trunk@67380 c570f23f-e606-0410-a88d-b1316a301751
|
|
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
|
|
git-svn-id: svn://tug.org/texlive/trunk@66510 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@66468 c570f23f-e606-0410-a88d-b1316a301751
|
|
Ref.
https://github.com/texjporg/tex-jp-build/issues/32
git-svn-id: svn://tug.org/texlive/trunk@65543 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@64261 c570f23f-e606-0410-a88d-b1316a301751
|
|
(https://tug.org/pipermail/tex-live/2022-June/048227.html)
git-svn-id: svn://tug.org/texlive/trunk@64247 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@64168 c570f23f-e606-0410-a88d-b1316a301751
|
|
Option 'ctangle +u' extends the transliteration mechanism for ``poor
man's UTF-8'. Instead of extending the 'translit' table (or replacing it
with a dynamic data structure), CTANGLE skips all but the last of a
sequence of high-bit bytes representing a single UTF-8 character. Only
the last high-bit byte is used as the index into 'translit' as before.
Example: In ``classic ASCII'', the German word 'grün' was transformed
into 'gruen' with the transliteration '@l fc ue' (from the Western
European codepage ISO/IEC 8859-1; see file cweb_ecma94.w for context).
With UTF-8 encoded input and 'ctangle +u', the first (starter) byte 'c3'
(1100.0011) is skipped and the second (continuing) byte 'bc' is used to
look up the transliteration for 'ü' (latin small letter u with diaeresis),
so '@l bc ue' can be used to get 'gruen' in the C output.
Note that this is not a general UTF-8 transliteration because there are
tons of possible collisions, e.g., '¼' (vulgar fraction one quarter) is
'c2 bc' in UTF-8 and would be transformed into 'ue' as well.
git-svn-id: svn://tug.org/texlive/trunk@64157 c570f23f-e606-0410-a88d-b1316a301751
|
|
This new release provides the following features:
* @<Code sections@> can be used freely in any #if -- #elif -- #else --
#endif preprocessor branches without bashing the debugger
* The GCC compiler can be invoked with option -Wimplicit-fallthrough=2
on all CWEB code modules and will acknowledge /* fall through */
comments in the tangled C code
* Simple C casts like '(double)x' are formatted with non-breaking small
spaces as '(double)\,x' in the woven TeX output
* The HINT boolean macros are now in lowercase (as in ifhint.tex)
* Comma-separated lists of variable declarations are formatted in
accordance with function parameter lists and enumerations, i.e.,
comma is handled in math-mode with associated small spacing
and it fixes these bugs:
* Section @<Preprocessor definitions@> isn't overprinted (in PDF)
* Trivial CWEB code is formatted correctly (issue #36)
* Nested type definitions are recognized (issue #34)
Major remaining bug (as of CWEB 4.3.1):
* Issue #38 as described earlier
git-svn-id: svn://tug.org/texlive/trunk@63490 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@62898 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@62855 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@62517 c570f23f-e606-0410-a88d-b1316a301751
|
|
If TANGLE creates a pool file at all, this will always be placed next to
the Pascal file, irrespective whether a full output path was specified
for the third file argument on the commandline. (If no Pascal file name
is given, both the Pascal output file and the associated pool file will
be created in the 'current' directory, with names derived from the Web
input file.)
git-svn-id: svn://tug.org/texlive/trunk@62367 c570f23f-e606-0410-a88d-b1316a301751
|
|
The original WEB programs had fixed arguments on the commandline, i.e.,
you had to invoke TANGLE with four file name arguments and WEAVE with
three (where '/dev/null' was permitted as an empty file).
This change makes the WEB programs a little bit like the CWEB programs
by allowing an optional third file name argument for the main output
file (the name of the .pool file still is created from the .web file).
And '-' is interpreted as an empty change file.
git-svn-id: svn://tug.org/texlive/trunk@62337 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@62186 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@61893 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@61852 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@61575 c570f23f-e606-0410-a88d-b1316a301751
|
|
We also rename the macros to 'twimac-web.tex' in order
to distinguish them from DEK's original 'twimac.tex' on CTAN
(https://mirrors.ctan.org/systems/knuth/local/lib/twimac.tex),
which is specifically designed for Volumes B and D of
"Computers & Typesetting".
git-svn-id: svn://tug.org/texlive/trunk@61546 c570f23f-e606-0410-a88d-b1316a301751
|
|
Major changes since CWEB 4.5:
* Restore '\T' macro backward compatibility.
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 release 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.
* Restore 'classic' PDF page dimensions.
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 0.5in border on each side.
* Revert meaning of option 'c'.
Option 'c' is OFF by default to avoid spurious entries in build.log.
* 'squash'/'reduce' have been straightened out for k=1,..,4.
* Code beautifications for 'make fullmanual'.
* Code cleanup for internal reasons.
* Cleanup in 'prod.w' (indentation et al.).
* New 'prod-cweave.w' (along 'prod-twill.w') for material from CWEBbin.
* Fixes for option '-o' (didn't work as advertised in border cases).
* New signature for the 'make_ministring' function in CTWILL.
git-svn-id: svn://tug.org/texlive/trunk@61411 c570f23f-e606-0410-a88d-b1316a301751
|
|
Purge Pandoc version number from manpages.
git-svn-id: svn://tug.org/texlive/trunk@61043 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@61035 c570f23f-e606-0410-a88d-b1316a301751
|
|
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
|
|
git-svn-id: svn://tug.org/texlive/trunk@60695 c570f23f-e606-0410-a88d-b1316a301751
|
|
This is a service update due to general demand:
* Option 'c' is OFF by default to avoid spurious entries in build.log.
* 'squash'/'reduce' have been straightened out for k=1,..,4.
* Code beautifications for 'make fullmanual'.
* Code cleanup for internal reasons.
* Cleanup in 'prod.w' (indentation et al.).
* New 'prod-cweave.w' (along 'prod-twill.w') for material from CWEBbin.
* Fixes for option '-o' (didn't work as advertised in border cases).
* New signature for the 'make_ministring' function in CTWILL.
git-svn-id: svn://tug.org/texlive/trunk@60519 c570f23f-e606-0410-a88d-b1316a301751
|