-
Notifications
You must be signed in to change notification settings - Fork 5
/
ctwill-texlive.ch
117 lines (97 loc) · 3.54 KB
/
ctwill-texlive.ch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
% Kpathsea changes for CTWILL by Andreas Scherer
% This file is in the Public Domain.
% Most of the original changes were merged with the set of change files
% of the CWEBbin project. This stripped change file is last in line of
% cweav-patch.ch, cweav-extensions.ch, cweav-output.ch, cweav-i18n.ch,
% cweav-twill.ch, ctwt-texlive.ch, and ctwill-texlive.ch that get tie'd
% into ctwill.w in TeX Live.
Material in limbo.
@x l.40 of CWEAV-TWILL.CH
\def\title{CTWILL (@VERSION@)}
@y
\def\Kpathsea/{{\mc KPATHSEA\spacefactor1000}} \ifacro\sanitizecommand\Kpathsea{KPATHSEA}\fi
\def\title{CTWILL (Version 4.12 [\TeX~Live])}
@z
Section 1.
@x l.69 of CWEAV-TWILL.CH
@d banner _("This is CTWILL (@VERSION@)")
@y
@d banner "This is CTWILL, Version 4.12"
/* will be extended by the \TeX~Live |versionstring| */
@z
Section 89.
@x l.1395 and l.323 of CWEAV-TWILL.CH
saying \.{+P} on the command line, it's `\.{\\input proofmac}' (resp.\
\.{\\input Xproofmac} with option \.{+lX}), a set of macros used when
@y
saying \.{+P} on the command line, it's `\.{\\input ctproofmac}' (resp.\
\.{\\input Xctproofmac} with option \.{+lX}), a set of macros used when
@z
@x l.333 of CWEAV-TWILL.CH
tex_puts(proofing?"proofma":"ctwima");
@y
tex_puts(proofing?"ctproofma":"ctwima");
@z
Section 272.
@x l.907 of CWEAV-TWILL.CH
must have fewer than 50 characters. If the \TeX\ part starts
@y
must have fewer than 80 characters. If the \TeX\ part starts
@z
@x l.949 of CWEAV-TWILL.CH
@d max_tex_chars 50 /* limit on the \TeX\ part of a meaning */
@y
@d max_tex_chars 80 /* limit on the \TeX\ part of a meaning */
@z
Section 292.
@x l.1238 of CWEAV-TWILL.CH
if ((cur_file=fopen(cur_file_name,"r"))) { cur_line=0; include_depth++; }
@y
if ( (found_filename = kpse_find_cweb(cur_file_name)) @|
&& (cur_file=fopen(found_filename,"r")) ) {
@<Set up |cur_file_name| for opened |cur_file|@>@;
cur_line=0; include_depth++;
}
@z
@x l.1241 of CWEAV-TWILL.CH
if ((cur_file=fopen(cur_file_name,"r"))) cur_line=0;
@y
if ( (found_filename = kpse_find_cweb(cur_file_name)) @|
&& (cur_file=fopen(found_filename,"r")) ) {
@<Set up |cur_file_name| for opened |cur_file|@>@;
cur_line=0;
}
@z
@x l.4892
@** Index.
@y
@* File lookup with \Kpathsea/. The \.{CTANGLE} and \.{CWEAVE} programs from
the original \.{CWEB} package use the compile-time default directory or the
value of the environment variable \.{CWEBINPUTS} as an alternative place to be
searched for files, if they could not be found in the current directory.
This version uses the \Kpathsea/ mechanism for searching files.
The directories to be searched for come from three sources:
\smallskip
{\parindent1em
\item{(a)} a user-set environment variable \.{CWEBINPUTS}
(overridden by \.{CWEBINPUTS\_cweb});
\item{(b)} a line in \Kpathsea/ configuration file \.{texmf.cnf},\hfil\break
e.g., \.{CWEBINPUTS=\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//}\hfil\break
or \.{CWEBINPUTS.cweb=\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//};
\item{(c)} compile-time default directories (specified in
\.{texmf.in}),\hfil\break
i.e., \.{\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//}.\par}
@.CWEBINPUTS@>
@d kpse_find_cweb(name) kpse_find_file(name,kpse_cweb_format,true)
@<Include files@>=
#include <kpathsea/tex-file.h> /* |@!kpse_find_file| */
@ @<Set up |cur_file_name|...@>=
if (strlen(found_filename) < max_file_name_length) {
if (strcmp(cur_file_name,found_filename)) {
strcpy(cur_file_name,found_filename + @|
((strncmp(found_filename,"./",2)==0) ? 2 : 0)); /* Strip path prefix */
}
free(found_filename);
}@+else fatal(_("! Filename too long\n"), found_filename);
@** Index.
@z