Re: [NTG-context] Problem with gnuplot-module in lmtx

2020-11-27 Thread Christian Prim
iki-page (for lmtx with externalfigure) doesn't > work. Error is: > > tex error > tex error on line 1 in file > virtual://buffer.svg-sin-inclusion.1: Undefined control sequence > > \font_basics_predefine #1#2->\font_basics_defined_font_yes > [#2]

[NTG-context] Problem with gnuplot-module in lmtx

2020-11-25 Thread Christian Prim
Hi with the latest version of lmtx (upgraded a minute ago), the gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't work. Error is: tex error > tex error on line 1 in file virtual://buffer.svg-sin-inclusion.1: Undefined control sequence \font_basics_predefine #

Re: [NTG-context] autostart included video

2020-11-19 Thread Aditya Mahajan
On Thu, 19 Nov 2020, Hans Hagen wrote: > On 11/19/2020 8:12 AM, Aditya Mahajan wrote: > > > I use \externalfigure[filename.mp4] to include a video in a presentation. Is > > it possible to autostart the video automatically when the page is loaded? > Video (and audio) and ac

Re: [NTG-context] autostart included video

2020-11-19 Thread Hans Hagen
On 11/19/2020 8:12 AM, Aditya Mahajan wrote: I use \externalfigure[filename.mp4] to include a video in a presentation. Is it possible to autostart the video automatically when the page is loaded? This works here: \setupinteraction[state=start] \starttext \gotobox{\externalfigure[cow.pdf

Re: [NTG-context] autostart included video

2020-11-19 Thread Hans Hagen
On 11/19/2020 8:12 AM, Aditya Mahajan wrote: I use \externalfigure[filename.mp4] to include a video in a presentation. Is it possible to autostart the video automatically when the page is loaded? Video (and audio) and acrobat ... any browser can play a video but it seems too complex

[NTG-context] autostart included video

2020-11-18 Thread Aditya Mahajan
Hi, I use \externalfigure[filename.mp4] to include a video in a presentation. Is it possible to autostart the video automatically when the page is loaded? Thanks, Aditya ___ If your question is of interest

[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
] [numberconversion=characters, numberstopper=)] \setuplabeltext [subfigure=] \definecounter [subfigure] [way=bytext] \starttext \startplacefigure [title=First, reference=first] \startfloatcombination [nx=2, ny=1] \startplacesubfigure \externalfigure \stopplacesubfigure

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
important > beginfig (1); > draw fullcircle scaled cm > %withcolor black > ; > endfig; > end > > so when you compile it via > > mpost nice.mp > > (obviously supposing you have Metapost installed) you'll get a file called > nice.1 and > > \starttext >

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Jairo A. del Rio
st installed) you'll get a file called nice.1 and \starttext \externalfigure[nice.1][width=4cm] \stoptext will work. However, as you can see, ConTeXt deals with such minutiae for you and extends Metapost capabilities too, so the second alternative is not the ConTeXt way to go. I hope it helps.

[NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
Dear List, I'm trying to embed a metapost image into the document. According the MetaFun manual <http://www.pragma-ade.com/general/manuals/metafun-p.pdf>, "embedding such a graphic is done by: \externalfigure[graphic.123][width=4cm]", but the following example produc

[NTG-context] caching remote images

2020-11-04 Thread Jano Kula
are available (when to delete dirlist.* files), as described in workflows-mkiv.pdf. Looks like the cache parameter in \externalfigure is used only if some conversion is going on. I could create a conversion which does nothing or only envelopes JPG in PDF as .jpg.pdf (loading could be faster

Re: [NTG-context] index entries postponed if sections are empty

2020-11-01 Thread Jano Kula
Hello Hraban! On Sat, 31 Oct 2020 at 17:56, Henning Hraban Ramm wrote: > Hi, > I‘m despairing about my index – some sections contain only an image > (\externalfigure), but I need to set several index entries for the image > contents. > The index entries get postponed until

Re: [NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Otared Kavian
Hi, > I‘m despairing about my index – some sections contain only an image > (\externalfigure), but I need to set several index entries for the image > contents. > The index entries get postponed until after the next chapter. > I guess the problem is that there’s no (text) cont

[NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Henning Hraban Ramm
Hi, I‘m despairing about my index – some sections contain only an image (\externalfigure), but I need to set several index entries for the image contents. The index entries get postponed until after the next chapter. I guess the problem is that there’s no (text) content, but \par and \strut

Re: [NTG-context] Loading modules in Windows

2020-10-31 Thread Jeroen
> Hans) but for gnuplot there is a new module by Hans which uses > \externalfigure to load the graphic. > > https://www.mail-archive.com/ntg-context@ntg.nl/msg93713.html > > Wolfgang > > ___ I

Re: [NTG-context] Loading modules in Windows

2020-10-31 Thread Wolfgang Schuster
) but for gnuplot there is a new module by Hans which uses \externalfigure to load the graphic. https://www.mail-archive.com/ntg-context@ntg.nl/msg93713.html Wolfgang ___ If your question is of interest to others

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Jan U. Hasecke
efigure[location={left,none}] >     \externalfigure[dummy][width=3em] >     \stopplacefigure > >     \dorecurse {4} { >     \samplefile{ward}\par >     } >     } > \stoppagecolumns > > \stoptext > > don't tell Hraban I promise. ;-) I can't test it thorou

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Herbert Voss
}]     \externalfigure[dummy][width=3em] using width=13em gives funny output ... Herbert \stopplacefigure     \dorecurse {4} {     \samplefile{ward}\par     }     } \stoppagecolumns \stoptext

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Hans Hagen
On 10/14/2020 6:58 PM, Jan U. Hasecke wrote: Hi, how can I get a graphic that floats left or right from the text in columns or columnsets? \starttext \startcolumns[2] \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} \input ward \input ward \stopcolumns

[NTG-context] text surrounding graphic in columns

