Re: "new" \input vs. primitive behavior
Will Robertson <[email protected]> Mon, 31 Jul 2023 09:53:20 +0930
| Newsgroups | gmane.comp.tex.latex.latex3 |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_824CA16A-0BD0-4BB7-8406-9D40CD8A6852 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Thierry, > On 30 Jul 2023, at 01:55, LARONDE Thierry <tlaronde-PXNCZ/[email protected]> = wrote: >=20 > So, as far as I'm concerned, I will make the file primitives behave = like > \input, state it in the documentation (so if someone wants to write > another engine LaTeX compliant, it can at least start with that if he > doesn't want my change file), with the TeX behavior (ignoring = kpathsea), > that is: one can not input or size etc. a file without an extension > ---and this should not cause any problem for LaTeX per se because, if = it > was the case with the present state of core LaTeX, the problem would > have been seen before in kerTeX. Apologies if I=E2=80=99m misinterpreting there -- TeX *does* \input a = file without an extension on TeX Live if there is one to be found: echo "\write0{this is a file without an extension}" > TMP && tex "\input = TMP\relax\bye" This is TeX, Version 3.141592653 (TeX Live 2021) (preloaded format=3Dtex) (./TMP) [1 this is a file without an extension ] Output written on TMP.dvi (1 page, 196 bytes). Transcript written on TMP.log. Similarly in LaTeX (albeit I=E2=80=99m not up-to-date here...) with echo "\typeout{this is a file without an extension}" > TMP && latex = "\input{TMP}\csname @@end\endcsname" This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2022/dev) = (preloaded format=3Dlatex) restricted \write18 enabled. entering extended mode LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2021-11-22> (./TMP this is a file without an extension ) No pages of output. Transcript written on TMP.log. It is only LaTeX commands such as \include which cannot include a file = without an extension.=20 Regards, Will (=46rom phone)=20= --Apple-Mail=_824CA16A-0BD0-4BB7-8406-9D40CD8A6852 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;"><meta = http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><div = dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">Hi = Thierry,</div><div dir=3D"ltr"><br><blockquote type=3D"cite">On 30 Jul = 2023, at 01:55, LARONDE Thierry <tlaronde-PXNCZ/[email protected]> = wrote:<br><br></blockquote></div><blockquote type=3D"cite"><div = dir=3D"ltr"><span>So, as far as I'm concerned, I will make the file = primitives behave like</span><br><span>\input, state it in the = documentation (so if someone wants to write</span><br><span>another = engine LaTeX compliant, it can at least start with that if = he</span><br><span>doesn't want my change file), with the TeX behavior = (ignoring kpathsea),</span><br><span>that is: one can not input or size = etc. a file without an extension</span><br><span>---and this should not = cause any problem for LaTeX per se because, if it</span><br><span>was = the case with the present state of core LaTeX, the problem = would</span><br><span>have been seen before in = kerTeX.</span><br></div></blockquote><br><div>Apologies if I=E2=80=99m = misinterpreting there -- TeX *does* \input a file without an extension = on TeX Live if there is one to be found:</div><div><br></div><div><p = style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">echo "\write0{this = is a file without an extension}" > TMP && tex "\input = TMP\relax\bye"</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">This is TeX, = Version 3.141592653 (TeX Live 2021) (preloaded format=3Dtex)</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">(./TMP) = [1</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">this is a file = without an extension</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">]</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">Output written on = TMP.dvi (1 page, 196 bytes).</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">Transcript written = on TMP.log.</span></p></div><div><br></div><div>Similarly in LaTeX = (albeit I=E2=80=99m not up-to-date here...) = with</div><div><br></div><div><p style=3D"margin: 0px; font-style: = normal; font-variant-caps: normal; font-stretch: normal; font-size: = 18px; line-height: normal; font-family: Menlo; font-size-adjust: none; = font-kerning: auto; font-variant-alternates: normal; = font-variant-ligatures: normal; font-variant-numeric: normal; = font-variant-east-asian: normal; font-variant-position: normal; = font-feature-settings: normal; font-optical-sizing: auto; = font-variation-settings: normal;"><span style=3D"font-variant-ligatures: = no-common-ligatures">echo "\typeout{this is a file without an = extension}" > TMP && latex "\input{TMP}\csname = @@end\endcsname"</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">This is pdfTeX, = Version 3.141592653-2.6-1.40.23 (TeX Live 2022/dev) (preloaded = format=3Dlatex)</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures"> restricted = \write18 enabled.</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">entering extended = mode</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">LaTeX2e = <2021-11-15> patch level 1</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">L3 programming = layer <2021-11-22> (./TMP</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">this is a file = without an extension</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">)</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">No pages of = output.</span></p> <p style=3D"margin: 0px; font-style: normal; font-variant-caps: normal; = font-stretch: normal; font-size: 18px; line-height: normal; font-family: = Menlo; font-size-adjust: none; font-kerning: auto; = font-variant-alternates: normal; font-variant-ligatures: normal; = font-variant-numeric: normal; font-variant-east-asian: normal; = font-variant-position: normal; font-feature-settings: normal; = font-optical-sizing: auto; font-variation-settings: normal;"><span = style=3D"font-variant-ligatures: no-common-ligatures">Transcript written = on TMP.log.</span></p></div><div><br></div><div>It is only LaTeX = commands such as \include which cannot include a file without an = extension. </div><div><br></div><div>Regards,</div><div>Will</div><di= v>(=46rom phone) </div></div></body></html>= --Apple-Mail=_824CA16A-0BD0-4BB7-8406-9D40CD8A6852--