%%%
\setupexternalfigures
[location={local,global,default}]
\setupfloats[compress=no]
\setupfloat[figure][default=top]
\starttext
\input knuth
\placefigure{Cow 1}{\externalfigure[cow][
width=.5\textwidth,
]}
\placefigure{Cow 2}{\externalfigure[cow
not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
\externalfigure[cow.pdf
denis.ma...@unibe.ch schrieb am 10.04.2024 um 12:47:
Hi,
Shouldn’t minwidth set a default minimal width for external figures?
But this here does not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth
e I cannot just adjust
> slightly adjust the dimensions to get rid of that.
It seems that you can place the figures somehow
(https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169):
See the extreme example:
\showframe\showgrid\showstruts
\setupexternalfigures
[location={lo
set a default minimal width for external figures? But
this here does not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
\externalfigure[cow.pdf
: denisma...@mailbox.org
Gesendet: Mittwoch, 10. April 2024 13:37
An: 'ntg-context@ntg.nl'
Betreff: Weird (?) float placement for specific widths of image
Hi,
another graphics/floats question: consider the following example
%
\setupexternalfigures
Hi,
another graphics/floats question: consider the following example
%
\setupexternalfigures
[location={local,global,default}]
\starttext
\placefigure{A Cow}{\externalfigure[cow][
height=.5\textheight
Hi,
Shouldn't minwidth set a default minimal width for external figures? But this
here does not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
ed 1mm rightenlarged 1mm; draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=vertic
leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2
it in a minimal example, so I guess it depends on the
current surroundings.
Since it points to some font handling and the figure is a PDF containing
fonts, I guess it might depend on the new handling of fonts in PDFs, but
it doesn’t change regardless of
\setupexternalfigures[compact=preset:merge
on the
current surroundings.
Since it points to some font handling and the figure is a PDF containing
fonts, I guess it might depend on the new handling of fonts in PDFs, but
it doesn’t change regardless of
\setupexternalfigures[compact=preset:merge] or other settings.
Here’s the image:
https
ow}, width=\outermarginwidth,
headcolor=red, color=green, style={\tfx\setupinterlinespace}, align=width]
\setupexternalfigures[location=default]
\setupmargindata[style={\tfx}, stack=yes]
\setupmargindata[inouter][color=orange]
\setupmargindata[ininner][color=blue]
\showframe
\starttext
\section{Margin Tes
This thread about downsampling external images on the fly is a really helpful
feature! Thanks, Hraban for sharing the code!
I was wondering if it was possible to downscale also raster images embedded in
pdf/svg files loaded via \externalfigure?
I found a ghostscript solution online
> > a
> >
> > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x}
> >
> > or
> >
> > x \rightarrowfill x
> > x \leftarrowfill x
> >
> > or
> >
> > \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x}
% \setupexternalfigures
% [location={default,global}]
% \startsetups adaptive:test
% \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-\usedadaptivedepth \bgroup
% \externalfigure
% [cow.pdf]
% [width=\usedadaptivewidth,
%height=\dimexpr
of the
combination coincides with the centre of the text area of a page.
Hi Keith,
I think the following sample might achieve what you want:
\showframe
\setupexternalfigures[location={default}]
\setuplayout
[backspace=2.5cm,
topspace=1cm,
height=28cm,
width=17cm,
header=0cm
\showframe
\setupexternalfigures[location={default}]
\setuplayout
[backspace=2.5cm,
topspace=1cm,
height=28cm,
width=17cm,
header=0cm,
footer=0.75cm,
]
\definelayer[test3]
%[x=.5\paperwidth, y=.5\paperheight]
[x=.5\textwidth, y=.5\textheight]
%\setupback
in advance.
> Am 19.10.2022 um 13:52 schrieb Ursula Hermann via ntg-context - ntg-context
> at ntg.nl :
>
> Dear Oliver,
>
> maybe something like this?
> This is my example:
> \starttext
>
> \setuppapersize
> [A5]
>
> \setupexternalfigures
>
Dear Oliver,
maybe something like this?
This is my example:
\starttext
\setuppapersize
[A5]
\setupexternalfigures
[location=default]
\setupindenting
[yes, small]
\setupwhitespace
[small]
\defineframedtext
[prettyblock]
[width=10cm,
indenting={yes, small},
background
, these annotations are not translated.
I have to prepare a set of pictures for every language.
Well, that changed last week.
Here is my first try (actually the 4th iteration):
%%%
\setupexternalfigures[location=default]
\starttext
\startMPinclusions
%draft := 0
Am 02.09.22 um 10:39 schrieb Keith McKay via ntg-context:
Thanks for this code Hraban. I tried this last night and it worked
really well. I did have one stumbling block when I noticed that those
image files with a space in their names were not found, however
renaming without a space solved
y.
>
> But you can use it with the attached lua file like:
>
>
> \loadluafile[grph-downsample]
> \doifmodeelse{print}{%
> \def\Resolution{300}
> }{%
> \def\Resolution{96}
> }%
>
>
\Resolution{96}
}%
\setupexternalfigures[
%directory={./Logos,img},
conversion=lowres.jpg,
resolution=\Resolution,
]
With the script I get strange results. I am not sure whether the
resolution is correctly calculated.
And I am wondering what the script is doing with png files.
This one
Am 01.09.22 um 12:37 schrieb juh+ntg-context--- via ntg-context:
Hi Hraban,
Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context:
\startluacode
local function downsampler(oldname, newname, resolution)
if not resolution or resolution == "" then
resolution = 72
end
Am 01.09.22 um 13:43 schrieb juh+ntg-context--- via ntg-context:
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context:
\loadluafile[grph-downsample]
\doifmodeelse{print}{%
\def\Resolution{300}
}{%
\def\Resolution{96}
}%
\setupexternalfigures[
%directory={./Logos,img
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context:
\loadluafile[grph-downsample]
\doifmodeelse{print}{%
\def\Resolution{300}
}{%
\def\Resolution{96}
}%
\setupexternalfigures[
%directory={./Logos,img},
conversion=lowres.jpg,
resolution=\Resolution
Hi Hraban,
Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context:
\startluacode
local function downsampler(oldname, newname, resolution)
if not resolution or resolution == "" then
resolution = 72
end
local cmd = string.format(
[[gm convert -resample
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context:
Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context:
Hi,
what is resolution meant to do?
What am I missing?
The resolution parameter is still not used by default ConTeXt, sorry.
But you can use it with the
?
The resolution parameter is still not used by default ConTeXt, sorry.
But you can use it with the attached lua file like:
\loadluafile[grph-downsample]
\doifmodeelse{print}{%
\def\Resolution{300}
}{%
\def\Resolution{96}
}%
\setupexternalfigures[
%directory={./Logos,img},
conversion
Hi,
what is resolution meant to do?
Whatever I insert as resolution, I get no change.
\setupexternalfigure[location={default,local},resolution=30]
\starttext
\externalfigure[hacker]
\stoptext
What am I missing?
TIA
juh
le,
style=\BigFontOne,
numbercommand=\outlineTitle,
% align = middle,
number=yes]
\setupexternalfigures[location={default,local,global}]
%\definefont[fancy][Zapfino at 24pt]
\starttext
\startchapter[title={Very Long Long Long Title}]
\startcombination[3*1]
{\externalfigure[cow] [combina
{\useMPgraphic{outlineT}{tt="#1"}}
\setuphead[chapter]
[textcommand=\outlineTitle,
style=\BigFontOne,
numbercommand=\outlineTitle,
% align = middle,
number=yes]
\setupexternalfigures[location={default,local,global}]
%\definefont[fancy][Zapfino at 24pt]
\starttext
\startchapter[title={Very Long
Am 12.08.22 um 13:10 schrieb Wolfgang Schuster via ntg-context:
Henning Hraban Ramm via ntg-context schrieb am 12.08.2022 um 10:57:
Hi, can ConTeXt make rounded image corners?
\setupexternalfigures[location=default]
\starttext
\startMPclip{rounded corner}
clip currentpicture
][{%
\externalfigure[mill][width=\overlaywidth]
}]
\framed[background=Mill,width=3cm,height=4cm,
corner=round,radius=1cm,
backgroundcorner=round,backgroundradius=1cm,
offset=overlay]{}
\setupexternalfigures[location=default]
\starttext
\startMPclip{rounded corner}
clip currentpicture
On 8/1/2022 2:29 AM, Thangalin via ntg-context wrote:
Got it working. Complete solution:
|\setupexternalfigures[ location={local,global,default},
width=\textwidth ] \defineexternalfigure[svg][width=1cm]
\defineexternalfigure[jpg][width=2cm]
\defineexternalfigure[png][width=4cm] % Won't
Got it working. Complete solution:
\setupexternalfigures[
location={local,global,default},
width=\textwidth
]\defineexternalfigure[svg][width=1cm]\defineexternalfigure[jpg][width=2cm]\defineexternalfigure[png][width=4cm]
% Won't be applied because there's no process action.% Default
Dear Hans,
Thank you for the new way to align math formulas.
It is great to use “\alignhere”, “\breakhere”.
However, I got a problem today.
If I use it with figures side by side, then the alignment is broken.
Please try the following MWE.
Best regards,
Dalyoung
\setupexternalfigures
for the context.framedtext()
>
> \setupexternalfigures[location={local,default}]
>
> \startluacode
>
> function Foto_page() --thirddata
>
> context.startplacefigure({number="",textstyle="red",title="A Test"})
>conte
Hraban thank you for your answer.
I tried diffrent approaches in the meantime, however I am unable to get it
working.
What is wrong with this code? — The code woks a for the context.framedtext()
\setupexternalfigures[location={local,default}]
\startluacode
function Foto_page
ain!
> \setupexternalfigures [location={local,global,default}]
>
> \defineexternalfigure [jpg] [width=4cm]
> \defineexternalfigure [png] [width=8cm]
>
> \starttexdefinition includegraphics #1
>
> \splitfilename{#1}
>
> \processaction
> [\splitofftype]
>
\externalfigure to load the image.
\setupexternalfigures [location={local,global,default}]
\defineexternalfigure [jpg] [width=4cm]
\defineexternalfigure [png] [width=8cm]
\starttexdefinition includegraphics #1
\splitfilename{#1}
\processaction
[\splitofftype]
[ jpg
A document has a mix of SVG and PNG images. Changing the parameters for
`\setupexternalfigure` affects both SVG and PNG images. Consider the
following code:
\setupexternalfigures[
order={svg,pdf,png,jpg},
location={local,default,global},
directory={images},
maxwidth
Thanks for all your help. Using Magick had no effect so I've had another look
at my setup. It turned out I had this in m
\setupexternalfigures
[maxwidth=\textwidth,
maxheight=0.8\textheight.
location={local,global},
]
The period to end maxheight is obviously a mistake. (However, I'm still
.
>> Is this command (\version[temporary]) gone??
>> Please have a look at the example below: no overfull indicator ...
>> Steffen
>> ---
>> \setuppapersize[A6]
>> \setupexternalfigures[location={default}]
>> %\version[temporary]
>> \overfullrule3
...
Steffen
---
\setuppapersize[A6]
\setupexternalfigures[location={default}]
%\version[temporary]
\overfullrule30\points% < BLACK BOX?
\starttext
\startcolumns[n=3]
% Overfull lines will have slugs in colum margins.
\input linden
% Underfull hboxes get no warning
x
\stopcolu
Hi,
in order to easily see overfull lines I used \overfullrule30\points : this gave
a clear black box in the right margin.
Is this command (\version[temporary]) gone??
Please have a look at the example below: no overfull indicator ...
Steffen
---
\setuppapersize[A6]
\setupexternalfigures
HI!Tried to make a checklist in an interactive document.The problem seems to be that all checks/uncecks in same click, not each individually.Is there something wrong with my code?See attached below\setupinteraction[state=start]\setupexternalfigures[location=global]\usemodule[fields]\definesymbol
Hi,
testing this mwe I’d expect some indicators detecting overfull lines.
At least on my machine (ConTeXt ver: 2022.01.21 20:13 LMTX) nothing happens:
\setuppapersize[A6]
% Tell ConTeXt where the windmill picture is
\setupexternalfigures[location={default}]
\version[temporary]
\section{Slithy
So far I accomplished this but problem is that when I check it checks all, not
individually.
\setupinteraction[state=start]
\setupexternalfigures[location=global]
\definesymbol [yes]
[{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]
\definesymbol [no] []
\setupfield
[setup 3
Thank you for the useful tip.
I’ve tested the example given below but ran into missing figure, maybe I need
to reconstruct the MetaPost file as mentioned in setup. Se attached example:
Thanks in advance!
/Jan-Erik
\setupinteraction[state=start]
\setupexternalfigures[location=global
begin example
\setupexternalfigures [location={local,global,default}]
\useexternalfigure [simple] [cow.pdf]
%\useexternalfigure [simple] [hacker.png]
\starttext
\externalfigure[simple]
\stoptext
end example
Wo
ch folder has images
> which the same name. In ConTeXt you can use a mode to choose which directory
> is used to load the image. Another method is to map the file names of the
> images to symbolic names and use only the
example
\setupexternalfigures [location={local,global,default}]
\useexternalfigure [simple] [cow.pdf]
%\useexternalfigure [simple] [hacker.png]
\starttext
\externalfigure[simple]
\stoptext
end example
Wolfgang
ranslatephrase; for your figures I’d just just a language
variable in the path, like \externalfigure[images/\LANG/cow.pdf]
If this is always the current language, use \currentlanguage.
You can also setup the language dependent directory in
\setupexternalfigures.
Regarding modes, the current language
On Sun, 1 May 2022, Henning Hraban Ramm via ntg-context wrote:
> Hi,
> I was playing with the example from
> https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter
>
> and tried to put it in a tabulate:
>
>
> \useMPlibrary[dum]
> \set
Hi,
I was playing with the example from
https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter
and tried to put it in a tabulate:
\useMPlibrary[dum]
\setupexternalfigures[width=3em,height=2em,frame=on,]
%\def\TXT{\ruledhbox{\bf(XyX)}}
\def\TXT{\externalfigure
| PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-\starttext
\setupexternalfigures
[location={default,global}]
\startMPdefinitions
def
ere.
The layer is relative to the page, not to the paper in this case.
And the state is an option for the layer (in \definelayer), not for the
background, being "start" its default value.
Just in case it might help,
Pablo
\setupexternalfigures
[location={default,global}]
\
% with images
% a weird one
\setupexternalfigures
[location={default,global}]
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-\usedadaptivedepth \bgroup
\externalfigure
[cow.pdf]
[width=\usedadaptivewidth,
height
ult as that with the makeup:
\setuppagenumbering[alternative=doublesided]
\setupexternalfigures[location=default]
\setupheadertexts[]
\setupheadertexts[chapter][\date]
\setupfootertexts[pagenumber]
\starttext
\startchapter [title={Chapter title}]
\dorecurse{2}{\samplefile{knuth}}
\placefig
ut the float inside the makeup and wrap it with
> \start...\stoppostponing. Here is a MWE:
>
> %%% start example
> \setupexternalfigures[location=default]
> \definemakeup
>[FloatPage]
> \setupmakeup
>[FloatPage]
>[headerstate=normal,
>
ine a makeup and enable header, footer and page for it. Then we
can put the float inside the makeup and wrap it with \start...\stoppostponing.
Here is a MWE:
%%% start example
\setupexternalfigures[location=default]
\definemakeup
[FloatPage]
\setupmakeup
[FloatPage]
[headerst
}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\useexternalfigure [chapter-1] [mill] [factor=max]
\useexternalfigure [chapter-2] [hacker] [orientation=90,scale=2000]
\useexternalfigure [chapter-3] [cow][orientation=90,height=\framedwidth]
=stop]
\setuphead
[chapter]
[beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name={chapter-\namedheadnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\useexternalfigure [chapter-1
]
[beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name={chapter-\namedheadnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\useexternalfigure [chapter-1] [mill] [factor=max]
\useexternalfigure
-\namedheadnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\starttext
\startchapter [title={Mill}] [rotation=90,width=\paperheight]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\startchapter
umbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\starttext
\startchapter [title={Mill}] [rotation=90,width=\paperheight]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [rotation=-90,width=\paperhei
e={chapter\namedheadnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\starttext
\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [image=mill]
\dorecurse{11}{\sample
, March 7, 2022 11:50 AM jbf wrote:
All ten images are different, though, in my case (Chapter1.jpg,
Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind
headnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\starttext
\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [image=mill]
\dorecurse{11}{\samplefile{lorem}}
\s
in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"
I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-co
On Monday, March 7, 2022 11:50 AM jbf wrote:
> All ten images are different, though, in my case (Chapter1.jpg,
> Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point
> \setupexternalfigures to that). I wonder if there is a way to list them
> so that they get cal
in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"
Julian
On 7/3/22 16:38, śrīrāma wrote:
On Monday, March 7, 2022 9
On Monday, March 7, 2022 11:08 AM śrīrāma wrote:
>
> From what I understood from your explanation, I have this:
>
A formatted version below –
%%% SOF
% for 'mill'
\setupexternalfigures[location={default}]
\setuppagenumbering[alternative=doublesided]
\definelayer
[mill]
I can't seem to get my facing page image to appear where it
> should!
From what I understood from your explanation, I have this:
%%% SOF
% for 'mill'
\setupexternalfigures[location={default}]
\setuppagenumbering[alternative=doublesided]
\definelayer[mill][x=0mm,y=0mm,width=\pa
On Sunday, March 6, 2022 5:17 AM mastermind_ x via ntg-context wrote:
> Any pointers on how I can achieve this?
You don't have a MWE, so based on my understanding of your illustration, I have
the following:
%%% SOF
% required for 'cow'
\setupexternalfigures[location={local,defa
all of my `\placefigure` in the entire document appear
exactly where called, even if that means having to place it on a new page with
lots of space before it or even a new page afterwards? I need it to show up in
the order it was called. I think `\setupexternalfigures[location=]` should
provide
ire document
> appear exactly where called, even if that means having to place it on a new
> page with lots of space before it or even a new page afterwards? I need it to
> show up in the order it was called. I think
> `\setupexternalfigures[location=]` should provide the solution, b
it on a new page with
lots of space before it or even a new page afterwards? I need it to show up in
the order it was called. I think `\setupexternalfigures[location=]` should
provide the solution, but cann't figure what is the correct location, I'm not
seeing that in the manual anywhere
the
\useexternalfigure command to create a reference to your graphic.
A alternative to \defineexpandable is the \setvariables command.
\setupexternalfigures [location=default]
\defineexpandable\MillFigure{mill.png}
\useexternalfigure[CowFigure][cow.pdf]
\setvariables[figures][hacker=hacker.jpg]
\starttext
the float is placed.
The original example passed a name to the optional argument of
\externalfigure but when you do this you just access a named list of
figure options, e.g. rotating the image by 90 degrees counter clockwise.
\setupexternalfigures[location={local,global,default
Am Fri, Oct 22, 2021 at 05:48:09PM +0200 schrieb Hans Hagen:
> On 10/22/2021 3:58 PM, juh via ntg-context wrote:
> > Can I do any harm if I do:
> >
> > \setupexternalfigures[conversion=mp]
>
> probably not unless there is an mp conversion for the other formats
T
On 10/22/2021 3:58 PM, juh via ntg-context wrote:
Hi,
I include images with a variable via pandoc in a externalfigure
directive.
These images can be jpgs, pngs, pdfs and svgs.
Can I do any harm if I do:
\setupexternalfigures[conversion=mp]
probably not unless there is an mp conversion
On 10/22/2021 3:58 PM, juh via ntg-context wrote:
Hi,
I include images with a variable via pandoc in a externalfigure
directive.
These images can be jpgs, pngs, pdfs and svgs.
Can I do any harm if I do:
\setupexternalfigures[conversion=mp]
unrelated to svg
\startMPcode
fill fullcircle
Hi,
I include images with a variable via pandoc in a externalfigure
directive.
These images can be jpgs, pngs, pdfs and svgs.
Can I do any harm if I do:
\setupexternalfigures[conversion=mp]
juh
--
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: .
of the empty page preceding a part title?
%
\setuppagenumbering [alternative=doublesided]
\setupexternalfigures[location=default] % cow
% startTEXpage does not increase page number => incrementpagenumber
% trimming in the print shop => printpaperwidth/height
\define[1]\FullScreen{\startT
On 9/7/2021 11:02 AM, Henning Hraban Ramm via ntg-context wrote:
(Latest LMTX, yesterday’s luametatex binary)
The MWE shows no transparency with LMTX, it works with MkIV:
'''
\setupexternalfigures[location=default]
\definetransparency[light][a=1,t=.05]
\definelayer[bg][x=0mm,y=0mm
(Latest LMTX, yesterday’s luametatex binary)
The MWE shows no transparency with LMTX, it works with MkIV:
'''
\setupexternalfigures[location=default]
\definetransparency[light][a=1,t=.05]
\definelayer[bg][x=0mm,y=0mm]
\setupbackgrounds[text][background={bg},state=start]
\starttext
> I can send them off-list, if you like.
>
> \starttext
>\externalfigure[20200910T115319.JPG][height=4cm]
>\externalfigure[old-paper-1140627-638x420.jpg][height=4cm]
> \stoptext
>
> both show up ok
>
> (fwiw: the jpg code didn't really change since the
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
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
(using framed or so) and then taking those dimensions
Many thanks for your reply, Hans.
I’m afraid I don’t know how to make the commands work:
\setupexternalfigures[location=default]
\definelayer[hi]
[x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax]
\setupbackgrounds
d then taking those dimensions
Many thanks for your reply, Hans.
I’m afraid I don’t know how to make the commands work:
\setupexternalfigures[location=default]
\definelayer[hi]
[x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax]
\setupbackgrounds[page][background=
\stopproduct
end document.tex
begin document-environment.tex
\startenvironment [*]
% sub directory for images
%
% \setupexternalfigures
% [directory=...]
%
% sub directories for components
%
% \usepath
% [...]
% put you setups here
\stopenvironment
end document-environment.tex
the script. Everything
works fine.
But now I would like to use a second path variable in a style file
instead of this long relative path:
\setupexternalfigures[directory={../../../hs.pub.bilder},local]
Any idea how to achieve this?
TIA
Jan Ulrich Hasecke
--
Autoren-Homepage:
eff: Re: [NTG-context] specify a directory for tex files
> >>
> >> Jeroen schrieb am 24.05.2021 um 20:44:
> >>> similar to this for figures
> >>>
> >>> \setupexternalfigures
> >>> [directory={./myfigures}]
> >>>
&
24.05.2021 um 20:44:
similar to this for figures
\setupexternalfigures
[directory={./myfigures}]
is there a way to specify a directory for tex files so with
\input{myfile.tex}
the file myfile.tex can be placed in a subdirectory for example
./mytexfiles?
\usepath[...]
and
\usesubpath
21 um 20:44:
> > similar to this for figures
> >
> > \setupexternalfigures
> > [directory={./myfigures}]
> >
> > is there a way to specify a directory for tex files so with
> >
> > \input{myfile.tex}
> >
> > the file myfile.tex can be placed in a sub
Jeroen schrieb am 24.05.2021 um 20:44:
similar to this for figures
\setupexternalfigures
[directory={./myfigures}]
is there a way to specify a directory for tex files so with
\input{myfile.tex}
the file myfile.tex can be placed in a subdirectory for example
./mytexfiles?
\usepath
1 - 100 of 674 matches
Mail list logo