Re: [NTG-context] gnuplot module broken with latest 2020-07-13 16:31

2020-07-13 Thread Adam Reviczky
code: 256 > > > > Does the gnuplot module need adjustments? > No, i messed up something ... will be fixed tomorrow > > Do you have lmtx installed? It has nicer gnuplot support: > > m-gnuplot-demo.gp : > > -

Re: [NTG-context] gnuplot module broken with latest 2020-07-13 16:31

2020-07-13 Thread Hans Hagen
e lmtx installed? It has nicer gnuplot support: 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) ------

Re: [NTG-context] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Wolfgang Schuster
precisely: I thought that \placetable is special case (specialization) of \placefloat), I'm a bit surprised that \placefloat[none] keeps caption whilst \placetable[none] supresses it. See the sample: \setupexternalfigures[location=default] \starttext \placetable[force,none]{}{\external

[NTG-context] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Lukas/ConTeXt
ecial case (specialization) of \placefloat), I'm a bit surprised that \placefloat[none] keeps caption whilst \placetable[none] supresses it. See the sample: \setupexternalfigures[location=default] \starttext \placetable[force,none]{}{\externalfigure[cow]} % [1] \placefloat[

[NTG-context] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Lukas/ConTeXt
float[none] keeps caption whilst \placetable[none] supresses it. See the sample: \setupexternalfigures[location=default] \starttext \placetable[force,none]{}{\externalfigure[cow]} % [1] \placefloat[force,none]{}{\externalfigure[cow]} \stoptext (I'm aware that I'm placing \exte

Re: [NTG-context] Resetting image width

2020-07-06 Thread Henning Hraban Ramm
t;> but would like to have some single images defined by height and proportional >> width, like >> >> \externalfigure[dummy][width=auto,height=.5\textheight] >> >> but height and width only take dimensions. >> >> Can you give me a hint? > > N

Re: [NTG-context] Resetting image width

2020-07-06 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 06.07.2020 um 21:03: Hi, for collecting a lot of images into a booklet I set \setupexternalfigures[width=\textwidth,maxheight=\textheight] but would like to have some single images defined by height and proportional width, like \externalfigure[dummy][width=auto

[NTG-context] Resetting image width

2020-07-06 Thread Henning Hraban Ramm
Hi, for collecting a lot of images into a booklet I set \setupexternalfigures[width=\textwidth,maxheight=\textheight] but would like to have some single images defined by height and proportional width, like \externalfigure[dummy][width=auto,height=.5\textheight] but height and width only take

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
t=0pt,width=max,frame=off] > \getinlineuserdata > \stopframedtext} > \stopsetups > > \showframe > \starttext > \startuserdata[margintext] > {\bf Remarque — }\input ward > \stopuserdata > \startuserdata[margintext] > \externalfigure[dummy][width=\rightma

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
\stopframedtext} \stopsetups \showframe \starttext \startuserdata[margintext] {\bf Remarque — }\input ward \stopuserdata \startuserdata[margintext] \externalfigure[dummy][width=\rightmarginwidth] \stopuserdata \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext > On 6

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Marco Patzer
ward > \stopuserdata > \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]} \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=top]} > \startuserdata[margintext] > \input ward > \stopuserdata > \marginfigure{\externalfigure[dummy

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
Hi Marco, Thanks, it works but only for a comment and a picture. Indeed, if I add a comment and an image, the first image is placed on the second comment. Fabrice \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location

Re: [NTG-context] Store images and text in the right margin

2020-07-02 Thread Marco Patzer
align={flushleft,broad}] > {{\bf Remarque — }\getinlineuserdata} > \stopsetups > \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]} Marco ___

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups \showframe \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \startchapter[title=First chapter

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Jairo A. del Rio
gefrac{}{\displaystyle\gefrac{#1+}{}#2}% > >}% > > } > > \def\cofracnorule#1#2{% > > {% > > \rlap{\gefrac{\displaystyle\phantom{1}}{\displaystyle\phantom{#1}}}% > > \gefrac{}{\displaystyle\gefrac{#1}{}#2}% > > }% > > } > > \def\endfrac#1{\cofr

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Hans Hagen
}}{\displaystyle\phantom{#1}}}% \gefrac{}{\displaystyle\gefrac{#1}{}#2}% }% } \def\endfrac#1{\cofracnorule{#1}{\phantom{1}}} \startTEXpage \startplacefigure[location=force,number=no] \externalfigure[cofrac.png] \stopplacefigure \startformula \alpha + \cofrac{\alpha'}{\cofrac{\alpha''}{\cofrac{\alpha

[NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-28 Thread Jairo A. del Rio
}}{\displaystyle\phantom{#1}}}% \gefrac{}{\displaystyle\gefrac{#1}{}#2}% }% } \def\endfrac#1{\cofracnorule{#1}{\phantom{1}}} \startTEXpage \startplacefigure[location=force,number=no] \externalfigure[cofrac.png] \stopplacefigure \startformula \alpha + \cofrac{\alpha'}{\cofrac

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
state=stop] \definelayer[BG][ x=0mm,y=0mm, width=\LWidth,height=\LHeight, state=repeat] \setupbackgrounds[page][background=BG,] \setlayerframed[BG][ frame=on, framecolor=yellow, width=\LWidth,height=\LHeight, align=flushleft, ]{\strut} \setlayer[BG][ preset=rightbottom, hoffse

Re: [NTG-context] .jpeg not recognised in LMTX

2020-06-25 Thread Hans Hagen
On 6/25/2020 12:00 AM, Sytse Knypstra wrote: Today I discovered that my LMTX version (2020.06.20) does not render an \externalfigure with .jpeg extension. After renaming to .jpg the picture is correctly shown. I would suggest to add the .jpeg extension to the list of allowed graphic types

[NTG-context] .jpeg not recognised in LMTX

2020-06-24 Thread Sytse Knypstra
Today I discovered that my LMTX version (2020.06.20) does not render an \externalfigure with .jpeg extension. After renaming to .jpg the picture is correctly shown. I would suggest to add the .jpeg extension to the list of allowed graphic types in LMTX. With greetings, Sytse Knypstra

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
] pdf("RPlots/MyHistogram.pdf",5,5) X <- rnorm(200,mean=10,sd=2) hist(X, col = "red3" , xlab="Score QI" , main="", ylab="fréquence") \stopR \externalfigure[RPlots/MyHistogram.pdf][width=.5\textwidth] \stoptext Thanks so much for yo

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
utputfile}, > output=\externalfilterbasefile.out, > directory=output, > readcommand=\ShowOutput, > read=no, > cache=yes, > purge=yes, % THE COMMA WAS MISSING > ] > > \starttext > > Some text... > > \startR[read=yes] > pdf(&

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
] \starttext Some text... \startR[read=yes] pdf("RPlots/MyHistogram.pdf",5,5) X <- rnorm(200,mean=10,sd=2) hist(X, col = "red3" , xlab="Score QI" , main="", ylab="fr

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
>>>", "RUNNING R CMD") os.execute("R CMD BATCH --no-timing --save --restore output/code.r output/out") \stopluacode \externalfigure[RPlots/MyHistogram.pdf][width=.5\textwidth] \stoptext Aditya___

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
t;Score QI" , main="", ylab="fréquence") \stopR \externalfigure[RPlots/MyHistogram.pdf][width=.5\textwidth] \stoptext 3) Finally, using "R CMD BATCH… » as the filtercommand add an extra line at the end of the output file which can be typeset to visualize resu

[NTG-context] Filter module for R

2020-06-14 Thread Fabrice L
ot; , main="", ylab="fréquence")\stopR\externalfigure[MyHistogram.pdf][width=.5\textwidth] \stoptext% —Sorry for the three questions… and thanks for any help.Fabrice. MyHistogram.pdf Description: Adobe PDF document __

Re: [NTG-context] using modeset

2020-06-11 Thread Wolfgang Schuster
=\select{language}{English float title}{Dutch float title}] \externalfigure[dummy] \stopplacefigure \stoptext Finally in the attached PDF below, I noticed that a double space appears depending on the position of the text and curly bracket. Is this intended? Yes because you add spaces

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

2020-06-10 Thread mf
] \defineexternalfigure[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 \startframedtext[frame=off] \input

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

2020-06-10 Thread Wolfgang Schuster
] \defineexternalfigure[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 \startframedtext[frame=off] \input

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

2020-06-10 Thread Hans Hagen
\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 \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end

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

  1   2   3   4   5   6   7   8   9   10   >