Re: [NTG-context] Xml - Lua - context

2022-03-28 Thread Thomas A. Schmitz via ntg-context
e for me now: > > https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html > https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html > > Adam Thank you, that’s already very useful! I should have looked if there is a “delayed” alternative for externalfigure as well, b

Re: [NTG-context] Xml - Lua - context

2022-03-28 Thread Adam Reviczky via ntg-context
but couldn’t make it compile. Combinations, > combined with framed and externalfigure, are difficult to write in Lua - or > am I too stupid to find the winning combination (sorry for the puns). > > 3. columns > > Again, this would seen like a natural approach, having every A4 pag

[NTG-context] Xml - Lua - context

2022-03-28 Thread Thomas A. Schmitz via ntg-context
combinations are for), but I ran into expansion problems, added a few “function () end” in my code, but couldn’t make it compile. Combinations, combined with framed and externalfigure, are difficult to write in Lua - or am I too stupid to find the winning combination (sorry for the puns). 3. columns

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
tertilde c\textasciitilde d \stoptext \definepageinjectionalternative [chapter:image] [renderingsetup=pageinjection:chapter:image] \startsetups [pageinjection:chapter:image] \centerbox{\externalfigure[\dummyparameter{name}]} \stopsetups \definepageinjection [chapter:start] [empt

Re: [NTG-context] help with facing page image

2022-03-11 Thread jbf via ntg-context
=pageinjection:chapter:image] \startsetups [pageinjection:chapter:image]   \centerbox{\externalfigure[\dummyparameter{name}]} \stopsetups \definepageinjection   [chapter:start]   [empty]   [page=left] \definepageinjection   [chapter:insert]   [previouspage]   [alternative=chapter:image,    offset=1cm,    pagestate

Re: [NTG-context] help with facing page image

2022-03-11 Thread Wolfgang Schuster via ntg-context
[pageinjection:chapter:image]   \centerbox{\externalfigure[\dummyparameter{name}]} \stopsetups \definepageinjection   [chapter:start]   [empty]   [page=left] \definepageinjection   [chapter:insert]   [previouspage]   [alternative=chapter:image,    offset=1cm,    pagestate=stop] \setuphead   [chapter

Re: [NTG-context] help with facing page image

2022-03-10 Thread jbf via ntg-context
[pageinjection:chapter:image] \clip [width=\framedwidth,height=\framedheight] {\centerbox{% \externalfigure [\dummyparameter{name}] [%factor=, width=\structureuservariable{width}, height=\structureuservariable{height

Re: [NTG-context] help with facing page image

2022-03-09 Thread śrīrāma via ntg-context
e] \clip [width=\framedwidth,height=\framedheight] {\centerbox{% \externalfigure [\dummyparameter{name}] [%factor=, width=\structureuservariable{width}, height=\structureuservariable{height}, orientation=\struct

Re: [NTG-context] help with facing page image

2022-03-09 Thread jbf via ntg-context
    [width=\framedwidth,height=\framedheight] % {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}} % \stopsetups \definepageinjection   [chapter:start]   [empty]   [page=left] \definepageinjection   [chapter:insert]   [previouspage]   [%alternative=chapter:image,    pagestate=stop]

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
ddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \

Re: [NTG-context] help with facing page image

2022-03-07 Thread Henning Hraban Ramm via ntg-context
{\structureuservariable{image}}{}{% if image empty, do nothing }{% \directsetup{eka:noheader} \vbox{% \blank[big] \externalfigure[\structureuservariable{image}][width=0.8\textwidth]\par } \doifnot{\structureuservariable{motto}}{}{ \vfill \vbox

Re: [NTG-context] help with facing page image

2022-03-07 Thread Bruce Horrocks via ntg-context
n you might need another setup to clean it up afterwards. In this example there is just the "after=" in the definition. % Now you can print your images by using: \starttext \startChapterPreface \externalfigure[cow.pdf] \stopChapterPreface \startchapter[title={firstchapter}} ... \stopchapter

Re: [NTG-context] help with facing page image

2022-03-07 Thread Wolfgang Schuster via ntg-context
    [width=\framedwidth,height=\framedheight] % {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}} % \stopsetups \definepageinjection   [chapter:start]   [empty]   [page=left] \definepageinjection   [chapter:insert]   [previouspage]   [%alternative=chapter:image,    pagestate=stop]

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
ayer [chapCover] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter]

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
tartsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=cha

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
layer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[empty]} \

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \setlayer [mill] {\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \p

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
perwidth,height=\paperheight,repeat=yes] \setlayer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetup

[NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
in bodymatter: \startbodymatter \definelayer[mylayer] % name of the layer [x=0mm, y=0mm, % from upper left corner of paper width=\paperwidth,height=\paperheight] % let the layer cover the full paper \setlayer[mylayer] [hoffset=2.5cm, voffset=3cm] {\externalfigure[Chapter1.jpg][width=.9

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ign={flushright,lohi}] \bTR \bTD \externalfigure[cow][height=2cm] \eTD \bTD \doiftextelse{\getvariable{assignments}{date}}{\getvariable{assignments}{date}}{\date} \eTD \eTR \bTR \bTD Course: \getvariable{assignments}{code} \eTD \bTD \getvariable{assignments}{assignment} \eTD \

Re: [NTG-context] Disable reuse of figures

2022-02-21 Thread Aditya Mahajan via ntg-context
when the same figure is included twice, context only includes the > figure once and refers to the included figure the second time. The option > `object=no` to externalfigure is supposed to prevent that, but it doesn't > work. For example, consider the following example the bug-report use

Re: [NTG-context] Disable reuse of figures

2022-02-19 Thread Hans Hagen via ntg-context
the second time. The option `object=no` to externalfigure is supposed to prevent that, but it doesn't work. For example, consider the following example the bug-report uses graphviz as the external program, but I have changed that to context to keep things self contained) \usemodule[filter

[NTG-context] Disable reuse of figures

2022-02-18 Thread Aditya Mahajan via ntg-context
Hi, This is related to a bug report for the filter module: https://github.com/adityam/filter/issues/60 Normally, when the same figure is included twice, context only includes the figure once and refers to the included figure the second time. The option `object=no` to externalfigure is supposed

Re: [NTG-context] Regular Online meeting

2022-02-07 Thread Hans Hagen via ntg-context
\starttexdefinition MaxFigure #1#2 \page \getfiguredimensions[#1][page=#2]\relax \ifdim\figurewidth>\figureheight\relax \externalfigure [#1] [page=#2, fr

Re: [NTG-context] Regular online meet-up

2022-02-06 Thread Henning Hraban Ramm via ntg-context
Hi Alain, in my current project I need the same. I use floats and move the externalfigure with \offset; can show you on Tuesday. e.g. \startplacefigure[title={},location=left]% or outer... \offset[topoffset=-1em,leftoffset=-20mm]{% % it would be nice to have outeroffset/inneroffset

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-30 Thread Henning Hraban Ramm via ntg-context
the solution, but cann't figure what is the correct location, I'm not seeing that in the manual anywhere. Use the force Luke... e.g. \placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]} The location= option is for where on the page (e.g. in a margin, in the main text

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
ut cann't > figure what is the correct location, I'm not seeing that in the manual > anywhere. Use the force Luke... e.g. \placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]} The location= option is for where on the page (e.g. in a margin, in the main text) the picture will

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
Great! Thanks Hans, now it works. I replaced the "draw externalfigure" commands by draw externalfigure "./skysprite.png" xsized 4u ysized 5u shifted (0u,-0u); draw externalfigure "./sandsprite.png" xsized 4u ysized 5u shifted (0u,-5u); Best regards On Sun, Jan

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Hans Hagen via ntg-context
: \starttext \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,8pt]}] \startuseMPgraphic{mapa} u:=.095cm; draw externalfigure "./skysprite.png" xscaled 4u yscaled 5u shifted (0u,-0u); draw externalfigure "./sandsprite.png" xscaled 4u yscaled 5u shifted (0u,-5u)

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
[termes,8pt]}] \startuseMPgraphic{mapa} u:=.095cm; draw externalfigure "./skysprite.png" xscaled 4u yscaled 5u shifted (0u,-0u); draw externalfigure "./sandsprite.png" xscaled 4u yscaled 5u shifted (0u,-5u); \stopuseMPgraphic \useMPgraphic{mapa} \stoptext But instead I got two huge

Re: [NTG-context] upload

2021-12-25 Thread Hans Hagen via ntg-context
ves [logs.errors] %% missing font \definefontfamily [foo] [serif] [no font here really] \setupbodyfont [foo] \starttext %% missing characters 풜 %% missing figure \externalfigure [foo] %% missing references See \in{section}[sec:none]. \stoptext because these are not errors in th

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
rs] %% missing font \definefontfamily [foo] [serif] [no font here really] \setupbodyfont [foo] \starttext %% missing characters 풜 %% missing figure \externalfigure [foo] %% missing references See \in{section}[sec:none]. \stoptext Marco

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
not working for me. Here is my MWE: \define[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Willi Egger via ntg-context
y MWE: > > > > \define[]\logofile{an_image_file.png} % Here defining the variable with the > filename to use. > > \definelayer[stillimage] > \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the > \logofile macro. > \setupbackground

[NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread skyhorse--- via ntg-context
[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background=stillimage] \starttext \input knuth \stoptext What's

[NTG-context] All Equations

2021-12-10 Thread Henning Hraban Ramm via ntg-context
Squere Model) \NR \NC ... < 0 \TC (Bright Dark Matter Model) \NR \stopmathcases \stopformula ... of Truly Deep Physics: \startformula \hat{H} - \c{u}_0 = O\stopformula % ? How can I get a cedilla under the u? \c{u} is wrong. \page \subject{Original} \externalfigure[https://imgs.xkcd.com/comic

[NTG-context] location=outer causes bad page break in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
tempor \startplacefigure [location=outer] \externalfigure \stopplacefigure \samplefile{knuth} \stoptext Marco LMTX 2021.11.26 11:38 ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
top] \starttext \samplefile{knuth} \startplacefigure %% [location=top] %% default \externalfigure \stopplacefigure %% Goal here: turn off the caption, not influence the default placement %% needs to be adapted when the global style changes %% \startplacefigure [location=none] %% fa

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context
Am 30.11.21 um 12:16 schrieb Marco Patzer via ntg-context: Hi! Today I discovered that the parameter order in float location matters: \starttext \samplefile{knuth} \startplacefigure [location={top,none}] %% works: float is at the top \externalfigure \stopplacefigure

[NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
Hi! Today I discovered that the parameter order in float location matters: \starttext \samplefile{knuth} \startplacefigure [location={top,none}] %% works: float is at the top \externalfigure \stopplacefigure \startplacefigure [location={none,top}] %% top is ignored here

Re: [NTG-context] Automatic counting groupsuffix for subfigures

2021-11-25 Thread Hans Hagen via ntg-context
, groupsuffix=a] \externalfigure \stopplacefigure \startplacefigure [title=Right, reference=ref:right, group=one, groupsuffix=b] \externalfigure \stopplacefigure \stopfloatcombination \stopplacefigure See \in{image}[ref:right] (right) and \in{image}[ref:left] (left

[NTG-context] Automatic counting groupsuffix for subfigures

2021-11-24 Thread Marco Patzer via ntg-context
Hi! I'd like to use subfigure numbering for floats. This works: \useMPlibrary [dum] \starttext \startplacefigure [location=none] \startfloatcombination [nx=2] \startplacefigure [title=Left, reference=ref:left, group=one, groupsuffix=a] \externalfigure \stopplacefigure

[NTG-context] Errors in source files return success

2021-11-18 Thread Marco Patzer via ntg-context
\enabledirectives [logs.errors] %% makes context return 1 on missing chars, great! %% \enabledirectives %% [logs.errors=missing characters] \starttext %% missing characters 풜 %% missing figure \externalfigure [foo] %% \end occurred inside a group at level 1 %% ### semi simple group

[NTG-context] figure not added in current latest

2021-11-17 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have the following sample: \setuppapersize[S6] \startbuffer[flag] \setuppapersize[S6] \starttext \startmakeup[page][align=center] \dontleavehmode \externalfigure[uk-flag.pdf][width=.8\textwidth] \stopmakeup \stoptext \stopbuffer \starttext \startmakeup[page

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context
}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure[bfly.jpg][width=1.5cm]} \setupbackgrounds[page][background=butterfly] The last line adds backgrounds to every page. And without

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread Pablo Rodriguez via ntg-context
> > \setupbackgrounds >  [rightpage] >  [background=butterfly] > > \startchapter[title={Chapter title}] > \definelayer[butterfly] >     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] > \setlayer[butterfly] >     [hoffset=.99\textwidth, voffset

[NTG-context] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
something). \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure

