e for me now:
>
> https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html
> https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html
>
> Adam
Thank you, that’s already very useful! I should have looked if there is a
“delayed” alternative for externalfigure as well, b
but couldn’t make it compile. Combinations,
> combined with framed and externalfigure, are difficult to write in Lua - or
> am I too stupid to find the winning combination (sorry for the puns).
>
> 3. columns
>
> Again, this would seen like a natural approach, having every A4 pag
combinations
are for), but I ran into expansion problems, added a few “function () end” in
my code, but couldn’t make it compile. Combinations, combined with framed and
externalfigure, are difficult to write in Lua - or am I too stupid to find the
winning combination (sorry for the puns).
3. columns
tertilde c\textasciitilde d
\stoptext
\definepageinjectionalternative
[chapter:image]
[renderingsetup=pageinjection:chapter:image]
\startsetups [pageinjection:chapter:image]
\centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups
\definepageinjection
[chapter:start]
[empt
=pageinjection:chapter:image]
\startsetups [pageinjection:chapter:image]
\centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[alternative=chapter:image,
offset=1cm,
pagestate
[pageinjection:chapter:image]
\centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[alternative=chapter:image,
offset=1cm,
pagestate=stop]
\setuphead
[chapter
[pageinjection:chapter:image]
\clip
[width=\framedwidth,height=\framedheight]
{\centerbox{%
\externalfigure
[\dummyparameter{name}]
[%factor=,
width=\structureuservariable{width},
height=\structureuservariable{height
e]
\clip
[width=\framedwidth,height=\framedheight]
{\centerbox{%
\externalfigure
[\dummyparameter{name}]
[%factor=,
width=\structureuservariable{width},
height=\structureuservariable{height},
orientation=\struct
[width=\framedwidth,height=\framedheight]
% {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}}
% \stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[%alternative=chapter:image,
pagestate=stop]
ddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=chapCover]
\
{\structureuservariable{image}}{}{% if image empty, do nothing
}{%
\directsetup{eka:noheader}
\vbox{%
\blank[big]
\externalfigure[\structureuservariable{image}][width=0.8\textwidth]\par
}
\doifnot{\structureuservariable{motto}}{}{
\vfill
\vbox
n you might need another setup to clean
it up afterwards. In this example there is just the "after=" in the definition.
% Now you can print your images by using:
\starttext
\startChapterPreface
\externalfigure[cow.pdf]
\stopChapterPreface
\startchapter[title={firstchapter}}
...
\stopchapter
[width=\framedwidth,height=\framedheight]
% {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}}
% \stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[%alternative=chapter:image,
pagestate=stop]
ayer
[chapCover]
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,repeat=yes]
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
tartsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=cha
layer[mill]{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\page[empty]
\popbackground}
\stopsetups
\startsetups chapter:after
\doifoddpageelse{}
{\page[empty]}
\
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,repeat=yes]
\setlayer
[mill]
{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\p
perwidth,height=\paperheight,repeat=yes]
\setlayer[mill]{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\page[empty]
\popbackground}
\stopsetups
\startsetup
in
bodymatter:
\startbodymatter
\definelayer[mylayer] % name of the layer
[x=0mm, y=0mm, % from upper left corner of paper
width=\paperwidth,height=\paperheight] % let the layer cover the full paper
\setlayer[mylayer]
[hoffset=2.5cm, voffset=3cm]
{\externalfigure[Chapter1.jpg][width=.9
ign={flushright,lohi}]
\bTR
\bTD \externalfigure[cow][height=2cm] \eTD
\bTD
\doiftextelse{\getvariable{assignments}{date}}{\getvariable{assignments}{date}}{\date}
\eTD
\eTR
\bTR
\bTD Course: \getvariable{assignments}{code} \eTD
\bTD \getvariable{assignments}{assignment} \eTD
\
when the same figure is included twice, context only includes the
> figure once and refers to the included figure the second time. The option
> `object=no` to externalfigure is supposed to prevent that, but it doesn't
> work. For example, consider the following example the bug-report use
the second time. The option
`object=no` to externalfigure is supposed to prevent that, but it doesn't work.
For example, consider the following example the bug-report uses graphviz as the
external program, but I have changed that to context to keep things self
contained)
\usemodule[filter
Hi,
This is related to a bug report for the filter module:
https://github.com/adityam/filter/issues/60
Normally, when the same figure is included twice, context only includes the
figure once and refers to the included figure the second time. The option
`object=no` to externalfigure is supposed
\starttexdefinition MaxFigure #1#2
\page
\getfiguredimensions[#1][page=#2]\relax
\ifdim\figurewidth>\figureheight\relax
\externalfigure
[#1]
[page=#2,
fr
Hi Alain,
in my current project I need the same. I use floats and move the
externalfigure with \offset; can show you on Tuesday.
e.g.
\startplacefigure[title={},location=left]% or outer...
\offset[topoffset=-1em,leftoffset=-20mm]{%
% it would be nice to have outeroffset/inneroffset
the solution, but cann't figure what is the correct location, I'm not
seeing that in the manual anywhere.
Use the force Luke...
e.g.
\placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]}
The location= option is for where on the page (e.g. in a margin, in the main
text
ut cann't
> figure what is the correct location, I'm not seeing that in the manual
> anywhere.
Use the force Luke...
e.g.
\placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]}
The location= option is for where on the page (e.g. in a margin, in the main
text) the picture will
Great! Thanks Hans, now it works. I replaced the "draw externalfigure"
commands by
draw externalfigure "./skysprite.png" xsized 4u ysized 5u shifted (0u,-0u);
draw externalfigure "./sandsprite.png" xsized 4u ysized 5u shifted (0u,-5u);
Best regards
On Sun, Jan
:
\starttext
\setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,8pt]}]
\startuseMPgraphic{mapa}
u:=.095cm;
draw externalfigure "./skysprite.png" xscaled 4u yscaled 5u shifted
(0u,-0u);
draw externalfigure "./sandsprite.png" xscaled 4u yscaled 5u shifted
(0u,-5u)
[termes,8pt]}]
\startuseMPgraphic{mapa}
u:=.095cm;
draw externalfigure "./skysprite.png" xscaled 4u yscaled 5u shifted
(0u,-0u);
draw externalfigure "./sandsprite.png" xscaled 4u yscaled 5u shifted
(0u,-5u);
\stopuseMPgraphic
\useMPgraphic{mapa}
\stoptext
But instead I got two huge
ves [logs.errors]
%% missing font
\definefontfamily [foo] [serif] [no font here really]
\setupbodyfont [foo]
\starttext
%% missing characters
풜
%% missing figure
\externalfigure [foo]
%% missing references
See \in{section}[sec:none].
\stoptext
because these are not errors in th
rs]
%% missing font
\definefontfamily [foo] [serif] [no font here really]
\setupbodyfont [foo]
\starttext
%% missing characters
풜
%% missing figure
\externalfigure [foo]
%% missing references
See \in{section}[sec:none].
\stoptext
Marco
not working for me.
Here is my MWE:
\define[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background
y MWE:
>
>
>
> \define[]\logofile{an_image_file.png} % Here defining the variable with the
> filename to use.
>
> \definelayer[stillimage]
> \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
> \logofile macro.
> \setupbackground
[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background=stillimage]
\starttext
\input knuth
\stoptext
What's
Squere Model) \NR
\NC ... < 0 \TC (Bright Dark Matter Model) \NR
\stopmathcases
\stopformula
... of Truly Deep Physics: \startformula \hat{H} - \c{u}_0 = O\stopformula
% ? How can I get a cedilla under the u? \c{u} is wrong.
\page
\subject{Original}
\externalfigure[https://imgs.xkcd.com/comic
tempor
\startplacefigure [location=outer]
\externalfigure
\stopplacefigure
\samplefile{knuth}
\stoptext
Marco
LMTX 2021.11.26 11:38
___
If your question is of interest to others as well, please add an entry
top]
\starttext
\samplefile{knuth}
\startplacefigure %% [location=top] %% default
\externalfigure
\stopplacefigure
%% Goal here: turn off the caption, not influence the default placement
%% needs to be adapted when the global style changes
%% \startplacefigure [location=none] %% fa
Am 30.11.21 um 12:16 schrieb Marco Patzer via ntg-context:
Hi!
Today I discovered that the parameter order in float location matters:
\starttext
\samplefile{knuth}
\startplacefigure [location={top,none}] %% works: float is at the top
\externalfigure
\stopplacefigure
Hi!
Today I discovered that the parameter order in float location matters:
\starttext
\samplefile{knuth}
\startplacefigure [location={top,none}] %% works: float is at the top
\externalfigure
\stopplacefigure
\startplacefigure [location={none,top}] %% top is ignored here
,
groupsuffix=a]
\externalfigure
\stopplacefigure
\startplacefigure [title=Right, reference=ref:right, group=one,
groupsuffix=b]
\externalfigure
\stopplacefigure
\stopfloatcombination
\stopplacefigure
See \in{image}[ref:right] (right) and \in{image}[ref:left] (left
Hi!
I'd like to use subfigure numbering for floats. This works:
\useMPlibrary [dum]
\starttext
\startplacefigure [location=none]
\startfloatcombination [nx=2]
\startplacefigure [title=Left, reference=ref:left, group=one, groupsuffix=a]
\externalfigure
\stopplacefigure
\enabledirectives
[logs.errors]
%% makes context return 1 on missing chars, great!
%% \enabledirectives
%% [logs.errors=missing characters]
\starttext
%% missing characters
풜
%% missing figure
\externalfigure [foo]
%% \end occurred inside a group at level 1
%% ### semi simple group
Hi Hans,
I have the following sample:
\setuppapersize[S6]
\startbuffer[flag]
\setuppapersize[S6]
\starttext
\startmakeup[page][align=center]
\dontleavehmode
\externalfigure[uk-flag.pdf][width=.8\textwidth]
\stopmakeup
\stoptext
\stopbuffer
\starttext
\startmakeup[page
}]
\definelayer[butterfly]
[x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{\externalfigure[bfly.jpg][width=1.5cm]}
\setupbackgrounds[page][background=butterfly]
The last line adds backgrounds to every page. And without
>
> \setupbackgrounds
> [rightpage]
> [background=butterfly]
>
> \startchapter[title={Chapter title}]
> \definelayer[butterfly]
> [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
> \setlayer[butterfly]
> [hoffset=.99\textwidth, voffset
something).
\startbodymatter
\setupbackgrounds
[rightpage]
[background=butterfly]
\startchapter[title={Chapter title}]
\definelayer[butterfly]
[x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{\externalfigure
Otared Kavian via ntg-context schrieb am 31.10.2021 um 18:11:
Hi,
Your example has two issues, since you invoke \externalfigure before
\starttext, and moreover you don’t use the place figure mechanism.
The following gives the result you want:
\setupinteraction[state=start]
\starttext
Hi,
Your example has two issues, since you invoke \externalfigure before
\starttext, and moreover you don’t use the place figure mechanism.
The following gives the result you want:
\setupinteraction[state=start]
\starttext
\startplacefigure[reference=clock]
\externalfigure[clock.jpg
I thought it was necessary to use one of the derivations of \placefloat in
order to get the reference generated. In your case this would be \placefigure
thus:
\starttext
\placefigure [ ] [clock] { } {\externalfigure[clock.jpg]}
\at[clock] refers to a clock
\stoptext
> On 31 Oct 2021, at 12
The fix is not really a fix thought, as it makes the image of the
figure disappear.
Still don't know how to make a .jpg work with \at
On Sun, 31 Oct 2021 at 13:07, a badin wrote:
>
> Hello, perhaps this is how it is supposed to work, but:
>
> \externalfigure[clock.jpg][clock]
Hello, perhaps this is how it is supposed to work, but:
\externalfigure[clock.jpg][clock]
\starttext
\at[clock] refers to a clock
\stoptext
produces "?? refers to a clock", instead of "1 refers a clock" --- the
wiki of \at says, that labels of figures can be refered to. I
rnalfigure[location=default]
>\startcombination[nx=3, ny=2, location={middle}]
>{\externalfigure[mill.png][width=.25\textwidth]} {}
Many thanks for your fast reply and your help, Hans.
Pablo
--
http://www.ousia.tk
___
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 5:20 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\starttext
\setupexternalfigure[location=default]
\startcombination[nx=3, ny=2, location={middle}]
{\externalfigure[mill.png][width=.25\textwidth]}
{\externalfigure[cow.pdf
Dear list,
I have the following sample:
\starttext
\setupexternalfigure[location=default]
\startcombination[nx=3, ny=2, location={middle}]
{\externalfigure[mill.png][width=.25\textwidth]}
{\externalfigure[cow.pdf][width=.25\textwidth]}
{\externalfigure[cow.pdf][width=.25\textwidth
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: .
Hi all,
I found a minimal example.
Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context:
> in a minimal example
>
> \starttext
> \externalfigure[test.svg][conversion=mp]
> \stoptext
>
> renders fine.
>
> I my real world project white background i
Hi all,
in a minimal example
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
renders fine.
I my real world project white background is rendered black.
Any hints where I can start to debug?
juh
--
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Es
}]
\starttext
\doiffile{A3page.pdf}
{\def\Doc{A3page.pdf}
\getfiguredimensions[\Doc]
\dorecurse{\noffigurepages}
{\ifodd\recurselevel
\rotate[rotation=90]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\else\rotate[rotation=270
-context/2021/103909.html)?
.. it was not really a minimal example ...
\showframe
\starttext
\topskip4cm
\rotate[rotation=90]
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\rotate[rotation
]
\dorecurse{\noffigurepages}
{\ifodd\recurselevel
\rotate[rotation=90]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\else\rotate[rotation=270]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\fi}}
\stoptext
I’m afraid
gt; does something doesn't mean it did years ago (just like at how crippled
> tounicode has been / is supported over time)
Yes, you can send PDF files to some copiers and other professional printing
devices. But usually you do this via the manufacturer’s workflow tools – only a
few
Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto:
On 10/18/2021 6:06 PM, mf via ntg-context wrote:
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto:
The following MWE fails to render the text in the attached SVG properly:
\starttext
\externalfigure[test.svg][conversion=mp
Fixing your svg. View attachments.
El lun, 18 oct 2021 a las 10:15, Jason Ross via ntg-context (<
ntg-context@ntg.nl>) escribió:
> The following MWE fails to render the text in the attached SVG properly:
>
>
> \starttext
> \externalfigure[test.svg][conversion=mp]
>
On 10/18/2021 5:15 PM, Jason Ross via ntg-context wrote:
The following MWE fails to render the text in the attached SVG properly:
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
The axis labels, tick labels, and title are all incorrect. This file was
generated with Matplotlib
On 10/18/2021 6:06 PM, mf via ntg-context wrote:
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto:
The following MWE fails to render the text in the attached SVG properly:
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
The axis labels, tick labels, and title are all
:
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
The axis labels, tick labels, and title are all incorrect. This file was
generated with Matplotlib.
If you open test.svg with Inkscape, ungroup and then save, you get a
SVG that is typeset right with LMTX.
Looking at the differences
On 10/18/2021 6:06 PM, mf via ntg-context wrote:
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto:
The following MWE fails to render the text in the attached SVG properly:
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
The axis labels, tick labels, and title are all
ery wrote:
> > Check that your Inkscape is working properly.
> >
> > That proble NOT appear on my machine...
> >
> > Best,
> >
> > L. Montgomery
>
> (Sorry Luis, I forgot to cc mailing list)
> Per https://wiki.contextgarden.net/Command/ex
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto:
The following MWE fails to render the text in the attached SVG properly:
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
The axis labels, tick labels, and title are all incorrect. This file was
generated with Matplotlib
On 10/18/21 8:38 AM, Luis Montgomery wrote:
> Check that your Inkscape is working properly.
>
> That proble NOT appear on my machine...
>
> Best,
>
> L. Montgomery
(Sorry Luis, I forgot to cc mailing list)
Per https://wiki.contextgarden.net/Command/externalfigure,
i
properly:
>
>
> \starttext
> \externalfigure[test.svg][conversion=mp]
> \stoptext
>
>
> The axis labels, tick labels, and title are all incorrect. This file was
> generated with Matplotlib.
>
> ___
&
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
for whole layouts (same as TrimBox might make sense),
just interesting in \externalfigure.
also worthless
I agree.
With
\setuppaper[A4][A4,oversized]
I’d expect ConTeXt to set...
* MediaBox and CropBox to the bigger format
* TrimBox to the page format (A4)
* BleedBox also to the page format,
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
>> 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
the correct result with examples 1 and 2 below, but example 3
using lua functions for combination and externalfigure is what I
wanted to use in the first place.
MWE:
\starttext
\startluacode
-- Combination 1
context.startplacefigure({title = "Figure"})
context.startcombination({nx = &q
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
as image
* BleedBox must be TrimBox plus bleed.
a relative new one, probably also sensitive for interpretation by
renderer, imo worthless
* ArtBox is neglectable for whole layouts (same as TrimBox might make sense),
just interesting in \externalfigure.
also worthless
According to PDF
in \externalfigure.
According to PDF Standard, MediaBox is the only required one; but CropBox is
the most important one, since PDF viewers rely on it.
With
\setuppaper[A4]
all boxes can be the same (or undefined). Status quo.
With
\setuppaper[A4][A4,oversized]
I’d expect ConTeXt to set...
* MediaBox
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
rttext
\placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]}
\from[github]
\stoptext
\figuresymbol[github.svg][conversion=mp,height=2ex]
-
Hans Hagen | PRAGMA ADE
> Am 07.10.2021 um 11:24 schrieb noib3 via ntg-context :
>
> How can I place an SVG icon "inline", i.e. side by side to some text? Here's
> my MWE
>
> ```
> \useURL
> [github]
> [https://github.com/test]
> []
> [github.com/test]
>
> \s
How can I place an SVG icon "inline", i.e. side by side to some text?
Here's my MWE
```
\useURL
[github]
[https://github.com/test]
[]
[github.com/test]
\starttext
\placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]}
\from[github]
\stoptext
```
I have attached a
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
ayout
> [width=middle,
>height=middle]
>
> \setupfootertexts
> [margin]
> []
> [{\offset[x=-1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
> []
> [{\offset[x=1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
>
> %\showframe
>
&
,
height=middle]
\setupfootertexts
[margin]
[]
[{\offset[x=-1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
[]
[{\offset[x=1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
%\showframe
\starttext
\dorecurse{8}{\samplefile{knuth}}
\stoptext
Wolfgang
e,height=middle]
>
> \setupfootertexts
> [margin]
>[]
>[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
>[]
>[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
>
> \sho
.
\setuppapersize[A4][A3]
\setuplayout[location=middle]
\setuplayout[width=middle,height=middle]
\setupfootertexts
[margin]
[]
[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
[]
[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
\showframe
\starttext
]{\externalfigure[logo.pdf][factor=max]}}]
[]
[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
\showframe
\starttext
\dorecurse{8}{\input knuth}
\stoptext
___
If your question is of interest to others as well
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}]
]
\setupbackgrounds[text][background={bg},state=start]
\starttext
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
\setlayer[bg][
hoffset=5mm,
voffset=5mm,
]{
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
}
\stoptext
'''
The layer stuff is not "minimal&qu
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
\setlayer[bg][
hoffset=5mm,
voffset=5mm,
]{
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
}
\stoptext
'''
The layer stuff is not "minimal", but I wanted to check if "multiply&q
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.
>
precision 8, 640x480,
components 3
The latter is one of Harald’s infrared pictures.
I can send them off-list, if you like.
\starttext
\externalfigure[20200910T115319.JPG][height=4cm]
\externalfigure[old-paper-1140627-638x420.jpg][height=4cm]
\stoptext
both show up ok
(fwiw: the jpg code didn't
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?
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
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:
>&
301 - 400 of 3793 matches
Mail list logo