2020-10-14 Thread Jan U. Hasecke
Hi, how can I get a graphic that floats left or right from the text in columns or columnsets? \starttext \startcolumns[2] \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} \input ward \input ward \stopcolumns \blank \placefigure[left, high, none

Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-11 Thread Henning Hraban Ramm
ateinserts % nop in LMTX \showframe \setupcaptions[ headstyle={\ss\bfx}, align={flushleft,high}, prefixsegments=none, location={bottom,low}, hang=yes, ] \setupfootnotes[ width=\textwidth, ] \starttext \startplacefigure[location=page,title={\fakewords{5}{7}\footnote{\fakewords{20}{30}}}]%

Re: [NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
dorecurse{\noffigurepages} >{\vbox to \paperheight > > {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax > \hbox to \hsize > {\hskip-\backspace > \layeredtext[] > [boffset=3pc] >

Re: [NTG-context] page counter problem

2020-09-30 Thread Taco Hoekwater
[boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss}\page } where the extra \page command allows ConTeXt to properly process the page breaks. Be

[NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
[] [boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss} } \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext

Re: [NTG-context] numbering pages included by \copypages

2020-09-28 Thread Alan Bowen
] \layeredtext[] [boffset=3pc, roffset=3pc] {\darkmagenta\subpagenumber} {\externalfigure[HannahBW.pdf][page=#1]} \stopTEXpage } \stoptext which works, though it would arguably be better if there is a way to prevent the subpage number on the first page of every included file. Alan On Fri, Sep 25

Re: [NTG-context] scaling images

2020-09-27 Thread Taco Hoekwater
> On 27 Sep 2020, at 11:42, Henning Hraban Ramm wrote: > > Hi, > I’m struggling with scaling images: > > \externalfigure[hacker][width=0.5\textwidth] > > looks right. > > > If I use the scale / xscale / yscale options, the image gets smaller, > regar

[NTG-context] scaling images

2020-09-27 Thread Henning Hraban Ramm
Hi, I’m struggling with scaling images: \externalfigure[hacker][width=0.5\textwidth] looks right. If I use the scale / xscale / yscale options, the image gets smaller, regardless of height/width settings, i.e. with \externalfigure[hacker][width=0.5\textwidth,yscale=500,xscale=1000

Re: [NTG-context] numbering pages included by \copypages

2020-09-25 Thread Hans Hagen
/context-blog/post/include-multi-page-pdf/ When both document have the same size you can replace TeXpage with a "page" layout. \startlayout[page] \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} \stoplayout Thanks for the comment (also I didn't know about \s

Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Aditya Mahajan
ttps://adityam.github.io/context-blog/post/include-multi-page-pdf/ > > When both document have the same size you can replace TeXpage with a "page" > layout. > > \startlayout[page] > \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} > \stoplayout Tha

Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Wolfgang Schuster
[location=default] \starttext ... \page \getfiguredimensions[texit.pdf] \noheaderandfooterlines \dorecurse{\noffigurepages} {\vbox to \vsize {\vskip-\dimexpr\headerheight+\topspace\relax \hbox to \hsize {\hskip-\backspace \externalfigure[texit.pdf][page=\recurselevel

Re: [NTG-context] Full page image and caption in another page?

2020-09-23 Thread Taco Hoekwater
side of the current page. But at least there is a command to typeset a caption standalone, so perhaps that will help? You would then *not* use the \startplacebigfigure, but place the caption and the image manually: \page \placefloatcaption[bigfigure][title={A cow}] \page \externalfigure[cow

[NTG-context] Full page image and caption in another page?

2020-09-22 Thread José de Mattos Neto
\starttext \showframe \dorecurse{2}{\input{knuth}} \setuppapersize[rotate] % this doesn't work because is in same page \startplacebigfigure[title={A cow}]{\externalfigure[cow]}\stopplacebigfigure \setuppapersize[default] \dorecurse{2}{\input{knuth}} \stoptext

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm
mbination %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={\fakewords{5}{10}\footnote[f:1]{\fakewords{10}{30}}}] \externalfigure[001][width=.34\textwidth] \stopplacefigure \startplacefigure[title={\fakewords{5}{10}\footnote[f:2]{\fakewords{10}{30}}}] \externalfigure

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm
tnotes, but no combination %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={1 Image with footnote\footnote[f:1]{\input lorem }}] \externalfigure[001][width=.34\textwidth] \stopplacefigure \startplacefigure[title={2 Another image with footnote\footno

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
>> \starttext >> \input lorem >> \startplacefigure[location=none] >> \startfloatcombination[2*1] >> \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] >> \externalfigure[003][width=.48\textwidth] >> \stopplacefigure >> \startplacefigure[title={Rig

[NTG-context] Fwd: Re: footnotes in captions in floatcombinations

2020-09-16 Thread Hans Hagen
nothing in lmtx \showframe \starttext \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image\footnote[f:4

[NTG-context] sidefloats and narrower

2020-09-16 Thread Henning Hraban Ramm
=\stopquotation] \starttext %\fakewords{50}{60} \startplacefigure[location={right,-line},title={\fakewords{7}{10}}] \externalfigure[022][width=0.33\textwidth,height=0.75\textheight] \stopplacefigure \startZitat \fakewords{30}{60} \stopZitat \fakewords{30}{60} \startZitat \fakewords{15}{20

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
. \useMPlibrary[dum] \automigrateinserts \showframe \starttext \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image

[NTG-context] footnotes in captions in floatcombinations

2020-09-14 Thread Henning Hraban Ramm
}}] \externalfigure[001][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Another image with footnote\footnote[f:2]{Something}}] \externalfigure[002][width=.48\textwidth] \stopplacefigure %\stopfloatcombination %\stopplacefigure \input lorem \startplacefigure[location=none

[NTG-context] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar
,grid=yes] \showframe \usemodule[newcolumnsets] \definecolumnset[colset][n=2] \starttext \startcolumnset[colset] \section{One section} \dorecurse{16}{\input ward \par} \placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]} \section{Two section

[NTG-context] Force bottom float to be at the bottom

2020-09-07 Thread Mikael Sundqvist
at the bottom of the page? I hope what I ask makes sense. /Mikael \useMPlibrary[dum] \definefloat[bottomfigure][bottomfigures][figure] \setupfloat[bottomfigure][default=bottom] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacebottomfigure \externalfigure[dummy][width=\textwidth

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
\startsectionblockenvironment [backpart]    \setuppagenumber[state=stop] \stopsectionblockenvironment \stopenvironment end environment  begin component\startcomponent fm-frontpage \product product \startstandardmakeup [top=,pagestate=start,align=middle,color=Modu_Blue] % \dontleavehmode\extern

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
] \stopsectionblockenvironment \stopenvironment end environment begin component \startcomponent fm-frontpage \product product \startstandardmakeup [top=,pagestate=start,align=middle,color=Modu_Blue] % \dontleavehmode\externalfigure[frontpage-logo.png][width=12cm] \framed [height=5cm,width=broad

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
umbers]\definestructureconversionset    [appendix:pagenumber] [][numbers]=   The fm-frontpage.tex file\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page\framed[height=5cm,width=broad,frame=off]{\external

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
] \definestructureconversionset [appendix:pagenumber] [][numbers] = *The fm-frontpage.tex file* \startcomponent currentcomponent \product product % Front page layout \startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure[frontpage-logo.png][width=12cm]} % Place course titles\blank[6*big]\color[Modu_Blue]{\midaligned{\bfc \MyManual

Re: [NTG-context] PNG image inclusion resolution

2020-09-02 Thread Christoph Reller
On Wed, Sep 2, 2020 at 4:36 PM Hans Hagen wrote: > On 9/2/2020 3:35 PM, Christoph Reller wrote: > > Dear List, > > > > I am using ConTeXt LMTX 2020.08.31 22:16. Consider the following MWE: > > > >\starttext > >\externalfigure[resolutionTest.png]

Re: [NTG-context] PNG image inclusion resolution

2020-09-02 Thread Hans Hagen
On 9/2/2020 3:35 PM, Christoph Reller wrote: Dear List, I am using ConTeXt LMTX 2020.08.31 22:16. Consider the following MWE:   \starttext   \externalfigure[resolutionTest.png]   \stoptext When comparing the output with ConTeXt MKIV, then the image size is extremely small. gimp reports

[NTG-context] PNG image inclusion resolution

2020-09-02 Thread Christoph Reller
Dear List, I am using ConTeXt LMTX 2020.08.31 22:16. Consider the following MWE: \starttext \externalfigure[resolutionTest.png] \stoptext When comparing the output with ConTeXt MKIV, then the image size is extremely small. gimp reports the resolution of resolutionTest.png as 71.984 DPI

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
ption[figure][state=stop,numberstopper={\convertedcounter[subfigure]}]} > > \def\unsetsubfigures > {\setupcaption[figure][state=start,numberstopper=]} > > %usage > \setsubfigures > > \startplacefigure[title=Test figure] > \externalfigure[dummy] > \stopplacefigur

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Taco Hoekwater
r=]} %usage \setsubfigures \startplacefigure[title=Test figure] \externalfigure[dummy] \stopplacefigure \incrementnumber[subfigure] \startplacefigure[title=Test another figure] \externalfigure[dummy] \stopplacefigure \unsetsubfigures I could not find a safe way to increment the subfigure number automatic

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
Hi, If there are a few special numberings of floats, and one wants floats numbered 1.6a and 1.6b, the following seems to work: Best regards: Otared %%% begin ownnumber-in-floats.tex \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
um] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \startsection[title=Two] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[figure][5] % next figure is no.6 \startsection[ownnumbe

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
r the same (according to the source they’re synonymous) – does section use a different counter name or is it no counter at all? \setnumber[figure][10] works (but only with integers, not some alphanumerical stuff, sorry Duncan). Hraban \useMPlibrary[dum] \starttext \startsection[title=One] \st

[NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-19 Thread Henri Menke
? \externalfigure[#1][#2][#3]% or \externalfigure[#1][#2,\c!display=,\c!mask=,\c!object=\v!no]% \stopnointerference} I guess this is not intentional and was left over at some point. Could you please fix this? Cheers, Henri

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
lohi},columndistance=0em] \startxrow \startxcell \dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell \stopxrow \stopxtable \stoptext > But why that is? I do not have any other good ideas. And > unfortunately lots of diffe

Re: [NTG-context] floats side by side

2020-08-08 Thread Henning Hraban Ramm
figures with captions included >> in the usual numbering of figures and not one number & caption for the >> combination. >> How can I achieve this? > > Use a float combination: > > \startplacefigure[location=none] >\startfloatcombination[2*1] >\s

Re: [NTG-context] floats side by side

2020-08-08 Thread Wolfgang Schuster
tion for the combination. How can I achieve this? Use a float combination: \useMPlibrary[dum] \starttext \input ward \startplacefigure[title={Dummy}] \externalfigure[dummy] \stopplacefigure \input jojomayer \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Willi Egger
t this moment I have: >>> >>> \startsetups endsection >>> \vfil >>> \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} >>> \stopsection >>> \stopsetups >>> >>> \def\stopmysection{\setups{endsection}} >>>

Re: [NTG-context] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Jan Hansen
;> >> Hi, Hans >> >> I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file: >> >> ~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua >> >> Am I missing something? > > Refresh the database: > > luatools --gene

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Wolfgang Schuster
have: \startsetups endsection \vfil \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} \stopsection \stopsetups \def\stopmysection{\setups{endsection}} I use then instead of \stopsection the \stopmysection. This works except that the ornament is in some cases

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Taco Hoekwater
t I have: > > \startsetups endsection > \vfil > > \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} > \stopsection > \stopsetups > > \def\stopmysection{\setups{endsection}} > > I use then instead of \stopsection the \stopmysection. Th

[NTG-context] About testing rest of space on a page

2020-07-29 Thread Willi Egger
Good evening! I have a bookproject in which sections are ended with a small graphical element. Now as usual this graphic might be moved to a new page which is of course unwanted. At this moment I have: \startsetups endsection \vfil \placefigure[middle,none][]{}{\externalfigure[ornament2

Re: [NTG-context] upload

2020-07-28 Thread Hans Hagen
On 7/28/2020 10:58 AM, Fabrice Couvreur wrote: Hi Hans, I updated the version of lmtx and wanted to test the following code \useMPlibrary[dum] \starttext \placefigure[right]{}{\externalfigure[dummy]} \input ward\par \placefigure[right]{}{\externalfigure[dummy]} {\bf \input ward} \par add

Re: [NTG-context] upload

2020-07-28 Thread Fabrice Couvreur
Hi Hans, I updated the version of lmtx and wanted to test the following code \useMPlibrary[dum] \starttext \placefigure[right]{}{\externalfigure[dummy]} \input ward\par \placefigure[right]{}{\externalfigure[dummy]} {\bf \input ward} \par \stoptext This returns the error message runtime error

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
ent • \em, \bf, \cap, • \startitemize, \startitem, \starthead, • \placefigure, \externalfigure, • \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE • \index, \completeindex • \setuplayout, \setupfootertexts et \setupheadertexts • \definedescription, \defineenumeration • \at, \in Anyway, t

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
, frame=off, location=always, ] \showframe \starttext \starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
tbackground[fondpaille] > [background=color, > backgroundcolor=fondpaille, > frame=off, > location=always] > > \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=no,location=right] > \externalfigure[dummy] &

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
gt; \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=no,location=right] > \externalfigure[dummy] > \stopplacefigure > \startitemize[n] > \dorecurse{3}{\startitem \input ward \stopitem} > \s

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
\starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stoptextbackground \stoptext Best regards

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackground

[NTG-context] Text around a figure

2020-07-15 Thread Fabrice Couvreur
] \placefloat[][right,none]{} {\externalfigure[dummy]} \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stopframedtext \stoptext ___ If your question is of interest

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

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