Re: [NTG-context] \externafigure and \at do not work together

2021-11-01 Thread Wolfgang Schuster via ntg-context
Otared Kavian via ntg-context schrieb am 31.10.2021 um 18:11: Hi, Your example has two issues, since you invoke \externalfigure before \starttext, and moreover you don’t use the place figure mechanism. The following gives the result you want: \setupinteraction[state=start] \starttext

Re: [NTG-context] \externafigure and \at do not work together

2021-10-31 Thread Otared Kavian via ntg-context
Hi, Your example has two issues, since you invoke \externalfigure before \starttext, and moreover you don’t use the place figure mechanism. The following gives the result you want: \setupinteraction[state=start] \starttext \startplacefigure[reference=clock] \externalfigure[clock.jpg

Re: [NTG-context] \externafigure and \at do not work together

2021-10-31 Thread Bruce Horrocks via ntg-context
I thought it was necessary to use one of the derivations of \placefloat in order to get the reference generated. In your case this would be \placefigure thus: \starttext \placefigure [ ] [clock] { } {\externalfigure[clock.jpg]} \at[clock] refers to a clock \stoptext > On 31 Oct 2021, at 12

Re: [NTG-context] \externafigure and \at do not work together

2021-10-31 Thread a badin via ntg-context
The fix is not really a fix thought, as it makes the image of the figure disappear. Still don't know how to make a .jpg work with \at On Sun, 31 Oct 2021 at 13:07, a badin wrote: > > Hello, perhaps this is how it is supposed to work, but: > > \externalfigure[clock.jpg][clock]

[NTG-context] \externafigure and \at do not work together

2021-10-31 Thread a badin via ntg-context
Hello, perhaps this is how it is supposed to work, but: \externalfigure[clock.jpg][clock] \starttext \at[clock] refers to a clock \stoptext produces "?? refers to a clock", instead of "1 refers a clock" --- the wiki of \at says, that labels of figures can be refered to. I

Re: [NTG-context] vertical align in combination

2021-10-22 Thread Pablo Rodriguez via ntg-context
rnalfigure[location=default] >\startcombination[nx=3, ny=2, location={middle}] >{\externalfigure[mill.png][width=.25\textwidth]} {} Many thanks for your fast reply and your help, Hans. Pablo -- http://www.ousia.tk ___

Re: [NTG-context] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 3:58 PM, juh via ntg-context wrote: Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] probably not unless there is an mp conversion

