[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
%%% \setupexternalfigures [location={local,global,default}] \setupfloats[compress=no] \setupfloat[figure][default=top] \starttext \input knuth \placefigure{Cow 1}{\externalfigure[cow][ width=.5\textwidth, ]} \placefigure{Cow 2}{\externalfigure[cow

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Denis Maier via ntg-context
not work   == \setupexternalfigures   [   maxwidth=\textwidth,   minwidth=\textwidth,   location={local,global,default},   ]   \starttext   \externalfigure[cow.pdf

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 10.04.2024 um 12:47: Hi, Shouldn’t minwidth set a default minimal width for external figures? But this here does not work == \setupexternalfigures   [   maxwidth=\textwidth,   minwidth=\textwidth

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
e I cannot just adjust > slightly adjust the dimensions to get rid of that. It seems that you can place the figures somehow (https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169): See the extreme example: \showframe\showgrid\showstruts \setupexternalfigures [location={lo

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Denis Maier via ntg-context
set a default minimal width for external figures? But this here does not work == \setupexternalfigures [ maxwidth=\textwidth, minwidth=\textwidth, location={local,global,default}, ] \starttext \externalfigure[cow.pdf

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Denis Maier via ntg-context
: denisma...@mailbox.org Gesendet: Mittwoch, 10. April 2024 13:37 An: 'ntg-context@ntg.nl' Betreff: Weird (?) float placement for specific widths of image Hi, another graphics/floats question: consider the following example % \setupexternalfigures

[NTG-context] Weird (?) float placement for specific widths of image

2024-04-10 Thread Denis Maier via ntg-context
Hi, another graphics/floats question: consider the following example % \setupexternalfigures [location={local,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight

[NTG-context] minwidth not working ?

2024-04-10 Thread denis.maier
Hi, Shouldn't minwidth set a default minimal width for external figures? But this here does not work == \setupexternalfigures [ maxwidth=\textwidth, minwidth=\textwidth, location={local,global,default}, ] \starttext

[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
ed 1mm rightenlarged 1mm; draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=vertic

[NTG-context] \startcolumns and \startcolumnset

2024-02-08 Thread Jeong Dal via ntg-context
leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset [quiz] [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2

[NTG-context] Re: font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
it in a minimal example, so I guess it depends on the current surroundings. Since it points to some font handling and the figure is a PDF containing fonts, I guess it might depend on the new handling of fonts in PDFs, but it doesn’t change regardless of \setupexternalfigures[compact=preset:merge

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
on the current surroundings. Since it points to some font handling and the figure is a PDF containing fonts, I guess it might depend on the new handling of fonts in PDFs, but it doesn’t change regardless of \setupexternalfigures[compact=preset:merge] or other settings. Here’s the image: https

[NTG-context] Width of captions and notes in outer margin not correct on even pages

2024-01-09 Thread Milan cel Mare via ntg-context
ow}, width=\outermarginwidth, headcolor=red, color=green, style={\tfx\setupinterlinespace}, align=width] \setupexternalfigures[location=default] \setupmargindata[style={\tfx}, stack=yes] \setupmargindata[inouter][color=orange] \setupmargindata[ininner][color=blue] \showframe \starttext \section{Margin Tes

[NTG-context] Re: setupexternalfigures and resoĺution

2023-07-28 Thread Benjamin Buchmuller
This thread about downsampling external images on the fly is a really helpful feature! Thanks, Hraban for sharing the code! I was wondering if it was possible to downscale also raster images embedded in pdf/svg files loaded via \externalfigure? I found a ghostscript solution online

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
> > a > > > > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x} > > > > or > > > > x \rightarrowfill x > > x \leftarrowfill x > > > > or > > > > \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x}

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
% \setupexternalfigures % [location={default,global}] % \startsetups adaptive:test % \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup % \externalfigure % [cow.pdf] % [width=\usedadaptivewidth, %height=\dimexpr

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
of the combination coincides with the centre of the text area of a page. Hi Keith, I think the following sample might achieve what you want: \showframe \setupexternalfigures[location={default}] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
\showframe \setupexternalfigures[location={default}] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupback

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
in advance. > Am 19.10.2022 um 13:52 schrieb Ursula Hermann via ntg-context - ntg-context > at ntg.nl : > > Dear Oliver, > > maybe something like this? > This is my example: > \starttext > > \setuppapersize > [A5] > > \setupexternalfigures >

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
Dear Oliver, maybe something like this? This is my example: \starttext \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background

[NTG-context] ConTeXt meeting and the annotated cow

2022-09-18 Thread Axel Kielhorn via ntg-context
, these annotations are not translated. I have to prepare a set of pictures for every language. Well, that changed last week. Here is my first try (actually the 4th iteration): %%% \setupexternalfigures[location=default] \starttext \startMPinclusions %draft := 0

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-02 Thread Henning Hraban Ramm via ntg-context
Am 02.09.22 um 10:39 schrieb Keith McKay via ntg-context: Thanks for this code Hraban. I tried this last night and it worked really well. I did have one stumbling block when I noticed that those image files with a space in their names were not found, however renaming  without a space solved

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-02 Thread Keith McKay via ntg-context
y. > > But you can use it with the attached lua file like: > > > \loadluafile[grph-downsample] > \doifmodeelse{print}{% > \def\Resolution{300} > }{% > \def\Resolution{96} > }% > >

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
\Resolution{96} }% \setupexternalfigures[    %directory={./Logos,img},    conversion=lowres.jpg,    resolution=\Resolution, ] With the script I get strange results. I am not sure whether the resolution is correctly calculated. And I am wondering what the script is doing with png files. This one

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 12:37 schrieb juh+ntg-context--- via ntg-context: Hi Hraban, Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context: \startluacode local function downsampler(oldname, newname, resolution) if not resolution or resolution == "" then resolution = 72 end

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 13:43 schrieb juh+ntg-context--- via ntg-context: Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: \loadluafile[grph-downsample] \doifmodeelse{print}{%  \def\Resolution{300} }{%  \def\Resolution{96} }% \setupexternalfigures[    %directory={./Logos,img

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: \loadluafile[grph-downsample] \doifmodeelse{print}{% \def\Resolution{300} }{% \def\Resolution{96} }% \setupexternalfigures[   %directory={./Logos,img},   conversion=lowres.jpg,   resolution=\Resolution

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Hi Hraban, Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context: \startluacode local function downsampler(oldname, newname, resolution)     if not resolution or resolution == "" then     resolution = 72     end     local cmd = string.format(   [[gm convert -resample

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context: Hi, what is resolution meant to do? What am I missing? The resolution parameter is still not used by default ConTeXt, sorry. But you can use it with the

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
? The resolution parameter is still not used by default ConTeXt, sorry. But you can use it with the attached lua file like: \loadluafile[grph-downsample] \doifmodeelse{print}{% \def\Resolution{300} }{% \def\Resolution{96} }% \setupexternalfigures[ %directory={./Logos,img}, conversion

[NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Hi, what is resolution meant to do? Whatever I insert as resolution, I get no change. \setupexternalfigure[location={default,local},resolution=30] \starttext \externalfigure[hacker] \stoptext What am I missing? TIA juh

[NTG-context] Write a long chapter title in two lines

2022-08-18 Thread Jeong Dal via ntg-context
le, style=\BigFontOne, numbercommand=\outlineTitle, % align = middle, number=yes] \setupexternalfigures[location={default,local,global}] %\definefont[fancy][Zapfino at 24pt] \starttext \startchapter[title={Very Long Long Long Title}] \startcombination[3*1] {\externalfigure[cow] [combina

[NTG-context] Write a long chapter title in two lines

2022-08-15 Thread Jeong Dal via ntg-context
{\useMPgraphic{outlineT}{tt="#1"}} \setuphead[chapter] [textcommand=\outlineTitle, style=\BigFontOne, numbercommand=\outlineTitle, % align = middle, number=yes] \setupexternalfigures[location={default,local,global}] %\definefont[fancy][Zapfino at 24pt] \starttext \startchapter[title={Very Long

Re: [NTG-context] image with rounded corners

2022-08-12 Thread Henning Hraban Ramm via ntg-context
Am 12.08.22 um 13:10 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 12.08.2022 um 10:57: Hi, can ConTeXt make rounded image corners? \setupexternalfigures[location=default] \starttext \startMPclip{rounded corner} clip currentpicture

Re: [NTG-context] image with rounded corners

2022-08-12 Thread Wolfgang Schuster via ntg-context
][{%   \externalfigure[mill][width=\overlaywidth] }] \framed[background=Mill,width=3cm,height=4cm, corner=round,radius=1cm, backgroundcorner=round,backgroundradius=1cm, offset=overlay]{} \setupexternalfigures[location=default] \starttext \startMPclip{rounded corner} clip currentpicture

Re: [NTG-context] Set up external figure for particular image type

2022-08-01 Thread Hans Hagen via ntg-context
On 8/1/2022 2:29 AM, Thangalin via ntg-context wrote: Got it working. Complete solution: |\setupexternalfigures[ location={local,global,default}, width=\textwidth ] \defineexternalfigure[svg][width=1cm] \defineexternalfigure[jpg][width=2cm] \defineexternalfigure[png][width=4cm] % Won't

Re: [NTG-context] Set up external figure for particular image type

2022-08-01 Thread Thangalin via ntg-context
Got it working. Complete solution: \setupexternalfigures[ location={local,global,default}, width=\textwidth ]\defineexternalfigure[svg][width=1cm]\defineexternalfigure[jpg][width=2cm]\defineexternalfigure[png][width=4cm] % Won't be applied because there's no process action.% Default

Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-07-29 Thread Jeong Dal via ntg-context
Dear Hans, Thank you for the new way to align math formulas. It is great to use “\alignhere”, “\breakhere”. However, I got a problem today. If I use it with figures side by side, then the alignment is broken. Please try the following MWE. Best regards, Dalyoung \setupexternalfigures

Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Taco Hoekwater via ntg-context
for the context.framedtext() > > \setupexternalfigures[location={local,default}] > > \startluacode > > function Foto_page() --thirddata > > context.startplacefigure({number="",textstyle="red",title="A Test"}) >conte

Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Willi Egger via ntg-context
Hraban thank you for your answer. I tried diffrent approaches in the meantime, however I am unable to get it working. What is wrong with this code? — The code woks a for the context.framedtext() \setupexternalfigures[location={local,default}] \startluacode function Foto_page

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Thangalin via ntg-context
ain! > \setupexternalfigures [location={local,global,default}] > > \defineexternalfigure [jpg] [width=4cm] > \defineexternalfigure [png] [width=8cm] > > \starttexdefinition includegraphics #1 > > \splitfilename{#1} > > \processaction > [\splitofftype] >

Re: [NTG-context] Set up external figure for particular image type

2022-07-12 Thread Wolfgang Schuster via ntg-context
\externalfigure to load the image. \setupexternalfigures [location={local,global,default}] \defineexternalfigure [jpg] [width=4cm] \defineexternalfigure [png] [width=8cm] \starttexdefinition includegraphics #1     \splitfilename{#1}     \processaction     [\splitofftype]     [    jpg

[NTG-context] Set up external figure for particular image type

2022-07-08 Thread Thangalin via ntg-context
A document has a mix of SVG and PNG images. Changing the parameters for `\setupexternalfigure` affects both SVG and PNG images. Consider the following code: \setupexternalfigures[ order={svg,pdf,png,jpg}, location={local,default,global}, directory={images}, maxwidth

Re: [NTG-context] Rotating jpeg image gives weird output

2022-06-15 Thread Denis Maier via ntg-context
Thanks for all your help. Using Magick had no effect so I've had another look at my setup. It turned out I had this in m \setupexternalfigures [maxwidth=\textwidth, maxheight=0.8\textheight. location={local,global}, ] The period to end maxheight is obviously a mistake. (However, I'm still

Re: [NTG-context] overfull gone?

2022-06-07 Thread Steffen Wolfrum via ntg-context
. >> Is this command (\version[temporary]) gone?? >> Please have a look at the example below: no overfull indicator ... >> Steffen >> --- >> \setuppapersize[A6] >> \setupexternalfigures[location={default}] >> %\version[temporary] >> \overfullrule3

Re: [NTG-context] overfull gone?

2022-05-28 Thread Hans Hagen via ntg-context
... Steffen --- \setuppapersize[A6] \setupexternalfigures[location={default}] %\version[temporary] \overfullrule30\points% < BLACK BOX? \starttext \startcolumns[n=3] % Overfull lines will have slugs in colum margins. \input linden % Underfull hboxes get no warning x \stopcolu

[NTG-context] overfull gone?

2022-05-28 Thread Steffen Wolfrum via ntg-context
Hi, in order to easily see overfull lines I used \overfullrule30\points : this gave a clear black box in the right margin. Is this command (\version[temporary]) gone?? Please have a look at the example below: no overfull indicator ... Steffen --- \setuppapersize[A6] \setupexternalfigures

[NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
HI!Tried to make a checklist in an interactive document.The problem seems to be that all checks/uncecks in same click, not each individually.Is there something wrong with my code?See attached below\setupinteraction[state=start]\setupexternalfigures[location=global]\usemodule[fields]\definesymbol

[NTG-context] is \version[temporary] still alive?

2022-05-22 Thread Steffen Wolfrum via ntg-context
Hi, testing this mwe I’d expect some indicators detecting overfull lines. At least on my machine (ConTeXt ver: 2022.01.21 20:13 LMTX) nothing happens: \setuppapersize[A6] % Tell ConTeXt where the windmill picture is \setupexternalfigures[location={default}] \version[temporary] \section{Slithy

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
So far I accomplished this but problem is that when I check it checks all, not individually. \setupinteraction[state=start] \setupexternalfigures[location=global] \definesymbol [yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] \definesymbol [no] [] \setupfield [setup 3

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
Thank you for the useful tip. I’ve tested the example given below but ran into missing figure, maybe I need to reconstruct the MetaPost file as mentioned in setup. Se attached example: Thanks in advance! /Jan-Erik \setupinteraction[state=start] \setupexternalfigures[location=global

Re: [NTG-context] Simple question

2022-05-10 Thread Denis Maier via ntg-context
begin example \setupexternalfigures [location={local,global,default}] \useexternalfigure [simple] [cow.pdf] %\useexternalfigure [simple] [hacker.png] \starttext \externalfigure[simple] \stoptext end example Wo

Re: [NTG-context] Simple question

2022-05-10 Thread Gerben Wierda via ntg-context
ch folder has images > which the same name. In ConTeXt you can use a mode to choose which directory > is used to load the image. Another method is to map the file names of the > images to symbolic names and use only the

Re: [NTG-context] Simple question

2022-05-10 Thread Wolfgang Schuster via ntg-context
example \setupexternalfigures [location={local,global,default}] \useexternalfigure [simple] [cow.pdf] %\useexternalfigure [simple] [hacker.png] \starttext \externalfigure[simple] \stoptext end example Wolfgang

Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context
ranslatephrase; for your figures I’d just just a language variable in the path, like \externalfigure[images/\LANG/cow.pdf] If this is always the current language, use \currentlanguage. You can also setup the language dependent directory in \setupexternalfigures. Regarding modes, the current language

Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
On Sun, 1 May 2022, Henning Hraban Ramm via ntg-context wrote: > Hi, > I was playing with the example from > https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter > > and tried to put it in a tabulate: > > > \useMPlibrary[dum] > \set

[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context
Hi, I was playing with the example from https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter and tried to put it in a tabulate: \useMPlibrary[dum] \setupexternalfigures[width=3em,height=2em,frame=on,] %\def\TXT{\ruledhbox{\bf(XyX)}} \def\TXT{\externalfigure

[NTG-context] new upload

2022-04-19 Thread Hans Hagen via ntg-context
| PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -\starttext \setupexternalfigures [location={default,global}] \startMPdefinitions def

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Pablo Rodriguez via ntg-context
ere. The layer is relative to the page, not to the paper in this case. And the state is an option for the layer (in \definelayer), not for the background, being "start" its default value. Just in case it might help, Pablo \setupexternalfigures [location={default,global}] \

[NTG-context] new upload

2022-04-15 Thread Hans Hagen via ntg-context
% with images % a weird one \setupexternalfigures [location={default,global}] \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup \externalfigure [cow.pdf] [width=\usedadaptivewidth, height

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
ult as that with the makeup: \setuppagenumbering[alternative=doublesided] \setupexternalfigures[location=default] \setupheadertexts[] \setupheadertexts[chapter][\date] \setupfootertexts[pagenumber] \starttext \startchapter [title={Chapter title}] \dorecurse{2}{\samplefile{knuth}} \placefig

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
ut the float inside the makeup and wrap it with > \start...\stoppostponing. Here is a MWE: > > %%% start example > \setupexternalfigures[location=default] > \definemakeup >[FloatPage] > \setupmakeup >[FloatPage] >[headerstate=normal, >

Re: [NTG-context] Full-page Figure?

2022-03-28 Thread śrīrāma via ntg-context
ine a makeup and enable header, footer and page for it. Then we can put the float inside the makeup and wrap it with \start...\stoppostponing. Here is a MWE: %%% start example \setupexternalfigures[location=default] \definemakeup [FloatPage] \setupmakeup [FloatPage] [headerst

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
}] \setuppagenumbering [alternative=doublesided] \setupexternalfigures [location=default] \useexternalfigure [chapter-1] [mill] [factor=max] \useexternalfigure [chapter-2] [hacker] [orientation=90,scale=2000] \useexternalfigure [chapter-3] [cow][orientation=90,height=\framedwidth]

Re: [NTG-context] help with facing page image

2022-03-11 Thread jbf via ntg-context
=stop] \setuphead   [chapter]   [beforesection={\pageinjection[chapter:start]}, insidesection={\pageinjection[chapter:insert][name={chapter-\namedheadnumber{chapter}}]}] \setuppagenumbering   [alternative=doublesided] \setupexternalfigures   [location=default] \useexternalfigure [chapter-1

Re: [NTG-context] help with facing page image

2022-03-11 Thread Wolfgang Schuster via ntg-context
]   [beforesection={\pageinjection[chapter:start]}, insidesection={\pageinjection[chapter:insert][name={chapter-\namedheadnumber{chapter}}]}] \setuppagenumbering   [alternative=doublesided] \setupexternalfigures   [location=default] \useexternalfigure [chapter-1] [mill]   [factor=max] \useexternalfigure

Re: [NTG-context] help with facing page image

2022-03-10 Thread jbf via ntg-context
-\namedheadnumber{chapter}}]}] \setuppagenumbering [alternative=doublesided] \setupexternalfigures [location=default] \starttext \startchapter [title={Mill}] [rotation=90,width=\paperheight] \dorecurse{7}{\samplefile{lorem}} \stopchapter \startchapter

Re: [NTG-context] help with facing page image

2022-03-09 Thread śrīrāma via ntg-context
umbering [alternative=doublesided] \setupexternalfigures [location=default] \starttext \startchapter [title={Mill}] [rotation=90,width=\paperheight] \dorecurse{7}{\samplefile{lorem}} \stopchapter \startchapter [title={Mill}] [rotation=-90,width=\paperhei

Re: [NTG-context] help with facing page image

2022-03-09 Thread jbf via ntg-context
e={chapter\namedheadnumber{chapter}}]}] \setuppagenumbering   [alternative=doublesided] \setupexternalfigures   [location=default] \starttext \startchapter [title={Mill}] [image=mill] \dorecurse{7}{\samplefile{lorem}} \stopchapter \startchapter [title={Mill}] [image=mill] \dorecurse{11}{\sample

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
, March 7, 2022 11:50 AM jbf wrote: All ten images are different, though, in my case (Chapter1.jpg, Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point \setupexternalfigures to that). I wonder if there is a way to list them so that they get called in order as chapters proceed. A kind

Re: [NTG-context] help with facing page image

2022-03-07 Thread Wolfgang Schuster via ntg-context
headnumber{chapter}}]}] \setuppagenumbering   [alternative=doublesided] \setupexternalfigures   [location=default] \starttext \startchapter [title={Mill}] [image=mill] \dorecurse{7}{\samplefile{lorem}} \stopchapter \startchapter [title={Mill}] [image=mill] \dorecurse{11}{\samplefile{lorem}} \s

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
in a pics directory, so I'd point \setupexternalfigures to that). I wonder if there is a way to list them so that they get called in order as chapters proceed. A kind of "if such and such then \setlayer 1,2,3" I think that should be easy. Suppose you have images {chap-cover-1.jpg, chap-co

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
On Monday, March 7, 2022 11:50 AM jbf wrote: > All ten images are different, though, in my case (Chapter1.jpg, > Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point > \setupexternalfigures to that). I wonder if there is a way to list them > so that they get cal

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
in a pics directory, so I'd point \setupexternalfigures to that). I wonder if there is a way to list them so that they get called in order as chapters proceed. A kind of "if such and such then \setlayer 1,2,3" Julian On 7/3/22 16:38, śrīrāma wrote: On Monday, March 7, 2022 9

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
On Monday, March 7, 2022 11:08 AM śrīrāma wrote: > > From what I understood from your explanation, I have this: > A formatted version below – %%% SOF % for 'mill' \setupexternalfigures[location={default}] \setuppagenumbering[alternative=doublesided] \definelayer [mill]

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
I can't seem to get my facing page image to appear where it > should! From what I understood from your explanation, I have this: %%% SOF % for 'mill' \setupexternalfigures[location={default}] \setuppagenumbering[alternative=doublesided] \definelayer[mill][x=0mm,y=0mm,width=\pa

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
On Sunday, March 6, 2022 5:17 AM mastermind_ x via ntg-context wrote: > Any pointers on how I can achieve this? You don't have a MWE, so based on my understanding of your illustration, I have the following: %%% SOF % required for 'cow' \setupexternalfigures[location={local,defa

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-30 Thread Henning Hraban Ramm via ntg-context
all of my `\placefigure` in the entire document appear exactly where called, even if that means having to place it on a new page with lots of space before it or even a new page afterwards? I need it to show up in the order it was called. I think `\setupexternalfigures[location=]` should provide

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
ire document > appear exactly where called, even if that means having to place it on a new > page with lots of space before it or even a new page afterwards? I need it to > show up in the order it was called. I think > `\setupexternalfigures[location=]` should provide the solution, b

[NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Joel via ntg-context
it on a new page with lots of space before it or even a new page afterwards? I need it to show up in the order it was called. I think `\setupexternalfigures[location=]` should provide the solution, but cann't figure what is the correct location, I'm not seeing that in the manual anywhere

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
the \useexternalfigure command to create a reference to your graphic. A alternative to \defineexpandable is the \setvariables command. \setupexternalfigures [location=default] \defineexpandable\MillFigure{mill.png} \useexternalfigure[CowFigure][cow.pdf] \setvariables[figures][hacker=hacker.jpg] \starttext

Re: [NTG-context] \externafigure and \at do not work together

2021-11-01 Thread Wolfgang Schuster via ntg-context
the float is placed. The original example passed a name to the optional argument of \externalfigure but when you do this you just access a named list of figure options, e.g. rotating the image by 90 degrees counter clockwise. \setupexternalfigures[location={local,global,default

Re: [NTG-context] another svg conversion=mp question

2021-10-23 Thread juh via ntg-context
Am Fri, Oct 22, 2021 at 05:48:09PM +0200 schrieb Hans Hagen: > On 10/22/2021 3:58 PM, juh via ntg-context wrote: > > Can I do any harm if I do: > > > > \setupexternalfigures[conversion=mp] > > probably not unless there is an mp conversion for the other formats T

Re: [NTG-context] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 3:58 PM, juh via ntg-context wrote: Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] probably not unless there is an mp conversion

Re: [NTG-context] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 3:58 PM, juh via ntg-context wrote: Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] unrelated to svg \startMPcode fill fullcircle

[NTG-context] another svg conversion=mp question

2021-10-22 Thread juh via ntg-context
Hi, I include images with a variable via pandoc in a externalfigure directive. These images can be jpgs, pngs, pdfs and svgs. Can I do any harm if I do: \setupexternalfigures[conversion=mp] juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: .

[NTG-context] Setting up the double pages of part beginnings

2021-09-10 Thread Christian Dekant via ntg-context
of the empty page preceding a part title? % \setuppagenumbering [alternative=doublesided] \setupexternalfigures[location=default] % cow % startTEXpage does not increase page number => incrementpagenumber % trimming in the print shop => printpaperwidth/height \define[1]\FullScreen{\startT

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
On 9/7/2021 11:02 AM, Henning Hraban Ramm via ntg-context wrote: (Latest LMTX, yesterday’s luametatex binary) The MWE shows no transparency with LMTX, it works with MkIV: ''' \setupexternalfigures[location=default] \definetransparency[light][a=1,t=.05] \definelayer[bg][x=0mm,y=0mm

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
(Latest LMTX, yesterday’s luametatex binary) The MWE shows no transparency with LMTX, it works with MkIV: ''' \setupexternalfigures[location=default] \definetransparency[light][a=1,t=.05] \definelayer[bg][x=0mm,y=0mm] \setupbackgrounds[text][background={bg},state=start] \starttext

Re: [NTG-context] "*.jpg is bugged", previously working

2021-09-01 Thread Henning Hraban Ramm via ntg-context
> I can send them off-list, if you like. > > \starttext >\externalfigure[20200910T115319.JPG][height=4cm] >\externalfigure[old-paper-1140627-638x420.jpg][height=4cm] > \stoptext > > both show up ok > > (fwiw: the jpg code didn't really change since the

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.08.2021 um 14:46: Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight

[NTG-context] layer disappears when showframe is set

2021-08-26 Thread juh via ntg-context
Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow] \showframe

Re: [NTG-context] paper dimensions for TEXpage

2021-08-18 Thread Hans Hagen via ntg-context
(using framed or so) and then taking those dimensions Many thanks for your reply, Hans. I’m afraid I don’t know how to make the commands work: \setupexternalfigures[location=default] \definelayer[hi] [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax] \setupbackgrounds

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Pablo Rodriguez via ntg-context
d then taking those dimensions Many thanks for your reply, Hans. I’m afraid I don’t know how to make the commands work: \setupexternalfigures[location=default] \definelayer[hi] [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax] \setupbackgrounds[page][background=

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster
\stopproduct end document.tex begin document-environment.tex \startenvironment [*] % sub directory for images % % \setupexternalfigures % [directory=...] % % sub directories for components % % \usepath % [...] % put you setups here \stopenvironment end document-environment.tex

Re: [NTG-context] the --path option

2021-06-22 Thread juh
the script. Everything works fine. But now I would like to use a second path variable in a style file instead of this long relative path: \setupexternalfigures[directory={../../../hs.pub.bilder},local] Any idea how to achieve this? TIA Jan Ulrich Hasecke -- Autoren-Homepage:

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
eff: Re: [NTG-context] specify a directory for tex files > >> > >> Jeroen schrieb am 24.05.2021 um 20:44: > >>> similar to this for figures > >>> > >>> \setupexternalfigures > >>> [directory={./myfigures}] > >>> &

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread Wolfgang Schuster
24.05.2021 um 20:44: similar to this for figures \setupexternalfigures [directory={./myfigures}] is there a way to specify a directory for tex files so with \input{myfile.tex} the file myfile.tex can be placed in a subdirectory for example ./mytexfiles? \usepath[...] and \usesubpath

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
21 um 20:44: > > similar to this for figures > > > > \setupexternalfigures > > [directory={./myfigures}] > > > > is there a way to specify a directory for tex files so with > > > > \input{myfile.tex} > > > > the file myfile.tex can be placed in a sub

Re: [NTG-context] specify a directory for tex files

2021-05-24 Thread Wolfgang Schuster
Jeroen schrieb am 24.05.2021 um 20:44: similar to this for figures \setupexternalfigures [directory={./myfigures}] is there a way to specify a directory for tex files so with \input{myfile.tex} the file myfile.tex can be placed in a subdirectory for example ./mytexfiles? \usepath

  1   2   3   4   5   6   7   >