From: Jean-Pierre Delange <adeimantos@free.fr>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: how to include an an svg file?
Date: Sat, 16 Mar 2024 13:21:13 +0100 [thread overview]
Message-ID: <06307646-164e-4c6b-a173-3061987f5b2b@free.fr> (raw)
In-Reply-To: <bfa2f65c-4674-45d2-affb-f0b56bcbafb5@freedom.nl>
[-- Attachment #1.1: Type: text/plain, Size: 8129 bytes --]
Dear CTX wizards,
The commands given by Hans don't work properly in my case (with CTX on
Windows 11). I am probably ignorant of how to implement \startMPpage.
I'm not a "MetaPost lover", but I'd like to understand something;
especially as I know how to make simple frames to include summaries.
In any case, the MWE below correctly displays the "smile" images (in
*.pdf format) and incorrectly displays the smile.svg image). On the
other hand, the \startMPpage script given by Hans only produces a white
square. The *.log is attached.
The MWE :
\starttext
\startchapter[title={MetaPost}]
First : a draw sample with a simple command %\externalfigure
\externalfigure[smile.pdf]
% Hans comments on Metapost
Now gives the attached but it took me a while to figure out what works.
An inkscape export adds for instance something (globally applied) that
is not in the svg file (which actually derived from tiger.svg as
mentioned in the file).
To be honest this is a horrible file and a good example of making things
more complex than needed (probably common in wysiwyg applications),
although we already had the machinery in the mp/pdf converter.
The biggest issue here is that one has to put some constrants in place
order to make it work in e.g. sumatra (mypdf) and acrobat (which here
actually does weird erratic things when I play with another test).
As with much complex svg, browsers also differ in interpretation o fsome
features so it's hard to figure out what to do when there are
conflicting demands. (Pointing to something that works tomorrow doesn't
mean it worked when we tried to implement something yesterday.)
For Hraban - who mentioned it - i also added support for group opacity
and transformed shades.
Hans Hagen
% If we use another call to the same smile drawing (but in *.svg format)
% the svg file is given by Inkscape (as the smile.pdf, exported through
Inkscape)
\startMPcode
draw lmt_svg [ filename = "smile.svg"]
\stopMPcode
\stopchapter
\startchapter[title={Hans tricky drawing}]
Now, see the results of Hans has given to \quote{metapost lovers}, here
is some of the trickery used :
\startMPpage[offset=1ts]
draw image (
fill (unitsquare xscaled 10cm yscaled 4cm)
withcolor svgcolor(0.5,0,0)
;
registerluminositygroup ("test") (
fill (unitsquare scaled 2cm) shifted (1cm,1cm)
withshademethod "circular"
withshadecolors (.6,.1)
) ;
applyluminositygroup ("test") (
fill (unitsquare scaled 2cm) shifted (1cm,1cm)
withshademethod "circular"
) ;
draw luminositygroup (
fill (unitsquare scaled 2cm) shifted (4cm,1cm)
withshademethod "circular"
withshadecolors (.6,.1)
) (
fill (unitsquare scaled 2cm) shifted (4cm,1cm)
withshademethod "circular"
) ;
draw luminosityshade (
(unitsquare scaled 2cm) shifted (7cm,1cm)
) (
withshademethod "circular"
withshadecolors (.6,.1)
) (
withshademethod "circular"
) ;
) ;
\stopMPpage
\stopchapter
\stoptext
Le 15/03/2024 à 20:39, Hans Hagen via ntg-context a écrit :
> On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote:
>> Am 12.03.24 um 23:59 schrieb seyal zavira:
>>> You are correct. when i convert this svg to pdf via inkscape it
>>> works like a charm.
>>>
>>> But what is standard way of including an svg file with context if we
>>> want to inkscape render the images?
>>
>> \externalfigure[smile]
>>
>> without any other settings, but inkscape must be callable on the
>> command line (which doesn’t work for me on MacOS any more, must
>> investigate…).
> \startMPcode
> draw lmt_svg [ filename = "smile.svg"]
> \stopMPcode
>
> Now gives the attached but it took me a while to figure out what
> works. An inkscape export adds for instance something (globally
> applied) that is not in the svg file (which actually derived from
> tiger.svg as mentioned in the file).
>
> To be honest this is a horrible file and a good example of making
> things more complex than needed (probably common in wysiwyg
> applications), although we already had the machinery in the mp/pdf
> converter.
>
> The biggest issue here is that one has to put some constrants in place
> order to make it work in e.g. sumatra (mypdf) and acrobat (which here
> actually does weird erratic things when I play with another test).
>
> As with much complex svg, browsers also differ in interpretation o
> fsome features so it's hard to figure out what to do when there are
> conflicting demands. (Pointing to something that works tomorrow
> doesn't mean it worked when we tried to implement something yesterday.)
>
> For Hraben - who mentioned it - i also added support for group opacity
> and transformed shades.
>
> In the process I tried a few inkscape options (pdf export) but some
> produce faulty files (with missing stuff) so i guess we have a complex
> situation in general. That said, as long as one sticks to reliable and
> clean code (plain svg) it should mostly work out.
>
> Text is another matter because svg dropped glyph support so now
> everything has to go through font features which in turn means that if
> one uses svg as output format one has to specify every character with
> possible abuse of a substitution feature that accesses it. So that is
> no longer a real interesting option, unless of course one exports all
> text as curves, just to be sure.
>
> (I will extend general text suport but it will always be suboptimal
> but then, svg is not a long term archival format anyway.)
>
> No upload yet as i also want to do some cleanup,
>
> ps. For metapost lovers, here is some of the trickery used:
>
> \startMPpage[offset=1ts]
>
> draw image (
> fill (unitsquare xscaled 10cm yscaled 4cm)
> withcolor svgcolor(0.5,0,0)
> ;
>
> registerluminositygroup ("test") (
> fill (unitsquare scaled 2cm) shifted (1cm,1cm)
> withshademethod "circular"
> withshadecolors (.6,.1)
> ) ;
>
> applyluminositygroup ("test") (
> fill (unitsquare scaled 2cm) shifted (1cm,1cm)
> withshademethod "circular"
> ) ;
>
> draw luminositygroup (
> fill (unitsquare scaled 2cm) shifted (4cm,1cm)
> withshademethod "circular"
> withshadecolors (.6,.1)
> ) (
> fill (unitsquare scaled 2cm) shifted (4cm,1cm)
> withshademethod "circular"
> ) ;
>
> draw luminosityshade (
> (unitsquare scaled 2cm) shifted (7cm,1cm)
> ) (
> withshademethod "circular"
> withshadecolors (.6,.1)
> ) (
> withshademethod "circular"
> ) ;
> ) ;
>
> \stopMPpage
>
> Not that intuitive and a bit ugly deep down but it works (there was no
> need to extend mp btw as we already have graphic grouping in the engine).
>
> Hans
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 21439 bytes --]
[-- Attachment #2: ctx-test-MetaPost-pdf.log --]
[-- Type: text/plain, Size: 21231 bytes --]
system >
system > ConTeXt ver: 2024.01.24 22:39 LMTX fmt: 2024.3.10 int: english/english
system >
system > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 'C:/Users/adeim/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 'C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system > files > jobname './ctx-test-MetaPost-pdf', input './ctx-test-MetaPost-pdf.tex', result './ctx-test-MetaPost-pdf'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 1, order 2, name './ctx-test-MetaPost-pdf.tex'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern rm 12pt' is loaded
structure > sectioning > chapter @ level 2 : 0.1 -> MetaPost
pages > flushing realpage 1, userpage 1, subpage 1
metapost > initializing instance 'metafun:1' using format 'metafun' and method 'double'
metapost > loading 'metafun' as 'C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl' using method 'double'
metapost > initializing number mode 'double'
metapost > trace > This is MPLIB for LuaMetaTeX, version 3.14, running in double mode.
metapost > trace >
metapost > trace > loading metafun for lmtx, including the plain 1.004 base definitions
metapost > trace >
pages > flushing realpage 2, userpage 2, subpage 2
structure > sectioning > chapter @ level 2 : 0.2 -> Hans tricky drawing
pages > flushing realpage 3, userpage 3, subpage 3
metafun > log >
metafun > log > error: Isolated expression
metafun > log >
metapost > trace > <error> registerluminositygroup
metapost > trace > <to be read again> (
metapost > trace > <argument> fill ( unitsquare xscaled 10 cm yscaled 4 cm ) withcolor svgcolor ( 0.5 , 0 , 0 ) ; registerluminositygroup ( "test" ) ( fill ( unitsquare scaled 2 cm ) shifted ( 1 cm , 1 cm ) withshademethod "circular" withshadecolors ( 0.59999999999999998 , 0.10000000000000001 ) ) ; applyluminositygroup ( "test" ) ( fill ( unitsquare scaled 2 cm ) shifted ( 1 cm , 1 cm ) withshademethod "circular" ) ; draw luminositygroup ( fill ( unitsquare scaled 2 cm ) shifted ( 4 cm , 1 cm ) withshademethod "circular" withshadecolors ( 0.59999999999999998 , 0.10000000000000001 ) ) ( fill ( unitsquare scaled 2 cm ) shifted ( 4 cm , 1 cm ) withshademethod "circular" ) ; draw luminosityshade ( ( unitsquare scaled 2 cm ) shifted ( 7 cm , 1 cm ) ) ( withshademethod "circular" withshadecolors ( 0.59999999999999998 , 0.10000000000000001 ) ) ( withshademethod "circular" ) ;
metapost > trace > <macro> image -> (TEXT3)-> begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3);currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorner.p+(1-mfun_labxf(SUFFIX2)-mfun_labyf(SUFFIX2))*llcorner.p)fi.endgroup
metafun > log >
metafun > log > I couldn't find an '=' or ':=' after the expression that is shown above this
error message, so I guess I'll just ignore it and carry on.
metafun > log >
metapost > trace > <direct> draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ; applyluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circular" ) ; draw luminositygroup ( fill (unitsquare scaled 2cm) shifted (4cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ( fill (unitsquare scaled 2cm) shifted (4cm,1cm) withshademethod "circular" ) ; draw luminosityshade ( (unitsquare scaled 2cm) shifted (7cm,1cm) ) ( withshademethod "circular" withshadecolors (.6,.1) ) ( withshademethod "circular" ) ; ) ; ;
metapost > trace >
pages > flushing realpage 4, userpage 4, subpage 4
close source > level 1, order 2, name './ctx-test-MetaPost-pdf.tex'
backend > xmp > using file 'C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
system > start used files
system > text: ctx-test-MetaPost-pdf
system > stop used files
system > start used files
system > 1: filename=publ-imp-default.lua filetype=lua foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system > 2: filename=cont-new.mkxl filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database
system > 3: filename=lang-exc.lua filetype=lua foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system > 4: filename=lang-us.lua filetype=lua foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system > 5: filename=C:\Users\adeim\context\Travail\tests/ctx-test-MetaPost-pdf.tex format=tex foundname=C:/Users/adeim/context/Travail/tests/ctx-test-MetaPost-pdf.tex fullname=C:/Users/adeim/context/Travail/tests/ctx-test-MetaPost-pdf.tex usedmethod=direct
system > 6: filename=lm.lfg filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system > 7: filename=lmroman10-regular filetype=otf format=otf foundname=C:/Users/adeim/context/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf fullname=C:/Users/adeim/context/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf usedmethod=database
system > 8: filename=modern-text.lfg filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/modern-text.lfg fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/modern-text.lfg usedmethod=database
system > 9: filename=latinmodern-math.otf filetype=otf format=otf foundname=C:/Users/adeim/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf fullname=C:/Users/adeim/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf usedmethod=database
system > 10: filename=modern-math.lfg filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg usedmethod=database
system > 11: filename=common-math.lfg filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg usedmethod=database
system > 12: filename=LatinModernMath-Companion.otf filetype=otf format=otf foundname=C:/Users/adeim/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf fullname=C:/Users/adeim/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf usedmethod=database
system > 13: filename=metafun.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl usedmethod=database
system > 14: filename=mp-base.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-base.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-base.mpxl usedmethod=database
system > 15: filename=mp-tool.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-tool.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-tool.mpxl usedmethod=database
system > 16: filename=mp-luas.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-luas.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-luas.mpxl usedmethod=database
system > 17: filename=mp-mlib.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-mlib.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-mlib.mpxl usedmethod=database
system > 18: filename=mp-math.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-math.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-math.mpxl usedmethod=database
system > 19: filename=mp-cont.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-cont.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-cont.mpxl usedmethod=database
system > 20: filename=mp-page.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-page.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-page.mpxl usedmethod=database
system > 21: filename=mp-butt.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-butt.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-butt.mpxl usedmethod=database
system > 22: filename=mp-shap.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-shap.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-shap.mpxl usedmethod=database
system > 23: filename=mp-grph.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-grph.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-grph.mpxl usedmethod=database
system > 24: filename=mp-grid.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-grid.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-grid.mpxl usedmethod=database
system > 25: filename=mp-form.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-form.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-form.mpxl usedmethod=database
system > 26: filename=mp-figs.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-figs.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-figs.mpxl usedmethod=database
system > 27: filename=mp-func.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-func.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-func.mpxl usedmethod=database
system > 28: filename=mp-node.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-node.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-node.mpxl usedmethod=database
system > 29: filename=mp-apos.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-apos.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-apos.mpxl usedmethod=database
system > 30: filename=mp-abck.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-abck.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-abck.mpxl usedmethod=database
system > 31: filename=mp-asnc.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-asnc.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-asnc.mpxl usedmethod=database
system > 32: filename=mp-blob.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-blob.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-blob.mpxl usedmethod=database
system > 33: filename=mp-lmtx.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-lmtx.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-lmtx.mpxl usedmethod=database
system > 34: filename=mp-text.mpxl filetype=mp foundname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-text.mpxl fullname=C:/Users/adeim/context/tex/texmf-context/metapost/context/base/mpxl/mp-text.mpxl usedmethod=database
system > 35: filename=smile.svg foundname=smile.svg fullname=C:/Users/adeim/context/Travail/tests/smile.svg usedmethod=direct
system > 36: filename=lpdf-pdx.xml filetype=tex foundname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=C:/Users/adeim/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
system > stop used files
system > start commandline options
system > currentrun="1"
system > fulljobname="./ctx-test-MetaPost-pdf.tex"
system > input="./ctx-test-MetaPost-pdf.tex"
system > kindofrun="1"
system > maxnofruns="9"
system > texmfbinpath="C:/Users/adeim/context/tex/texmf-win64/bin"
system > stop commandline options
system > start commandline files
system > 1: ./ctx-test-MetaPost-pdf.tex
system > stop commandline files
modules > start used modules
modules > stop used modules
system >
system > status after finishing run
system >
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system > string pool hash lookup node token buffer input file nest parameter save font language mark insert
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system > max 2097152 100000000 2097152 2097152 100000000 10000000 100000000 100000 2000 10000 100000 500000 100000 10000 10000 500
system > min 150000 10000000 150000 150000 2000000 1000000 1000000 10000 500 1000 20000 100000 250 250 50 10
system > set 500000 10000000 250000 250000 50000000 10000000 10000000 100000 2000 10000 100000 500000 100000 250 250 250
system > stp 100000 1000000 100000 100000 500000 250000 1000000 10000 250 1000 10000 10000 250 250 50 25
system >
system > mem 150000 971734 150000 2000000 1000000 1000000 10000 500 1000 20000 10000 7401088 96 1200 320
system > all 2400000 971734 2400000 18000000 8000000 1000000 320000 16000 88000 80000 160000 7401088 96 28800 10240
system >
system > ini 2145984 927347 0 48815 0 541251 0
system > ptr 50727 10311 50710 578519 0 5 0 0 0 0 20 0 28 7
system > top 50728 807100 131074 21440 575953 341 42 5 12 43 301 250 250 50 10
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system >
system > current input type : initial
system >
system > approximate memory : 44350014 (42 MB)
system >
system > expansion depth : min: 10000, max: 1000000, set: 10000, top: 6
system >
system > luabytecode registers : 1015
system > luabytecode bytes : 16256 (0 MB)
system > luastate bytes now : 65596258 (62 MB)
system > luastate bytes max : 65596258 (62 MB)
system >
system > file callbacks : 129
system > saved callbacks : 715
system > direct callbacks : 4
system > function callbacks : 826
system > value callbacks : 436
system > message callbacks : 0
system > bytecode callbacks : 620
system >
system > mp instances : 1
system > mp estimated memory : 4212312 (4 MB)
system > mp file callbacks : 13879
system > mp text callbacks : 0
system > mp script callbacks : 393
system > mp log callbacks : 1138
system >
system > total callbacks : 2730
system > mp total callbacks : 15411
system > backend callbacks : 0
system >
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: C:/Users/adeim/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats > resource resolver: loadtime 0.022 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 36 found files, scanned paths: <none>
mkiv lua stats > stored bytecode data: 515 modules (0.182 sec), 105 tables (0.016 sec), 620 chunks (0.198 sec)
mkiv lua stats > traced context: maxstack: 1748, freed: 2, unreachable: 1746
mkiv lua stats > cleaned up reserved nodes: 74 nodes, 7 lists of 437
mkiv lua stats > node memory usage: 9 attribute, 3 glue, 131 gluespec, 1 kern, 645 mathspec, 4 penalty, 2 temp
mkiv lua stats > node list callback tasks: 16 unique task lists, 10 instances (re)created, 293 calls
mkiv lua stats > used backend: pdf
mkiv lua stats > jobdata time: 0.003 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: file: 129, saved: 715, direct: 4, function: 826, value: 436, message: 0, bytecode: 620, late 0, total: 2730 (683 per page)
mkiv lua stats > randomizer: resumed with value 0.95189229949769
mkiv lua stats > loaded patterns: en::1, load time: 0.000
mkiv lua stats > loaded fonts: 3 files: latinmodernmath-companion.otf, latinmodern-math.otf, lmroman10-regular.otf
mkiv lua stats > font engine: otf 3.135, afm 1.513, tfm 1.000, 14 instances, 9 shared in backend, 4 common vectors, 5 common hashes, load time 0.231 seconds
mkiv lua stats > metapost: 0.006 seconds, loading: 0.076, execution: 0.006, n: 4, average: 0.022, instances: 1, luacalls: 15411 (file: 13879, text: 0, script: 393, log: 1138), memory: 4.017 M
mkiv lua stats > math tweaking time: 0.097 seconds, 12 math goodie tables
mkiv lua stats > graphics processing time: 0.003 seconds including tex, 1 processed images, 1 unique asked, 0 bad names
mkiv lua stats > font embedding time: 0.007 seconds, 1 fonts
mkiv lua stats > result saved in file: ctx-test-MetaPost-pdf.pdf, compresslevel 1, objectcompresslevel 3, 12 streams, 4 uncompressed, 6 compressed, 2 not compressed, threshold 40
mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries
mkiv lua stats > used platform: win64, type: windows, binary subtree: texmf-win64
mkiv lua stats > used engine: luametatex version: 2.10.11, functionality level: 20240124, format id: 700, compiler: gcc
mkiv lua stats > tex properties: 807100 hash slots used of 2097152, 50710 control sequences, approximate memory usage: 42 MB
mkiv lua stats > lua properties: engine: lua 5.4, used memory: 65 MB, ctx: 62 MB, max: 62 MB, symbol mask: utf (τεχ)
mkiv lua stats > runtime: 0.675 seconds, 4 processed pages, 4 shipped pages, 5.924 pages/second
[-- Attachment #3: 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
___________________________________________________________________________________
prev parent reply other threads:[~2024-03-16 12:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 13:36 [NTG-context] " seyal.zavira
2024-03-12 13:43 ` [NTG-context] " Jean-Pierre Delange
2024-03-12 13:53 ` seyal zavira
2024-03-12 14:01 ` Henning Hraban Ramm
2024-03-12 14:44 ` Jean-Pierre Delange
2024-03-12 18:21 ` Hans Hagen
2024-03-12 22:59 ` seyal zavira
2024-03-13 8:16 ` Henning Hraban Ramm
2024-03-13 12:14 ` Jean-Pierre Delange
2024-03-13 12:37 ` Henning Hraban Ramm
2024-03-13 12:44 ` Jean-Pierre Delange
2024-03-15 19:39 ` Hans Hagen via ntg-context
2024-03-16 2:46 ` seyal zavira
2024-03-16 12:21 ` Jean-Pierre Delange [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06307646-164e-4c6b-a173-3061987f5b2b@free.fr \
--to=adeimantos@free.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).