Re: [NTG-context] vertical align in combination

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 5:20 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \setupexternalfigure[location=default] \startcombination[nx=3, ny=2, location={middle}] {\externalfigure[mill.png][width=.25\textwidth]} {\externalfigure[cow.pdf

[NTG-context] vertical align in combination

2021-10-22 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \setupexternalfigure[location=default] \startcombination[nx=3, ny=2, location={middle}] {\externalfigure[mill.png][width=.25\textwidth]} {\externalfigure[cow.pdf][width=.25\textwidth]} {\externalfigure[cow.pdf][width=.25\textwidth

Re: [NTG-context] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 3:58 PM, juh via ntg-context wrote: Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] unrelated to svg \startMPcode fill fullcircle

[NTG-context] another svg conversion=mp question

2021-10-22 Thread juh via ntg-context
Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: .

Re: [NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, I found a minimal example. Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context: > in a minimal example > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > renders fine. > > I my real world project white background i

[NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, in a minimal example \starttext \externalfigure[test.svg][conversion=mp] \stoptext renders fine. I my real world project white background is rendered black. Any hints where I can start to debug? juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Es

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Hans Hagen via ntg-context
}] \starttext \doiffile{A3page.pdf} {\def\Doc{A3page.pdf} \getfiguredimensions[\Doc] \dorecurse{\noffigurepages} {\ifodd\recurselevel \rotate[rotation=90] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \else\rotate[rotation=270

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
-context/2021/103909.html)? .. it was not really a minimal example ... \showframe \starttext \topskip4cm \rotate[rotation=90] {\externalfigure[A3page.pdf][page=1,width=\textheight]}\page \rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page \rotate[rotation

[NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-21 Thread Pablo Rodriguez via ntg-context
] \dorecurse{\noffigurepages} {\ifodd\recurselevel \rotate[rotation=90] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \else\rotate[rotation=270] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \fi}} \stoptext I’m afraid

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-19 Thread Henning Hraban Ramm via ntg-context
gt; does something doesn't mean it did years ago (just like at how crippled > tounicode has been / is supported over time) Yes, you can send PDF files to some copiers and other professional printing devices. But usually you do this via the manufacturer’s workflow tools – only a few

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
Fixing your svg. View attachments. El lun, 18 oct 2021 a las 10:15, Jason Ross via ntg-context (< ntg-context@ntg.nl>) escribió: > The following MWE fails to render the text in the attached SVG properly: > > > \starttext > \externalfigure[test.svg][conversion=mp] >

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 5:15 PM, Jason Ross via ntg-context wrote: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib. If you open test.svg with Inkscape, ungroup and then save, you get a SVG that is typeset right with LMTX. Looking at the differences

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
ery wrote: > > Check that your Inkscape is working properly. > > > > That proble NOT appear on my machine... > > > > Best, > > > > L. Montgomery > > (Sorry Luis, I forgot to cc mailing list) > Per https://wiki.contextgarden.net/Command/ex

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
On 10/18/21 8:38 AM, Luis Montgomery wrote: > Check that your Inkscape is working properly. > > That proble NOT appear on my machine... > > Best, > > L. Montgomery (Sorry Luis, I forgot to cc mailing list) Per https://wiki.contextgarden.net/Command/externalfigure, i

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
properly: > > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > > The axis labels, tick labels, and title are all incorrect. This file was > generated with Matplotlib. > > ___ &

[NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Hans Hagen via ntg-context
for whole layouts (same as TrimBox might make sense), just interesting in \externalfigure. also worthless I agree. With \setuppaper[A4][A4,oversized] I’d expect ConTeXt to set... * MediaBox and CropBox to the bigger format * TrimBox to the page format (A4) * BleedBox also to the page format,

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Henning Hraban Ramm via ntg-context
systems in printshops rely on BleedBox and TrimBox. It’s not about rendering, but imposition and even postprocessing (cutting etc.). >> * ArtBox is neglectable for whole layouts (same as TrimBox might make >> sense), just interesting in \externalfigure. > > also worthless I ag

Re: [NTG-context] combination with lua

2021-10-12 Thread Adam Reviczky via ntg-context
>> Hi, > >> > >> I am trying to use a combination figure with luacode (both with > >> latest MKIV and LMTX). > >> However, the figures do not line up in the grid of the combination. > >> > >> I get the correct result with examples 1 and 2 be

Re: [NTG-context] combination with lua

2021-10-12 Thread Wolfgang Schuster via ntg-context
the correct result with examples 1 and 2 below, but example 3 using lua functions for combination and externalfigure is what I wanted to use in the first place. MWE: \starttext \startluacode -- Combination 1 context.startplacefigure({title = "Figure"}) context.startcombination({nx = &q

Re: [NTG-context] combination with lua

2021-10-12 Thread Hans Hagen via ntg-context
using lua functions for combination and externalfigure is what I wanted to use in the first place. MWE: \starttext \startluacode -- Combination 1 context.startplacefigure({title = "Figure"}) context.startcombination({nx = "2", ny = "2"}, "\\external

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Hans Hagen via ntg-context
as image * BleedBox must be TrimBox plus bleed. a relative new one, probably also sensitive for interpretation by renderer, imo worthless * ArtBox is neglectable for whole layouts (same as TrimBox might make sense), just interesting in \externalfigure. also worthless According to PDF

[NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Henning Hraban Ramm via ntg-context
in \externalfigure. According to PDF Standard, MediaBox is the only required one; but CropBox is the most important one, since PDF viewers rely on it. With \setuppaper[A4] all boxes can be the same (or undefined). Status quo. With \setuppaper[A4][A4,oversized] I’d expect ConTeXt to set... * MediaBox

[NTG-context] combination with lua

2021-10-11 Thread Adam Reviczky via ntg-context
Hi, I am trying to use a combination figure with luacode (both with latest MKIV and LMTX). However, the figures do not line up in the grid of the combination. I get the correct result with examples 1 and 2 below, but example 3 using lua functions for combination and externalfigure is what I

Re: [NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread Hans Hagen via ntg-context
rttext   \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]}   \from[github] \stoptext \figuresymbol[github.svg][conversion=mp,height=2ex] - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread Henning Hraban Ramm via ntg-context
> Am 07.10.2021 um 11:24 schrieb noib3 via ntg-context : > > How can I place an SVG icon "inline", i.e. side by side to some text? Here's > my MWE > > ``` > \useURL > [github] > [https://github.com/test] > [] > [github.com/test] > > \s

[NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread noib3 via ntg-context
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL [github] [https://github.com/test] [] [github.com/test] \starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ``` I have attached a

[NTG-context] Blank line after \item: MkIV vs LMTX and how to properly get rid of it

2021-09-30 Thread Vladimir Lomov via ntg-context
Hello. Consider the following small example: 8< -- \starttext \startitemize[n] \item \input tufte \item \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \item \blank[overlay]% \placefigure[right,n

Re: [NTG-context] Image cropped

2021-09-13 Thread Fabrice Couvreur via ntg-context
ayout > [width=middle, >height=middle] > > \setupfootertexts > [margin] > [] > [{\offset[x=-1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] > [] > [{\offset[x=1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] > > %\showframe > &

Re: [NTG-context] Image cropped

2021-09-12 Thread Wolfgang Schuster via ntg-context
,    height=middle] \setupfootertexts   [margin]   []   [{\offset[x=-1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]   []   [{\offset[x=1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] %\showframe \starttext \dorecurse{8}{\samplefile{knuth}} \stoptext Wolfgang

Re: [NTG-context] Image cropped

2021-09-11 Thread Fabrice Couvreur via ntg-context
e,height=middle] > > \setupfootertexts > [margin] >[] >[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] >[] >[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] > > \sho

Re: [NTG-context] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context
. \setuppapersize[A4][A3] \setuplayout[location=middle] \setuplayout[width=middle,height=middle] \setupfootertexts    [margin]    []  [{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]    []  [{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] \showframe \starttext

[NTG-context] Image cropped

2021-09-11 Thread Fabrice Couvreur via ntg-context
]{\externalfigure[logo.pdf][factor=max]}}] [] [{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}] \showframe \starttext \dorecurse{8}{\input knuth} \stoptext ___ If your question is of interest to others as well

[NTG-context] Setting up the double pages of part beginnings

2021-09-10 Thread Christian Dekant via ntg-context
EXpage\externalfigure[#1][width=\printpaperwidth,height=\printpaperheight]\stopTEXpage\incrementpagenumber} % tried page=yes/no/right/odd \setuphead [part] [placehead=yes, page=right, before={\nowhitespace}, % ??? ] \starttext \completecontent \FullScreen{cow} \startpart[title={A nice part}]

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
] \setupbackgrounds[text][background={bg},state=start] \starttext \starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal&qu

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
\starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal", but I wanted to check if "multiply&q

Re: [NTG-context] "*.jpg is bugged", previously working

2021-09-01 Thread Henning Hraban Ramm via ntg-context
s AB, model=FLIR ONE Pro, >> orientation=upper-left, xresolution=152, yresolution=160, resolutionunit=2, >> software=Common_dll v1.0.0b1, datetime=2021:08:03 15:28:27], baseline, >> precision 8, 640x480, components 3 >> The latter is one of Harald’s infrared pictures. >

Re: [NTG-context] "*.jpg is bugged", previously working

2021-09-01 Thread Hans Hagen via ntg-context
precision 8, 640x480, components 3 The latter is one of Harald’s infrared pictures. I can send them off-list, if you like. \starttext \externalfigure[20200910T115319.JPG][height=4cm] \externalfigure[old-paper-1140627-638x420.jpg][height=4cm] \stoptext both show up ok (fwiw: the jpg code didn't

Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-30 Thread Jan U. Hasecke via ntg-context
Am 30.08.21 um 09:58 schrieb Benjamin Buchmuller via ntg-context: (For the record on the list, I attach a small res screenshot to illustrate the matter, description below; My apologies for any inconvenience.) When I open the pdf in evince I see no difference. Maybe also a reader problem?

Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-30 Thread Benjamin Buchmuller via ntg-context
How odd; Then it must be related to my viewer here ... I was just surprised to literally see two different outcomes with the \startTEXpage and without. Maybe it has to do with some sort of "nesting" in the PDF that is not handled correctly at the PDF viewer's end. I'll test again on a

Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-30 Thread Benjamin Buchmuller via ntg-context
like to do eventually) both gradients disappear. However, when I use \startTEXpage ... \stopTEXpage around the \externalfigure, everything looks and prints fine. > On Aug 30, 2021, at 08:54, Hans Hagen wrote: > > On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote: >&

<    1   2   3   4   5   6   7   8   9   10   >