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
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
e file 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
mount 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). > > > > - This is the mechanism u

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

2021-07-27 Thread Hans Hagen via ntg-context
ce (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 ConTeXt (\external

[NTG-context] Multimedia, PDF and ConTeXt

2021-07-26 Thread Michal Vlasák via ntg-context
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 actions). - This

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
cker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win > > > > MWE > > \starttext > > \externalfigure[hacker] > > [cache=./, > > conversion=gray.pdf] > > \stoptext > > > > Is it intended behavior? > sure, something like that is alway

Re: [NTG-context] names of cached images

2021-06-06 Thread Hans Hagen
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 Is it intended

[NTG-context] names of cached images

2021-06-06 Thread Jano Kula
= 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? Thanks, Jano

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 \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" ; fill anchorspan (2, 1) (3

Re: [NTG-context] combinations

2021-05-22 Thread Willi Egger
ggestion: >> 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=15mm

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

2021-05-18 Thread Adam Reviczky
e[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 ther

[NTG-context] xtable in def or setups

2021-05-18 Thread Werner Hennrich
\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 possible or

[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

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
ghthanging] > > \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
={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, Jano

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] >> >> \de

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
y=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
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)     {\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
ces \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

[NTG-context] Radial gradient stops in SVG images

2021-03-28 Thread Thangalin
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 solid, opaque,

[NTG-context] metafun / patterns

2021-03-25 Thread Hans Hagen
) % 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
n 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}] > \startplacefigure[titl

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
\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} \startplaceformula

[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] \stopplacefigure >

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
\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{}{\includes

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
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][conversion=mp]} \stopxmlsetups \xml

