ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] externalfigure crashed
@ 2023-11-22 19:55 Hans van der Meer via ntg-context
  2023-11-22 20:12 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-22 19:55 UTC (permalink / raw)
  To: context NTG; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 565 bytes --]

When \externalfigure could not find the file it used to graciously place a rectangle kindly telling the user that the file has not been found.
But now, however, it seems the default in this case is a crash. Very annoying in comparison with the earlier behaviour.
I might make a mistake, but the MWE is as simple as can be.

The filename is test.jpeg, then this runs ok:
\starttext
\externalfigure[test.jpeg][]
\stoptext

But this crashes, see the log:
\starttext
\externalfigure[test.jpg][]
\stoptext


yours sincerely
dr. Hans van der Meer



[-- Attachment #1.2.1: Type: text/html, Size: 1260 bytes --]

[-- Attachment #1.2.2: showlayout.log --]
[-- Type: application/octet-stream, Size: 2391 bytes --]

system          > 
system          > ConTeXt  ver: 2023.09.18 21:13 LMTX  fmt: 2023.11.17  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/hansm/Documents/TeX/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/hansm/Documents/TeX/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './showlayout', input './showlayout.tex', result './showlayout'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './showlayout.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern rm 12pt' is loaded
tex error       > tex error on line 3 in file ./showlayout.tex: Control sequence expected instead of undefined

<macro> \grph_include_replacement 
    ...rameter \c!background \v!color \setexternalfigureparameter \c!backgroundcolor {missingfigurecolor}\setexternalfigureparameter \c!align {\v!middle ,\v!lohi }\inheritedexternalfigureframed {\ttxx \nohyphens name: \expandeddetokenize 
    {#1}\crlf fil ...
<macro> 
    ...lude_replacement \figurelabel \figurefileoriginal {unknown}\else \grph_include_replacement \figurelabel \figurefullname {skipped}\fi \orelse \ifcase \figurestatus \grph_include_replacement \figurelabel \figurefileoriginal {unknown}
    \else \expand ...
<macro> \grph_include_place 
    ...igure_done \fi \grph_include_set_mode \else \ifcase \figurestatus \clf_figure_dummy \clf_figure_scale \else \clf_figure_check \clf_figure_include \clf_figure_scale \fi \clf_figure_done \grph_include_set_mode \grph_include_finalize 
    \fi \clf_figu ...
<macro> \externalfigure 
    [#1]#,[#2]#,[#S#3]->\ifhastok ={#2}\grph_include_place [#1][][#2]\else \grph_include_place [#1][#2][#3]
    \fi 
<to be read again> 
    
     \stoptext 
<line 3.3> 
    \stoptext

1     \starttext
2     \externalfigure[test.jpg][]
3 >>  \stoptext
4     
5     %\setuplayout[leftmargin=40mm,rightmargin=60mm,textwidth=110mm]
6     \showframe
7     \starttext
8     %setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf
9     
You injected something that confused the parser, maybe by using some Lua call.

[-- Attachment #1.2.3: Type: text/html, Size: 231 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-12-06 19:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 19:55 [NTG-context] externalfigure crashed Hans van der Meer via ntg-context
2023-11-22 20:12 ` [NTG-context] " Wolfgang Schuster
     [not found]   ` <C2A7935A-F190-49FE-8356-D1C992DB3F8D@ziggo.nl>
2023-11-22 20:44     ` Wolfgang Schuster
2023-11-22 20:55       ` Aditya Mahajan
2023-11-22 21:02         ` Hans van der Meer via ntg-context
2023-11-24 17:16           ` Hans Hagen via ntg-context
2023-12-02 15:57             ` Fabrice Couvreur
2023-12-02 16:21               ` Hans Hagen
2023-12-03 12:47                 ` Fabrice Couvreur
2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
2023-12-04 19:44               ` Hans Hagen via ntg-context
2023-12-06 19:05                 ` Pablo Rodriguez via ntg-context
2023-11-22 20:45   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).