On Wed, 21 Dec 2022 13:17:15 +0100
Hans Hagen via ntg-context wrote:
> The next upload will have:
>
> \adddefaultsuffix[foo,{},crap]
> \adddefaultsuffix[{}]
>
> \typefile{./crapcrap}
> \typefile{crapcrap}
>
> which someone has to document on the wiki
Apologies for taking so long. But I just
On Wed, 21 Dec 2022 13:17:15 +0100
Hans Hagen via ntg-context wrote:
> > But context returning success when it clearly doesn't include the
> > file is unfortunate. The missing file might go completely unnoticed.
> > I'd expect an error there.
> The next upload will have:
>
>
On 12/17/2022 6:27 PM, Marco via ntg-context wrote:
On Sat, 17 Dec 2022 17:43:48 +0100
Otared Kavian wrote:
Thanks for your quick reply.
It seems that one can fool ConTeXt into typing a file without suffix
by giving the path to that file…
That works, I can confirm.
On Sat, 17 Dec 2022 10:41:11 -0800
skyhorse--- via ntg-context wrote:
> The context wiki says:
> "When no file extension is specified the extension .tex is assumed."
It's not on the page for typefile:
https://wiki.contextgarden.net/Command/typefile
And that surely makes sense for TeX
The context wiki says:
"When no file extension is specified the extension .tex is assumed."
Yes an error message should be displayed.
By chance, do you have a file named "bar.tex" that would prevent this from
being an error?
skyhorse
-
Otared Kavian via ntg-context wrote:
> Hi
On Sat, 17 Dec 2022 17:43:48 +0100
Otared Kavian wrote:
Thanks for your quick reply.
> It seems that one can fool ConTeXt into typing a file without suffix
> by giving the path to that file…
That works, I can confirm.
> \typefile{/Users/kavian/Context/essais/mkiv/bar-bis}
Hard-coded absolute
On Sat, 17 Dec 2022 16:25:01 +0100
Otared Kavian via ntg-context wrote:
> If I create a file named « bar.txt » then
>
> \starttext
> Nothing to say\dots
>
> \typefile{bar.txt}
>
> \stoptext
>
> gives the correct result.
I can confirm that.
> However ConTeXt seems to dislike \typefile{bar}
Hi Marco,
If I create a file named « bar.txt » then
\starttext
Nothing to say\dots
\typefile{bar.txt}
\stoptext
gives the correct result. However ConTeXt seems to dislike \typefile{bar} when
the filename has no suffix.
Best regards : Otared
> On 17 Dec 2022, at 16:06, Marco Patzer via
Hi!
In the following example the file “bar” is not included:
# create file “bar”
echo Bar > bar
# t.tex
\starttext
Foo
\typefile{bar}
\stoptext
Then run
context --errors='*' t.tex
The text “bar” is not included in the PDF, only Foo is. The log file
shows:
verbatims > file