-\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
=\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
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
=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
[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
{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
to achieve this?
\startbuffer[apx]
\setuppapersize[
\setuppapersize[%
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname-apx.pdf][page=\recurselevel]
\stopTEXpage}
\externalfigure [...] [page=\recurselevel,orientation=90]
Wolfgang
\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
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
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
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:
>
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
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
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
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
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,
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
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
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
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
= 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
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
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
\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
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
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
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
\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
{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
=]
{\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
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
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
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
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
>
]{\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
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
={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
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
% 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
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
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)
> {\
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
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
r]
> >
> > \starttext
> >
> > Text \cite[a] text.
> >
> > \placelistofpublications
> >
> > \stoptext
> Wolfgang and I agreed upon the following com
ces
\cite (and variants)
\citation (and variants)
\date
\figuresymbol
\note
\notesymbol
\symbol
\typeinlinebuffer
\externalfigure
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061
> 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
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
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,
)
% 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
-
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
\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
[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
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
>
,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
,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
,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
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 . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .
\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
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
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
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
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
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
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}
>
[externaltikz]
[
bufferbefore=tikz-before,
bufferafter=tikz-after,
cache=yes,
filtercommand={context --batchmode \externalfilterinputfile\space
--purgeall --result=\externalfilteroutputfile},
output={\ext
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,
%
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
&
\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
ternalfilter
[externaltikz]
[
bufferbefore=tikz-before,
bufferafter=tikz-after,
cache=yes,
filtercommand={context --batchmode \externalfilterinputfile\space
--purgeall --result=\externalfilteroutputfile},
output={\externalfilterbasefile.pdf},
readcommand=\readPDFfile
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]}
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
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.)
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
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
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
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
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
]
\externalfigure[cow][width=2cm]
\stopplacefigure
\stoptext
(fixed in next upload)
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038
\startplacefigure[location=here]
\externalfigure[cow][width=2cm]
\stopplacefigure
\stoptext
(fixed in next upload)
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt
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
> > \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
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
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
401 - 500 of 3788 matches
Mail list logo