Dear list,
using the document attached to this message with the following sample
gives different outputs:
\setuppapersize[A3, landscape]
\starttext
\externalfigure[fc-first.pdf]
\stoptext
1. LuaTeX inserts the document fine.
2. LMTX inserts the document distorting its aspect
\dontleavehmode
\externalfigure[cow.pdf]
[scale=500]
\stopxcell
\startxcell
\dontleavehmode
\externalfigure[cow.pdf]
[scale=500]
\stopxcell
\dontleavehmode\dorecurse{100}{
\externalfigure[cow.pdf][scale=50] }
\stopxcell
\startxcell
\input zapf
\stopxcell
\stopxrow
\stopxtable
\stoptext
Some time ago, there were no difference
}{
\externalfigure[cow.pdf][scale=50] }
\stopxcell
\startxcell
\input zapf
\stopxcell
\stopxrow
\stopxtable
\stoptext
Some time ago, there were no difference between images and text
remaining inside the frame
Dear list,
I have the following sample:
\setupexternalfigures[location=default]
\starttext
\startxtable[option={stretch, width}]
\startxrow
\startxcell
\dontleavehmode\dorecurse{100}{
\externalfigure[cow.pdf][scale=50
On 10/16/2019 5:02 PM, cont...@vivaldi.net wrote:
Hello,
the following code stopped working after today's Ctx update:
\setupexternalfigures[location=default]
\starttext
%\externalfigure[hacker]
\getrandomnumber\t{0}{20}
\rotate[rotation=\numexpr\t-10\relax]{\externalfigure[dummy
Hello,
the following code stopped working after today's Ctx update:
\setupexternalfigures[location=default]
\starttext
%\externalfigure[hacker]
\getrandomnumber\t{0}{20}
\rotate[rotation=\numexpr\t-10\relax]{\externalfigure[dummy]}
\stoptext
with:
"
tex error
Dear list,
I have the following sample (slightly modified version taken from
java-imp-vplayer.mkiv):
\starttext
\startTEXpage[offset=3em]
\useJSscripts[vplayer]
\setupinteraction
[state=start]
\externalfigure
[shockwave]
[frame
On Thu, 10 Oct 2019, cont...@vivaldi.net wrote:
Hello,
this is a probably basic question, but the following code doesn't compile:
\setupbackgrounds[page][background={Bkg}]
\defineoverlay[Bkg][\useMPgraphic{Bkg}]
\startuseMPgraphic{Bkg}
externalfigure "hacker.png";
\stopus
> On 10 Oct 2019, at 13:23, cont...@vivaldi.net wrote:
>
> Hello,
>
> this is a probably basic question, but the following code doesn't compile:
>
>
> \setupbackgrounds[page][background={Bkg}]
>
> \defineoverlay[Bkg][\useMPgraphic{Bkg}]
>
> \star
Hello,
this is a probably basic question, but the following code doesn't
compile:
\setupbackgrounds[page][background={Bkg}]
\defineoverlay[Bkg][\useMPgraphic{Bkg}]
\startuseMPgraphic{Bkg}
externalfigure "hacker.png";
\stopuseMPgraphic
\starttext
Ahoj
> ymin=-5,
> ymax=5,
> xstep=0.01,
> ystep=0.01,
> range={0},
> levels=1,
> function="-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5",
> linecolor="orange",
> linewidth=1,
> legend=false,
> cache=true,
> ] xsized 10cm ;
> \stopMPpage
>
> \st
h=1,
legend=false,
cache=true,
] xsized 10cm ;
\stopMPpage
\startbuffer[mmainput]
ContourPlot[
{-4+x^2+x^5+15y-y^2-10x^3y^2+5x*y^4 == 0,
-15x+2x*y+5*x^4*y-10x^2*y^3+y^5 == 0},
{x, -5, 5}, {y, -5, 5}, Frame -> False]
\stopbuffer
\startTEXpage[offset=2bp]
\typebuffer[mmainput]
\externalfigure[ma
\setuphead[MyTit]
[style=\bf,color=MyBlue,
before={\blank[none]},after={\blank[none]},inbetween={\blank[none]},beforesection={BS},aftersection={AS},
page=no,%grid=yes,
]
%
%\showframe
%\showboxes
%\showlayout
%
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
]
\startcolumnsetspan[wide]
%\externalfigure[hacker][width=120mm] % Produces overlapping last two
lines in the first column, too
\vbox to80mm{}
\stopcolumnsetspan
\input knuth
\stopcolumnset
\stoptext
The last two lines in the first column overlap (it seems that the last
lumnsetspan[wide][n=2]
>
> \setupexternalfigures[location=default]
>
> %
>
> \starttext
>\startcolumnset[example]
> \startcolumnsetspan[wide]
>%\externalfigure[hacker][width=120mm] % Produces overlapping last two
> lines in the first column, too
>\vbox to8
Hello,
I have the following code:
\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]
\setupexternalfigures[location=default]
%
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
%\externalfigure[hacker][width=120mm] % Produces overlapping
]{}{\externalfigure[cow][width=3cm]}
\input ward
\stoptext
The error happens when the location of placefigure is left or right, but not
with center. The error is the following:
context test.tex
resolvers | trees | analyzing 'home:.texlive2018/texmf-config'
mtx-context | run 1: luatex
[subsubsubsubsubject][style=bold]
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
\externalfigure[hacker][width=95mm]
\stopcolumnsetspan
\dorecurse{2}{
\subsubsubsubsubject{Sub}
\input ward
}
\column
\column
\darkred
\starttabulate[|rB|lp
gt; mechanism but a separate document is easier)."
> >
> Step 1:
>
> Create a document with a very big left margin where you can place all
> floats.
>
> \setuppapersize
>[A3,landscape]
>
> \setuplayout
> [backspace=23.5cm,
> width=15cm,edge=14cm]
input ward
\startplacefigure
\externalfigure[dummy]
\stopplacefigure
\input knuth
\startplacetable
\starttabulate[|c|c|c|]
\FL
\NC A \NC B \NC C \NC\NR
\ML
\NC X \NC Y \NC Z \NC\NR
\LL
\stoptabulate
\stopplacetable
\input zapf
\stoptext
Step 2:
Split each page into two separate pages
---
\starttext
\startplacefigure[location={none,right}]
\externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem}
\startframed
[height=20\lineheight,
width=\hsize,
offset=0pt,
align=width]
\startplacefigure[location={none,right}]
\externalfigure[cow
={none,right}]
\externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem}
\startframed
[height=20\lineheight,
width=\hsize,
offset=0pt,
align=width]
\startplacefigure[location={none,right}]
\externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem
=.4\textwidth}
\startplacefigure[location={#1},title={#1 \fakewords{3}{20}}]
\externalfigure[place #1][width=\PicWidth,height=\dimexpr\textheight * \imgH /
10 \relax]
\stopplacefigure
}
Put the value of the random location in a macro.
\define[1]\Blindbild
{\edef\PicLocation{#1
\fakewords{3}{20}}]
\externalfigure[place #1][width=\PicWidth,height=\dimexpr\textheight * \imgH /
10 \relax]
\stopplacefigure
}
\starttext
\dorecurse{3}
{\chapter{\fakewords{5}{10}}
\dorecurse{3}
{\dorecurse{3}{\fakewords{50}{100}\endgraf}
\Blindbild{\ctxlua
On 9/7/2019 10:47 PM, Henning Hraban Ramm wrote:
Bear with me, I still got no experience in MetaPost…
I’m trying to place a pixel image on a MP page.
According to the MetaFun manual this should work:
\startMPpage
draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ;
\
Hi,
> Le 7 sept. 2019 à 16:47, Henning Hraban Ramm a écrit :
>
> Bear with me, I still got no experience in MetaPost…
>
> I’m trying to place a pixel image on a MP page.
>
> According to the MetaFun manual this should work:
>
> \startMPpage
> draw externalfigure
Bear with me, I still got no experience in MetaPost…
I’m trying to place a pixel image on a MP page.
According to the MetaFun manual this should work:
\startMPpage
draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ;
\stopMPpage
And it works with mill.png (copied into m
]
\dorecurse{11}{
\input ward\par
}
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
\dorecurse{10}{
\input ward\par
}
\stopcolumnset
\stoptext
Shouldn't the figure stick to the bottom?
Best,
Denis
\externalfigure[test.svg][width=10cm]
and context will handle the conversion
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69
]
\usemodule[pre-60]
\setupcombination[align=middle]
\starttext
\StartSteps
\startplacefigure[]
{\startcombination[2*2]
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][height=.1\makeupheight]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth
=middle]
\starttext
\StartSteps
\startplacefigure[]
{\startcombination[2*2]
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][height=.1\makeupheight]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][width=.3
=footer,
state=start]
\setupfooter[strut=no]
\useMPlibrary[dum]
\showframe[frame=on]
\dorecurse{10} {
test
\page[left]
\setlayer
[page]
[x=-2mm,
y=-2mm,
preset=lefttop]
{\externalfigure
[bogus]
[width=\dimexpr\paperwidth+2mm
of the page if we have no caption.
```
\usemodule[newcolumnsets]
\setuplayout
[grid=yes]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{11}{
\input ward\par
}
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2
Hi,
just a quick follow up:
This (i.e., deleting the "none") gives the right result:
```
\placefigure [btrl]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
```
The figure is indeed at the bottom of the page. Yet, `\placefigure
[btrl,none]` seems to remove t
]
\setuplayout
[grid=yes]
\setuplayout
[backspace=20mm,
cutspace=15mm,
width=middle,
height=middle]
\setupsystem
[random=1234]
\setuppagenumbering [
alternative=,
location=,
]
\setupfootertexts
[Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
\setupfooter
[style=\ss]
\setuptolerance
re]
> \setupfloat[thematicimage]
> [default=right,none},
> offset=1em,
> margin=0em,
> background=color,
> backgroundcolor=cyan,
> rightmargindistance=-1em]
>
> \starttext
>
> \starttextbackground[TintBoxed
,
margin=0em,
background=color,
backgroundcolor=cyan,
rightmargindistance=-1em]
\starttext
\starttextbackground[TintBoxedBackground]
{\bf Lorem ipsum dolor sit amet}\blank
\placethematicimage{}{\externalfigure[cow][width=0.30\makeupwidth]} Lorem
ipsum dolor sit
xt overflows. The preceding and following paras which don't have {\bf
> …} do behave properly.
>
> I wondered if emphasis like \bf should be done differently (with a start/stop
> mechanism?) in mkiv, but I found nothing to suggest it.
>
> \starttext
> Blah blah.
> \place
…} do behave properly.
I wondered if emphasis like \bf should be done differently (with a
start/stop mechanism?) in mkiv, but I found nothing to suggest it.
\starttext
Blah blah.
\placefigure[right,none]{}{\externalfigure[cow][width=0.30\makeupwidth]}
Blah blah blah blah blah blah blah blah blah
ion is
> placed?
>
> \useMPlibrary [dum]
>
> \starttext
>
> \startcombination [2*2]
> \startcontent \externalfigure \stopcontent
> \startcaption Foo\stopcaption
> \startcontent \externalfigure \stopcontent
> \startcaption Bar \stopcaption
> \startcontent \
Hi!
Is there a way to influence the spacing after a combination is
placed?
\useMPlibrary [dum]
\starttext
\startcombination [2*2]
\startcontent \externalfigure \stopcontent
\startcaption Foo\stopcaption
\startcontent \externalfigure \stopcontent
\startcaption Bar\stopcaption
,
height=\pageheight]{%
\externalfigure[hacker][height=\pageheight]}
\page[right]
\strut
beware: \pagewidth and \pageheight are low level engine variables,
use \paperwidth and \paperheight instead as these engine ones will
be nilled
Thank you for the hint. In my actual code I use other
]{%
\externalfigure[hacker][height=\pageheight]}
\page[right]
\strut
beware: \pagewidth and \pageheight are low level engine variables, use
\paperwidth and \paperheight instead as these engine ones will be nilled
\stoptext
Crop marks as well as some layers (not shown in example
]{%
\externalfigure[hacker][height=\pageheight]}
\page[right]
\strut
\stoptext
Crop marks as well as some layers (not shown in example) are shifted
by \clip’s hoffset and voffset.
I guess there’s some internal variables bleeding or the like?
Greetlings, Hraban
---
https://www.fiee.net
http
in:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
The .tiff-image is always too big for this forums upper limit
\starttext
\midaligned{
\externalfigure[image-no-red-frame.png][width=15mm,height=25mm] \hskip12pt
\externalfigure[imagered-frame.png][width=15mm,height=25mm] \hskip12pt
\externalfigur
d="">Add \tex{setupcaption[align=middle,width=\makeupwidth]} as setting here:\par\setupcaption[align=middle,width=\makeupwidth]\setupframed[background="">\placefigure[][]{\type{\setupcaption[align=middle,width=\makeupwidth]}}{\externalfigure[test.jpg]}\setupframed[backgr
mailto:havdm...@ziggo.nl>>:
>
>> Placing a float figure with
>> \placefigure[][]{labeltext}{\externalfigure[]}
>> delivers a figure with a label like "Figure V.3 labeltext" (depending on the
>> setup)
>>
>> Now I want to intersperse th
Am 2019-05-11 um 21:39 schrieb Hans van der Meer :
> Placing a float figure with
> \placefigure[][]{labeltext}{\externalfigure[]}
> delivers a figure with a label like "Figure V.3 labeltext" (depending on the
> setup)
>
> Now I want to intersperse this with an
Placing a float figure with
\placefigure[][]{labeltext}{\externalfigure[]}
delivers a figure with a label like "Figure V.3 labeltext" (depending on the
setup)
Now I want to intersperse this with an \externalfigure[] not within a
placefigure but still accompanied
efacts in the pdf-output.
> > >
> > > My MWE is:
> > >
> > > --
> > > \starttext
> > >
> > > \externalfigure
> > > [input.png]
> > > [width=100mm]
> > >
> > > \stoptext
> >
On Sun, Apr 28, 2019 at 11:12:43PM +0200, Hans Hagen wrote:
> On 4/28/2019 8:10 PM, Rudolf Bahr wrote:
> >
> > Dear list,
> >
> > I'm getting unexplainable artefacts in the pdf-output.
> >
> > My MWE is:
> >
> > ------
> >
On 4/28/2019 8:10 PM, Rudolf Bahr wrote:
Dear list,
I'm getting unexplainable artefacts in the pdf-output.
My MWE is:
--
\starttext
\externalfigure
[input.png]
[width=100mm]
\stoptext
--
I append the output "MWE.pdf" and the in
Dear list,
I'm getting unexplainable artefacts in the pdf-output.
My MWE is:
--
\starttext
\externalfigure
[input.png]
[width=100mm]
\stoptext
--
I append the output "MWE.pdf" and the input-figure "input.png" for compariso
ess the generate latex code through latex to generate standalone
> pdfs and include them in your context document using
> \externalfigure[...].
:-)
> So, simply including the generated figures using \externalfigure[...]
> will allow you to get productive right away. If and wh
and include
them in your context document using \externalfigure[...].
There are benefits of using the tikz/metapost code in the tex document.
The main advantage is that your images and main text use the same fonts,
but that can be handled by using the same fonts in latex when generating
the image
ing to
>recent beta. I don't have a clue exactly when this behaviour was
>introduced since I switched just recently from the standard Texlive
>version available in Arch Linux.
>
>\starttext
>\startMPcode
>draw externalfigure "test.pdf" scaled 10mm;
>\stopMPc
.
\starttext
\startMPcode
draw externalfigure "test.pdf" scaled 10mm;
\stopMPcode
\stoptext
Now it produces a graphic with size of approximately 110 mm at least in
my system with various test files which previously scaled just fine..
Any help is greatly appreciated.
scaled scaled the original siz
Hello!
The simple Metapost code that follows worked fine until upgrading to recent
beta. I don't have a clue exactly when this behaviour was introduced since I
switched just recently from the standard Texlive version available in Arch
Linux.
\starttext
\startMPcode
draw externalfigure
]
\placefigure[][#1]{#2}{\externalfigure[#3][#4]}
\stopfloatcombination
\stopplacefigure}
\input knuth
\myfig{fig1}{This is FIG1}{any.jpg}{scale=250}
\input knuth
\input knuth
\stoptext
___
If your question
ernalfigure[cowi][cow.pdf][object=no,width=.3\textwidth]
\define[1]\FIG{%
\section{#1}
\startcombination[3*1]
{\externalfigure[milli][color=#1]} {grey}
{\externalfigure[dodog][color=#1]} {grey}
{\externalfigure[dodob][color=#1]} {bitmap}
\stopcombination
}
\starttext
%\FIG{blue}
%\FIG{m
On 3/18/2019 7:45 PM, Henning Hraban Ramm wrote:
\externalfigure has a "color" parameter. It used to be possible to
colorize greyscale pictures with that, but it doesn’t work any more:
%%%
\setupcolors[state=start]
\setupexternalfigures[
location={local,global,default},
]
\externalfigure has a "color" parameter. It used to be possible to colorize
greyscale pictures with that, but it doesn’t work any more:
%%%
\setupcolors[state=start]
\setupexternalfigures[
location={local,global,default},
]
\starttext
\externalfigure[img/minidodo_g][width=.3
utfile},
output=\externalfilterbasefile.png, readcommand=\ExternalFigure,
continue=yes, read=yes, cache=yes, purge=no,]
\def\ExternalFigure#1{\externalfigure[#1]}
\traceexternalfilters
\starttext
\startwordcloud
Een bak cijfers vertalen naar een visuele weergave kan ervoor zorgen dat
statis
ercommand={/Program Files/Java/jre1.8.0_181/bin/java
> >
> > -jar /context/wordcloud/ibm-word-cloud.jar
> >
> > -c /context/wordcloud/examples/configuration.txt
> >
> > -w 800
> >
> > -h 600
> >
> > -o \externalfilteroutputfile\space
> &
/wordcloud/ibm-word-cloud.jar
-c /context/wordcloud/examples/configuration.txt
-w 800
-h 600
-o \externalfilteroutputfile\space
-i \externalfilterinputfile},
output=\externalfilterbasefile.png,
readcommand=\ExternalFigure,
continue=yes,
purge=no,]
\def\ExternalFigure#1{\externalfigure[#1]}
-h 600
-o \externalfilteroutputfile\space
-i \externalfilterinputfile},
output=\externalfilterbasefile.png,
readcommand=\ExternalFigure,
continue=yes,
purge=no,]
\def\ExternalFigure#1{\externalfigure[#1]}
\starttext
\startwordcloud %[width=100]
Thus, I came to the conclusion that the designer of a n
)4234 4232},
email={peter.jan...@gmail.com},
date={\currentdate},
signature={\externalfigure[autograph][height=4\lineheight]\\\correspondenceparameter{name}},]
% END LETTER SETUP, START LETTER
\startletter
[subject={Outstanding Invoices},
opening={Dear Sir,},
closing={Kind Regards
On Sun, Feb 24, 2019 at 07:38:42AM +0900, Jeong Dal wrote:
> Dear Rudolf,
>
> It is working for me.
> Using my figure, I got
> (45126287sp,31048991sp)
>
> (1372,944)
>
>
> As Hans said, either change ~ to some path or set the directory of
> externalfigure.
On 2/24/2019 12:25 AM, mf wrote:
BTW \startsidebar ... \stopsidebar stopped working too.
i'll upload a fix later today
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061
value)
with the current (20190222) beta.
\setupexternalfigures[location=default]
\starttext
\externalfigure[cow.pdf]
\stoptext
Down for just me, or for everyone?
i'll fix it (low level cleanup going
Dear Rudolf,
It is working for me.
Using my figure, I got
(45126287sp,31048991sp)
(1372,944)
As Hans said, either change ~ to some path or set the directory of
externalfigure.
Best regards,
Dalyoung
> 2019. 2. 24. 오전 5:58, ntg-context-requ...@ntg.nl 작성:
>
> I fear it doesn'
\externalfigure[cow.pdf]
\stoptext
Down for just me, or for everyone?
i'll fix it (low level cleanup going on)
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt
externalfigures[location=default]
>\starttext
>\externalfigure[cow.pdf]
>\stoptext
>
> Down for just me, or for everyone?
>
> --
> Rik
My context exits normally (ConTeXt ver: 2018.03.16 22:20 MKIV beta fmt:
With the following example, I get:
...eXt/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:238: attempt to
call upvalue 'imgwrap' (a nil value)
with the current (20190222) beta.
\setupexternalfigures[location=default]
\starttext
\externalfigure[cow.pdf]
\stoptext
Down
:= \getdocumentargument{File} ;
ThePage := \getdocumentargument{Page} ;
draw textext("\externalfigure[" & FileName &"][page=" & ThePage &"]")
xysized (48in,48in) ;
\stopMPpage
\stoptext
I can get in the MPpage the page number in entry (9 in my example), but n
humans had ever evolved or not.
\placefigure
[][fig:church]
{Stephanus Church.}
{\externalfigure[ma-cb-24][width=.4\textwidth]}
\stopprettyblock
\setupindenting[next]
Below, we have two separate columns; but up here, for the nonce, we have but
the one.
\startcolumns [n=2]
Text, text, text \dots
,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a
fatal illness. Several, in fact.\par \setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.
\externalfigure[cow.pdf
e,
>align={flushleft}]
> {The Earth, as a habitat for animal life, is in old age and has a
> fatal illness. Several, in fact.\par \setupindenting[yes, small] It
> would be happening whether humans had ever evolved or not.
>
> \externalfigure[cow.pdf][width=1cm]}
>
> \setupwhi
>foreground=color,foregroundcolor=white,
>align={flushleft}]
> {The Earth, as a habitat for animal life, is in old age and has a
> fatal illness. Several, in fact.\par \setupindenting[yes, small]
> It would be happening whether humans had ever evolved or not.
>
. Several, in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.
\externalfigure[cow.pdf][width=1cm]}
\setupwhitespace[small]
\starttext
Below, we have two separate columns; but up here, for the nonce, we have but
the one.
\startcolumns[n=2] % Two
It's the same as with text, but instead of text you put
\externalfigure[path/to-figure.pdf][setup=value]
inside the parenthesis { }:
\setuppapersize[A5]
\starttext
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align
u have a
> "natural size". But that doesn't matter, if you want other dimensions.
For example, in Context
\externalfigure [myfigure]
should give this natural size. Of course, you can always specify other
dimensions,
in which case it gets scaled. Since what counts for our use in Context
uot;degrade" pixel resolution to whatever value one desires, then setting
global macro (\FigRes) to this subdirectory name.
So, for example,
\def\FigRes{300/}
...
\externalfigure [\FigRes MyFigureName]
I do this as I have *very* high resolution images as my source
(also high resolution
and mill.png
cache=/tmp,% where to put the low resolution images
resolution=50, % resolution in DPI
conversion=downsample.pdf] % use this module
\starttext
\externalfigure[hacker][width=0.4\textwidth]
\setupexternalfigures[resolution=20]
\externalfigure[mill
,% where to put the low resolution images
resolution=50, % resolution in DPI
conversion=downsample.pdf] % use this module
\starttext
\externalfigure[hacker][width=0.4\textwidth]
\setupexternalfigures[resolution=20]
\externalfigure[mill][width=4in, height=3in]
\setupexternalfigures
ion(oldname,newname,resolution)
> os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
>end
>
>figures.converters["jpg"]["lowres.jpg"] =
>function(oldname,newname,resolution)
> os.execute(string.format('gm convert "%
ldname,newname,resolution)
os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
end
-- figures.suffixes["lowres.png"] = figures.suffixes.png -- suffix is
automatically done
\stopluacode
\enabletrackers[graphics*]
\starttext
\externalfi
ing time: 0.021 seconds including tex, 14
processed images, 14 unique asked, 7 bad names
A small test:
\starttext
\externalfigure [a] %% good
\externalfigure [a.png] %% good
\externalfigure [a.b.png] %% good
\externalfigure [a.1.png] %% bad
\externalfigure [a-1.
y the last
footnote is placed in the output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\text
k]
>>> \page[empty,right]
>>> \popbackground}
>>> \stopsetups
>>>
>>> \setuphead
>>> [chapter]
>>> [page=yes,
>>>before=\directsetup{chapter:before}]
>>>
>>> \starttext
>>>
>>&
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth}]}
\stopfloatcombination
--
>
> Message: 2
> Date: Sun, 13 Jan 2019 21:06:42 +0100
> From: Wolfgang Schuster
> To: mailing list for ConTeXt users , Lars
>
> Subject: Re: [NTG-context] Footnotes in float combinations missing in
> output
> Message-ID:
> Content-Type: text/pla
}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth
rendered properly, i. e. only the last footnote is placed in the
output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote
]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth}]}
\stopfloatcombination
\stopplacefigure
\stoptext
far: Some of my old pdf
> images are not accepted as figures anymore.
>
> Example:
>
> \starttext
> \externalfigure[cardioid.pdf][width=1.5in]{Cardioid}
> \stoptext
> Using the following pdf which is version 1.4
>
>
> More recent PDFs (1.5)seem to wor
Dear List,
After a while I decided updating my ConTeXt installation to ConTeXt ver:
2019.01.07 10:07 MKIV beta fmt: 2019.1.7.
With an old document of mine I ran into two issues so far: Some of my old pdf
images are not accepted as figures anymore.
Example:
\starttext
\externalfigure
\startplacefigure[
title={Caption},
location=left]
\externalfigure[logo--context][width=]
\stopplacefigure
\input tufte
\stoptext
Greetings, Lars.
___
If your question is of interest to others as well
[packed, autointro]
\starttext
\startitemize
\startitem
Foo
\startplacefigure [title=Lorem ipsum dolor sit amet consectetur]
\externalfigure [hacker]
\stopplacefigure
Bar
\stopitem
\dorecurse{15}{%%
\startitem Foobar \stopitem
}
\stopitemize
\stoptext
701 - 800 of 3793 matches
Mail list logo