Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread Otared Kavian
gure[dummy] > > \starttext > \startplacefigure[location=left,number=no,title={}] > \externalfigure[dummy][width=.45\textwidth] > \stopplacefigure > \dontleavehmode % if this is commented out then the text and the figure are > placed on top of each other > \startfra

[NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-09 Thread Otared Kavian
={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end figure-framedtext.tex In the above

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Wolfgang Schuster
as well but the input is different because everything is hidden. \starttext \startplacefigure[title={A combination of three figures}]     \startcombination[3*1]     {\externalfigure[image-1.pdf][width=4cm]}{a}     {\externalfigure[image-2.pdf][width=4cm]}{b}     {\externalfigure[image-3

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
text > > \startplacefigure > {\startplacefigure[location=none] > \startcombination[2*1]% > {\startcombination[1*2]% > {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} > %{a} >\stopcombination% > % OR > % {\startcomb

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Wolfgang Schuster
the figure \startcombination[3*1] {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1 {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2 {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Tomas Hala
\startplacefigure {\startplacefigure[location=none] \startcombination[2*1]% {\startcombination[1*2]% {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} %{a} \stopcombination% % OR % {\startcombination[1*2]% % {\framed[width=6cm]{a}}{}{\externalfigure

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
] {\startcombination[2*1] {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} {\startcombination[1*2] {\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Tomas Hala
Hi Otared, maybe there is a better, more system solution, but the following works: \setupcaptions[figure][location=bottom] \startplacefigure[title={A combination of three figures}] % this title appears below the figure \startcombination[3*1] {\framed[width=4cm]{a}}{\externalfigure[image-1

[NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
] {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1 {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2 {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image-3 \stopcombination}{} \stopplacefigure

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
}}{}{% if image empty }{% \directsetup{noheader} \vbox{% {\ChapterFont\structurevariable{title}\par}% \blank[big] \externalfigure[img/\structureuservariable{image}][width=0.8\textwidth]\par } \doifnot{\structureuservariable{vita}}{}{% if vita \vfill \vbox

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
ething >    {\datasetvariable{chapter}{\ChapterCounter}{image}} >    {\startlayout[page] >     \centerbox{\externalfigure > [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]} >     \stoplayout}} > > \stopsetups > > \setuphead >   [chap

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
}}    {\startlayout[page]     \centerbox{\externalfigure [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]}     \stoplayout}} \stopsetups \setuphead   [chapter]   [page=,    beforesection=\directsetup{chapter:before}, insidesection={\setdataset[chapter][\ChapterCounter][image

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter [title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
[title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter [title={baz}] \input knuth \stopchapter \stoptext

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
width (or \printpaperwidth) or one of the >> following methods. >> begin example >> \setupexternalfigures[location=default] >> \setuplayout[tight] >> \showframe >> \starttext >> \centerbox{\externalfigure[mill.png][width=\textwidth]} >> \page >>

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Hans Hagen
] \showframe \starttext \centerbox{\externalfigure[mill.png][width=\textwidth]} \page \centerbox{\externalfigure[mill.png][width=\paperwidth]} \page \centerbox{\externalfigure[mill.png][factor=max]} \page \centerbox{\externalfigure[mill.png][factor=min]} \stoptext end example \pagewidth etc

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Wolfgang Schuster
in details.pdf) I can't find \pagewidth in the current versison of details.pdf. As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of the following methods. begin example \setupexternalfigures[location=default] \setuplayout[tight] \showframe \starttext \centerbox{\externalfigure

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Pablo Rodriguez
details.pdf) Hi Gerben, doesn’t this work for you? \setuplayout[page] \starttext \externalfigure[foo.pdf][width=\paperwidth] \stoptext Just in case it helps, Pablo -- http://www.ousia.tk ___ If y

[NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
Why doesn't \starttext \externalfigure[foo.pdf][width=\pagewidth] \stoptext work? Without [width=\pagewidth] it works. ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
the page width and page height dimens for use in my macros. G > On 19 May 2020, at 11:58, Gerben Wierda wrote: > > Why doesn't > > \starttext > \externalfigure[foo.pdf][width=\pagewidth] > \stoptext > > work? Without

Re: [NTG-context] long caption in 2-page spread

2020-05-07 Thread jbf
spread in the first instance: \startpostponing     \setuppagenumbering[state=stop]     \startspread     \startplacefigure[location=here,title={This is a cow!}]     \externalfigure[cow.pdf][height=\textheight]%     \stopplacefigure     \stopspread     \setuppagenumbering[state=start

[NTG-context] conflict between colored emoji and save/restore

2020-05-06 Thread Ulrike Fischer
% is not there \stoptext The problem is that the coordinate transformation from the restore ends inside the emoji code: /Span << /ActualText >> BDC q 0.000 g 1 0 0 1 -70.867 -714.33967 cm %< BT (Such an save/restore part is e.g. inserted with a scaled graphics: \externalfigure[tinypi

[NTG-context] long caption in 2-page spread

2020-05-04 Thread jbf
, but to no avail. Perhaps this is asking too much, but there may be a workaround. Julian \startpostponing     \setuppagenumbering[state=stop]     \startspread     \startplacefigure[location=here,title={This is a cow!}]     \externalfigure[cow.pdf][height=\textheight]%     \stopplacefigure

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Hans Hagen
, such that there is no gap. I have tried a number of fairly crass attempts (obviously too simple) to see if I could get somewhere near what I want, e.g. \externalfigure[plate12.jpg][width=\paperwidth, height=.7\paperheight, frame=none] {\tfx \sc Plates 12, 13. \tfx Twenty trucks from the Netherlands setting

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
width=\maxWidth, height=\maxHeight, ]{% \doifinstringelse{h}{#2}{% \externalfigure[#4][height=\maxHeight]% }{% \externalfigur

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
{2}{1}]{% \externalfigure[filename][ width=2\paperwidth, height=.5\paperheight]% }% }% On Wed, Apr 29, 2020 at 5:05 PM jbf wrote: > > Hi list, > > With 99% of work complete on a book, including single page images, I now find > myself confronted with

[NTG-context] image across 2 page spread

2020-04-29 Thread jbf
of fairly crass attempts (obviously too simple) to see if I could get somewhere near what I want, e.g. \externalfigure[plate12.jpg][width=\paperwidth, height=.7\paperheight, frame=none] {\tfx \sc Plates 12, 13. \tfx Twenty trucks from the Netherlands setting off} \externalfigure[plate13.jpg

Re: [NTG-context] Text around an image

2020-04-17 Thread Fabrice Couvreur
; command=\ItemCommand] > > \setupitemgroup > [itemize:2] > [lefttext=, > righttext=, > option={a,text}] > > \starttext > > \startitemize > \startitem > Justifier que \m{x>4} et \m{y>2}. > \stopitem > \p

[NTG-context] Text around an image

2020-04-16 Thread Fabrice Couvreur
\startitemize \startitem Justifier que \m{x>4} et \m{y>2}. \stopitem \placefigure[right,none]{}{\externalfigure [dummy]} \startitem Pour calculer la valeur de \m{y} en fonction de \m{x}, l'urbaniste a écrit la fonction en Python. \starti

Re: [NTG-context] Float positioning

2020-04-09 Thread Geert Dobbels
Hello, Maybe I did not understand the problem, but doesn't the code below give you the expected result?: \setupexternalfigures[location={local,default}] \starttext \dorecurse{3}{\input{knuth}} \placefigure[force]{cow}{\externalfigure[cow][width=150mm]} \input{knuth} \placefigure[force,page

Re: [NTG-context] Float positioning

2020-04-06 Thread Tomas Hala
{{\externalfigure[#2][#3]}} \advance\myht by -\wd0 \myht=.5\myht \myxx=\myht \divide\myxx by \lineheight \mysp=\myxx \advance\mysp by 1 \setupfloat[figpage][toffset=\myht] \setupcaption[figpage][spaceafter=\the\mysp*big] \startplacefigpage[location={here},title=#1] {\externalfigure[#2

Re: [NTG-context] Float positioning

2020-04-06 Thread Alexey Kryukov
e" and "rightpage" instead of "page" and > it seems to be ok. > > \placefigure[rightpage]{one more cow}{\externalfigure[cow] > [width=150mm]} \placefigure[leftpage]{cow again}{\externalfigure[cow] > [width=150mm]} > > Best wishes, > > Tomá

Re: [NTG-context] Float positioning

2020-04-06 Thread Tomas Hala
Hi Alexey, I do not how free are you in decision where figures should be located but I tried with "leftpage" and "rightpage" instead of "page" and it seems to be ok. \placefigure[rightpage]{one more cow}{\externalfigure[cow][width=150mm]} \placefigure[leftpage]{

[NTG-context] Float positioning

2020-04-06 Thread Alexey Kryukov
Hi all, Suppose I have the following document: \setupexternalfigures[location={local,default}] \starttext \dorecurse{3}{\input{knuth}} \placefigure[top]{cow}{\externalfigure[cow][width=150mm]} \input{knuth} \placefigure[page]{one more cow}{\externalfigure[cow][width=150mm]} \placefigure[page

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
\userpagenumber \stopframed \par \startframed[height=3cm,width=max,offset=overlay] \startframed[width=0.25\hsize,height=max] \externalfigure[dummy][height=1.9cm] \stopframed \startframed[width=0.50\hsize

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
t[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm] \setupcaptions[location=none] \setupbackgrounds[header][text][background={Logos}, state=repeat] \defineoverlay [Logos][{ \framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none]{ \framed[width=0.280\textwidth,

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
d[width=0.280\textwidth, height=3cm, align=right, frame=off] {\placefigure[force][]{none}{\externalfigure[somepic.png][height=1.9cm]} } \framed[width=0.430\textwidth, height=3cm, align=middle, frame=off] {\crlf\tfa \crlf \bf Technical Report} \framed[width=0.370\textwidth, height=3cm,

[NTG-context] \setupinteraction[style=...] supersedes manual text style for \note

2020-04-01 Thread Benjamin Buchmuller
] \starttext This is the footnote\footnote[one]{aha} and the reference\note[one]. This is the endnote\endnote[two]{oho} and the reference\note[endnote][two]. Let's look \in[one]. \startplacefigure[title={And in this float\endnote[three]{hmm} and the reference\note[three].}] \externalfigure[cow

Re: [NTG-context] running gnuplot failure

2020-03-29 Thread Jan-Erik Hägglöf
y=\\sin(x)$' > set xlabel 'This is the $x$ axis' > set ylabel 'This is the $y$ axis' > > plot [0:6.28] [0:1] sin(x) > ]]) > \stopluacode > > \starttext > >\externalfigure[m-gnuplot-demo.

Re: [NTG-context] running gnuplot failure

2020-03-29 Thread Hans Hagen
io.savedata("m-gnuplot-demo.gp", [[ set format xy "$%g$" set title 'This is a plot of $y=\\sin(x)$' set xlabel 'This is the $x$ axis' set ylabel 'This is the $y$ axis' plot [0:6.28] [0:1] sin(x) ]]) \stopluacode \starttext \externalfigure[m-gnuplot-demo.gp][conv

Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Tomas Hala
ar. And for the piece of code, too. Best wishes, Tomáš # # \setupexternalfigures # [location=default] # # \setupcaption # [figure] # [spaceinbetween=none, # width=max, # align=middle] # # \starttext # # \startplacefigure[location=top,title=Cow] # \externalfigure[cow]

Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Wolfgang Schuster
ures [location=default] \setupcaption [figure] [spaceinbetween=none, width=max, align=middle] \starttext \startplacefigure[location=top,title=Cow] \externalfigure[cow][height=4cm] \stopplacefigure \samplefile{knuth} \startplacefigure[location=right,titl

[NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Tomas Hala
for location=right? (The line break appears only the width of the figure becomes too small.) Tested with TL2019 and with version from Mar 6, 2020. Best wishes, Tomáš %% MWE: \starttext \setupcaption[figure][textcommand=\crlf] \startplacefigure[location=top,title=Cow] \externalfigure[cow.jpg][height

Re: [NTG-context] startcombination place reference left of images instead below

2020-03-26 Thread Wolfgang Schuster
that works or \itemtag simply ignores it which would explain amongst others why it stayed undocumented. Anyway i do get my Subfigure tags positioned and aligned the way i need it. \setupexternalfigure[location=default] \starttext \starttabulate[|l|l|] \NC A \NC \tbox{\externalfigure[hacker]} \NC

Re: [NTG-context] repeat a page inside a document

2020-02-27 Thread context
at Pablo.mkiv --mode=1 & move /y Pablo.pdf Pablo_.pdf & Ctx.bat Pablo.mkiv --mode=2 Best regards, Lukas On 2020-02-06 16:28, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \input knuth \page[right] \setuplayout[page] \externalfigur

Re: [NTG-context] Repeat backgrounds on slides

2020-02-15 Thread Jan U. Hasecke
\structureuservariable – this is really cool. Thanks a lot Wolfgang. juh Am 14.02.20 um 19:53 schrieb Wolfgang Schuster: > \setupexternalfigures[location=default] > > \defineoverlay > [SlideBackground] > [\doifsomething > {\structureuservariable{background}} >

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Wolfgang Schuster
peat] > > Thanks. There was a dark idea of this in the back of my brain. > > > > > In your case a simple overlay is the simpler solution to get repeated > > images on every page, i.e. > > > > \defineoverlay [bg:hs2020-mond] > > [{\externalfigure[backgro

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Jan U. Hasecke
lay is the simpler solution to get repeated images > on every page, i.e. > > \defineoverlay [bg:hs2020-mond] > [{\externalfigure[background.jpg][height=\paperheight]}] > > or > > \defineoverlay [bg:hs2020-mond] [\overlayfigure{background.jpg}] Is this defining and se

Re: [NTG-context] Repeat backgrounds on slides

2020-02-13 Thread Wolfgang Schuster
bg:hs2020-mond] > [x=0mm, y=0mm] > {\externalfigure[background.jpg][height=\paperwidth]} > > Ususally I call the background after a head command like \starttitle or when I > create slides like this > > \startslide[title={foobar}] > \setupbackgrounds[page][background=

[NTG-context] Repeat backgrounds on slides

2020-02-13 Thread juh
Hi all, I am a little bit confused as I never had this problem, although I often use backgrounds and layers. \definelayer[bg:hs2020-mond] [x=0, y=0, width=\paperwidth, height=\paperheight] \setlayer[bg:hs2020-mond] [x=0mm, y=0mm] {\externalfigure[background.jpg][height=\paperwidth]} Ususally I

[NTG-context] upload

2020-02-11 Thread Hans Hagen
as in: \usemodule[gnuplot] \starttext \externalfigure[gpdemo.gp][conversion=svg,width=4cm] \externalfigure[gpdemo.gp][conversion=svg,width=8cm] stoptext a new terminal feature is under investigation by Mojca and me but this is a start - support for ecmascript for those who think thayt javascript

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
[blank] \startmidaligned \externalfigure[tab_bacblanc.pdf] \stopmidaligned \stoplinecorrection {\bi Affirmation 2 :} La courbe représentative \CScript{C}{f} de la fonction \m{f} admet une et une seule tangente parallèle à l'axe des abscisses

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
On Thu, 6 Feb 2020 16:28:04 +0100 Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \input knuth > \page[right] > \setuplayout[page] > \externalfigure[\jobname.pdf][page=1] > \stoptext > > M

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Thomas Savary
t; \setuplayout[page] > \externalfigure[\jobname.pdf][page=1] > \stoptext > > My question is how to get a page from the document you‘re compiling > repeated inside the same document. > > I have tried to search both i-context.pdf and the wiki, but “mirror” and > “

[NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \input knuth \page[right] \setuplayout[page] \externalfigure[\jobname.pdf][page=1] \stoptext My question is how to get a page from the document you‘re compiling repeated inside the same document. I have tried

Re: [NTG-context] [question] \clipping some data from a pdf

2020-01-30 Thread Aditya Mahajan
PDF boxes (MediaBox, TrimBox, CropBox, ArtBox), you can set \externalfigure[drawing][size=art] (size=none/media/crop/trim/art). This was documented at https://www.contextgarden.net/Command/useexternalfigure but I also added a short description at https://www.contextgarden.net/Using_Graphic

Re: [NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Henning Hraban Ramm
rtBox), you can set \externalfigure[drawing][size=art] (size=none/media/crop/trim/art). Best, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Floris van Manen
Does anyone know? Using the latest LMTX, i try to clip some portion of an external pdf page, then resize that portion on top a new page. i use the \clip command. \starttext \scale[width=100mm, hwight=100mm]{\clip[width=150mm, height=120mm, hoffset=30mm, voffset=40mm]{\externalfigure[drawing.pdf

Re: [NTG-context] removing extra margins

2020-01-28 Thread Henri Menke
On 1/29/20 10:09 AM, Pablo Rodriguez wrote: > Dear list, > > I need to add a PDF page, but removing extra margins that it contains. > > A sample would be: > > \setupexternalfigures[location=default] > \starttext > \externalfigure[cow.pdf] > \stop

[NTG-context] removing extra margins

2020-01-28 Thread Pablo Rodriguez
Dear list, I need to add a PDF page, but removing extra margins that it contains. A sample would be: \setupexternalfigures[location=default] \starttext \externalfigure[cow.pdf] \stoptext How could I crop 2ex from the left and top margins in the code above? Many thanks for your

Re: [NTG-context] checking whether file is landscape or portrait

2020-01-28 Thread Wolfgang Schuster
ode, but it has not > failed me yet. > > \newdimen\MYfigurewidth > \newdimen\MYfigureheight > \unexpanded\def\MYgetfiguredimensions > {\dodoubleempty\MYdogetfiguredimensions} > > \def\MYdogetfiguredimensions[#1][#2]% > {\setbox0=\hbox{\externalf

Re: [NTG-context] checking whether file is landscape or portrait

2020-01-28 Thread Pablo Rodriguez
{\noffigurepages} {\externalfigure[a-test.pdf][page=\recurselevel]} \stoptext But after a closer inspection, the docuemnts are properly malformed. They include some top and left extra margins. Is there any way to remote those extra margins? (Offset doesn’t seem to work here.) Many thanks

Re: [NTG-context] checking whether file is landscape or portrait

2020-01-28 Thread Taco Hoekwater
\unexpanded\def\MYgetfiguredimensions {\dodoubleempty\MYdogetfiguredimensions} \def\MYdogetfiguredimensions[#1][#2]% {\setbox0=\hbox{\externalfigure[#1][#2]}% \MYfigurewidth=\wd0 \MYfigureheight=\ht0 } And used like: \MYgetfiguredimensions[cow.pdf][page=1] \ifdim

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
>> frame=on, >> framecolor=magenta, >> ] >> >> >> \starttext >> \startcolumnset[Two] >> >> \dorecurse{10}{\fakewords{100}{120}\par} >> >> \setupcolumnsetarea[AdSpace][state=start] >> \setupcolumnsetareatext[AdSpace]{\ext

Re: [NTG-context] columnset issues

2020-01-27 Thread Wolfgang Schuster
, frame=on, framecolor=magenta, ] \starttext \startcolumnset[Two] \dorecurse{10}{\fakewords{100}{120}\par} \setupcolumnsetarea[AdSpace][state=start] \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]} You need brackets for both arg

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
\startcolumnset[Two] \dorecurse{10}{\fakewords{100}{120}\par} \setupcolumnsetarea[AdSpace][state=start] \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]} \fakewords{200}{200} \stopcolumns

Re: [NTG-context] columnset issues

2020-01-26 Thread Henning Hraban Ramm
[ grid=yes, ] \showframe[text] \showgrid \definecolumnset[Two][ n=2, page=no, ] \definecolumnsetarea[AdSpace][ x=1,y=20, nx=1,ny=20, state=stop ] \starttext \startcolumnset[Two] \fakewords{20}{30} \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45

[NTG-context] placing layers

2020-01-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupexternalfigures[location=default] \starttext \definelayer[abc][hoffset=1cm, voffset=5cm] \setlayer[abc]{\externalfigure[cow.pdf][frame=on]} \definelayer[xyz][hoffset=12cm, voffset=5cm] \setlayer[xyz]{\externalfigure

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
ffer{Quote}{ \doifoddpageelse {\page[left]} {\donothing} {\definedfont[SerifItalic at 16pt]\quotation{\getbuffer[Quote]}\par} \externalfigure[\PreImg][width=\textwidth] \resetbuffer[Quote] }{} \page[right] \stopsetups \setupheadertexts[][pagenumber][pagenumber][chapter] \setuphe

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
rvariable{subtitle}}{}{ \doifoddpageelse {\page[left]} {\donothing} {\definedfont[SerifItalic at 16pt]\structureuservariable{subtitle}\par} \externalfigure[dummy][width=\textwidth] } \page[right] \stopsetups \setupheadertexts[][pagenumber][pagenumber][chapter] \setuphead[ch

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
idth]{% \externalfigure[dummy][width=\textwidth]% } %\hfill\vfill\strut % doesn’t help \stopstandardmakeup } \page[right] % \framed[ width=\textwidth, offset=overlay, align=flushleft, ]{% \definedfont[Sans at 32pt]%#2 \structurevariable{title}% }% } \setupheadertexts[][pagenu

[NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
able{subtitle}}{}{% \startstandardmakeup \framed[ width=\textwidth,height=fit, offset=overlay, align=flushleft, ]{% \definedfont[SerifItalic at 16pt] \structureuservariable{subtitle}% } \framed[width=\textwidth]{% \externalfigure[dummy][width=\textwidth]% } %\hfill\v

[NTG-context] new beta

2019-12-27 Thread Hans Hagen
[figure] [align=tolerant] \starttext \startplacefigure[title={\samplefile{jojomayer}}] \externalfigure[hacker][width=.75\textwidth] \stopplacefigure \setupcaption [figure] [hang=yes] \startplacefigure[title={\samplefile{jojomayer}}] \externalfigure[hacker][width=.75\textwidth] \s

Re: [NTG-context] Watermark is behind \externalfigure

2019-12-27 Thread Wolfgang Schuster
}{\overlaywidth}{\overlayheight}{\color[Watermark]{\CONTEXT}}}] \defineoverlay   [watermark]   [{\scale[factor=fit]{\color[Watermark]{\CONTEXT}}}] \setupexternalfigure[location=default] \starttext \externalfigure[mill][background={foreground,watermark}] \stoptext Wolfgang

[NTG-context] Watermark is behind \externalfigure

2019-12-26 Thread Jon Wong
Any way to put the watermark in front? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
, as well as using \startuseMPgraphic for direct compilation from ConTeXt. Many thanks for all the help. >>> SNIPPET <<< \startbuffer[tblcard] \strut \definelayer[tblplacecard] \setlayer[tblplacecard][x=-1em,y=1em]{% \externalfigure[figures/apollonius/apo

Re: [NTG-context] Transparency in PNGs becomes black in PDF/X

2019-12-20 Thread Henning Hraban Ramm
>> try to make an PDF/X. >> >> I hope that is solvable... >> >> \setupbackend[format=PDF/X-1a:2001] >> >> \starttext >> \externalfigure[kinder/esel_kl] >> \stoptext >> >> >> Best, Hraban >> >> __

Re: [NTG-context] Transparency in PNGs becomes black in PDF/X

2019-12-20 Thread luigi scarso
cy. > > > Peter > > confirmed, this is ok. \setupbackend[format=PDF/X-4p] \starttext \externalfigure[esel_kl.png] \stoptext > -- luigi ___ If your question is of interest to others as well, please add

Re: [NTG-context] Transparency in PNGs becomes black in PDF/X

2019-12-20 Thread Peter Rolf
ink this is the same problem that I had in Bassenge: > The transparent part of PNGs like the attached one becomes black if I > try to make an PDF/X. > > I hope that is solvable... > > \setupbackend[format=PDF/X-1a:2001] > > \starttext > \externalfigure[kinder/esel_kl]

[NTG-context] Transparency in PNGs becomes black in PDF/X

2019-12-19 Thread Henning Hraban Ramm
I think this is the same problem that I had in Bassenge: The transparent part of PNGs like the attached one becomes black if I try to make an PDF/X. I hope that is solvable... \setupbackend[format=PDF/X-1a:2001] \starttext \externalfigure[kinder/esel_kl] \stoptext Best, Hraban

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
rs. > > 2. You can use \setlayerframed to put paragraphs in a layer. > > > \setuppapersize[A4,landscape] > > \setupexternalfigures[location=default] > > \definelayer[LAY] > > \starttext > > \startbuffer > > \setlayerframed >   [LAY] >   [x=0

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Wolfgang Schuster
in a layer. \setuppapersize[A4,landscape] \setupexternalfigures[location=default] \definelayer[LAY] \starttext \startbuffer \setlayerframed   [LAY]   [x=0pt,    y=-8pt]   [frame=off,    width=.35\textwidth,    align={normal,tolerant}]   {\externalfigure[cow][width=\hsize]    \blank[line

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
- MWE - \setuppapersize[A4,landscape] \setupexternalfigures[location={default}] \starttext \definelayer[LAY]% \setlayer[LAY][x=0pt,y=-8pt]% {% \vbox {% \hsize=.35\textwidth \externalfigure[cow][width=\hsize]% \vskip\lineheight \input tufte

Re: [NTG-context] GraphicsMagick corrupts TIFF upon PDF conversion

2019-12-16 Thread Hans Hagen
,newname)) end \stopluacode \starttext \externalfigure [t:/sources/hacker.jpg] [conversion=lowres.jpg,resolution=50,width=10cm] \stoptext with gm replaced by whatever is needed to call imagemagick Hans -

Re: [NTG-context] Place externalfigure anywhere on page

2019-12-04 Thread Wolfgang Schuster
Jon Wong schrieb am 04.12.2019 um 20:19: A real float. Is that possible? Can you give more details. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Place externalfigure anywhere on page

2019-12-04 Thread Jon Wong
A real float. Is that possible? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

[NTG-context] beta

2019-10-28 Thread Hans Hagen
efficient runtime anbyway) but for artistic images a mixture might work out ok. In principle inclusion with externalfigure also works when conversion=mps is set but, although I have some 1500 test images, not all might work out well. There can be a lot of crap be hidden in svg files and angl

Re: [NTG-context] columns and footnotes

2019-10-21 Thread Hans Hagen
Hi, just a remark: \startlinecorrection \stoplinecorrection is meant for stuff like \startlinecorrection \framed{} \stoplinecorrection \startlinecorrection \externalfigure[...] \stoplinecorrection \startlinecorrection \startMPcode ... \stopMPcode \stoplinecorrection in the main text

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Wolfgang Schuster
\startxcell \dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell \startxcell \dontleavehmode \externalfigure[cow.pdf

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Pablo Rodriguez
On 10/19/19 1:51 PM, Otared Kavian wrote: > Hi Pablo, > > Yes, I can confirm that the PDF file is distorted by LMTX (version > 2019.10.11 15:47) when included in another file with the command > \externalfigure (even when the latter command is surrounded by > \startplacefigure..

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
> \setuppapersize[A3, landscape] > > \starttext > > \externalfigure[fc-first.pdf] > > \stoptext > > > > 1. LuaTeX inserts the document fine. > > > > 2. LMTX inserts the document distorting its aspect. > > > > I’m afraid this mi

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
On Sat, Oct 19, 2019 at 12:07:03PM +0200, Pablo Rodriguez wrote: > Dear list, > > using the document attached to this message with the following sample > gives different outputs: > > \setuppapersize[A3, landscape] > \starttext > \externalfigure[fc-first.pdf

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Otared Kavian
Hi Pablo, Yes, I can confirm that the PDF file is distorted by LMTX (version 2019.10.11 15:47) when included in another file with the command \externalfigure (even when the latter command is surrounded by \startplacefigure... \stopplacefigure). Hower the output is correct with mkiv (and mkii

[NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Pablo Rodriguez
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

[NTG-context] issue splitting tables and horizontal mode

2019-10-18 Thread Pablo Rodriguez
\dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell \startxcell \dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell

Re: [NTG-context] issue with images in frames

2019-10-18 Thread Hans Hagen
\dontleavehmode\dorecurse{100}{ \externalfigure[cow.pdf][scale=50] } \stopxcell \startxcell \input zapf \stopxcell \stopxrow \stopxtable \stoptext Some time ago, there were no difference

Re: [NTG-context] issue with images in frames

2019-10-17 Thread Wolfgang Schuster
}{ \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

[NTG-context] issue with images in frames

2019-10-17 Thread Pablo Rodriguez
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

Re: [NTG-context] \numexpr in \rotate error

2019-10-16 Thread Hans Hagen
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

[NTG-context] \numexpr in \rotate error

2019-10-16 Thread context
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

<    2   3   4   5   6   7   8   9   10   11   >