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, in L

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
* ArtBox is neglectable 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 als

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
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
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
\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 and

[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
\starttext   \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] > &g

[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 attach

[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
etuplayout > [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
iddle,    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 Wol

Re: [NTG-context] Image cropped

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

Re: [NTG-context] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context
oblem. \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 \star

[NTG-context] Image cropped

2021-09-11 Thread Fabrice Couvreur via ntg-context
rutdp]{\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

[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
bg][x=0mm,y=0mm] \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

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
rt] \starttext \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 wante

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&#

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? ju

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 different

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

2021-08-30 Thread Benjamin Buchmuller via ntg-context
ould 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:

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

2021-08-29 Thread Hans Hagen via ntg-context
On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote: Hello list, I have noticed that some gradients get lost when embedding an external figure from a pdf (Preview and Acrobat DC and in printer), although the original pdf works fine for me. you have to be a bit more precise in des

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

2021-08-29 Thread Benjamin Buchmuller via ntg-context
preparing a MWE, I further realized that I get the correct output when between \startTEXpage ... \stopTEXpage \starttext Embedded via \type{\externalfigure} PNG \externalfigure[drawing.png][width=72.631mm,height=21.702mm] \blank[big] PDF \externalfigure[drawing.pdf] \startTEXpage % this

[NTG-context] prefixstarter in captions

2021-08-28 Thread Adam Reviczky via ntg-context
pecting "Figure C.1.S.1". MWE: \setupfloatcaption[figure][number=yes,way=bytext,prefix=yes,prefixstarter={C.},numberstarter={S.}] \starttext \startchapter[title={Cow}] \startplacefigure[title={Custom caption}] \externalfigure[cow] \stopplacefigure \stopchapter \stoptext Not sure whether prefixsta

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.08.2021 um 14:46: Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight

[NTG-context] layer disappears when showframe is set

2021-08-26 Thread juh via ntg-context
Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow] \showframe

Re: [NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context
-\rightmarginwidth\relax, y=\bottomspace] {\externalfigure[dum][width=\rightmarginwidth,height=\footerheight]} \setlayer [MyLogo] [right] [preset=rightbottom, x=\dimexpr\cutspace-\rightmargindistance-\rightmarginwidth\relax, y=\bottomspace] {\externalfigure[dum][width=\rightmarginwidth

[NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Fabrice Couvreur via ntg-context
=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds[page][background=MyLogo] \setlayer [MyLogo] [hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax, voffset=\dimexpr\topspace+\textheight+\footerheight\relax] {\externalfigure[dum][width=\rightmarginwidth

Re: [NTG-context] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context
ding additional offset from the frame which pushes the complete header block down.             \externalfigure[dum] [factor=max] \stopframed         }] [...] When you have a similar problem in the future I suggest to enable the frame for the header line with \showframe and in addition enable

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
=darkred,rulethickness=1pt] \setupbackgrounds [footer] [text] [frame=off,bottomframe=on,width=max, framecolor=darkred,rulethickness=1pt] \setupfootertexts [margin] [] [{\offset[y=\strutdp]{\externalfigure[dum][factor=max]}}] [] [{\offset[y=\strutdp]{\externalfigure[dum][factor=max

Re: [NTG-context] paper dimensions for TEXpage

2021-08-18 Thread Hans Hagen via ntg-context
[page][background={foreground, hi}] \starttext \startTEXpage \framed[frame=off, offset=none] {\setlayer[hi]{\color[red]{hi}} \externalfigure[cow-brown]\framedheight} \stopTEXpage \stoptext In this case, \getfiguredimensions would work, but I don’t know how to deal with a pure text

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Pablo Rodriguez via ntg-context
{foreground, hi}] \starttext \startTEXpage \framed[frame=off, offset=none] {\setlayer[hi]{\color[red]{hi}} \externalfigure[cow-brown]\framedheight} \stopTEXpage \stoptext In this case, \getfiguredimensions would work, but I don’t know how to deal with a pure text box. BTW, is there a

Re: [NTG-context] Rotating pages

2021-08-07 Thread Wolfgang Schuster via ntg-context
to achieve this? \startbuffer[apx] \setuppapersize[ \setuppapersize[%   \dorecurse{\noffigurepages}       {\startTEXpage \externalfigure[\jobname-apx.pdf][page=\recurselevel]  \stopTEXpage} \externalfigure [...] [page=\recurselevel,orientation=90] Wolfgang

[NTG-context] Rotating pages

2021-08-07 Thread Jeroen via ntg-context
\dorecurse{10}{\input zapf\par} \typesetfile[\jobname-apx.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname-apx.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-apx.pdf][page=\recurselevel

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
odymatter \dorecurse{10}{\input zapf\par} \typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname-slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-slides.p

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Pablo Rodriguez via ntg-context
ile as \typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt] and the output file would read: \getfiguredimensions[\jobname-slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-slides.pdf][page=\recurselevel] \stopTEXpage} I mean, y

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
page \externalfigure[\jobname_slides.pdf][page=\recurselevel] \stopTEXpage} \stopappendices \stoptext Op za 31 jul. 2021 om 16:22 schreef Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl>: > > On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote: >

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Pablo Rodriguez via ntg-context
name_slides.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname_slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname_slides.pdf][page=\recurselevel] \stopTEXpage} \stopappendices \stoptext BT

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-27 Thread Michal Vlasák via ntg-context
ice. It allows great amount of interactivity > > (playing with the camera, selectively disabling 3D objects, etc.) and > > also scriptability (switching between predefined "views" with PDF > > actions and a _lot_ of possibilities with JavaScript scripts). >

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-26 Thread Hans Hagen via ntg-context
. - Any source (embedded, external and URL file). - In all regards superior to sound objects. Is still relatively simple and allows some customization and control (media player controls, PDF actions). - This is the backing mechanism for including video and audio in Con

[NTG-context] Multimedia, PDF and ConTeXt

2021-07-26 Thread Michal Vlasák via ntg-context
DF 1.5, 2003) and became unsupported (PDF 2.0, 2017). - Both video and audio is supported. - Any source (embedded, external and URL file). - In all regards superior to sound objects. Is still relatively simple and allows some customization and control (media player controls, PDF

Re: [NTG-context] names of cached images

2021-07-02 Thread Jano Kula
Hi Aditya! On Fri, Jul 2, 2021, 17:43 Aditya Mahajan wrote: > > On Fri, 2 Jul 2021, Jano Kula wrote: > > > Hello again, > > > > likely a bug and one question. Using this code with lmtx: > > > > \starttext > > \externalfigure[mill][width=40mm,

Re: [NTG-context] names of cached images

2021-07-02 Thread Aditya Mahajan
On Fri, 2 Jul 2021, Jano Kula wrote: > Hello again, > > likely a bug and one question. Using this code with lmtx: > > \starttext > \externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] % > mill... > \externalfigure[mill][width=40mm,cac

Re: [NTG-context] names of cached images

2021-07-02 Thread Jano Kula
Hello again, likely a bug and one question. Using this code with lmtx: \starttext \externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] % mill... \externalfigure[mill][width=40mm,cache=.,conversion=gray.pdf] % m_k_i_v_mill... \externalfigure[mill][width=40mm,cache=./second

Re: [NTG-context] names of cached images

2021-06-09 Thread Jano Kula
ux > > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win > > > > MWE > > \starttext > > \externalfigure[hacker] > > [cache=./, > > conversion=gray.pdf] > > \stoptext > > > > Is it intended behavior? > sure, something lik

Re: [NTG-context] names of cached images

2021-06-06 Thread Hans Hagen
from. mkiv used to have m_k_i_v_ string there. hacker.pdf = source image hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win MWE \starttext \externalfigure[hacker]     [cache=./,     conversion=gray.pdf] \stoptext

[NTG-context] names of cached images

2021-06-06 Thread Jano Kula
re. hacker.pdf = source image hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win MWE \starttext \externalfigure[hacker] [cache=./, conversion=gray.pdf] \stoptext Is it intended behavior

Re: [NTG-context] yscale not working

2021-06-05 Thread Wolfgang Schuster
Hans van der Meer schrieb am 05.06.2021 um 17:59: Why is there no effect of the yscale parameter in \externalfigure when the width-parameter is given? In the MWE it is the intention to stretch the height of the figure by a factor of two. But nothing happens. Leaving out the width does stretch

[NTG-context] yscale not working

2021-06-05 Thread Hans van der Meer
Why is there no effect of the yscale parameter in \externalfigure when the width-parameter is given? In the MWE it is the intention to stretch the height of the figure by a factor of two. But nothing happens. Leaving out the width does stretch the height, but then it becomes too wide

[NTG-context] new upload

2021-06-04 Thread Hans Hagen
\NC \NC \NC \quad \NC \NC \NR \NC \NC \NC \quad \NC \NC d \NR \NC e \NC \NC \quad \NC \NC \NR \NC \NC f \NC \quad \NC g \NC \NR \stopmathmatrix} \blank \startoverlayMPgraphic{whatever-9} fill anchorspan (1, 1) (1, 3) withcolor "blue" ;

Re: [NTG-context] combinations

2021-05-22 Thread Willi Egger
stion: >> You have to set a caption >> https://wiki.contextgarden.net/Command/startcombination >> That worked fine for me: >> \startplacefigure[location=here] >> \setupcombination[distance=0mm,after=] >> {\startcombination[2*1] >> {\externalfigure[res1

Re: [NTG-context] xtable in def or setups

2021-05-18 Thread Werner Hennrich
Hi Adam, no, I hadn't tried that - even tough I had skimmed over that part way back, it now escaped me. \long\def\iconblock[#1]#2{% \ignorespaces *\startembeddedxtable[icbtable]* \startxrow \startxcell[width=17mm] \externalfigure[img/#1.svg][height=15mm,width

Re: [NTG-context] xtable in def or setups

2021-05-18 Thread Adam Reviczky
xtable[icbtable] > \startxrow > \startxcell[width=17mm] > \externalfigure[img/#1.svg][height=15mm,width=15mm] > \stopxcell > \startxcell #2 \stopxcell > \stopxrow > \stopxtable > \removeunwantedspaces > } > > Is this simply not possible or am I doing something wrong

[NTG-context] xtable in def or setups

2021-05-18 Thread Werner Hennrich
m] \long\def\iconblock[#1]#2{% \ignorespaces \startxtable[icbtable] \startxrow \startxcell[width=17mm] \externalfigure[img/#1.svg][height=15mm,width=15mm] \stopxcell \startxcell #2 \stopxcell \stopxrow \stopxtable \removeunwantedspaces } Is this simply not possibl

[NTG-context] Expanding a figure into the second column

2021-05-16 Thread Jeroen
{tufte} \placefigure [here] [] {my pic} {\externalfigure [cow] [width=.95\textwidth]} \dorecurse{3}{\input{tufte}} \stopcolumns \stoptext ___ If your question is of interest to others as well, please

Re: [NTG-context] combinations

2021-05-14 Thread Hans Hagen
=]   {\startcombination[2*1]     {\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1}     {\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2}   \stopcombination} \stopplacefigure Best, Benny Am 14.05.21 um 05:27 schrieb jbf: Hi list, The following MWE is giving me two photos under each other, not

Re: [NTG-context] combinations

2021-05-13 Thread Benny Schurig
Hi Julian, for me first reply ever with a suggestion: You have to set a caption https://wiki.contextgarden.net/Command/startcombination That worked fine for me: \startplacefigure[location=here] \setupcombination[distance=0mm,after=] {\startcombination[2*1] {\externalfigure[res1.jpg

[NTG-context] combinations

2021-05-13 Thread jbf
Hi list, The following MWE is giving me two photos under each other, not beside each. What am I doing wrong? Julian \startplacefigure[location=here] \setupcombination[distance=0mm,after=] {\startcombination[2*1] {\externalfigure[res1.jpg][width=.4\textwidth]} {\externalfigure[res2.jpg

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Hans Hagen
On 5/7/2021 11:55 AM, Jano Kula wrote: Hello again, does somebody have any hint on the long captions? Ok, after a week of struggling with this you deserve an answer: \starttext \starthanging {\framed[align=normal,bottom=\vkern10pt]{\externalfigure[t:/sources/cow.pdf][width=3cm

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Jano Kula
on=righthanging] > > \startbuffer[caption] > \dorecurse{60}{very long caption } > \stopbuffer > > \starttext > \startplacefigure[title={\getbuffer[caption]}] > \externalfigure[cow][height=40mm,width=80mm] > \stopplacefigure > \stoptext > > Thank you, > Jano >

Re: [NTG-context] Double-sided layer

2021-05-06 Thread Wolfgang Schuster
]{\externalfigure[bilder_bearbeitet_png/32.png][width=\textwidth]}} That works in principle, but I want the hoffset to be relative to the cutspace/backspace: different on right and left page, such that the layer is set equally on every page relative to the textbody. In the example above I use

[NTG-context] Double-sided layer

2021-05-06 Thread Huseyin Özoguz
Hello context-community, I have an image as a layer and want it to place on every page of a book with some offset. My minexample: \setlayer[mybg]     [hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off, width=2cm, height=1cm]{\externalfigure[bilder_bearbeitet_png/32.png][width

[NTG-context] very long hanging caption

2021-05-02 Thread Jano Kula
align={nothyphenated,flushleft}, distance=4mm, location=righthanging] \startbuffer[caption] \dorecurse{60}{very long caption } \stopbuffer \starttext \startplacefigure[title={\getbuffer[caption]}] \externalfigure[cow][height=40mm,width=80mm] \stopplacefigure \stoptext Thank you,

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
left corner of the layer) {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=blessings] \definelayer[tree]  % name of the layer [x=0mm, y=0mm,  % from upper left cor

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
% name of the layer >> [hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper >> left corner of the layer) >> {\externalfigure[bless.eps][width=3cm]} % the actual contents of >> the layer >> \setupbackgrounds[page][background=blessings] >> >> \define

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
paper \setlayer[blessings]    % name of the layer [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper left corner of the layer)      {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=ble

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
0mm, % from upper left corner of paper > width=\paperwidth, height=.5\paperheight] % let the layer cover > the full paper > \setlayer[blessings]% name of the layer > [hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper > left corner of the layer) > {\

[NTG-context] layers x 2

2021-04-27 Thread jbf
layer cover the full paper \setlayer[blessings]    % name of the layer     [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper left corner of the layer)     {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=blessings

Re: [NTG-context] \externalfigure for only one page of a multiple page pdf

2021-04-18 Thread a . rosenstock
Thank you, Hraban!   A.     Gesendet: Donnerstag, 15. April 2021 um 19:01 Uhr Von: "Henning Hraban Ramm" An: "mailing list for ConTeXt users" Betreff: Re: [NTG-context] \externalfigure for only one page of a multiple page pdf > Am 15.04.2021 um 18:55 schrieb a.rosens

Re: [NTG-context] No space between \cite and next word.

2021-04-18 Thread Mikael Sundqvist
r] > > > > \starttext > > > > Text \cite[a] text. > > > > \placelistofpublications > > > > \stoptext > Wolfgang and I agreed upon the following com

Re: [NTG-context] No space between \cite and next word.

2021-04-18 Thread Hans Hagen
\cite (and variants) \citation (and variants) \date \figuresymbol \note \notesymbol \symbol \typeinlinebuffer \externalfigure Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] \externalfigure for only one page of a multiple page pdf

2021-04-15 Thread Henning Hraban Ramm
> Am 15.04.2021 um 18:55 schrieb a.rosenst...@web.de: > > Hi all, > > how is it possible to include only one page of a multiple page pdf in my > document? I found nothing in the manuals ... Dou you mean via \externalfigure? It has a documented "page" parameter: ht

[NTG-context] \externalfigure for only one page of a multiple page pdf

2021-04-15 Thread a . rosenstock
Hi all,   how is it possible to include only one page of a multiple page pdf in my document? I found nothing in the manuals ...   Thank you in advance,   Alexander     ___ If your question is of interest to othe

[NTG-context] Radial gradient stops in SVG images

2021-03-28 Thread Thangalin
ewBox="0 0 215.9 279.4" height="1056" width="816"> Save as gradient.tex: % SOF \starttext \placefigure{}{\externalfigure[gradient.svg][conversion=mp]} \stoptext % EOF Expected: A light-brown, translucent, radial gradient region appears on the page. Actual: A soli

[NTG-context] metafun / patterns

2021-03-25 Thread Hans Hagen
ggray(1)) ) % withshadestep ( withshadefraction 0.95 withshadecolors (svggray(1),svgcolor(0,0,1)) ) withopacity 0.5 ; ) % withpatternscale(1/4,1/4) % ; % \stopMPpage % \startTEXpage % \externalfigure[test.svg][conversion=mp,xobject=no] % \stopTEXpage \stoptext ---

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
ue as I can perfectly place text with \inmargin > directly, just not with the numbercommand. > > MWE: > > \starttext > \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] > > \showframe > \showlayout > > \setupcaption[figure][location={rightmargin}] > \startp

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
showlayout \setupcaption[figure][location={rightmargin}] \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure \define[1]\MyFormulaNumber{\inleftmargin{#1}} \setupformula[numbercommand=\MyFormulaNumber] \inleftmargin{Left Margin Text} \inrightmargin{Right Margin Text} \startpl

[NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
[title=Cow] \externalfigure[cow] \stopplacefigure % this makes the formulanumber disappear % \setupformulas[location={rightmargin}] \startplaceformula[reference=eq1,location={rightmargin}] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext But the setupformulas will make the number

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Adam Reviczky
gt; > \starttext > > \setupcaption[figure][way=bytext,prefixsegments=1:*] > > \setupformulas[way=bytext,prefixsegments=1:*] > > \startsection[title=Section] > > \startsubsection[title=SubSection] > > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigur

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Hans Hagen
,prefixsegments=1:*] \setupformulas[way=bytext,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection

[NTG-context] Formula numbering including all prefix segments

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

[NTG-context] (no subject)

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

Re: [NTG-context] placenamedformula in placelist (MKII vs MKIV/LMTX)

2021-03-17 Thread Adam Reviczky
s a picture of a cow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 \startplacefigure[title={My cow},list={This is a picture of a cow}] \externalfigure[cow] \stopplacefigure % Mass-energy equivalence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Hans Hagen
l:xhtml \xmlsetsetup{\xmldocument}{body|img}{xml:*} \stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:img \placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]} \placefigure{}{\externalfigure[circle.svg][conversion=mp]} \placefigure{}

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
}{xml:*} \stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:img \placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]} \placefigure{}{\externalfigure[circle.svg][conversion=mp]} \placefigure{}{\includesvgbuffer[csvg][convers

[NTG-context] placefigure RTL

2021-03-05 Thread Mohammad Hossein Bateni
Hello, Is there a way to make \placefigure[left,right] work in RTL documents? Here's a MWE: \starttext \setupalign[r2l] \placefigure[none,right]{}{\externalfigure[cow]} \input knuth \placefigure[none,left]{}{\externalfigure[cow]} \input knuth \page \setupalign[l2r] \placefigure[none,

Re: [NTG-context] tikzpicture in margin

2021-02-15 Thread Hans Hagen
red a truly             marvelous proof ...  but             this margin is too narrow             to contain it.} \input{lorem} \inmargin{\externalfigure[cow] [width=\marginwidth]} % The above works. % The following does not: \input{lorem} \inmargin{ \starttikzpicture   \draw[gray] (-2,0) grid

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
argintext{I have discovered a truly >             marvelous proof ...  but >             this margin is too narrow >             to contain it.} > \input{lorem} > \inmargin{\externalfigure[cow] [width=\marginwidth]} > % The above works. > % The following does not: > \input{lorem} > \

[NTG-context] tikzpicture in margin

2021-02-14 Thread Jigé
arrow             to contain it.} \input{lorem} \inmargin{\externalfigure[cow] [width=\marginwidth]} % The above works. % The following does not: \input{lorem} \inmargin{ \starttikzpicture   \draw[gray] (-2,0) grid (2,2) ;   \draw plot [domain=-2:2, samples=50, smooth] (\x,{\x * \x}); \stoptikzpi

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Henning Hraban Ramm
gt; \margintext{I have discovered a truly > marvelous proof ... but > this margin is too narrow > to contain it.} > \input{lorem} > \inmargin{\externalfigure[cow] [width=\marginwidth]} > % The above works. > % The following does not: > \input{lorem}

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
\defineexternalfilter [externaltikz] [ bufferbefore=tikz-before, bufferafter=tikz-after, cache=yes, filtercommand={context --batchmode \externalfilterinputfile\space --purgeall --result=\externalfilteroutputfile}, output={\externalfilterbasefile.pdf}, readcommand=\readPDFfile, ] \

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-28 Thread Henning Hraban Ramm
IKZTEMP") end function thirddata.readpdffile(name) -- name is like \TIKZTEMP/mainfile-temp-tikz-21.pdf report_tikz("name='%s'", name) % doesn’t work context("\\externalfigure[" .. name .. "]") end \stopluacode \defineexternalf

Re: [NTG-context] externalizing TikZ graphics

2021-01-27 Thread Henning Hraban Ramm
tluacode > thirddata = thirddata or {} > > -- create temp folder if missing > if not lfs.isdir("\TIKZTEMP") then > lfs.mkdir("\TIKZTEMP") > end > > function thirddata.parsetikzfile(name) > -- name is like \TIKZTEMP/mainfile-temp-tikz-21.pdf &

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