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,
in L
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
* ArtBox is neglectable 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 als
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
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
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
\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 and
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
\starttext
\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]
>
&g
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 attach
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
etuplayout
> [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
&
iddle,
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
Wol
middle,height=middle]
>
> \setupfootertexts
>[margin]
>[]
>[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
>[]
>[{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
>
>
oblem.
\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
\star
rutdp]{\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
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}]
bg][x=0mm,y=0mm]
\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
rt]
\starttext
\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 wante
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
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?
ju
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 different
ould 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:
On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote:
Hello list,
I have noticed that some gradients get lost when embedding an external figure
from a pdf (Preview and Acrobat DC and in printer), although the original pdf
works fine for me.
you have to be a bit more precise in des
preparing a MWE, I further realized that I get the correct output when
between \startTEXpage ... \stopTEXpage
\starttext
Embedded via \type{\externalfigure}
PNG
\externalfigure[drawing.png][width=72.631mm,height=21.702mm]
\blank[big]
PDF
\externalfigure[drawing.pdf]
\startTEXpage % this
pecting
"Figure C.1.S.1".
MWE:
\setupfloatcaption[figure][number=yes,way=bytext,prefix=yes,prefixstarter={C.},numberstarter={S.}]
\starttext
\startchapter[title={Cow}]
\startplacefigure[title={Custom caption}]
\externalfigure[cow]
\stopplacefigure
\stopchapter
\stoptext
Not sure whether prefixsta
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
-\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
ding 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
ile 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
ice. It allows great amount 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).
>
.
- 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 is the backing mechanism for including video and audio in
Con
DF
1.5, 2003) and 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
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
ux
> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win
> >
> > MWE
> > \starttext
> > \externalfigure[hacker]
> > [cache=./,
> > conversion=gray.pdf]
> > \stoptext
> >
> > Is it intended behavior?
> sure, something lik
from. mkiv used 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
re.
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 behavior
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 \NC \quad \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" ;
stion:
>> 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
xtable[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
m]
\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 possibl
{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, not
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
on=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
>
]{\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
align={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,
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]
>>
>> \define
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
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)
> {\
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
\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 othe
ewBox="0 0 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 soli
ggray(1)) )
% 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
---
ue as I can 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}]
> \startp
showlayout
\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}
\startpl
[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] \stopplacefigur
,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 . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .
l:xhtml
\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{}
}{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{}{\includesvgbuffer[csvg][convers
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,
red 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
argintext{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}
> \
arrow
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});
\stoptikzpi
gt; \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}
\defineexternalfilter
[externaltikz]
[
bufferbefore=tikz-before,
bufferafter=tikz-after,
cache=yes,
filtercommand={context --batchmode \externalfilterinputfile\space
--purgeall --result=\externalfilteroutputfile},
output={\externalfilterbasefile.pdf},
readcommand=\readPDFfile,
]
\
IKZTEMP")
end
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
\defineexternalf
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
&
401 - 500 of 4002 matches
Mail list logo