[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,right

Re: [NTG-context] tikzpicture in margin

2021-02-15 Thread Hans Hagen
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 (2,2

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
text{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} > \inmar

[NTG-context] tikzpicture in margin

2021-02-14 Thread Jigé
            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}); \stoptikzpicture

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Henning Hraban Ramm
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
[externaltikz] [ bufferbefore=tikz-before, bufferafter=tikz-after, cache=yes, filtercommand={context --batchmode \externalfilterinputfile\space --purgeall --result=\externalfilteroutputfile}, output={\ext

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

2021-01-28 Thread Henning Hraban Ramm
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 \defineexternalfilter[tikz][ cache=yes, %

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 &

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Henning Hraban Ramm
\TIKZTEMP/mainfile-temp-tikz-21.pdf logs.report("TIKZFILTER","name='" .. name .. "'") context("\\externalfigure[" .. name .. "]") end \stopluacode \defineexternalfilter[tikz][ cache=yes, purge=no, directory=\TIKZTEMP, bufferbefore

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
ternalfilter [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] Missing images in Wiki?

2021-01-25 Thread Taco Hoekwater
> On 22 Jan 2021, at 20:41, Andres Conrado Montoya Acosta > wrote: > > This is one example: > > https://wiki.contextgarden.net/Command/externalfigure > > However, now I checked the source, and the image files are there... and they > are being correctly linke

Re: [NTG-context] new font trickery

2021-01-24 Thread Pablo Rodriguez
On 1/24/21 4:44 PM, Hans Hagen wrote: > \starttext > > \setupexternalfigure[directory={global,default}] > > \startsetups box:demo:103 > \externalfigure[cow-brown.pdf][height=12pt] > \stopsetups > > \startsetups box:demo:104 > \externalfigure[cow-black.p

[NTG-context] new font trickery

2021-01-24 Thread Hans Hagen
are quite efficient. \starttext \setupexternalfigure[directory={global,default}] \startsetups box:demo:103 \externalfigure[cow-brown.pdf][height=12pt] \stopsetups \startsetups box:demo:104 \externalfigure[cow-black.pdf][height=10pt] \stopsetups \startsetups box:demo:105 \externalfigure

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Hans Hagen
releases of LMTX, it is essential that I should be able to rotate tables and images. Does anyone know of a fix? Richard, a minimal sample with images would read: \setupexternalfigures[location=default] \starttext \placefigure[90, here]{Rotated sample}{\externalfigure[hacker.jpg

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Pablo Rodriguez
TX, it is > essential that I should be able to rotate tables and images. Does > anyone know of a fix? Richard, a minimal sample with images would read: \setupexternalfigures[location=default] \starttext \placefigure[90, here]{Rotated sample}{\externalfigure[hacker.jpg]} \input zap

Re: [NTG-context] Missing images in Wiki?

2021-01-22 Thread Andres Conrado Montoya Acosta
This is one example: https://wiki.contextgarden.net/Command/externalfigure However, now I checked the source, and the image files are there... and they are being correctly linked, but the image attributes width and height are set to zero. Maybe something wrong with lazy loading? Example in html

Re: [NTG-context] \clip isn’t clipping any more

2021-01-20 Thread Hans Hagen
On 1/20/2021 11:24 AM, Henning Hraban Ramm wrote: In the following example, the image is calculated after the clipped width, but the full image is shown: \setupexternalfigures[location=default] \showframe \starttext \strut \hfill\clip[width=20mm]{\externalfigure[cow][height=30mm]} \stoptext

[NTG-context] \clip isn’t clipping any more

2021-01-20 Thread Henning Hraban Ramm
In the following example, the image is calculated after the clipped width, but the full image is shown: \setupexternalfigures[location=default] \showframe \starttext \strut \hfill\clip[width=20mm]{\externalfigure[cow][height=30mm]} \stoptext This happens in current LMTX (2020-01-18

Re: [NTG-context] lmtx

2021-01-19 Thread Jan U. Hasecke
Hi, I am afraid that clip stops working in current version: 2021.01.18 18:19 \setupexternalfigure[location=default] \showframe \starttext \clip[height=50mm,voffset=10mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext juh -- Autoren-Homepage: . http

Re: [NTG-context] lmtx

2021-01-19 Thread Hans Hagen
On 1/19/2021 8:12 PM, Jan U. Hasecke wrote: Hi, I am afraid that clip stops working in current version: 2021.01.18 18:19 \setupexternalfigure[location=default] \showframe \starttext \clip[height=50mm,voffset=10mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext hm, i access

Re: [NTG-context] Floating object in text - Spacing

2021-01-15 Thread Johann Birnick
wing example: > > > > \setupexternalfigures[location=default] > > \starttext > > \placefigure[right,none]{}{\externalfigure[hacker.jpg][scale=518]} > > \samplefile{lorem} > > \stoptext > > > > What bothers me is the top spacing. There is space to the top, and I dont &g

Re: [NTG-context] Floating object in text - Spacing

2021-01-15 Thread Aditya Mahajan
On Sat, 16 Jan 2021, Johann Birnick wrote: > Consider the following example: > > \setupexternalfigures[location=default] > \starttext > \placefigure[right,none]{}{\externalfigure[hacker.jpg][scale=518]} > \samplefile{lorem} > \stoptext > > What bothers me is the

[NTG-context] Floating object in text - Spacing

2021-01-15 Thread Johann Birnick
Consider the following example: \setupexternalfigures[location=default] \starttext \placefigure[right,none]{}{\externalfigure[hacker.jpg][scale=518]} \samplefile{lorem} \stoptex What bothers me is the top spacing. There is space to the top, and I dont want it to be there. On the bottom

Re: [NTG-context] drop shadows with metapost/ metafun

2021-01-02 Thread Henning Hraban Ramm
png file with a transparent background, to have room for > blurring > - blur it > > 4- import this png in context / Metapost (externalfigure), and center it with > p figure > > 5- shift it according to the desired shadows distance and angle > > 6- apply the initia

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
ckground, to have room for > blurring > - blur it > > 4- import this png in context / Metapost (externalfigure), and center it with > p figure > > 5- shift it according to the desired shadows distance and angle > > 6- apply the initial bounding box of p to th

[NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Jeong Dal
young Here is a MWE. \useMPlibrary[dum] \unexpanded\def\myurl#1{% \bgroup{\hyphenatedurl{#1}}\egroup} \starttext \startplacefigure[] {\startcombination[2*1] {\externalfigure[dummyz][width=.35\makeupwidth]}{Pegasus\footnote{\myurl{https://www.mcescher.com/gallery\letterslash recognition-su

[NTG-context] drop shadows with metapost/ metafun

2020-12-29 Thread Garulfo
apost file (with savebuffer ?) ready for png export (outputformat := "png »;) 3- with lua, os.execute, and imagemagick prepare the shadow - extent the png file with a transparent background, to have room for blurring - blur it 4- import this png in context / Metapost (externalfigu

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Pablo Rodriguez
s a combined TeX file containing two different ways I took to > try to accomplish the same thing: How about a much simpler approach? \starttext \framed[offset=overlay] {\externalfigure[hammingCoderStopwatch-hammingCoder-gcc-RowsSparse-1023-1013.svg] [width=\textwidth, offset=20pt]}

Re: [NTG-context] image align in \clip

2020-12-09 Thread Pablo Rodriguez
your issue. I thought of another approach (which isn’t your case): \showframe\showgrid \setupindenting[yes, always, big] \setupexternalfigure[location=default] \showframe \starttext \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \dontleavehmode \c

Re: [NTG-context] image align in \clip

2020-12-09 Thread Jan U. Hasecke
Am 09.12.20 um 11:26 schrieb Hans Hagen: > what if you put \removeunwantedspaces in front of the clip The space vanishes when I put it right before \externalfigure. Thanks a lot, Hans! (Still, I would like to know how the space came up in the first place.)

[NTG-context] image align in \clip

2020-12-09 Thread Jan U. Hasecke
Dear all, I use \clip to simplify working with images. I have a problem that I am unable to reproduce in a MWE. \setupexternalfigure[location=default] \showframe \starttext \externalfigure[cow.pdf][width=\textwidth] \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth

Re: [NTG-context] image align in \clip

2020-12-09 Thread Hans Hagen
On 12/9/2020 12:08 PM, Jan U. Hasecke wrote: Am 09.12.20 um 11:26 schrieb Hans Hagen: what if you put \removeunwantedspaces in front of the clip The space vanishes when I put it right before \externalfigure. Thanks a lot, Hans! (Still, I would like to know how the space came up in the first

Re: [NTG-context] image align in \clip

2020-12-09 Thread Hans Hagen
On 12/9/2020 9:38 AM, Jan U. Hasecke wrote: Dear all, I use \clip to simplify working with images. I have a problem that I am unable to reproduce in a MWE. \setupexternalfigure[location=default] \showframe \starttext \externalfigure[cow.pdf][width=\textwidth] \clip[height=50mm

Re: [NTG-context] issue with line breaking and images

2020-12-08 Thread Hans Hagen
On 12/8/2020 5:18 PM, Pablo Rodriguez wrote: Hi Hans, I have the following MWE: \setupexternalfigures[location=default] \starttext \dontleavehmode \dorecurse{80}{\externalfigure[cow][width=.075\textwidth] } \stoptext MkIV does break the lines to compose a paragraph, but LMTX

[NTG-context] issue with line breaking and images

2020-12-08 Thread Pablo Rodriguez
Hi Hans, I have the following MWE: \setupexternalfigures[location=default] \starttext \dontleavehmode \dorecurse{80}{\externalfigure[cow][width=.075\textwidth] } \stoptext MkIV does break the lines to compose a paragraph, but LMTX doesn’t use the space to break. In fact, it doesn’t

[NTG-context] Uploaded LuaMetaTeX version

2020-12-04 Thread Rik Kabel
] \externalfigure[cow][width=2cm] \stopplacefigure \stoptext (fixed in next upload) -   Hans Hagen | PRAGMA ADE   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands    tel: 038

Re: [NTG-context] LMTX ignores figure size

2020-12-04 Thread Hans Hagen
\startplacefigure[location=here] \externalfigure[cow][width=2cm] \stopplacefigure \stoptext (fixed in next upload) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

[NTG-context] LMTX ignores figure size

2020-12-04 Thread Henning Hraban Ramm
Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext \startplacefigure[location=here] \externalfigure[cow

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
> > \definelayer[mybg] > > [ > > repeat=yes, > > x=0mm, y=0mm, > > width=\paperwidth, height=\paperheight, > > ] > > > \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} > > \setupbackgrounds[page][background=mybg,state=re

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 03.12.2020 um 18:14: Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds

[NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds[page][background=mybg,state=repeat] \setupindenting

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